Interface ModifyInstanceMetadataDefaultsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyInstanceMetadataDefaultsRequest.Builder,,ModifyInstanceMetadataDefaultsRequest> Ec2Request.Builder,SdkBuilder<ModifyInstanceMetadataDefaultsRequest.Builder,,ModifyInstanceMetadataDefaultsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ModifyInstanceMetadataDefaultsRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the operation, without actually making the request, and provides an error response.httpEndpoint(String httpEndpoint) Enables or disables the IMDS endpoint on an instance.httpEndpoint(DefaultInstanceMetadataEndpointState httpEndpoint) Enables or disables the IMDS endpoint on an instance.httpPutResponseHopLimit(Integer httpPutResponseHopLimit) The maximum number of hops that the metadata token can travel.httpTokens(String httpTokens) Indicates whether IMDSv2 is required.httpTokens(MetadataDefaultHttpTokensState httpTokens) Indicates whether IMDSv2 is required.instanceMetadataTags(String instanceMetadataTags) Enables or disables access to an instance's tags from the instance metadata.instanceMetadataTags(DefaultInstanceMetadataTagsState instanceMetadataTags) Enables or disables access to an instance's tags from the instance metadata.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
httpTokens
Indicates whether IMDSv2 is required.
-
optional– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
- Parameters:
httpTokens- Indicates whether IMDSv2 is required.-
optional– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
httpTokens
Indicates whether IMDSv2 is required.
-
optional– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
- Parameters:
httpTokens- Indicates whether IMDSv2 is required.-
optional– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
httpPutResponseHopLimit
ModifyInstanceMetadataDefaultsRequest.Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit) The maximum number of hops that the metadata token can travel. To indicate no preference, specify
-1.Possible values: Integers from
1to64, and-1to indicate no preference- Parameters:
httpPutResponseHopLimit- The maximum number of hops that the metadata token can travel. To indicate no preference, specify-1.Possible values: Integers from
1to64, and-1to indicate no preference- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpEndpoint
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
httpEndpoint
ModifyInstanceMetadataDefaultsRequest.Builder httpEndpoint(DefaultInstanceMetadataEndpointState httpEndpoint) Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceMetadataTags
Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
- Parameters:
instanceMetadataTags- Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceMetadataTags
ModifyInstanceMetadataDefaultsRequest.Builder instanceMetadataTags(DefaultInstanceMetadataTagsState instanceMetadataTags) Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
- Parameters:
instanceMetadataTags- Enables or disables access to an instance's tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dryRun
Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifyInstanceMetadataDefaultsRequest.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
ModifyInstanceMetadataDefaultsRequest.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.
-