Interface ImagePipeline.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<ImagePipeline.Builder,,- ImagePipeline> - SdkBuilder<ImagePipeline.Builder,,- ImagePipeline> - SdkPojo
- Enclosing class:
- ImagePipeline
- 
Method SummaryModifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the image pipeline.consecutiveFailures(Integer consecutiveFailures) Image Builder tracks the number of consecutive failures for scheduled pipeline executions and takes one of the following actions each time it runs on a schedule:containerRecipeArn(String containerRecipeArn) The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.dateCreated(String dateCreated) The date on which this image pipeline was created.dateLastRun(String dateLastRun) This is no longer supported, and does not return a value.dateNextRun(String dateNextRun) The next date when the pipeline is scheduled to run.dateUpdated(String dateUpdated) The date on which this image pipeline was last updated.description(String description) The description of the image pipeline.distributionConfigurationArn(String distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Collects additional information about the image being created, including the operating system (OS) version and package list.executionRole(String executionRole) The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.imageRecipeArn(String imageRecipeArn) The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.default ImagePipeline.BuilderimageScanningConfiguration(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration) Contains settings for vulnerability scans.imageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration) Contains settings for vulnerability scans.default ImagePipeline.BuilderimageTestsConfiguration(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration) The image tests configuration of the image pipeline.imageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration) The image tests configuration of the image pipeline.infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.lastRunStatus(String lastRunStatus) The status of the last image that this pipeline built, such asBUILDING,TESTING,FAILED, orAVAILABLE.lastRunStatus(ImageStatus lastRunStatus) The status of the last image that this pipeline built, such asBUILDING,TESTING,FAILED, orAVAILABLE.default ImagePipeline.BuilderloggingConfiguration(Consumer<PipelineLoggingConfiguration.Builder> loggingConfiguration) Defines logging configuration for the output image.loggingConfiguration(PipelineLoggingConfiguration loggingConfiguration) Defines logging configuration for the output image.The name of the image pipeline.The platform of the image pipeline.The platform of the image pipeline.default ImagePipeline.Builderschedule(Consumer<Schedule.Builder> schedule) The schedule of the image pipeline.The schedule of the image pipeline.The status of the image pipeline.status(PipelineStatus status) The status of the image pipeline.The tags of this image pipeline.workflows(Collection<WorkflowConfiguration> workflows) Contains the workflows that run for the image pipeline.workflows(Consumer<WorkflowConfiguration.Builder>... workflows) Contains the workflows that run for the image pipeline.workflows(WorkflowConfiguration... workflows) Contains the workflows that run for the image pipeline.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
arnThe Amazon Resource Name (ARN) of the image pipeline. - Parameters:
- arn- The Amazon Resource Name (ARN) of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
nameThe name of the image pipeline. - Parameters:
- name- The name of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
descriptionThe description of the image pipeline. - Parameters:
- description- The description of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
platformThe platform of the image pipeline. - Parameters:
- platform- The platform of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
platformThe platform of the image pipeline. - Parameters:
- platform- The platform of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
enhancedImageMetadataEnabledCollects 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. - Parameters:
- enhancedImageMetadataEnabled- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
imageRecipeArnThe Amazon Resource Name (ARN) of the image recipe associated with this image pipeline. - Parameters:
- imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe associated with this image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
containerRecipeArnThe Amazon Resource Name (ARN) of the container recipe that is used for this pipeline. - Parameters:
- containerRecipeArn- The Amazon Resource Name (ARN) of the container recipe that is used for this pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
infrastructureConfigurationArnThe Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline. - Parameters:
- infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
distributionConfigurationArnThe Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline. - Parameters:
- distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
imageTestsConfigurationThe image tests configuration of the image pipeline. - Parameters:
- imageTestsConfiguration- The image tests configuration of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
imageTestsConfigurationdefault ImagePipeline.Builder imageTestsConfiguration(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration) The image tests configuration of the image pipeline. This is a convenience method that creates an instance of theImageTestsConfiguration.Builderavoiding the need to create one manually viaImageTestsConfiguration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageTestsConfiguration(ImageTestsConfiguration).- Parameters:
- imageTestsConfiguration- a consumer that will call methods on- ImageTestsConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
scheduleThe schedule of the image pipeline. - Parameters:
- schedule- The schedule of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
scheduleThe schedule of the image pipeline. This is a convenience method that creates an instance of theSchedule.Builderavoiding the need to create one manually viaSchedule.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschedule(Schedule).- Parameters:
- schedule- a consumer that will call methods on- Schedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
statusThe status of the image pipeline. - Parameters:
- status- The status of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
statusThe status of the image pipeline. - Parameters:
- status- The status of the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
dateCreatedThe date on which this image pipeline was created. - Parameters:
- dateCreated- The date on which this image pipeline was created.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
dateUpdatedThe date on which this image pipeline was last updated. - Parameters:
- dateUpdated- The date on which this image pipeline was last updated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
dateLastRunThis is no longer supported, and does not return a value. - Parameters:
- dateLastRun- This is no longer supported, and does not return a value.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
lastRunStatusThe status of the last image that this pipeline built, such as BUILDING,TESTING,FAILED, orAVAILABLE.- Parameters:
- lastRunStatus- The status of the last image that this pipeline built, such as- BUILDING,- TESTING,- FAILED, or- AVAILABLE.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
lastRunStatusThe status of the last image that this pipeline built, such as BUILDING,TESTING,FAILED, orAVAILABLE.- Parameters:
- lastRunStatus- The status of the last image that this pipeline built, such as- BUILDING,- TESTING,- FAILED, or- AVAILABLE.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
dateNextRunThe next date when the pipeline is scheduled to run. - Parameters:
- dateNextRun- The next date when the pipeline is scheduled to run.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsThe tags of this image pipeline. - Parameters:
- tags- The tags of this image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
imageScanningConfigurationImagePipeline.Builder imageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration) Contains settings for vulnerability scans. - Parameters:
- imageScanningConfiguration- Contains settings for vulnerability scans.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
imageScanningConfigurationdefault ImagePipeline.Builder imageScanningConfiguration(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration) Contains settings for vulnerability scans. This is a convenience method that creates an instance of theImageScanningConfiguration.Builderavoiding the need to create one manually viaImageScanningConfiguration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageScanningConfiguration(ImageScanningConfiguration).- Parameters:
- imageScanningConfiguration- a consumer that will call methods on- ImageScanningConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
executionRoleThe name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. - Parameters:
- executionRole- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
workflowsContains the workflows that run for the image pipeline. - Parameters:
- workflows- Contains the workflows that run for the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
workflowsContains the workflows that run for the image pipeline. - Parameters:
- workflows- Contains the workflows that run for the image pipeline.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
workflowsContains the workflows that run for the image pipeline. This is a convenience method that creates an instance of theWorkflowConfiguration.Builderavoiding the need to create one manually viaWorkflowConfiguration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toworkflows(List<WorkflowConfiguration>).- Parameters:
- workflows- a consumer that will call methods on- WorkflowConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
loggingConfigurationDefines logging configuration for the output image. - Parameters:
- loggingConfiguration- Defines logging configuration for the output image.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
loggingConfigurationdefault ImagePipeline.Builder loggingConfiguration(Consumer<PipelineLoggingConfiguration.Builder> loggingConfiguration) Defines logging configuration for the output image. This is a convenience method that creates an instance of thePipelineLoggingConfiguration.Builderavoiding the need to create one manually viaPipelineLoggingConfiguration.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologgingConfiguration(PipelineLoggingConfiguration).- Parameters:
- loggingConfiguration- a consumer that will call methods on- PipelineLoggingConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
consecutiveFailuresImage Builder tracks the number of consecutive failures for scheduled pipeline executions and takes one of the following actions each time it runs on a schedule: - 
 If the pipeline execution is successful, the number of consecutive failures resets to zero. 
- 
 If the pipeline execution fails, Image Builder increments the number of consecutive failures. If the failure count exceeds the limit defined in the AutoDisablePolicy, Image Builder disables the pipeline.
 The consecutive failure count is also reset to zero under the following conditions: - 
 The pipeline runs manually and succeeds. 
- 
 The pipeline configuration is updated. 
 If the pipeline runs manually and fails, the count remains the same. The next scheduled run continues to increment where it left off before. - Parameters:
- consecutiveFailures- Image Builder tracks the number of consecutive failures for scheduled pipeline executions and takes one of the following actions each time it runs on a schedule:- 
        If the pipeline execution is successful, the number of consecutive failures resets to zero. 
- 
        If the pipeline execution fails, Image Builder increments the number of consecutive failures. If the failure count exceeds the limit defined in the AutoDisablePolicy, Image Builder disables the pipeline.
 - The consecutive failure count is also reset to zero under the following conditions: - 
        The pipeline runs manually and succeeds. 
- 
        The pipeline configuration is updated. 
 - If the pipeline runs manually and fails, the count remains the same. The next scheduled run continues to increment where it left off before. 
- 
        
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
 
 
-