@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.817Z") @Stability(value=Stable) public class CfnImage extends CfnResource implements IInspectable
An image build version. An image is a customized, secure, and up-to-date “golden” server image that is pre-installed and pre-configured with software and settings to meet specific IT standards.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
CfnImage cfnImage = CfnImage.Builder.create(this, "MyCfnImage")
.infrastructureConfigurationArn("infrastructureConfigurationArn")
// the properties below are optional
.containerRecipeArn("containerRecipeArn")
.distributionConfigurationArn("distributionConfigurationArn")
.enhancedImageMetadataEnabled(false)
.imageRecipeArn("imageRecipeArn")
.imageTestsConfiguration(ImageTestsConfigurationProperty.builder()
.imageTestsEnabled(false)
.timeoutMinutes(123)
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnImage.Builder
A fluent builder for
CfnImage. |
static interface |
CfnImage.ImageTestsConfigurationProperty
When you create an image or container recipe with Image Builder , you can add the build or test components that are used to create the final image.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnImage(software.constructs.Construct scope,
String id,
CfnImageProps props)
Create a new `AWS::ImageBuilder::Image`.
|
protected |
CfnImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnImage(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
Returns the Amazon Resource Name (ARN) of the image.
|
String |
getAttrImageId()
Returns the AMI ID of the Amazon EC2 AMI in the Region in which you are using Image Builder.
|
String |
getAttrImageUri()
Returns a list of URIs for container images created in the context Region.
|
String |
getAttrName()
Returns the name of the image.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getContainerRecipeArn()
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.
|
String |
getDistributionConfigurationArn()
The Amazon Resource Name (ARN) of the distribution configuration.
|
Object |
getEnhancedImageMetadataEnabled()
Collects additional information about the image being created, including the operating system (OS) version and package list.
|
String |
getImageRecipeArn()
The Amazon Resource Name (ARN) of the image recipe.
|
Object |
getImageTestsConfiguration()
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.
|
String |
getInfrastructureConfigurationArn()
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.
|
TagManager |
getTags()
The tags of the image.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setContainerRecipeArn(String value)
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.
|
void |
setDistributionConfigurationArn(String value)
The Amazon Resource Name (ARN) of the distribution configuration.
|
void |
setEnhancedImageMetadataEnabled(Boolean value)
Collects additional information about the image being created, including the operating system (OS) version and package list.
|
void |
setEnhancedImageMetadataEnabled(IResolvable value)
Collects additional information about the image being created, including the operating system (OS) version and package list.
|
void |
setImageRecipeArn(String value)
The Amazon Resource Name (ARN) of the image recipe.
|
void |
setImageTestsConfiguration(CfnImage.ImageTestsConfigurationProperty value)
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.
|
void |
setImageTestsConfiguration(IResolvable value)
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.
|
void |
setInfrastructureConfigurationArn(String value)
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnImage(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnImage(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnImageProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
For example, arn:aws:imagebuilder:us-west-2:123456789012:image/mybasicrecipe/2019.12.03/1 .
@Stability(value=Stable) @NotNull public String getAttrImageId()
Values are returned only for AMIs, and not for container images.
@Stability(value=Stable) @NotNull public String getAttrImageUri()
Values are returned only for container images, and not for AMIs.
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getInfrastructureConfigurationArn()
@Stability(value=Stable)
public void setInfrastructureConfigurationArn(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getContainerRecipeArn()
@Stability(value=Stable)
public void setContainerRecipeArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDistributionConfigurationArn()
@Stability(value=Stable)
public void setDistributionConfigurationArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getEnhancedImageMetadataEnabled()
This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
@Stability(value=Stable)
public void setEnhancedImageMetadataEnabled(@Nullable
Boolean value)
This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
@Stability(value=Stable)
public void setEnhancedImageMetadataEnabled(@Nullable
IResolvable value)
This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
@Stability(value=Stable) @Nullable public String getImageRecipeArn()
@Stability(value=Stable)
public void setImageRecipeArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getImageTestsConfiguration()
@Stability(value=Stable)
public void setImageTestsConfiguration(@Nullable
CfnImage.ImageTestsConfigurationProperty value)
@Stability(value=Stable)
public void setImageTestsConfiguration(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.