Interface InfrastructureConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InfrastructureConfiguration.Builder,,InfrastructureConfiguration> SdkBuilder<InfrastructureConfiguration.Builder,,InfrastructureConfiguration> SdkPojo
- Enclosing class:
InfrastructureConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the infrastructure configuration.dateCreated(String dateCreated) The date on which the infrastructure configuration was created.dateUpdated(String dateUpdated) The date on which the infrastructure configuration was last updated.description(String description) The description of the infrastructure configuration.instanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.instanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.instanceProfileName(String instanceProfileName) The instance profile of the infrastructure configuration.instanceTypes(String... instanceTypes) The instance types of the infrastructure configuration.instanceTypes(Collection<String> instanceTypes) The instance types of the infrastructure configuration.The Amazon EC2 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.The name of the infrastructure 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 assigned to the Amazon EC2 build and test instances that Image Builder launches during image creation.securityGroupIds(String... securityGroupIds) The security group IDs of the infrastructure configuration.securityGroupIds(Collection<String> securityGroupIds) The security group IDs of the infrastructure configuration.snsTopicArn(String snsTopicArn) The Amazon Resource Name (ARN) of the SNS topic to which Image Builder sends image build event notifications.The subnet ID of the infrastructure configuration.The tags of the infrastructure configuration.terminateInstanceOnFailure(Boolean terminateInstanceOnFailure) Indicates whether Image Builder terminates the build and test instances when the image build fails.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
arn
The Amazon Resource Name (ARN) of the infrastructure configuration.
- Parameters:
arn- The Amazon Resource Name (ARN) of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the infrastructure configuration.
- Parameters:
name- The name of the infrastructure configuration.- 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.
- Parameters:
instanceTypes- The instance types 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.
- Parameters:
instanceTypes- The instance types of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileName
The instance profile of the infrastructure configuration.
- Parameters:
instanceProfileName- The instance profile of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The security group IDs of the infrastructure configuration.
- Parameters:
securityGroupIds- The security group IDs of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
The security group IDs of the infrastructure configuration.
- Parameters:
securityGroupIds- The security group IDs of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The subnet ID of the infrastructure configuration.
- Parameters:
subnetId- The subnet ID of the infrastructure configuration.- 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 Amazon EC2 key pair of the infrastructure configuration.
- Parameters:
keyPair- The Amazon EC2 key pair of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminateInstanceOnFailure
Indicates whether Image Builder terminates the build and test instances when the image build fails. When
false, Image Builder retains the instance so that you can debug it.- Parameters:
terminateInstanceOnFailure- Indicates whether Image Builder terminates the build and test instances when the image build fails. Whenfalse, Image Builder retains the instance so that you can debug it.- 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.
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.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.
-
dateCreated
The date on which the infrastructure configuration was created.
- Parameters:
dateCreated- The date on which the infrastructure configuration was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dateUpdated
The date on which the infrastructure configuration was last updated.
- Parameters:
dateUpdated- The date on which the infrastructure configuration was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
The metadata tags assigned to the Amazon EC2 build and test instances that Image Builder launches during image creation.
- Parameters:
resourceTags- The metadata tags assigned to the Amazon EC2 build and test instances that Image Builder launches during image creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMetadataOptions
InfrastructureConfiguration.Builder instanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.
- Parameters:
instanceMetadataOptions- The instance metadata option settings for the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMetadataOptions
default InfrastructureConfiguration.Builder instanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions) The instance metadata option settings for the infrastructure configuration.
This is a convenience method that creates an instance of theInstanceMetadataOptions.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:
-
tags
The tags of the infrastructure configuration.
- Parameters:
tags- The tags of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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:
-