Class: Aws::EC2::Types::ImportKeyPairRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ImportKeyPairRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
Note:
When making an API call, you may pass ImportKeyPairRequest data as a hash:
{
dry_run: false,
key_name: "String", # required
public_key_material: "data", # required
}
Contains the parameters for ImportKeyPair.
Instance Attribute Summary collapse
-
#dry_run ⇒ Boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.
-
#key_name ⇒ String
A unique name for the key pair.
-
#public_key_material ⇒ String
The public key.
Instance Attribute Details
#dry_run ⇒ Boolean
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 is `UnauthorizedOperation`.
14444 14445 14446 14447 14448 14449 |
# File 'lib/aws-sdk-ec2/types.rb', line 14444 class ImportKeyPairRequest < Struct.new( :dry_run, :key_name, :public_key_material) include Aws::Structure end |
#key_name ⇒ String
A unique name for the key pair.
14444 14445 14446 14447 14448 14449 |
# File 'lib/aws-sdk-ec2/types.rb', line 14444 class ImportKeyPairRequest < Struct.new( :dry_run, :key_name, :public_key_material) include Aws::Structure end |
#public_key_material ⇒ String
The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
14444 14445 14446 14447 14448 14449 |
# File 'lib/aws-sdk-ec2/types.rb', line 14444 class ImportKeyPairRequest < Struct.new( :dry_run, :key_name, :public_key_material) include Aws::Structure end |