Interface CreateInfrastructureConfigurationRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateInfrastructureConfigurationRequest.Builder,CreateInfrastructureConfigurationRequest>,ImagebuilderRequest.Builder,SdkBuilder<CreateInfrastructureConfigurationRequest.Builder,CreateInfrastructureConfigurationRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateInfrastructureConfigurationRequest
public static interface CreateInfrastructureConfigurationRequest.Builder extends ImagebuilderRequest.Builder, SdkPojo, CopyableBuilder<CreateInfrastructureConfigurationRequest.Builder,CreateInfrastructureConfigurationRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateInfrastructureConfigurationRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure idempotency of the request.CreateInfrastructureConfigurationRequest.Builderdescription(String description)The description of the infrastructure configuration.default CreateInfrastructureConfigurationRequest.BuilderinstanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions)The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.CreateInfrastructureConfigurationRequest.BuilderinstanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.CreateInfrastructureConfigurationRequest.BuilderinstanceProfileName(String instanceProfileName)The instance profile to associate with the instance used to customize your Amazon EC2 AMI.CreateInfrastructureConfigurationRequest.BuilderinstanceTypes(String... instanceTypes)The instance types of the infrastructure configuration.CreateInfrastructureConfigurationRequest.BuilderinstanceTypes(Collection<String> instanceTypes)The instance types of the infrastructure configuration.CreateInfrastructureConfigurationRequest.BuilderkeyPair(String keyPair)The key pair of the infrastructure configuration.default CreateInfrastructureConfigurationRequest.Builderlogging(Consumer<Logging.Builder> logging)The logging configuration of the infrastructure configuration.CreateInfrastructureConfigurationRequest.Builderlogging(Logging logging)The logging configuration of the infrastructure configuration.CreateInfrastructureConfigurationRequest.Buildername(String name)The name of the infrastructure configuration.CreateInfrastructureConfigurationRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateInfrastructureConfigurationRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateInfrastructureConfigurationRequest.BuilderresourceTags(Map<String,String> resourceTags)The tags attached to the resource created by Image Builder.CreateInfrastructureConfigurationRequest.BuildersecurityGroupIds(String... securityGroupIds)The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.CreateInfrastructureConfigurationRequest.BuildersecurityGroupIds(Collection<String> securityGroupIds)The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.CreateInfrastructureConfigurationRequest.BuildersnsTopicArn(String snsTopicArn)The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.CreateInfrastructureConfigurationRequest.BuildersubnetId(String subnetId)The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.CreateInfrastructureConfigurationRequest.Buildertags(Map<String,String> tags)The tags of the infrastructure configuration.CreateInfrastructureConfigurationRequest.BuilderterminateInstanceOnFailure(Boolean terminateInstanceOnFailure)The terminate instance on failure setting of the infrastructure configuration.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.imagebuilder.model.ImagebuilderRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
CreateInfrastructureConfigurationRequest.Builder name(String 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
CreateInfrastructureConfigurationRequest.Builder description(String 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
CreateInfrastructureConfigurationRequest.Builder instanceTypes(Collection<String> instanceTypes)
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
- Parameters:
instanceTypes- The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceTypes
CreateInfrastructureConfigurationRequest.Builder instanceTypes(String... instanceTypes)
The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.
- Parameters:
instanceTypes- The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileName
CreateInfrastructureConfigurationRequest.Builder instanceProfileName(String instanceProfileName)
The instance profile to associate with the instance used to customize your Amazon EC2 AMI.
- Parameters:
instanceProfileName- The instance profile 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
CreateInfrastructureConfigurationRequest.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
CreateInfrastructureConfigurationRequest.Builder securityGroupIds(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.
-
subnetId
CreateInfrastructureConfigurationRequest.Builder subnetId(String subnetId)
The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.
- Parameters:
subnetId- The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
CreateInfrastructureConfigurationRequest.Builder logging(Logging 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
default CreateInfrastructureConfigurationRequest.Builder logging(Consumer<Logging.Builder> logging)
The logging configuration of the infrastructure configuration.
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:
logging(Logging)
-
keyPair
CreateInfrastructureConfigurationRequest.Builder keyPair(String 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
CreateInfrastructureConfigurationRequest.Builder terminateInstanceOnFailure(Boolean terminateInstanceOnFailure)
The terminate instance on failure setting of the infrastructure configuration. 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.
- Parameters:
terminateInstanceOnFailure- The terminate instance on failure setting of the infrastructure configuration. 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snsTopicArn
CreateInfrastructureConfigurationRequest.Builder snsTopicArn(String 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.
-
resourceTags
CreateInfrastructureConfigurationRequest.Builder resourceTags(Map<String,String> 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
CreateInfrastructureConfigurationRequest.Builder instanceMetadataOptions(InstanceMetadataOptions instanceMetadataOptions)
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
- Parameters:
instanceMetadataOptions- The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceMetadataOptions
default CreateInfrastructureConfigurationRequest.Builder instanceMetadataOptions(Consumer<InstanceMetadataOptions.Builder> instanceMetadataOptions)
The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.
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:
instanceMetadataOptions(InstanceMetadataOptions)
-
tags
CreateInfrastructureConfigurationRequest.Builder tags(Map<String,String> 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.
-
clientToken
CreateInfrastructureConfigurationRequest.Builder clientToken(String 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
CreateInfrastructureConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateInfrastructureConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-