Show / Hide Table of Contents

Class CfnLaunchTemplate.MetadataOptionsProperty

The metadata options for the instance.

Inheritance
object
CfnLaunchTemplate.MetadataOptionsProperty
Implements
CfnLaunchTemplate.IMetadataOptionsProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLaunchTemplate.MetadataOptionsProperty : CfnLaunchTemplate.IMetadataOptionsProperty
Syntax (vb)
Public Class CfnLaunchTemplate.MetadataOptionsProperty Implements CfnLaunchTemplate.IMetadataOptionsProperty
Remarks

For more information, see Instance metadata and user data in the Amazon EC2 User Guide .

MetadataOptions is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-metadataoptions.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var metadataOptionsProperty = new MetadataOptionsProperty {
                 HttpEndpoint = "httpEndpoint",
                 HttpProtocolIpv6 = "httpProtocolIpv6",
                 HttpPutResponseHopLimit = 123,
                 HttpTokens = "httpTokens",
                 InstanceMetadataTags = "instanceMetadataTags"
             };

Synopsis

Constructors

MetadataOptionsProperty()

The metadata options for the instance.

Properties

HttpEndpoint

Enables or disables the HTTP metadata endpoint on your instances.

HttpProtocolIpv6

Enables or disables the IPv6 endpoint for the instance metadata service.

HttpPutResponseHopLimit

The desired HTTP PUT response hop limit for instance metadata requests.

HttpTokens

Indicates whether IMDSv2 is required.

InstanceMetadataTags

Set to enabled to allow access to instance tags from the instance metadata.

Constructors

MetadataOptionsProperty()

The metadata options for the instance.

public MetadataOptionsProperty()
Remarks

For more information, see Instance metadata and user data in the Amazon EC2 User Guide .

MetadataOptions is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-metadataoptions.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var metadataOptionsProperty = new MetadataOptionsProperty {
                 HttpEndpoint = "httpEndpoint",
                 HttpProtocolIpv6 = "httpProtocolIpv6",
                 HttpPutResponseHopLimit = 123,
                 HttpTokens = "httpTokens",
                 InstanceMetadataTags = "instanceMetadataTags"
             };

Properties

HttpEndpoint

Enables or disables the HTTP metadata endpoint on your instances.

public string? HttpEndpoint { get; set; }
Property Value

string

Remarks

If the parameter is not specified, the default state is enabled .

If you specify a value of <code>disabled</code> , you will not be able to access your instance metadata.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-metadataoptions.html#cfn-ec2-launchtemplate-metadataoptions-httpendpoint

HttpProtocolIpv6

Enables or disables the IPv6 endpoint for the instance metadata service.

public string? HttpProtocolIpv6 { get; set; }
Property Value

string

Remarks

Default: disabled

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-metadataoptions.html#cfn-ec2-launchtemplate-metadataoptions-httpprotocolipv6

HttpPutResponseHopLimit

The desired HTTP PUT response hop limit for instance metadata requests.

public double? HttpPutResponseHopLimit { get; set; }
Property Value

double?

Remarks

The larger the number, the further instance metadata requests can travel.

Default: 1

Possible values: Integers from 1 to 64

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-metadataoptions.html#cfn-ec2-launchtemplate-metadataoptions-httpputresponsehoplimit

HttpTokens

Indicates whether IMDSv2 is required.

public string? HttpTokens { get; set; }
Property Value

string

Remarks

    Default: If the value of ImdsSupport for the Amazon Machine Image (AMI) for your instance is v2.0 , the default is required .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-metadataoptions.html#cfn-ec2-launchtemplate-metadataoptions-httptokens

    InstanceMetadataTags

    Set to enabled to allow access to instance tags from the instance metadata.

    public string? InstanceMetadataTags { get; set; }
    Property Value

    string

    Remarks

    Set to disabled to turn off access to instance tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata .

    Default: disabled

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-metadataoptions.html#cfn-ec2-launchtemplate-metadataoptions-instancemetadatatags

    Implements

    CfnLaunchTemplate.IMetadataOptionsProperty
    Back to top Generated by DocFX