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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.CfnInstance.MetadataOptionsProperty
CfnInstance.MetadataOptionsProperty.Builder, CfnInstance.MetadataOptionsProperty.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnInstance.MetadataOptionsProperty.Builder
.protected
Jsii$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.JsonNode
final boolean
final String
Enables or disables the HTTP metadata endpoint on your instances.final String
Enables or disables the IPv6 endpoint for the instance metadata service.final Number
The maximum number of hops that the metadata token can travel.final String
Indicates whether IMDSv2 is required.final String
Set toenabled
to allow access to instance tags from the instance metadata.final int
hashCode()
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.MetadataOptionsProperty
Enables 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:
getHttpEndpoint
in interfaceCfnInstance.MetadataOptionsProperty
- See Also:
-
getHttpProtocolIpv6
Description copied from interface:CfnInstance.MetadataOptionsProperty
Enables or disables the IPv6 endpoint for the instance metadata service.Default:
disabled
- Specified by:
getHttpProtocolIpv6
in interfaceCfnInstance.MetadataOptionsProperty
- See Also:
-
getHttpPutResponseHopLimit
Description copied from interface:CfnInstance.MetadataOptionsProperty
The maximum number of hops that the metadata token can travel.Possible values: Integers from 1 to 64
Default: - 1
- Specified by:
getHttpPutResponseHopLimit
in interfaceCfnInstance.MetadataOptionsProperty
- See Also:
-
getHttpTokens
Description copied from interface:CfnInstance.MetadataOptionsProperty
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.
Default:
- If the value of
ImdsSupport
for the Amazon Machine Image (AMI) for your instance isv2.0
and the account level default is set tono-preference
, the default isrequired
. - If the value of
ImdsSupport
for 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:
getHttpTokens
in interfaceCfnInstance.MetadataOptionsProperty
- See Also:
-
getInstanceMetadataTags
Description copied from interface:CfnInstance.MetadataOptionsProperty
Set toenabled
to allow access to instance tags from the instance metadata.Set to
disabled
to 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:
getInstanceMetadataTags
in interfaceCfnInstance.MetadataOptionsProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-