Class CfnImagePipeline
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::ImageBuilder::ImagePipeline.
An image pipeline is the automation configuration for building secure OS images on AWS . The Image Builder image pipeline is associated with an image recipe that defines the build, validation, and test phases for an image build lifecycle. An image pipeline can be associated with an infrastructure configuration that defines where your image is built. You can define attributes, such as instance type, subnets, security groups, logging, and other infrastructure-related configurations. You can also associate your image pipeline with a distribution configuration to define how you would like to deploy your image.
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.*;
CfnImagePipeline cfnImagePipeline = CfnImagePipeline.Builder.create(this, "MyCfnImagePipeline")
.infrastructureConfigurationArn("infrastructureConfigurationArn")
.name("name")
// the properties below are optional
.containerRecipeArn("containerRecipeArn")
.description("description")
.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())
.schedule(ScheduleProperty.builder()
.pipelineExecutionStartCondition("pipelineExecutionStartCondition")
.scheduleExpression("scheduleExpression")
.build())
.status("status")
.tags(Map.of(
"tagsKey", "tags"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnImagePipeline.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 your image pipeline uses to create the final image.static interfaceA schedule configures how often and when a pipeline will automatically create a new 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
ConstructorsModifierConstructorDescriptionCfnImagePipeline(Construct scope, String id, CfnImagePipelineProps props) Create a newAWS::ImageBuilder::ImagePipeline.protectedCfnImagePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnImagePipeline(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns the Amazon Resource Name (ARN) of the image pipeline.Returns the name of the image pipeline.The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.The description of this image pipeline.The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.Collects additional information about the image being created, including the operating system (OS) version and package list.The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.AWS::ImageBuilder::ImagePipeline.ImageScanningConfiguration.The configuration of the image tests that run after image creation to ensure the quality of the image that was created.The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.getName()The name of the image pipeline.The schedule of the image pipeline.The status of the image pipeline.getTags()The tags of this image pipeline.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.voidsetDescription(String value) The description of this image pipeline.voidThe Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.voidCollects additional information about the image being created, including the operating system (OS) version and package list.voidCollects additional information about the image being created, including the operating system (OS) version and package list.voidsetImageRecipeArn(String value) The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.voidAWS::ImageBuilder::ImagePipeline.ImageScanningConfiguration.voidAWS::ImageBuilder::ImagePipeline.ImageScanningConfiguration.voidThe configuration of the image tests that run after image creation to ensure the quality of the image that was created.voidThe configuration of the image tests that run after image creation to ensure the quality of the image that was created.voidThe Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.voidThe name of the image pipeline.voidsetSchedule(IResolvable value) The schedule of the image pipeline.voidThe schedule of the image pipeline.voidThe status of the 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
-
CfnImagePipeline
protected CfnImagePipeline(software.amazon.jsii.JsiiObjectRef objRef) -
CfnImagePipeline
protected CfnImagePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnImagePipeline
@Stability(Stable) public CfnImagePipeline(@NotNull Construct scope, @NotNull String id, @NotNull CfnImagePipelineProps props) Create a newAWS::ImageBuilder::ImagePipeline.- 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 pipeline.For example,
arn:aws:imagebuilder:us-west-2:123456789012:image-pipeline/mywindows2016pipeline. -
getAttrName
Returns the name of the image pipeline. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags of this image pipeline. -
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. -
getName
The name of the image pipeline. -
setName
The name of the 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. -
getDescription
The description of this image pipeline. -
setDescription
The description of this image pipeline. -
getDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline. -
setDistributionConfigurationArn
The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline. -
getEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list.This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
-
setEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list.This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
-
setEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list.This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
-
getImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline. -
setImageRecipeArn
The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline. -
getImageScanningConfiguration
AWS::ImageBuilder::ImagePipeline.ImageScanningConfiguration. -
setImageScanningConfiguration
AWS::ImageBuilder::ImagePipeline.ImageScanningConfiguration. -
setImageScanningConfiguration
@Stability(Stable) public void setImageScanningConfiguration(@Nullable CfnImagePipeline.ImageScanningConfigurationProperty value) AWS::ImageBuilder::ImagePipeline.ImageScanningConfiguration. -
getImageTestsConfiguration
The configuration of the image tests that run after image creation to ensure the quality of the image that was created. -
setImageTestsConfiguration
The configuration of the image tests that run after image creation to ensure the quality of the image that was created. -
setImageTestsConfiguration
@Stability(Stable) public void setImageTestsConfiguration(@Nullable CfnImagePipeline.ImageTestsConfigurationProperty value) The configuration of the image tests that run after image creation to ensure the quality of the image that was created. -
getSchedule
The schedule of the image pipeline.A schedule configures how often and when a pipeline automatically creates a new image.
-
setSchedule
The schedule of the image pipeline.A schedule configures how often and when a pipeline automatically creates a new image.
-
setSchedule
The schedule of the image pipeline.A schedule configures how often and when a pipeline automatically creates a new image.
-
getStatus
The status of the image pipeline. -
setStatus
The status of the image pipeline.
-