public static interface InstanceMetadataOptions.Builder extends SdkPojo, CopyableBuilder<InstanceMetadataOptions.Builder,InstanceMetadataOptions>
| Modifier and Type | Method and Description |
|---|---|
InstanceMetadataOptions.Builder |
httpPutResponseHopLimit(Integer httpPutResponseHopLimit)
Limit the number of hops that an instance metadata request can traverse to reach its destination.
|
InstanceMetadataOptions.Builder |
httpTokens(String httpTokens)
Indicates whether a signed token header is required for instance metadata retrieval requests.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildInstanceMetadataOptions.Builder httpTokens(String httpTokens)
Indicates whether a signed token header is required for instance metadata retrieval requests. The values affect the response as follows:
required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases.
optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned.
The default setting is optional.
httpTokens - Indicates whether a signed token header is required for instance metadata retrieval requests. The
values affect the response as follows:
required – When you retrieve the IAM role credentials, version 2.0 credentials are returned in all cases.
optional – You can include a signed token header in your request to retrieve instance metadata, or you can leave it out. If you include it, version 2.0 credentials are returned for the IAM role. Otherwise, version 1.0 credentials are returned.
The default setting is optional.
InstanceMetadataOptions.Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit)
Limit the number of hops that an instance metadata request can traverse to reach its destination.
httpPutResponseHopLimit - Limit the number of hops that an instance metadata request can traverse to reach its destination.Copyright © 2022. All rights reserved.