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) A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time.exclusionRules(Consumer<ResourceStateUpdateExclusionRules.Builder> exclusionRules) Rules that Image Builder evaluates against each of the image's AMIs.exclusionRules(ResourceStateUpdateExclusionRules exclusionRules) Rules that Image Builder evaluates against each of the image's AMIs.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 underlying resources to update, in addition to the Image Builder image resource itself.includeResources(ResourceStateUpdateIncludeResources includeResources) Specifies which underlying resources to update, in addition to the Image Builder image resource itself.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.The timestamp that indicates when resources are updated by a lifecycle action.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. You must provide this property together with
includeResources. Neither is valid without the other.- Parameters:
executionRole- The name or Amazon Resource Name (ARN) of the IAM role that's used to update image state. You must provide this property together withincludeResources. Neither is valid without the other.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeResources
StartResourceStateUpdateRequest.Builder includeResources(ResourceStateUpdateIncludeResources includeResources) Specifies which underlying resources to update, in addition to the Image Builder image resource itself. Snapshots and containers are only valid for the
DELETEDstate. To set an image toDELETED, you must include its underlying resources. To delete only the Image Builder image record, use the DeleteImage operation instead.- Parameters:
includeResources- Specifies which underlying resources to update, in addition to the Image Builder image resource itself. Snapshots and containers are only valid for theDELETEDstate. To set an image toDELETED, you must include its underlying resources. To delete only the Image Builder image record, use the DeleteImage operation 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 underlying resources to update, in addition to the Image Builder image resource itself. Snapshots and containers are only valid for the
This is a convenience method that creates an instance of theDELETEDstate. To set an image toDELETED, you must include its underlying resources. To delete only the Image Builder image record, use the DeleteImage operation 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) Rules that Image Builder evaluates against each of the image's AMIs. Matching AMIs and their snapshots are skipped. Exclusion rules only take effect when the request includes AMIs. If the target state is
DELETEDand any resource was skipped, the Image Builder image resource itself is also retained. For theDEPRECATEDandDISABLEDtarget states, Image Builder updates the image resource's state regardless of exclusions.- Parameters:
exclusionRules- Rules that Image Builder evaluates against each of the image's AMIs. Matching AMIs and their snapshots are skipped. Exclusion rules only take effect when the request includes AMIs. If the target state isDELETEDand any resource was skipped, the Image Builder image resource itself is also retained. For theDEPRECATEDandDISABLEDtarget states, Image Builder updates the image resource's state regardless of exclusions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusionRules
default StartResourceStateUpdateRequest.Builder exclusionRules(Consumer<ResourceStateUpdateExclusionRules.Builder> exclusionRules) Rules that Image Builder evaluates against each of the image's AMIs. Matching AMIs and their snapshots are skipped. Exclusion rules only take effect when the request includes AMIs. If the target state is
This is a convenience method that creates an instance of theDELETEDand any resource was skipped, the Image Builder image resource itself is also retained. For theDEPRECATEDandDISABLEDtarget states, Image Builder updates the image resource's state regardless of exclusions.ResourceStateUpdateExclusionRules.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
The timestamp that indicates when resources are updated by a lifecycle action. This property is valid only when the target status is
DEPRECATED, and the value must be a future time. If you don't specify a value, Image Builder begins the state update right away. For a scheduled deprecation, included AMIs get their EC2 deprecation time set immediately, and Image Builder schedules the image resource to transition toDEPRECATEDat that time.- Parameters:
updateAt- The timestamp that indicates when resources are updated by a lifecycle action. This property is valid only when the target status isDEPRECATED, and the value must be a future time. If you don't specify a value, Image Builder begins the state update right away. For a scheduled deprecation, included AMIs get their EC2 deprecation time set immediately, and Image Builder schedules the image resource to transition toDEPRECATEDat that time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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.
-