@Stability(value=Stable)
public static interface CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;
InstanceMetadataOptionsProperty instanceMetadataOptionsProperty = InstanceMetadataOptionsProperty.builder()
.httpPutResponseHopLimit(123)
.httpTokens("httpTokens")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder
|
static class |
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Jsii$Proxy
An implementation for
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder |
builder() |
default Number |
getHttpPutResponseHopLimit()
Limit the number of hops that an instance metadata request can traverse to reach its destination.
|
default String |
getHttpTokens()
Indicates whether a signed token header is required for instance metadata retrieval requests.
|
@Stability(value=Stable) @Nullable default Number getHttpPutResponseHopLimit()
The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.
@Stability(value=Stable) @Nullable default String getHttpTokens()
The values affect the response as follows:
The default setting is optional .
@Stability(value=Stable) static CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder builder()
Copyright © 2022. All rights reserved.