amazonka-ec2-instance-connect-2.0: Amazon EC2 Instance Connect SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.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

AWSRequest SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Associated Types

type AWSResponse SendSSHPublicKey #

Generic SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Associated Types

type Rep SendSSHPublicKey :: Type -> Type #

Read SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Show SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

NFData SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Methods

rnf :: SendSSHPublicKey -> () #

Eq SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Hashable SendSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

type AWSResponse 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" "amazonka-ec2-instance-connect-2.0-EzV7gYn6zIFBjvt3P1z2AY" 'False) (C1 ('MetaCons "SendSSHPublicKey'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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))))

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:availabilityZone:SendSSHPublicKey', sendSSHPublicKey_availabilityZone - The Availability Zone in which the EC2 instance was launched.

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

Request Lenses

sendSSHPublicKey_availabilityZone :: Lens' SendSSHPublicKey (Maybe Text) Source #

The Availability Zone in which the EC2 instance was launched.

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.

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
Generic SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Associated Types

type Rep SendSSHPublicKeyResponse :: Type -> Type #

Read SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Show SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

NFData SendSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSSHPublicKey

Eq 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" "amazonka-ec2-instance-connect-2.0-EzV7gYn6zIFBjvt3P1z2AY" '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.