Class: Aws::EC2::Types::CreateKeyPairRequest

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)


9063
9064
9065
9066
9067
9068
9069
9070
9071
# File 'lib/aws-sdk-ec2/types.rb', line 9063

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

#key_formatString

The format of the key pair.

Default: ‘pem`

Returns:

  • (String)


9063
9064
9065
9066
9067
9068
9069
9070
9071
# File 'lib/aws-sdk-ec2/types.rb', line 9063

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

#key_nameString

A unique name for the key pair.

Constraints: Up to 255 ASCII characters

Returns:

  • (String)


9063
9064
9065
9066
9067
9068
9069
9070
9071
# File 'lib/aws-sdk-ec2/types.rb', line 9063

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

#key_typeString

The type of key pair. Note that ED25519 keys are not supported for Windows instances.

Default: ‘rsa`

Returns:

  • (String)


9063
9064
9065
9066
9067
9068
9069
9070
9071
# File 'lib/aws-sdk-ec2/types.rb', line 9063

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

#tag_specificationsArray<Types::TagSpecification>

The tags to apply to the new key pair.

Returns:



9063
9064
9065
9066
9067
9068
9069
9070
9071
# File 'lib/aws-sdk-ec2/types.rb', line 9063

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