libZSservicesZSamazonka-ec2-instance-connectZSamazonka-ec2-instance-connect
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.EC2InstanceConnect.SendSSHPublicKey

Description

Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data SendSSHPublicKey Source #

See: newSendSSHPublicKey smart constructor.

Constructors

SendSSHPublicKey' 

Fields

Instances

Instances details
Eq SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Read SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Show SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Generic SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Associated Types

type Rep SendSSHPublicKey :: Type -> Type #

NFData SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Methods

rnf :: SendSSHPublicKey -> () #

Hashable SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

ToJSON SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

AWSRequest SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Associated Types

type AWSResponse SendSSHPublicKey #

ToHeaders SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

ToPath SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

ToQuery SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

type Rep SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

type Rep SendSSHPublicKey = D1 ('MetaData "SendSSHPublicKey" "Amazonka.EC2InstanceConnect.SendSSHPublicKey" "libZSservicesZSamazonka-ec2-instance-connectZSamazonka-ec2-instance-connect" 'False) (C1 ('MetaCons "SendSSHPublicKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "instanceOSUser") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "sSHPublicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

newSendSSHPublicKey Source #

Create a value of SendSSHPublicKey with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:instanceId:SendSSHPublicKey', sendSSHPublicKey_instanceId - The ID of the EC2 instance.

$sel:instanceOSUser:SendSSHPublicKey', sendSSHPublicKey_instanceOSUser - The OS user on the EC2 instance for whom the key can be used to authenticate.

$sel:sSHPublicKey:SendSSHPublicKey', sendSSHPublicKey_sSHPublicKey - The public key material. To use the public key, you must have the matching private key.

$sel:availabilityZone:SendSSHPublicKey', sendSSHPublicKey_availabilityZone - The Availability Zone in which the EC2 instance was launched.

Request Lenses

sendSSHPublicKey_instanceOSUser :: Lens' SendSSHPublicKey Text Source #

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

sendSSHPublicKey_sSHPublicKey :: Lens' SendSSHPublicKey Text Source #

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

sendSSHPublicKey_availabilityZone :: Lens' SendSSHPublicKey Text Source #

The Availability Zone in which the EC2 instance was launched.

Destructuring the Response

data SendSSHPublicKeyResponse Source #

See: newSendSSHPublicKeyResponse smart constructor.

Constructors

SendSSHPublicKeyResponse' 

Fields

  • requestId :: Maybe Text

    The ID of the request. Please provide this ID when contacting AWS Support for assistance.

  • success :: Maybe Bool

    Is true if the request succeeds and an error otherwise.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Read SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Show SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Generic SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Associated Types

type Rep SendSSHPublicKeyResponse :: Type -> Type #

NFData SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

type Rep SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

type Rep SendSSHPublicKeyResponse = D1 ('MetaData "SendSSHPublicKeyResponse" "Amazonka.EC2InstanceConnect.SendSSHPublicKey" "libZSservicesZSamazonka-ec2-instance-connectZSamazonka-ec2-instance-connect" 'False) (C1 ('MetaCons "SendSSHPublicKeyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "requestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "success") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSendSSHPublicKeyResponse Source #

Create a value of SendSSHPublicKeyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:requestId:SendSSHPublicKeyResponse', sendSSHPublicKeyResponse_requestId - The ID of the request. Please provide this ID when contacting AWS Support for assistance.

$sel:success:SendSSHPublicKeyResponse', sendSSHPublicKeyResponse_success - Is true if the request succeeds and an error otherwise.

$sel:httpStatus:SendSSHPublicKeyResponse', sendSSHPublicKeyResponse_httpStatus - The response's http status code.

Response Lenses

sendSSHPublicKeyResponse_requestId :: Lens' SendSSHPublicKeyResponse (Maybe Text) Source #

The ID of the request. Please provide this ID when contacting AWS Support for assistance.

sendSSHPublicKeyResponse_success :: Lens' SendSSHPublicKeyResponse (Maybe Bool) Source #

Is true if the request succeeds and an error otherwise.