Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.
The get instance access details
operation supports tag-based access
control via resource tags applied to the resource identified by
instance name
. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data GetInstanceAccessDetails = GetInstanceAccessDetails' {}
- newGetInstanceAccessDetails :: Text -> GetInstanceAccessDetails
- getInstanceAccessDetails_protocol :: Lens' GetInstanceAccessDetails (Maybe InstanceAccessProtocol)
- getInstanceAccessDetails_instanceName :: Lens' GetInstanceAccessDetails Text
- data GetInstanceAccessDetailsResponse = GetInstanceAccessDetailsResponse' {}
- newGetInstanceAccessDetailsResponse :: Int -> GetInstanceAccessDetailsResponse
- getInstanceAccessDetailsResponse_accessDetails :: Lens' GetInstanceAccessDetailsResponse (Maybe InstanceAccessDetails)
- getInstanceAccessDetailsResponse_httpStatus :: Lens' GetInstanceAccessDetailsResponse Int
Creating a Request
data GetInstanceAccessDetails Source #
See: newGetInstanceAccessDetails
smart constructor.
GetInstanceAccessDetails' | |
|
Instances
newGetInstanceAccessDetails Source #
Create a value of GetInstanceAccessDetails
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:protocol:GetInstanceAccessDetails'
, getInstanceAccessDetails_protocol
- The protocol to use to connect to your instance. Defaults to ssh
.
$sel:instanceName:GetInstanceAccessDetails'
, getInstanceAccessDetails_instanceName
- The name of the instance to access.
Request Lenses
getInstanceAccessDetails_protocol :: Lens' GetInstanceAccessDetails (Maybe InstanceAccessProtocol) Source #
The protocol to use to connect to your instance. Defaults to ssh
.
getInstanceAccessDetails_instanceName :: Lens' GetInstanceAccessDetails Text Source #
The name of the instance to access.
Destructuring the Response
data GetInstanceAccessDetailsResponse Source #
See: newGetInstanceAccessDetailsResponse
smart constructor.
GetInstanceAccessDetailsResponse' | |
|
Instances
Eq GetInstanceAccessDetailsResponse Source # | |
Read GetInstanceAccessDetailsResponse Source # | |
Show GetInstanceAccessDetailsResponse Source # | |
Generic GetInstanceAccessDetailsResponse Source # | |
NFData GetInstanceAccessDetailsResponse Source # | |
Defined in Amazonka.Lightsail.GetInstanceAccessDetails rnf :: GetInstanceAccessDetailsResponse -> () # | |
type Rep GetInstanceAccessDetailsResponse Source # | |
Defined in Amazonka.Lightsail.GetInstanceAccessDetails type Rep GetInstanceAccessDetailsResponse = D1 ('MetaData "GetInstanceAccessDetailsResponse" "Amazonka.Lightsail.GetInstanceAccessDetails" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetInstanceAccessDetailsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessDetails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceAccessDetails)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetInstanceAccessDetailsResponse Source #
Create a value of GetInstanceAccessDetailsResponse
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:accessDetails:GetInstanceAccessDetailsResponse'
, getInstanceAccessDetailsResponse_accessDetails
- An array of key-value pairs containing information about a get instance
access request.
$sel:httpStatus:GetInstanceAccessDetailsResponse'
, getInstanceAccessDetailsResponse_httpStatus
- The response's http status code.
Response Lenses
getInstanceAccessDetailsResponse_accessDetails :: Lens' GetInstanceAccessDetailsResponse (Maybe InstanceAccessDetails) Source #
An array of key-value pairs containing information about a get instance access request.
getInstanceAccessDetailsResponse_httpStatus :: Lens' GetInstanceAccessDetailsResponse Int Source #
The response's http status code.