Class: Aws::Lightsail::Types::CreateKeyPairRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb

Overview

Note:

When making an API call, you may pass CreateKeyPairRequest data as a hash:

{
  key_pair_name: "ResourceName", # required
  tags: [
    {
      key: "TagKey",
      value: "TagValue",
    },
  ],
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#key_pair_nameString

The name for your new key pair.

Returns:

  • (String)


2867
2868
2869
2870
2871
2872
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2867

class CreateKeyPairRequest < Struct.new(
  :key_pair_name,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

Returns:



2867
2868
2869
2870
2871
2872
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 2867

class CreateKeyPairRequest < Struct.new(
  :key_pair_name,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end