AWSEC2ModifyInstanceMetadataDefaultsRequest
Objective-C
@interface AWSEC2ModifyInstanceMetadataDefaultsRequest
Swift
class AWSEC2ModifyInstanceMetadataDefaultsRequest
-
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.Declaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable dryRun;
Swift
var dryRun: NSNumber? { get set }
-
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can’t be accessed.
Declaration
Objective-C
@property (nonatomic) AWSEC2DefaultInstanceMetadataEndpointState httpEndpoint;
Swift
var httpEndpoint: AWSEC2DefaultInstanceMetadataEndpointState { get set }
-
The maximum number of hops that the metadata token can travel. To indicate no preference, specify
-1
.Possible values: Integers from
1
to64
, and-1
to indicate no preferenceDeclaration
Objective-C
@property (nonatomic, strong) NSNumber *_Nullable httpPutResponseHopLimit;
Swift
var httpPutResponseHopLimit: NSNumber? { get set }
-
Indicates whether IMDSv2 is required.
optional
– IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.required
– IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
Declaration
Objective-C
@property (nonatomic) AWSEC2MetadataDefaultHttpTokensState httpTokens;
Swift
var httpTokens: AWSEC2MetadataDefaultHttpTokensState { get set }
-
Enables or disables access to an instance’s tags from the instance metadata. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
Declaration
Objective-C
@property (nonatomic) AWSEC2DefaultInstanceMetadataTagsState instanceMetadataTags;
Swift
var instanceMetadataTags: AWSEC2DefaultInstanceMetadataTagsState { get set }