Class CfnImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.imagebuilder.CfnImage
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:57.427Z")
@Stability(Stable)
public class CfnImage
extends CfnResource
implements IInspectable
A CloudFormation
AWS::ImageBuilder::Image.
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")
.imageScanningConfiguration(ImageScanningConfigurationProperty.builder()
.ecrConfiguration(EcrConfigurationProperty.builder()
.containerTags(List.of("containerTags"))
.repositoryName("repositoryName")
.build())
.imageScanningEnabled(false)
.build())
.imageTestsConfiguration(ImageTestsConfigurationProperty.builder()
.imageTestsEnabled(false)
.timeoutMinutes(123)
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnImage.static interfaceExample:static interfaceExample:static interfaceWhen 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.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) of the image.Returns the AMI ID of the Amazon EC2 AMI in the Region in which you are using Image Builder.Returns a list of URIs for container images created in the context Region.Returns the name of the image.The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.The Amazon Resource Name (ARN) of the distribution configuration.Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.The Amazon Resource Name (ARN) of the image recipe.AWS::ImageBuilder::Image.ImageScanningConfiguration.The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.getTags()The tags of the image.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetContainerRecipeArn(String value) The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.voidThe Amazon Resource Name (ARN) of the distribution configuration.voidIndicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.voidIndicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list.voidsetImageRecipeArn(String value) The Amazon Resource Name (ARN) of the image recipe.voidAWS::ImageBuilder::Image.ImageScanningConfiguration.voidAWS::ImageBuilder::Image.ImageScanningConfiguration.voidThe configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.voidThe configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting.voidThe Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnImage
protected CfnImage(software.amazon.jsii.JsiiObjectRef objRef) -
CfnImage
protected CfnImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnImage
@Stability(Stable) public CfnImage(@NotNull Construct scope, @NotNull String id, @NotNull CfnImageProps props) Create a newAWS::ImageBuilder::Image.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
Returns the Amazon Resource Name (ARN) of the image.For example,
arn:aws:imagebuilder:us-west-2:123456789012:image/mybasicrecipe/2019.12.03/1. -
getAttrImageId
Returns the AMI ID of the Amazon EC2 AMI in the Region in which you are using Image Builder.Values are returned only for AMIs, and not for container images.
-
getAttrImageUri
Returns a list of URIs for container images created in the context Region.Values are returned only for container images, and not for AMIs.
-
getAttrName
Returns the name of the image. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags of the image. -
getInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. -
setInfrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. -
getContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. -
setContainerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. -
getDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration. -
setDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration. -
getEnhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. -
setEnhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. -
setEnhancedImageMetadataEnabled
Indicates whether Image Builder collects additional information about the image, such as the operating system (OS) version and package list. -
getImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe. -
setImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe. -
getImageScanningConfiguration
AWS::ImageBuilder::Image.ImageScanningConfiguration. -
setImageScanningConfiguration
AWS::ImageBuilder::Image.ImageScanningConfiguration. -
setImageScanningConfiguration
@Stability(Stable) public void setImageScanningConfiguration(@Nullable CfnImage.ImageScanningConfigurationProperty value) AWS::ImageBuilder::Image.ImageScanningConfiguration. -
getImageTestsConfiguration
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting. -
setImageTestsConfiguration
The configuration settings for your image test components, which includes a toggle that allows you to turn off tests, and a timeout setting. -
setImageTestsConfiguration
@Stability(Stable) public void setImageTestsConfiguration(@Nullable 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.
-