AWSEC2CreateKeyPairRequest
Objective-C
@interface AWSEC2CreateKeyPairRequest
Swift
class AWSEC2CreateKeyPairRequest
-
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 }
-
The format of the key pair.
Default:
pem
Declaration
Objective-C
@property (nonatomic) AWSEC2KeyFormat keyFormat;
Swift
var keyFormat: AWSEC2KeyFormat { get set }
-
A unique name for the key pair.
Constraints: Up to 255 ASCII characters
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable keyName;
Swift
var keyName: String? { get set }
-
The type of key pair. Note that ED25519 keys are not supported for Windows instances.
Default:
rsa
Declaration
Objective-C
@property (nonatomic) AWSEC2KeyType keyType;
Swift
var keyType: AWSEC2KeyType { get set }
-
The tags to apply to the new key pair.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSEC2TagSpecification *> *_Nullable tagSpecifications;
Swift
var tagSpecifications: [AWSEC2TagSpecification]? { get set }