Interface UpdateInfrastructureConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateInfrastructureConfigurationRequest.Builder,,UpdateInfrastructureConfigurationRequest> ImagebuilderRequest.Builder,SdkBuilder<UpdateInfrastructureConfigurationRequest.Builder,,UpdateInfrastructureConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateInfrastructureConfigurationRequest
-
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.description(String description) The description of the infrastructure configuration.infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.instanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions) The instance metadata service (IMDS) settings that Image Builder applies to the EC2 build and test instances it launches during image creation.instanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions) The instance metadata service (IMDS) settings that Image Builder applies to the EC2 build and test instances it launches during image creation.instanceProfileName(String instanceProfileName) The instance profile to associate with the instance used to customize your Amazon EC2 AMI.instanceTypes(String... instanceTypes) The instance types of the infrastructure configuration.instanceTypes(Collection<String> instanceTypes) The instance types of the infrastructure configuration.The key pair of the infrastructure configuration.logging(Consumer<Logging.Builder> logging) The logging configuration of the infrastructure configuration.The logging configuration of the infrastructure configuration.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.placement(Consumer<Placement.Builder> placement) The instance placement settings that define where the build and test instances that Image Builder launches during image creation run.The instance placement settings that define where the build and test instances that Image Builder launches during image creation run.resourceTags(Map<String, String> resourceTags) The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process.securityGroupIds(String... securityGroupIds) The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.securityGroupIds(Collection<String> securityGroupIds) The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.snsTopicArn(String snsTopicArn) The Amazon Resource Name (ARN) of the SNS topic to which Image Builder sends image build event notifications.The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.terminateInstanceOnFailure(Boolean terminateInstanceOnFailure) Specifies whether to terminate the instance on failure.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
-
infrastructureConfigurationArn
UpdateInfrastructureConfigurationRequest.Builder infrastructureConfigurationArn(String infrastructureConfigurationArn) The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.
- Parameters:
infrastructureConfigurationArn- The Amazon Resource Name (ARN) of the infrastructure configuration 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 infrastructure configuration.
- Parameters:
description- The description of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. Image Builder picks one of these instance types based on availability. If you don't specify instance types, Image Builder selects compatible instance types automatically. If you specify a Dedicated Host, Image Builder uses only instance types that the host supports.
- Parameters:
instanceTypes- The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. Image Builder picks one of these instance types based on availability. If you don't specify instance types, Image Builder selects compatible instance types automatically. If you specify a Dedicated Host, Image Builder uses only instance types that the host supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. Image Builder picks one of these instance types based on availability. If you don't specify instance types, Image Builder selects compatible instance types automatically. If you specify a Dedicated Host, Image Builder uses only instance types that the host supports.
- Parameters:
instanceTypes- The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. Image Builder picks one of these instance types based on availability. If you don't specify instance types, Image Builder selects compatible instance types automatically. If you specify a Dedicated Host, Image Builder uses only instance types that the host supports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileName
The instance profile to associate with the instance used to customize your Amazon EC2 AMI. The instance profile must exist in your account.
- Parameters:
instanceProfileName- The instance profile to associate with the instance used to customize your Amazon EC2 AMI. The instance profile must exist in your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
UpdateInfrastructureConfigurationRequest.Builder securityGroupIds(Collection<String> securityGroupIds) The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
- Parameters:
securityGroupIds- The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
- Parameters:
securityGroupIds- The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI. If you specify
subnetId, you must also specify one or more security group IDs insecurityGroupIds. Otherwise, the request fails.- Parameters:
subnetId- The subnet ID in which to place the instance used to customize your Amazon EC2 AMI. If you specifysubnetId, you must also specify one or more security group IDs insecurityGroupIds. Otherwise, the request fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
The logging configuration of the infrastructure configuration. When you configure S3 logs, Image Builder writes logs from the build and test process to the specified bucket under the key prefix.
- Parameters:
logging- The logging configuration of the infrastructure configuration. When you configure S3 logs, Image Builder writes logs from the build and test process to the specified bucket under the key prefix.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
The logging configuration of the infrastructure configuration. When you configure S3 logs, Image Builder writes logs from the build and test process to the specified bucket under the key prefix.
This is a convenience method that creates an instance of theLogging.Builderavoiding the need to create one manually viaLogging.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologging(Logging).- Parameters:
logging- a consumer that will call methods onLogging.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keyPair
The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
- Parameters:
keyPair- The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminateInstanceOnFailure
UpdateInfrastructureConfigurationRequest.Builder terminateInstanceOnFailure(Boolean terminateInstanceOnFailure) Specifies whether to terminate the instance on failure. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails. Defaults to
true.- Parameters:
terminateInstanceOnFailure- Specifies whether to terminate the instance on failure. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails. Defaults totrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicArn
The Amazon Resource Name (ARN) of the SNS topic to which Image Builder sends image build event notifications. Specify a standard topic. Image Builder doesn't support FIFO topics. Image Builder validates the topic when you create or update the configuration. You must have permission to publish to the topic.
EC2 Image Builder can't send notifications to SNS topics that are encrypted using keys from other accounts. If your SNS topic is encrypted, the key must be owned by the same account that owns your Image Builder resources.
- Parameters:
snsTopicArn- The Amazon Resource Name (ARN) of the SNS topic to which Image Builder sends image build event notifications. Specify a standard topic. Image Builder doesn't support FIFO topics. Image Builder validates the topic when you create or update the configuration. You must have permission to publish to the topic.EC2 Image Builder can't send notifications to SNS topics that are encrypted using keys from other accounts. If your SNS topic is encrypted, the key must be owned by the same account that owns your Image Builder resources.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs. Tag keys can't begin with
aws:or match one of the following reserved keys:CreatedBy,Ec2ImageBuilderArn,Name, orTags.- Parameters:
resourceTags- The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs. Tag keys can't begin withaws:or match one of the following reserved keys:CreatedBy,Ec2ImageBuilderArn,Name, orTags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMetadataOptions
UpdateInfrastructureConfigurationRequest.Builder instanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions) The instance metadata service (IMDS) settings that Image Builder applies to the EC2 build and test instances it launches during image creation. If you don't set these options, the EC2 launch defaults for the instance apply. For more information about instance metadata options, see one of the following links:
-
Configure the instance metadata options in the Amazon EC2 User Guide for Linux instances.
-
Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows instances.
- Parameters:
instanceMetadataOptions- The instance metadata service (IMDS) settings that Image Builder applies to the EC2 build and test instances it launches during image creation. If you don't set these options, the EC2 launch defaults for the instance apply. For more information about instance metadata options, see one of the following links:-
Configure the instance metadata options in the Amazon EC2 User Guide for Linux instances.
-
Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows instances.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
instanceMetadataOptions
default UpdateInfrastructureConfigurationRequest.Builder instanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions) The instance metadata service (IMDS) settings that Image Builder applies to the EC2 build and test instances it launches during image creation. If you don't set these options, the EC2 launch defaults for the instance apply. For more information about instance metadata options, see one of the following links:
-
Configure the instance metadata options in the Amazon EC2 User Guide for Linux instances.
-
Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows instances.
InstanceMetadataOptions.Builderavoiding the need to create one manually viaInstanceMetadataOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinstanceMetadataOptions(InstanceMetadataOptions).- Parameters:
instanceMetadataOptions- a consumer that will call methods onInstanceMetadataOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
placement
The instance placement settings that define where the build and test instances that Image Builder launches during image creation run. These settings don't affect instances that you launch from the output image.
- Parameters:
placement- The instance placement settings that define where the build and test instances that Image Builder launches during image creation run. These settings don't affect instances that you launch from the output image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
default UpdateInfrastructureConfigurationRequest.Builder placement(Consumer<Placement.Builder> placement) The instance placement settings that define where the build and test instances that Image Builder launches during image creation run. These settings don't affect instances that you launch from the output image.
This is a convenience method that creates an instance of thePlacement.Builderavoiding the need to create one manually viaPlacement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplacement(Placement).- Parameters:
placement- a consumer that will call methods onPlacement.Builder- 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.
-
overrideConfiguration
UpdateInfrastructureConfigurationRequest.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
UpdateInfrastructureConfigurationRequest.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.
-