Class UpdateInfrastructureConfigurationRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateInfrastructureConfigurationRequest.Builder,UpdateInfrastructureConfigurationRequest>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringA unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time.final StringThe description of the infrastructure configuration.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) Used to retrieve the value of a field from any class that extendsSdkRequest.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the InstanceTypes property.final booleanFor responses, this returns true if the service returned a value for the ResourceTags property.final booleanFor responses, this returns true if the service returned a value for the SecurityGroupIds property.final StringThe Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.final InstanceMetadataOptionsThe instance metadata service (IMDS) settings that Image Builder applies to the EC2 build and test instances it launches during image creation.final StringThe instance profile to associate with the instance used to customize your Amazon EC2 AMI.The instance types of the infrastructure configuration.final StringkeyPair()The key pair of the infrastructure configuration.final Logginglogging()The logging configuration of the infrastructure configuration.final PlacementThe instance placement settings that define where the build and test instances that Image Builder launches during image creation run.The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process.The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.static Class<? extends UpdateInfrastructureConfigurationRequest.Builder> final StringThe Amazon Resource Name (ARN) of the SNS topic to which Image Builder sends image build event notifications.final StringsubnetId()The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.final BooleanSpecifies whether to terminate the instance on failure.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
infrastructureConfigurationArn
The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.
- Returns:
- The Amazon Resource Name (ARN) of the infrastructure configuration that you want to update.
-
description
The description of the infrastructure configuration.
- Returns:
- The description of the infrastructure configuration.
-
hasInstanceTypes
public final boolean hasInstanceTypes()For responses, this returns true if the service returned a value for the InstanceTypes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasInstanceTypes()method.- Returns:
- 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.
-
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:
- The instance profile to associate with the instance used to customize your Amazon EC2 AMI. The instance profile must exist in your account.
-
hasSecurityGroupIds
public final boolean hasSecurityGroupIds()For responses, this returns true if the service returned a value for the SecurityGroupIds property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
securityGroupIds
The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecurityGroupIds()method.- Returns:
- The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.
-
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.- Returns:
- 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.
-
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:
- 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.
-
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:
- The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.
-
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.- Returns:
- 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.
-
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:
- 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.
-
hasResourceTags
public final boolean hasResourceTags()For responses, this returns true if the service returned a value for the ResourceTags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasResourceTags()method.- Returns:
- 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.
-
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:
- 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.
-
-
-
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:
- 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.
-
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:
- 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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateInfrastructureConfigurationRequest.Builder,UpdateInfrastructureConfigurationRequest> - Specified by:
toBuilderin classImagebuilderRequest- Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends UpdateInfrastructureConfigurationRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
Description copied from class:SdkRequestUsed to retrieve the value of a field from any class that extendsSdkRequest. The field name specified should match the member name from the corresponding service-2.json model specified in the codegen-resources folder for a given service. The class specifies what class to cast the returned value to. If the returned value is also a modeled class, theSdkRequest.getValueForField(String, Class)method will again be available.- Overrides:
getValueForFieldin classSdkRequest- Parameters:
fieldName- The name of the member to be retrieved.clazz- The class to cast the returned object to.- Returns:
- Optional containing the casted return value
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-