-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Amazon EC2 Instance Connect SDK.
--
-- Derived from API version 2018-04-02 of the AWS service
-- descriptions, licensed under Apache 2.0.
--
-- The types from this library are intended to be used with
-- amazonka, which provides mechanisms for specifying AuthN/AuthZ
-- information, sending requests, and receiving responses.
--
-- It is recommended to use generic lenses or optics from packages such
-- as generic-lens or optics to modify optional fields and
-- deconstruct responses.
--
-- Generated lenses can be found in
-- Amazonka.EC2InstanceConnect.Lens and are suitable for use with
-- a lens package such as lens or lens-family-core.
--
-- See Amazonka.EC2InstanceConnect and the AWS
-- documentation to get started.
@package amazonka-ec2-instance-connect
@version 2.0
module Amazonka.EC2InstanceConnect.Types
-- | API version 2018-04-02 of the Amazon EC2 Instance Connect SDK
-- configuration.
defaultService :: Service
-- | Either your AWS credentials are not valid or you do not have access to
-- the EC2 instance.
_AuthException :: AsError a => Fold a ServiceError
-- | The specified instance was not found.
_EC2InstanceNotFoundException :: AsError a => Fold a ServiceError
-- | 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.
_EC2InstanceStateInvalidException :: AsError a => Fold a ServiceError
-- | The instance type is not supported for connecting via the serial
-- console. Only Nitro instance types are currently supported.
_EC2InstanceTypeInvalidException :: AsError a => Fold a ServiceError
-- | The instance is currently unavailable. Wait a few minutes and try
-- again.
_EC2InstanceUnavailableException :: AsError a => Fold a ServiceError
-- | One of the parameters is not valid.
_InvalidArgsException :: AsError a => Fold a ServiceError
-- | 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.
_SerialConsoleAccessDisabledException :: AsError a => Fold a ServiceError
-- | The instance currently has 1 active serial console session. Only 1
-- session is supported at a time.
_SerialConsoleSessionLimitExceededException :: AsError a => Fold a ServiceError
-- | Unable to start a serial console session. Please try again.
_SerialConsoleSessionUnavailableException :: AsError a => Fold a ServiceError
-- | The service encountered an error. Follow the instructions in the error
-- message and try again.
_ServiceException :: AsError a => Fold a ServiceError
-- | 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.
_ThrottlingException :: AsError a => Fold a ServiceError
-- | Pushes an SSH public key to the specified EC2 instance. The key
-- remains for 60 seconds, which gives you 60 seconds to establish a
-- serial console connection to the instance using SSH. For more
-- information, see EC2 Serial Console in the Amazon EC2 User
-- Guide.
module Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey
-- | See: newSendSerialConsoleSSHPublicKey smart constructor.
data SendSerialConsoleSSHPublicKey
SendSerialConsoleSSHPublicKey' :: Maybe Natural -> Text -> Text -> SendSerialConsoleSSHPublicKey
-- | The serial port of the EC2 instance. Currently only port 0 is
-- supported.
--
-- Default: 0
[$sel:serialPort:SendSerialConsoleSSHPublicKey'] :: SendSerialConsoleSSHPublicKey -> Maybe Natural
-- | The ID of the EC2 instance.
[$sel:instanceId:SendSerialConsoleSSHPublicKey'] :: SendSerialConsoleSSHPublicKey -> Text
-- | 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.
[$sel:sSHPublicKey:SendSerialConsoleSSHPublicKey'] :: SendSerialConsoleSSHPublicKey -> Text
-- | 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.
newSendSerialConsoleSSHPublicKey :: Text -> Text -> SendSerialConsoleSSHPublicKey
-- | The serial port of the EC2 instance. Currently only port 0 is
-- supported.
--
-- Default: 0
sendSerialConsoleSSHPublicKey_serialPort :: Lens' SendSerialConsoleSSHPublicKey (Maybe Natural)
-- | The ID of the EC2 instance.
sendSerialConsoleSSHPublicKey_instanceId :: Lens' SendSerialConsoleSSHPublicKey Text
-- | 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.
sendSerialConsoleSSHPublicKey_sSHPublicKey :: Lens' SendSerialConsoleSSHPublicKey Text
-- | See: newSendSerialConsoleSSHPublicKeyResponse smart
-- constructor.
data SendSerialConsoleSSHPublicKeyResponse
SendSerialConsoleSSHPublicKeyResponse' :: Maybe Text -> Maybe Bool -> Int -> SendSerialConsoleSSHPublicKeyResponse
-- | The ID of the request. Please provide this ID when contacting AWS
-- Support for assistance.
[$sel:requestId:SendSerialConsoleSSHPublicKeyResponse'] :: SendSerialConsoleSSHPublicKeyResponse -> Maybe Text
-- | Is true if the request succeeds and an error otherwise.
[$sel:success:SendSerialConsoleSSHPublicKeyResponse'] :: SendSerialConsoleSSHPublicKeyResponse -> Maybe Bool
-- | The response's http status code.
[$sel:httpStatus:SendSerialConsoleSSHPublicKeyResponse'] :: SendSerialConsoleSSHPublicKeyResponse -> Int
-- | 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.
newSendSerialConsoleSSHPublicKeyResponse :: Int -> SendSerialConsoleSSHPublicKeyResponse
-- | The ID of the request. Please provide this ID when contacting AWS
-- Support for assistance.
sendSerialConsoleSSHPublicKeyResponse_requestId :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Text)
-- | Is true if the request succeeds and an error otherwise.
sendSerialConsoleSSHPublicKeyResponse_success :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Bool)
-- | The response's http status code.
sendSerialConsoleSSHPublicKeyResponse_httpStatus :: Lens' SendSerialConsoleSSHPublicKeyResponse Int
instance GHC.Generics.Generic Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance GHC.Show.Show Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance GHC.Read.Read Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance GHC.Classes.Eq Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance GHC.Generics.Generic Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKeyResponse
instance GHC.Show.Show Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKeyResponse
instance GHC.Read.Read Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKeyResponse
instance GHC.Classes.Eq Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKeyResponse
instance Amazonka.Types.AWSRequest Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance Control.DeepSeq.NFData Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKeyResponse
instance Data.Hashable.Class.Hashable Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance Control.DeepSeq.NFData Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance Amazonka.Data.Headers.ToHeaders Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance Amazonka.Data.Path.ToPath Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
instance Amazonka.Data.Query.ToQuery Amazonka.EC2InstanceConnect.SendSerialConsoleSSHPublicKey.SendSerialConsoleSSHPublicKey
-- | 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.
module Amazonka.EC2InstanceConnect.SendSSHPublicKey
-- | See: newSendSSHPublicKey smart constructor.
data SendSSHPublicKey
SendSSHPublicKey' :: Maybe Text -> Text -> Text -> Text -> SendSSHPublicKey
-- | The Availability Zone in which the EC2 instance was launched.
[$sel:availabilityZone:SendSSHPublicKey'] :: SendSSHPublicKey -> Maybe Text
-- | The ID of the EC2 instance.
[$sel:instanceId:SendSSHPublicKey'] :: SendSSHPublicKey -> Text
-- | The OS user on the EC2 instance for whom the key can be used to
-- authenticate.
[$sel:instanceOSUser:SendSSHPublicKey'] :: SendSSHPublicKey -> Text
-- | The public key material. To use the public key, you must have the
-- matching private key.
[$sel:sSHPublicKey:SendSSHPublicKey'] :: SendSSHPublicKey -> Text
-- | 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.
newSendSSHPublicKey :: Text -> Text -> Text -> SendSSHPublicKey
-- | The Availability Zone in which the EC2 instance was launched.
sendSSHPublicKey_availabilityZone :: Lens' SendSSHPublicKey (Maybe Text)
-- | The ID of the EC2 instance.
sendSSHPublicKey_instanceId :: Lens' SendSSHPublicKey Text
-- | The OS user on the EC2 instance for whom the key can be used to
-- authenticate.
sendSSHPublicKey_instanceOSUser :: Lens' SendSSHPublicKey Text
-- | The public key material. To use the public key, you must have the
-- matching private key.
sendSSHPublicKey_sSHPublicKey :: Lens' SendSSHPublicKey Text
-- | See: newSendSSHPublicKeyResponse smart constructor.
data SendSSHPublicKeyResponse
SendSSHPublicKeyResponse' :: Maybe Text -> Maybe Bool -> Int -> SendSSHPublicKeyResponse
-- | The ID of the request. Please provide this ID when contacting AWS
-- Support for assistance.
[$sel:requestId:SendSSHPublicKeyResponse'] :: SendSSHPublicKeyResponse -> Maybe Text
-- | Is true if the request succeeds and an error otherwise.
[$sel:success:SendSSHPublicKeyResponse'] :: SendSSHPublicKeyResponse -> Maybe Bool
-- | The response's http status code.
[$sel:httpStatus:SendSSHPublicKeyResponse'] :: SendSSHPublicKeyResponse -> Int
-- | 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.
newSendSSHPublicKeyResponse :: Int -> SendSSHPublicKeyResponse
-- | The ID of the request. Please provide this ID when contacting AWS
-- Support for assistance.
sendSSHPublicKeyResponse_requestId :: Lens' SendSSHPublicKeyResponse (Maybe Text)
-- | Is true if the request succeeds and an error otherwise.
sendSSHPublicKeyResponse_success :: Lens' SendSSHPublicKeyResponse (Maybe Bool)
-- | The response's http status code.
sendSSHPublicKeyResponse_httpStatus :: Lens' SendSSHPublicKeyResponse Int
instance GHC.Generics.Generic Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance GHC.Show.Show Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance GHC.Read.Read Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance GHC.Classes.Eq Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance GHC.Generics.Generic Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKeyResponse
instance GHC.Show.Show Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKeyResponse
instance GHC.Read.Read Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKeyResponse
instance GHC.Classes.Eq Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKeyResponse
instance Amazonka.Types.AWSRequest Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance Control.DeepSeq.NFData Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKeyResponse
instance Data.Hashable.Class.Hashable Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance Control.DeepSeq.NFData Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance Amazonka.Data.Headers.ToHeaders Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance Data.Aeson.Types.ToJSON.ToJSON Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance Amazonka.Data.Path.ToPath Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
instance Amazonka.Data.Query.ToQuery Amazonka.EC2InstanceConnect.SendSSHPublicKey.SendSSHPublicKey
module Amazonka.EC2InstanceConnect.Lens
-- | The Availability Zone in which the EC2 instance was launched.
sendSSHPublicKey_availabilityZone :: Lens' SendSSHPublicKey (Maybe Text)
-- | The ID of the EC2 instance.
sendSSHPublicKey_instanceId :: Lens' SendSSHPublicKey Text
-- | The OS user on the EC2 instance for whom the key can be used to
-- authenticate.
sendSSHPublicKey_instanceOSUser :: Lens' SendSSHPublicKey Text
-- | The public key material. To use the public key, you must have the
-- matching private key.
sendSSHPublicKey_sSHPublicKey :: Lens' SendSSHPublicKey Text
-- | The ID of the request. Please provide this ID when contacting AWS
-- Support for assistance.
sendSSHPublicKeyResponse_requestId :: Lens' SendSSHPublicKeyResponse (Maybe Text)
-- | Is true if the request succeeds and an error otherwise.
sendSSHPublicKeyResponse_success :: Lens' SendSSHPublicKeyResponse (Maybe Bool)
-- | The response's http status code.
sendSSHPublicKeyResponse_httpStatus :: Lens' SendSSHPublicKeyResponse Int
-- | The serial port of the EC2 instance. Currently only port 0 is
-- supported.
--
-- Default: 0
sendSerialConsoleSSHPublicKey_serialPort :: Lens' SendSerialConsoleSSHPublicKey (Maybe Natural)
-- | The ID of the EC2 instance.
sendSerialConsoleSSHPublicKey_instanceId :: Lens' SendSerialConsoleSSHPublicKey Text
-- | 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.
sendSerialConsoleSSHPublicKey_sSHPublicKey :: Lens' SendSerialConsoleSSHPublicKey Text
-- | The ID of the request. Please provide this ID when contacting AWS
-- Support for assistance.
sendSerialConsoleSSHPublicKeyResponse_requestId :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Text)
-- | Is true if the request succeeds and an error otherwise.
sendSerialConsoleSSHPublicKeyResponse_success :: Lens' SendSerialConsoleSSHPublicKeyResponse (Maybe Bool)
-- | The response's http status code.
sendSerialConsoleSSHPublicKeyResponse_httpStatus :: Lens' SendSerialConsoleSSHPublicKeyResponse Int
module Amazonka.EC2InstanceConnect.Waiters
-- | 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.
module Amazonka.EC2InstanceConnect
-- | API version 2018-04-02 of the Amazon EC2 Instance Connect SDK
-- configuration.
defaultService :: Service
-- | Either your AWS credentials are not valid or you do not have access to
-- the EC2 instance.
_AuthException :: AsError a => Fold a ServiceError
-- | The specified instance was not found.
_EC2InstanceNotFoundException :: AsError a => Fold a ServiceError
-- | 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.
_EC2InstanceStateInvalidException :: AsError a => Fold a ServiceError
-- | The instance type is not supported for connecting via the serial
-- console. Only Nitro instance types are currently supported.
_EC2InstanceTypeInvalidException :: AsError a => Fold a ServiceError
-- | The instance is currently unavailable. Wait a few minutes and try
-- again.
_EC2InstanceUnavailableException :: AsError a => Fold a ServiceError
-- | One of the parameters is not valid.
_InvalidArgsException :: AsError a => Fold a ServiceError
-- | 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.
_SerialConsoleAccessDisabledException :: AsError a => Fold a ServiceError
-- | The instance currently has 1 active serial console session. Only 1
-- session is supported at a time.
_SerialConsoleSessionLimitExceededException :: AsError a => Fold a ServiceError
-- | Unable to start a serial console session. Please try again.
_SerialConsoleSessionUnavailableException :: AsError a => Fold a ServiceError
-- | The service encountered an error. Follow the instructions in the error
-- message and try again.
_ServiceException :: AsError a => Fold a ServiceError
-- | 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.
_ThrottlingException :: AsError a => Fold a ServiceError
-- | See: newSendSSHPublicKey smart constructor.
data SendSSHPublicKey
SendSSHPublicKey' :: Maybe Text -> Text -> Text -> Text -> SendSSHPublicKey
-- | 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.
newSendSSHPublicKey :: Text -> Text -> Text -> SendSSHPublicKey
-- | See: newSendSSHPublicKeyResponse smart constructor.
data SendSSHPublicKeyResponse
SendSSHPublicKeyResponse' :: Maybe Text -> Maybe Bool -> Int -> SendSSHPublicKeyResponse
-- | 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.
newSendSSHPublicKeyResponse :: Int -> SendSSHPublicKeyResponse
-- | See: newSendSerialConsoleSSHPublicKey smart constructor.
data SendSerialConsoleSSHPublicKey
SendSerialConsoleSSHPublicKey' :: Maybe Natural -> Text -> Text -> SendSerialConsoleSSHPublicKey
-- | 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.
newSendSerialConsoleSSHPublicKey :: Text -> Text -> SendSerialConsoleSSHPublicKey
-- | See: newSendSerialConsoleSSHPublicKeyResponse smart
-- constructor.
data SendSerialConsoleSSHPublicKeyResponse
SendSerialConsoleSSHPublicKeyResponse' :: Maybe Text -> Maybe Bool -> Int -> SendSerialConsoleSSHPublicKeyResponse
-- | 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.
newSendSerialConsoleSSHPublicKeyResponse :: Int -> SendSerialConsoleSSHPublicKeyResponse