Class LaunchTemplateHttpTokens
The state of token usage for your instance metadata requests.
Inheritance
System.Object
LaunchTemplateHttpTokens
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class LaunchTemplateHttpTokens : Enum
Syntax (vb)
Public NotInheritable Class LaunchTemplateHttpTokens
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
new LaunchTemplate(this, "LaunchTemplate", new LaunchTemplateProps {
HttpEndpoint = true,
HttpProtocolIpv6 = true,
HttpPutResponseHopLimit = 1,
HttpTokens = LaunchTemplateHttpTokens.REQUIRED,
InstanceMetadataTags = true
});
Synopsis
Fields
OPTIONAL | If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request. |
REQUIRED | If the state is required, you must send a signed token header with any instance metadata retrieval requests. |
value__ |
Fields
OPTIONAL
If the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request.
public const LaunchTemplateHttpTokens OPTIONAL
Field Value
Type | Description |
---|---|
LaunchTemplateHttpTokens |
REQUIRED
If the state is required, you must send a signed token header with any instance metadata retrieval requests.
public const LaunchTemplateHttpTokens REQUIRED
Field Value
Type | Description |
---|---|
LaunchTemplateHttpTokens |
Remarks
In this state, retrieving the IAM role credentials always returns the version 2.0 credentials; the version 1.0 credentials are not available.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |