public static final class CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty |
build()
Builds the configured instance.
|
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder |
httpPutResponseHopLimit(java.lang.Number httpPutResponseHopLimit)
|
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder |
httpTokens(java.lang.String httpTokens)
|
public CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder httpPutResponseHopLimit(java.lang.Number httpPutResponseHopLimit)
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.getHttpPutResponseHopLimit()
httpPutResponseHopLimit
- Limit the number of hops that an instance metadata request can traverse to reach its destination.
The default is one hop. However, if HTTP tokens are required, container image builds need a minimum of two hops.this
public CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty.Builder httpTokens(java.lang.String httpTokens)
httpTokens
- Indicates whether a signed token header is required for instance metadata retrieval requests.
The values affect the response as follows:
The default setting is optional .
this
public CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty build()
CfnInfrastructureConfiguration.InstanceMetadataOptionsProperty
java.lang.NullPointerException
- if any required attribute was not provided