Skip to content
v2.273.0

LaunchTemplateHttpTokens Enum ​

The state of token usage for your instance metadata requests.

Example ​

ts
new ec2.LaunchTemplate(this, 'LaunchTemplate', {
  httpEndpoint: true,
  httpProtocolIpv6: true,
  httpPutResponseHopLimit: 1,
  httpTokens: ec2.LaunchTemplateHttpTokens.REQUIRED,
  instanceMetadataTags: true,
});

Members ​

MemberDescription
OPTIONALIf the state is optional, you can choose to retrieve instance metadata with or without a signed token header on your request.
REQUIREDIf the state is required, you must send a signed token header with any instance metadata retrieval requests.

Referenced by ​