Class ModifyInstanceMetadataDefaultsRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ModifyInstanceMetadataDefaultsRequest.Builder,ModifyInstanceMetadataDefaultsRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final BooleandryRun()Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()Enables or disables the IMDS endpoint on an instance.final StringEnables or disables the IMDS endpoint on an instance.final IntegerThe maximum number of hops that the metadata token can travel.Indicates whether IMDSv2 is required.final StringIndicates whether IMDSv2 is required.Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch.final StringSpecifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch.Enables or disables access to an instance's tags from the instance metadata.final StringEnables or disables access to an instance's tags from the instance metadata.static Class<? extends ModifyInstanceMetadataDefaultsRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
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.
If the service returns an enum value that is not available in the current SDK version,
httpTokenswill returnMetadataDefaultHttpTokensState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpTokensAsString().- Returns:
- 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.
-
- See Also:
-
-
httpTokensAsString
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.
If the service returns an enum value that is not available in the current SDK version,
httpTokenswill returnMetadataDefaultHttpTokensState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpTokensAsString().- Returns:
- 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.
-
- See Also:
-
-
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:
- 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
-
httpEndpoint
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
If the service returns an enum value that is not available in the current SDK version,
httpEndpointwill returnDefaultInstanceMetadataEndpointState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpEndpointAsString().- Returns:
- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
- See Also:
-
httpEndpointAsString
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
If the service returns an enum value that is not available in the current SDK version,
httpEndpointwill returnDefaultInstanceMetadataEndpointState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpEndpointAsString().- Returns:
- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
- See Also:
-
instanceMetadataTags
Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
instanceMetadataTagswill returnDefaultInstanceMetadataTagsState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceMetadataTagsAsString().- Returns:
- Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.
- See Also:
-
instanceMetadataTagsAsString
Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.
If the service returns an enum value that is not available in the current SDK version,
instanceMetadataTagswill returnDefaultInstanceMetadataTagsState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceMetadataTagsAsString().- Returns:
- Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.
- 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.- Returns:
- 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.
-
httpTokensEnforced
Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (
HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide.If the service returns an enum value that is not available in the current SDK version,
httpTokensEnforcedwill returnDefaultHttpTokensEnforcedState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpTokensEnforcedAsString().- Returns:
- Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When
enforcement is enabled, the instance can't launch unless IMDSv2 (
HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide. - See Also:
-
httpTokensEnforcedAsString
Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (
HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide.If the service returns an enum value that is not available in the current SDK version,
httpTokensEnforcedwill returnDefaultHttpTokensEnforcedState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpTokensEnforcedAsString().- Returns:
- Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When
enforcement is enabled, the instance can't launch unless IMDSv2 (
HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide. - See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ModifyInstanceMetadataDefaultsRequest.Builder,ModifyInstanceMetadataDefaultsRequest> - Specified by:
toBuilderin classEc2Request
-
builder
-
serializableBuilderClass
public static Class<? extends ModifyInstanceMetadataDefaultsRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-