Class CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty
The instance metadata options that apply to the HTTP requests that pipeline builds use to launch EC2 build and test instances.
Inheritance
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.AWS.ImageBuilder.dll
Syntax (csharp)
public class InstanceMetadataOptionsProperty : Object, CfnInfrastructureConfiguration.IInstanceMetadataOptionsProperty
Syntax (vb)
Public Class InstanceMetadataOptionsProperty
Inherits Object
Implements CfnInfrastructureConfiguration.IInstanceMetadataOptionsProperty
Remarks
For more information about instance metadata options, see Configure the instance metadata options in the Amazon EC2 User Guide for Linux instances, or Configure the instance metadata options in the Amazon EC2 Windows Guide for Windows instances.
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.ImageBuilder;
var instanceMetadataOptionsProperty = new InstanceMetadataOptionsProperty {
HttpPutResponseHopLimit = 123,
HttpTokens = "httpTokens"
};
Synopsis
Constructors
InstanceMetadataOptionsProperty() |
Properties
HttpPutResponseHopLimit | Limit the number of hops that an instance metadata request can traverse to reach its destination. |
HttpTokens | Indicates whether a signed token header is required for instance metadata retrieval requests. |
Constructors
InstanceMetadataOptionsProperty()
public InstanceMetadataOptionsProperty()
Properties
HttpPutResponseHopLimit
Limit the number of hops that an instance metadata request can traverse to reach its destination.
public Nullable<double> HttpPutResponseHopLimit { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.
HttpTokens
Indicates whether a signed token header is required for instance metadata retrieval requests.
public string HttpTokens { get; set; }
Property Value
System.String
Remarks
The values affect the response as follows:
The default setting is optional .