Class CfnImagePipeline
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IImagePipelineRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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 types, a subnet for your VPC, 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)
.executionRole("executionRole")
.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())
.loggingConfiguration(PipelineLoggingConfigurationProperty.builder()
.imageLogGroupName("imageLogGroupName")
.pipelineLogGroupName("pipelineLogGroupName")
.build())
.schedule(ScheduleProperty.builder()
.autoDisablePolicy(AutoDisablePolicyProperty.builder()
.failureCount(123)
.build())
.pipelineExecutionStartCondition("pipelineExecutionStartCondition")
.scheduleExpression("scheduleExpression")
.build())
.status("status")
.tags(Map.of(
"tagsKey", "tags"))
.workflows(List.of(WorkflowConfigurationProperty.builder()
.onFailure("onFailure")
.parallelGroup("parallelGroup")
.parameters(List.of(WorkflowParameterProperty.builder()
.name("name")
.value(List.of("value"))
.build()))
.workflowArn("workflowArn")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines the rules by which an image pipeline is automatically disabled when it fails.static final classA fluent builder forCfnImagePipeline.static interfaceSettings that Image Builder uses to configure the ECR repository and the output container images that Amazon Inspector scans.static interfaceContains settings for Image Builder image resource and container image scans.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 interfaceThe logging configuration that's defined for pipeline execution.static interfaceA schedule configures when and how often a pipeline will automatically create a new image.static interfaceContains control settings and configurable inputs for a workflow resource.static interfaceContains a key/value pair that sets the named workflow parameter.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.imagebuilder.IImagePipelineRef
IImagePipelineRef.Jsii$Default, IImagePipelineRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnImagePipeline(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnImagePipeline(software.amazon.jsii.JsiiObjectRef objRef) CfnImagePipeline(software.constructs.Construct scope, String id, CfnImagePipelineProps props) Create a newAWS::ImageBuilder::ImagePipeline. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForImagePipeline(IImagePipelineRef resource) Returns the Amazon Resource Name (ARN) of the image pipeline.The deployment ID of the pipeline, used for resource create/update triggers.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 name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.A reference to a ImagePipeline resource.The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.Contains settings for vulnerability scans.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.Defines logging configuration for the output image.getName()The name of the image pipeline.The schedule of the image pipeline.The status of the image pipeline.getTags()Tag Manager which manages the tags for this resource.The tags of this image pipeline.Contains the workflows that run for the image pipeline.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnImagePipeline.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.voidsetExecutionRole(String value) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.voidsetImageRecipeArn(String value) The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.voidContains settings for vulnerability scans.voidContains settings for vulnerability scans.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.voidDefines logging configuration for the output image.voidDefines logging configuration for the output image.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.voidsetTagsRaw(Map<String, String> value) The tags of this image pipeline.voidsetWorkflows(List<Object> value) Contains the workflows that run for the image pipeline.voidsetWorkflows(IResolvable value) Contains the workflows that run for the image pipeline.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnImagePipelineProps props) Create a newAWS::ImageBuilder::ImagePipeline.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForImagePipeline
@Stability(Stable) @NotNull public static String arnForImagePipeline(@NotNull IImagePipelineRef resource) - Parameters:
resource- This parameter is required.
-
isCfnImagePipeline
Checks whether the given object is a CfnImagePipeline.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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. -
getAttrDeploymentId
The deployment ID of the pipeline, used for resource create/update triggers. -
getAttrName
Returns the name of the image pipeline. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getImagePipelineRef
A reference to a ImagePipeline resource.- Specified by:
getImagePipelineRefin interfaceIImagePipelineRef
-
getTags
Tag Manager which manages the tags for this resource. -
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.Returns union: either
BooleanorIResolvable -
setEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list. -
setEnhancedImageMetadataEnabled
Collects additional information about the image being created, including the operating system (OS) version and package list. -
getExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. -
setExecutionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. -
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
Contains settings for vulnerability scans.Returns union: either
IResolvableorCfnImagePipeline.ImageScanningConfigurationProperty -
setImageScanningConfiguration
Contains settings for vulnerability scans. -
setImageScanningConfiguration
@Stability(Stable) public void setImageScanningConfiguration(@Nullable CfnImagePipeline.ImageScanningConfigurationProperty value) Contains settings for vulnerability scans. -
getImageTestsConfiguration
The configuration of the image tests that run after image creation to ensure the quality of the image that was created.Returns union: either
IResolvableorCfnImagePipeline.ImageTestsConfigurationProperty -
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. -
getLoggingConfiguration
Defines logging configuration for the output image.Returns union: either
IResolvableorCfnImagePipeline.PipelineLoggingConfigurationProperty -
setLoggingConfiguration
Defines logging configuration for the output image. -
setLoggingConfiguration
@Stability(Stable) public void setLoggingConfiguration(@Nullable CfnImagePipeline.PipelineLoggingConfigurationProperty value) Defines logging configuration for the output image. -
getSchedule
The schedule of the image pipeline.Returns union: either
IResolvableorCfnImagePipeline.ScheduleProperty -
setSchedule
The schedule of the image pipeline. -
setSchedule
The schedule of the image pipeline. -
getStatus
The status of the image pipeline. -
setStatus
The status of the image pipeline. -
getTagsRaw
The tags of this image pipeline. -
setTagsRaw
The tags of this image pipeline. -
getWorkflows
Contains the workflows that run for the image pipeline.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnImagePipeline.WorkflowConfigurationProperty> -
setWorkflows
Contains the workflows that run for the image pipeline. -
setWorkflows
Contains the workflows that run for the image pipeline.
-