Interface UpdateImagePipelineRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateImagePipelineRequest.Builder,,UpdateImagePipelineRequest> ImagebuilderRequest.Builder,SdkBuilder<UpdateImagePipelineRequest.Builder,,UpdateImagePipelineRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateImagePipelineRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time.containerRecipeArn(String containerRecipeArn) The Amazon Resource Name (ARN) of the container recipe that is used to configure images created by this container pipeline.description(String description) The description of the image pipeline.distributionConfigurationArn(String distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration that Image Builder uses to configure and distribute images created by this image pipeline.enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Specifies whether to collect 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.imagePipelineArn(String imagePipelineArn) The Amazon Resource Name (ARN) of the image pipeline that you want to update.imageRecipeArn(String imageRecipeArn) The Amazon Resource Name (ARN) of the image recipe that configures images created by this image pipeline.imageScanningConfiguration(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration) Contains settings for vulnerability scans that Amazon Inspector runs against the test instance during image creation.imageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration) Contains settings for vulnerability scans that Amazon Inspector runs against the test instance during image creation.The tags that Image Builder applies to the Image Builder image resource that this pipeline's scheduled executions create.imageTestsConfiguration(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration) Specifies the test settings that Image Builder applies to images that this pipeline creates.imageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration) Specifies the test settings that Image Builder applies to images that this pipeline creates.infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that Image Builder uses to build images created by this image pipeline.loggingConfiguration(Consumer<PipelineLoggingConfiguration.Builder> loggingConfiguration) Specifies the logging configuration for the image pipeline.loggingConfiguration(PipelineLoggingConfiguration loggingConfiguration) Specifies the logging configuration for the image pipeline.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.schedule(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.workflows(Collection<WorkflowConfiguration> workflows) The array of workflow configuration objects for builds that this pipeline starts.workflows(Consumer<WorkflowConfiguration.Builder>... workflows) The array of workflow configuration objects for builds that this pipeline starts.workflows(WorkflowConfiguration... workflows) The array of workflow configuration objects for builds that this pipeline starts.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.imagebuilder.model.ImagebuilderRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
imagePipelineArn
The Amazon Resource Name (ARN) of the image pipeline that you want to update.
- Parameters:
imagePipelineArn- The Amazon Resource Name (ARN) of the image pipeline that you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The 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.
-
imageRecipeArn
The Amazon Resource Name (ARN) of the image recipe that configures images created by this image pipeline. You must specify either this property or
containerRecipeArn, but not both.- Parameters:
imageRecipeArn- The Amazon Resource Name (ARN) of the image recipe that configures images created by this image pipeline. You must specify either this property orcontainerRecipeArn, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerRecipeArn
The Amazon Resource Name (ARN) of the container recipe that is used to configure images created by this container pipeline. You must specify either this property or
imageRecipeArn, but not both.- Parameters:
containerRecipeArn- The Amazon Resource Name (ARN) of the container recipe that is used to configure images created by this container pipeline. You must specify either this property orimageRecipeArn, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
infrastructureConfigurationArn
UpdateImagePipelineRequest.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that Image Builder uses to build images created by this image pipeline.
- Parameters:
infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration that Image Builder uses to build images created by this image pipeline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distributionConfigurationArn
UpdateImagePipelineRequest.Builder distributionConfigurationArn(String distributionConfigurationArn) The Amazon Resource Name (ARN) of the distribution configuration that Image Builder uses to configure and distribute images created by this image pipeline.
- Parameters:
distributionConfigurationArn- The Amazon Resource Name (ARN) of the distribution configuration that Image Builder uses to configure and distribute images created by this image pipeline.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageTestsConfiguration
UpdateImagePipelineRequest.Builder imageTestsConfiguration(ImageTestsConfiguration imageTestsConfiguration) Specifies the test settings that Image Builder applies to images that this pipeline creates. If you don't provide test settings, Image Builder stores a default configuration with image tests enabled.
- Parameters:
imageTestsConfiguration- Specifies the test settings that Image Builder applies to images that this pipeline creates. If you don't provide test settings, Image Builder stores a default configuration with image tests enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageTestsConfiguration
default UpdateImagePipelineRequest.Builder imageTestsConfiguration(Consumer<ImageTestsConfiguration.Builder> imageTestsConfiguration) Specifies the test settings that Image Builder applies to images that this pipeline creates. If you don't provide test settings, Image Builder stores a default configuration with image tests enabled.
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 onImageTestsConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enhancedImageMetadataEnabled
UpdateImagePipelineRequest.Builder enhancedImageMetadataEnabled(Boolean enhancedImageMetadataEnabled) Specifies whether to collect additional information about the image being created, including the operating system (OS) version and package list. Defaults to
true.- Parameters:
enhancedImageMetadataEnabled- Specifies whether to collect additional information about the image being created, including the operating system (OS) version and package list. Defaults totrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
The schedule of the image pipeline. Because the update replaces the entire configuration, omitting this property removes any existing schedule. The pipeline then runs only when you call StartImagePipelineExecution.
- Parameters:
schedule- The schedule of the image pipeline. Because the update replaces the entire configuration, omitting this property removes any existing schedule. The pipeline then runs only when you call StartImagePipelineExecution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
The schedule of the image pipeline. Because the update replaces the entire configuration, omitting this property removes any existing schedule. The pipeline then runs only when you call StartImagePipelineExecution.
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 onSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the image pipeline. Defaults to
ENABLEDwhen omitted. To keep a pipeline disabled, include this property set toDISABLEDin your update request.- Parameters:
status- The status of the image pipeline. Defaults toENABLEDwhen omitted. To keep a pipeline disabled, include this property set toDISABLEDin your update request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the image pipeline. Defaults to
ENABLEDwhen omitted. To keep a pipeline disabled, include this property set toDISABLEDin your update request.- Parameters:
status- The status of the image pipeline. Defaults toENABLEDwhen omitted. To keep a pipeline disabled, include this property set toDISABLEDin your update request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
- Parameters:
clientToken- A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanningConfiguration
UpdateImagePipelineRequest.Builder imageScanningConfiguration(ImageScanningConfiguration imageScanningConfiguration) Contains settings for vulnerability scans that Amazon Inspector runs against the test instance during image creation.
- Parameters:
imageScanningConfiguration- Contains settings for vulnerability scans that Amazon Inspector runs against the test instance during image creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageScanningConfiguration
default UpdateImagePipelineRequest.Builder imageScanningConfiguration(Consumer<ImageScanningConfiguration.Builder> imageScanningConfiguration) Contains settings for vulnerability scans that Amazon Inspector runs against the test instance during image creation.
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 onImageScanningConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workflows
The array of workflow configuration objects for builds that this pipeline starts. You must also specify
executionRolewhen you provide workflows.- Parameters:
workflows- The array of workflow configuration objects for builds that this pipeline starts. You must also specifyexecutionRolewhen you provide workflows.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflows
The array of workflow configuration objects for builds that this pipeline starts. You must also specify
executionRolewhen you provide workflows.- Parameters:
workflows- The array of workflow configuration objects for builds that this pipeline starts. You must also specifyexecutionRolewhen you provide workflows.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflows
The array of workflow configuration objects for builds that this pipeline starts. You must also specify
This is a convenience method that creates an instance of theexecutionRolewhen you provide workflows.WorkflowConfiguration.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 onWorkflowConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
loggingConfiguration
UpdateImagePipelineRequest.Builder loggingConfiguration(PipelineLoggingConfiguration loggingConfiguration) Specifies the logging configuration for the image pipeline. Use this to define custom CloudWatch Logs log groups for your pipeline execution logs and image build logs. The service manages log groups with names starting with
/aws/imagebuilder/using the service-linked role. For custom log group names outside of this prefix, you must also provide anexecutionRole.- Parameters:
loggingConfiguration- Specifies the logging configuration for the image pipeline. Use this to define custom CloudWatch Logs log groups for your pipeline execution logs and image build logs. The service manages log groups with names starting with/aws/imagebuilder/using the service-linked role. For custom log group names outside of this prefix, you must also provide anexecutionRole.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loggingConfiguration
default UpdateImagePipelineRequest.Builder loggingConfiguration(Consumer<PipelineLoggingConfiguration.Builder> loggingConfiguration) Specifies the logging configuration for the image pipeline. Use this to define custom CloudWatch Logs log groups for your pipeline execution logs and image build logs. The service manages log groups with names starting with
This is a convenience method that creates an instance of the/aws/imagebuilder/using the service-linked role. For custom log group names outside of this prefix, you must also provide anexecutionRole.PipelineLoggingConfiguration.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 onPipelineLoggingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionRole
The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. If you omit this property, the pipeline reverts to the Image Builder service-linked role.
- Parameters:
executionRole- The name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions. If you omit this property, the pipeline reverts to the Image Builder service-linked role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageTags
The tags that Image Builder applies to the Image Builder image resource that this pipeline's scheduled executions create. These tags don't apply to the output AMI. To tag output AMIs, use
amiTagsin the pipeline's distribution configuration.- Parameters:
imageTags- The tags that Image Builder applies to the Image Builder image resource that this pipeline's scheduled executions create. These tags don't apply to the output AMI. To tag output AMIs, useamiTagsin the pipeline's distribution configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateImagePipelineRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateImagePipelineRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-