Class: Aws::EC2InstanceConnect::Types::SendSSHPublicKeyRequest

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

Overview

Note:

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

{
  instance_id: "InstanceId", # required
  instance_os_user: "InstanceOSUser", # required
  ssh_public_key: "SSHPublicKey", # required
  availability_zone: "AvailabilityZone",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#availability_zoneString

The Availability Zone in which the EC2 instance was launched.

Returns:

  • (String)


127
128
129
130
131
132
133
134
# File 'gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/types.rb', line 127

class SendSSHPublicKeyRequest < Struct.new(
  :instance_id,
  :instance_os_user,
  :ssh_public_key,
  :availability_zone)
  SENSITIVE = []
  include Aws::Structure
end

#instance_idString

The ID of the EC2 instance.

Returns:

  • (String)


127
128
129
130
131
132
133
134
# File 'gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/types.rb', line 127

class SendSSHPublicKeyRequest < Struct.new(
  :instance_id,
  :instance_os_user,
  :ssh_public_key,
  :availability_zone)
  SENSITIVE = []
  include Aws::Structure
end

#instance_os_userString

The OS user on the EC2 instance for whom the key can be used to authenticate.

Returns:

  • (String)


127
128
129
130
131
132
133
134
# File 'gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/types.rb', line 127

class SendSSHPublicKeyRequest < Struct.new(
  :instance_id,
  :instance_os_user,
  :ssh_public_key,
  :availability_zone)
  SENSITIVE = []
  include Aws::Structure
end

#ssh_public_keyString

The public key material. To use the public key, you must have the matching private key.

Returns:

  • (String)


127
128
129
130
131
132
133
134
# File 'gems/aws-sdk-ec2instanceconnect/lib/aws-sdk-ec2instanceconnect/types.rb', line 127

class SendSSHPublicKeyRequest < Struct.new(
  :instance_id,
  :instance_os_user,
  :ssh_public_key,
  :availability_zone)
  SENSITIVE = []
  include Aws::Structure
end