Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
Synopsis
- data GetSerialConsoleAccessStatus = GetSerialConsoleAccessStatus' {}
- newGetSerialConsoleAccessStatus :: GetSerialConsoleAccessStatus
- getSerialConsoleAccessStatus_dryRun :: Lens' GetSerialConsoleAccessStatus (Maybe Bool)
- data GetSerialConsoleAccessStatusResponse = GetSerialConsoleAccessStatusResponse' {}
- newGetSerialConsoleAccessStatusResponse :: Int -> GetSerialConsoleAccessStatusResponse
- getSerialConsoleAccessStatusResponse_serialConsoleAccessEnabled :: Lens' GetSerialConsoleAccessStatusResponse (Maybe Bool)
- getSerialConsoleAccessStatusResponse_httpStatus :: Lens' GetSerialConsoleAccessStatusResponse Int
Creating a Request
data GetSerialConsoleAccessStatus Source #
See: newGetSerialConsoleAccessStatus
smart constructor.
Instances
newGetSerialConsoleAccessStatus :: GetSerialConsoleAccessStatus Source #
Create a value of GetSerialConsoleAccessStatus
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:dryRun:GetSerialConsoleAccessStatus'
, getSerialConsoleAccessStatus_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
Request Lenses
getSerialConsoleAccessStatus_dryRun :: Lens' GetSerialConsoleAccessStatus (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
Destructuring the Response
data GetSerialConsoleAccessStatusResponse Source #
See: newGetSerialConsoleAccessStatusResponse
smart constructor.
GetSerialConsoleAccessStatusResponse' | |
|
Instances
Generic GetSerialConsoleAccessStatusResponse Source # | |
Read GetSerialConsoleAccessStatusResponse Source # | |
Show GetSerialConsoleAccessStatusResponse Source # | |
NFData GetSerialConsoleAccessStatusResponse Source # | |
Defined in Amazonka.EC2.GetSerialConsoleAccessStatus rnf :: GetSerialConsoleAccessStatusResponse -> () # | |
Eq GetSerialConsoleAccessStatusResponse Source # | |
type Rep GetSerialConsoleAccessStatusResponse Source # | |
Defined in Amazonka.EC2.GetSerialConsoleAccessStatus type Rep GetSerialConsoleAccessStatusResponse = D1 ('MetaData "GetSerialConsoleAccessStatusResponse" "Amazonka.EC2.GetSerialConsoleAccessStatus" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "GetSerialConsoleAccessStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serialConsoleAccessEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newGetSerialConsoleAccessStatusResponse Source #
Create a value of GetSerialConsoleAccessStatusResponse
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:serialConsoleAccessEnabled:GetSerialConsoleAccessStatusResponse'
, getSerialConsoleAccessStatusResponse_serialConsoleAccessEnabled
- If true
, access to the EC2 serial console of all instances is enabled
for your account. If false
, access to the EC2 serial console of all
instances is disabled for your account.
$sel:httpStatus:GetSerialConsoleAccessStatusResponse'
, getSerialConsoleAccessStatusResponse_httpStatus
- The response's http status code.
Response Lenses
getSerialConsoleAccessStatusResponse_serialConsoleAccessEnabled :: Lens' GetSerialConsoleAccessStatusResponse (Maybe Bool) Source #
If true
, access to the EC2 serial console of all instances is enabled
for your account. If false
, access to the EC2 serial console of all
instances is disabled for your account.
getSerialConsoleAccessStatusResponse_httpStatus :: Lens' GetSerialConsoleAccessStatusResponse Int Source #
The response's http status code.