Class: Aws::EC2::Types::ImportKeyPairRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ec2/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#dry_runBoolean

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`.

Returns:

  • (Boolean)


37916
37917
37918
37919
37920
37921
37922
37923
# File 'lib/aws-sdk-ec2/types.rb', line 37916

class ImportKeyPairRequest < Struct.new(
  :dry_run,
  :key_name,
  :public_key_material,
  :tag_specifications)
  SENSITIVE = []
  include Aws::Structure
end

#key_nameString

A unique name for the key pair.

Returns:

  • (String)


37916
37917
37918
37919
37920
37921
37922
37923
# File 'lib/aws-sdk-ec2/types.rb', line 37916

class ImportKeyPairRequest < Struct.new(
  :dry_run,
  :key_name,
  :public_key_material,
  :tag_specifications)
  SENSITIVE = []
  include Aws::Structure
end

#public_key_materialString

The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.

Returns:

  • (String)


37916
37917
37918
37919
37920
37921
37922
37923
# File 'lib/aws-sdk-ec2/types.rb', line 37916

class ImportKeyPairRequest < Struct.new(
  :dry_run,
  :key_name,
  :public_key_material,
  :tag_specifications)
  SENSITIVE = []
  include Aws::Structure
end

#tag_specificationsArray<Types::TagSpecification>

The tags to apply to the imported key pair.

Returns:



37916
37917
37918
37919
37920
37921
37922
37923
# File 'lib/aws-sdk-ec2/types.rb', line 37916

class ImportKeyPairRequest < Struct.new(
  :dry_run,
  :key_name,
  :public_key_material,
  :tag_specifications)
  SENSITIVE = []
  include Aws::Structure
end