Method: Aws::Imagebuilder::Types::InstanceMetadataOptions#http_tokens

Defined in:
lib/aws-sdk-imagebuilder/types.rb

#http_tokensString

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.

Returns:

  • (String)


4874
4875
4876
4877
4878
4879
# File 'lib/aws-sdk-imagebuilder/types.rb', line 4874

class InstanceMetadataOptions < Struct.new(
  :http_tokens,
  :http_put_response_hop_limit)
  SENSITIVE = []
  include Aws::Structure
end