Class CfnInstance.MetadataOptionsProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.CfnInstance.MetadataOptionsProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnInstance.MetadataOptionsProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnInstance.MetadataOptionsProperty
@Stability(Stable)
@Internal
public static final class CfnInstance.MetadataOptionsProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnInstance.MetadataOptionsProperty
An implementation for
CfnInstance.MetadataOptionsProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnInstance.MetadataOptionsProperty
CfnInstance.MetadataOptionsProperty.Builder, CfnInstance.MetadataOptionsProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnInstance.MetadataOptionsProperty.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringEnables or disables the HTTP metadata endpoint on your instances.final StringEnables or disables the IPv6 endpoint for the instance metadata service.final NumberThe maximum number of hops that the metadata token can travel.final StringIndicates whether IMDSv2 is required.final StringSet toenabledto allow access to instance tags from the instance metadata.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnInstance.MetadataOptionsProperty.Builder.
-
-
Method Details
-
getHttpEndpoint
Description copied from interface:CfnInstance.MetadataOptionsPropertyEnables or disables the HTTP metadata endpoint on your instances.If you specify a value of
disabled, you cannot access your instance metadata.Default:
enabled- Specified by:
getHttpEndpointin interfaceCfnInstance.MetadataOptionsProperty- See Also:
-
getHttpProtocolIpv6
Description copied from interface:CfnInstance.MetadataOptionsPropertyEnables or disables the IPv6 endpoint for the instance metadata service.Default:
disabled- Specified by:
getHttpProtocolIpv6in interfaceCfnInstance.MetadataOptionsProperty- See Also:
-
getHttpPutResponseHopLimit
Description copied from interface:CfnInstance.MetadataOptionsPropertyThe maximum number of hops that the metadata token can travel.Possible values: Integers from 1 to 64
Default: - 1
- Specified by:
getHttpPutResponseHopLimitin interfaceCfnInstance.MetadataOptionsProperty- See Also:
-
getHttpTokens
Description copied from interface:CfnInstance.MetadataOptionsPropertyIndicates 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.
Default:
- If the value of
ImdsSupportfor the Amazon Machine Image (AMI) for your instance isv2.0and the account level default is set tono-preference, the default isrequired. - If the value of
ImdsSupportfor the Amazon Machine Image (AMI) for your instance isv2.0, but the account level default is set toV1 or V2, the default isoptional.
The default value can also be affected by other combinations of parameters. For more information, see Order of precedence for instance metadata options in the Amazon EC2 User Guide .
- Specified by:
getHttpTokensin interfaceCfnInstance.MetadataOptionsProperty- See Also:
-
getInstanceMetadataTags
Description copied from interface:CfnInstance.MetadataOptionsPropertySet toenabledto allow access to instance tags from the instance metadata.Set to
disabledto turn off access to instance tags from the instance metadata. For more information, see Work with instance tags using the instance metadata .Default:
disabled- Specified by:
getInstanceMetadataTagsin interfaceCfnInstance.MetadataOptionsProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-