Interface StartResourceStateUpdateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartResourceStateUpdateRequest.Builder,,StartResourceStateUpdateRequest> ImagebuilderRequest.Builder,SdkBuilder<StartResourceStateUpdateRequest.Builder,,StartResourceStateUpdateRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartResourceStateUpdateRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier you provide to ensure idempotency of the request.exclusionRules(Consumer<ResourceStateUpdateExclusionRules.Builder> exclusionRules) Skip action on the image resource and associated resources if specified exclusion rules are met.exclusionRules(ResourceStateUpdateExclusionRules exclusionRules) Skip action on the image resource and associated resources if specified exclusion rules are met.executionRole(String executionRole) The name or Amazon Resource Name (ARN) of the IAM role that’s used to update image state.includeResources(Consumer<ResourceStateUpdateIncludeResources.Builder> includeResources) Specifies which image resources to include in the state update.includeResources(ResourceStateUpdateIncludeResources includeResources) Specifies which image resources to include in the state update.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the image build version to update.state(Consumer<ResourceState.Builder> state) Specifies the lifecycle action to take for this request.state(ResourceState state) Specifies the lifecycle action to take for this request.Specifies the timestamp when the state transition takes effect.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
-
resourceArn
The Amazon Resource Name (ARN) of the image build version to update. The image must be in one of these terminal states:
AVAILABLE,DEPRECATED,DISABLED,FAILED, orCANCELLED. Images withFAILEDorCANCELLEDstatus can transition only toDELETED.- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the image build version to update. The image must be in one of these terminal states:AVAILABLE,DEPRECATED,DISABLED,FAILED, orCANCELLED. Images withFAILEDorCANCELLEDstatus can transition only toDELETED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Specifies the lifecycle action to take for this request. For AMI-based images, valid values are
AVAILABLE,DEPRECATED,DISABLED, andDELETED. For container-based images, onlyDELETEDis supported.- Parameters:
state- Specifies the lifecycle action to take for this request. For AMI-based images, valid values areAVAILABLE,DEPRECATED,DISABLED, andDELETED. For container-based images, onlyDELETEDis supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Specifies the lifecycle action to take for this request. For AMI-based images, valid values are
This is a convenience method that creates an instance of theAVAILABLE,DEPRECATED,DISABLED, andDELETED. For container-based images, onlyDELETEDis supported.ResourceState.Builderavoiding the need to create one manually viaResourceState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostate(ResourceState).- Parameters:
state- a consumer that will call methods onResourceState.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) of the IAM role that’s used to update image state.
- Parameters:
executionRole- The name or Amazon Resource Name (ARN) of the IAM role that’s used to update image state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeResources
StartResourceStateUpdateRequest.Builder includeResources(ResourceStateUpdateIncludeResources includeResources) Specifies which image resources to include in the state update. When specified, the lifecycle action applies to underlying resources. These resources include AMIs, snapshots, and containers in addition to the Image Builder image resource. Requires
executionRoleto also be specified. To delete an image and its underlying resources, you must specifyincludeResources. To delete only the Image Builder image record without affecting underlying resources, use theDeleteImageAPI instead.- Parameters:
includeResources- Specifies which image resources to include in the state update. When specified, the lifecycle action applies to underlying resources. These resources include AMIs, snapshots, and containers in addition to the Image Builder image resource. RequiresexecutionRoleto also be specified. To delete an image and its underlying resources, you must specifyincludeResources. To delete only the Image Builder image record without affecting underlying resources, use theDeleteImageAPI instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeResources
default StartResourceStateUpdateRequest.Builder includeResources(Consumer<ResourceStateUpdateIncludeResources.Builder> includeResources) Specifies which image resources to include in the state update. When specified, the lifecycle action applies to underlying resources. These resources include AMIs, snapshots, and containers in addition to the Image Builder image resource. Requires
This is a convenience method that creates an instance of theexecutionRoleto also be specified. To delete an image and its underlying resources, you must specifyincludeResources. To delete only the Image Builder image record without affecting underlying resources, use theDeleteImageAPI instead.ResourceStateUpdateIncludeResources.Builderavoiding the need to create one manually viaResourceStateUpdateIncludeResources.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toincludeResources(ResourceStateUpdateIncludeResources).- Parameters:
includeResources- a consumer that will call methods onResourceStateUpdateIncludeResources.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
exclusionRules
StartResourceStateUpdateRequest.Builder exclusionRules(ResourceStateUpdateExclusionRules exclusionRules) Skip action on the image resource and associated resources if specified exclusion rules are met.
- Parameters:
exclusionRules- Skip action on the image resource and associated resources if specified exclusion rules are met.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusionRules
default StartResourceStateUpdateRequest.Builder exclusionRules(Consumer<ResourceStateUpdateExclusionRules.Builder> exclusionRules) Skip action on the image resource and associated resources if specified exclusion rules are met.
This is a convenience method that creates an instance of theResourceStateUpdateExclusionRules.Builderavoiding the need to create one manually viaResourceStateUpdateExclusionRules.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexclusionRules(ResourceStateUpdateExclusionRules).- Parameters:
exclusionRules- a consumer that will call methods onResourceStateUpdateExclusionRules.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updateAt
Specifies the timestamp when the state transition takes effect. Use this parameter only when the target status is
DEPRECATED. The value must be a future time.- Parameters:
updateAt- Specifies the timestamp when the state transition takes effect. Use this parameter only when the target status isDEPRECATED. The value must be a future time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
- Parameters:
clientToken- Unique, case-sensitive identifier you provide to ensure idempotency of the request. 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.
-
overrideConfiguration
StartResourceStateUpdateRequest.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
StartResourceStateUpdateRequest.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.
-