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

Description

Derived from API version 2018-04-02 of the AWS service descriptions, licensed under Apache 2.0.

Amazon EC2 Instance Connect enables system administrators to publish one-time use SSH public keys to EC2, providing users a simple and secure way to connect to their instances.

Synopsis

Service Configuration

defaultService :: Service Source #

API version 2018-04-02 of the Amazon EC2 Instance Connect SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by EC2InstanceConnect.

AuthException

_AuthException :: AsError a => Fold a ServiceError Source #

Either your AWS credentials are not valid or you do not have access to the EC2 instance.

EC2InstanceNotFoundException

_EC2InstanceNotFoundException :: AsError a => Fold a ServiceError Source #

The specified instance was not found.

EC2InstanceStateInvalidException

_EC2InstanceStateInvalidException :: AsError a => Fold a ServiceError Source #

Unable to connect because the instance is not in a valid state. Connecting to a stopped or terminated instance is not supported. If the instance is stopped, start your instance, and try to connect again.

EC2InstanceTypeInvalidException

_EC2InstanceTypeInvalidException :: AsError a => Fold a ServiceError Source #

The instance type is not supported for connecting via the serial console. Only Nitro instance types are currently supported.

EC2InstanceUnavailableException

_EC2InstanceUnavailableException :: AsError a => Fold a ServiceError Source #

The instance is currently unavailable. Wait a few minutes and try again.

InvalidArgsException

_InvalidArgsException :: AsError a => Fold a ServiceError Source #

One of the parameters is not valid.

SerialConsoleAccessDisabledException

_SerialConsoleAccessDisabledException :: AsError a => Fold a ServiceError Source #

Your account is not authorized to use the EC2 Serial Console. To authorize your account, run the EnableSerialConsoleAccess API. For more information, see EnableSerialConsoleAccess in the Amazon EC2 API Reference.

SerialConsoleSessionLimitExceededException

_SerialConsoleSessionLimitExceededException :: AsError a => Fold a ServiceError Source #

The instance currently has 1 active serial console session. Only 1 session is supported at a time.

SerialConsoleSessionUnavailableException

_SerialConsoleSessionUnavailableException :: AsError a => Fold a ServiceError Source #

Unable to start a serial console session. Please try again.

ServiceException

_ServiceException :: AsError a => Fold a ServiceError Source #

The service encountered an error. Follow the instructions in the error message and try again.

ThrottlingException

_ThrottlingException :: AsError a => Fold a ServiceError Source #

The requests were made too frequently and have been throttled. Wait a while and try again. To increase the limit on your request frequency, contact AWS Support.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

SendSSHPublicKey

data SendSSHPublicKey Source #

See: newSendSSHPublicKey smart constructor.

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.

data SendSSHPublicKeyResponse Source #

See: newSendSSHPublicKeyResponse smart constructor.

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.

SendSerialConsoleSSHPublicKey

data SendSerialConsoleSSHPublicKey Source #

See: newSendSerialConsoleSSHPublicKey smart constructor.

Instances

Instances details
ToJSON SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

ToHeaders SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

ToPath SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

ToQuery SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

AWSRequest SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Generic SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Associated Types

type Rep SendSerialConsoleSSHPublicKey :: Type -> Type #

Read SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Show SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

NFData SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Eq SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Hashable SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type AWSResponse SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKey Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKey = D1 ('MetaData "SendSerialConsoleSSHPublicKey" "Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey" "amazonka-ec2-instance-connect-2.0-EzV7gYn6zIFBjvt3P1z2AY" 'False) (C1 ('MetaCons "SendSerialConsoleSSHPublicKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serialPort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sSHPublicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newSendSerialConsoleSSHPublicKey Source #

Create a value of SendSerialConsoleSSHPublicKey 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:serialPort:SendSerialConsoleSSHPublicKey', sendSerialConsoleSSHPublicKey_serialPort - The serial port of the EC2 instance. Currently only port 0 is supported.

Default: 0

$sel:instanceId:SendSerialConsoleSSHPublicKey', sendSerialConsoleSSHPublicKey_instanceId - The ID of the EC2 instance.

$sel:sSHPublicKey:SendSerialConsoleSSHPublicKey', sendSerialConsoleSSHPublicKey_sSHPublicKey - The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.

data SendSerialConsoleSSHPublicKeyResponse Source #

Instances

Instances details
Generic SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Read SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Show SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

NFData SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

Eq SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKeyResponse Source # 
Instance details

Defined in Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey

type Rep SendSerialConsoleSSHPublicKeyResponse = D1 ('MetaData "SendSerialConsoleSSHPublicKeyResponse" "Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey" "amazonka-ec2-instance-connect-2.0-EzV7gYn6zIFBjvt3P1z2AY" 'False) (C1 ('MetaCons "SendSerialConsoleSSHPublicKeyResponse'" '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))))

newSendSerialConsoleSSHPublicKeyResponse Source #

Create a value of SendSerialConsoleSSHPublicKeyResponse 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:SendSerialConsoleSSHPublicKeyResponse', sendSerialConsoleSSHPublicKeyResponse_requestId - The ID of the request. Please provide this ID when contacting AWS Support for assistance.

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

$sel:httpStatus:SendSerialConsoleSSHPublicKeyResponse', sendSerialConsoleSSHPublicKeyResponse_httpStatus - The response's http status code.

Types