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.resourceTags
(Map<String, String> resourceTags) The tags attached to the resource created by Image Builder.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) for the SNS topic to which we send image build event notifications.The subnet ID of the infrastructure configuration.The tags of the infrastructure configuration.terminateInstanceOnFailure
(Boolean terminateInstanceOnFailure) The terminate instance on failure configuration of the infrastructure configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.
- Parameters:
logging
- The logging configuration 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.
This is a convenience method that creates an instance of theLogging.Builder
avoiding the need to create one manually viaLogging.builder()
.When the
Consumer
completes,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
The terminate instance on failure configuration of the infrastructure configuration.
- Parameters:
terminateInstanceOnFailure
- The terminate instance on failure configuration of the infrastructure configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicArn
The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.
EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
- Parameters:
snsTopicArn
- The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.
- 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 tags attached to the resource created by Image Builder.
- Parameters:
resourceTags
- The tags attached to the resource created by Image Builder.- 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.Builder
avoiding the need to create one manually viaInstanceMetadataOptions.builder()
.When the
Consumer
completes,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.
-