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 |
Disables access to the EC2 serial console of all instances for your account. 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 DisableSerialConsoleAccess = DisableSerialConsoleAccess' {}
- newDisableSerialConsoleAccess :: DisableSerialConsoleAccess
- disableSerialConsoleAccess_dryRun :: Lens' DisableSerialConsoleAccess (Maybe Bool)
- data DisableSerialConsoleAccessResponse = DisableSerialConsoleAccessResponse' {}
- newDisableSerialConsoleAccessResponse :: Int -> DisableSerialConsoleAccessResponse
- disableSerialConsoleAccessResponse_serialConsoleAccessEnabled :: Lens' DisableSerialConsoleAccessResponse (Maybe Bool)
- disableSerialConsoleAccessResponse_httpStatus :: Lens' DisableSerialConsoleAccessResponse Int
Creating a Request
data DisableSerialConsoleAccess Source #
See: newDisableSerialConsoleAccess
smart constructor.
Instances
newDisableSerialConsoleAccess :: DisableSerialConsoleAccess Source #
Create a value of DisableSerialConsoleAccess
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:DisableSerialConsoleAccess'
, disableSerialConsoleAccess_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
disableSerialConsoleAccess_dryRun :: Lens' DisableSerialConsoleAccess (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 DisableSerialConsoleAccessResponse Source #
See: newDisableSerialConsoleAccessResponse
smart constructor.
DisableSerialConsoleAccessResponse' | |
|
Instances
Generic DisableSerialConsoleAccessResponse Source # | |
Read DisableSerialConsoleAccessResponse Source # | |
Show DisableSerialConsoleAccessResponse Source # | |
NFData DisableSerialConsoleAccessResponse Source # | |
Defined in Amazonka.EC2.DisableSerialConsoleAccess rnf :: DisableSerialConsoleAccessResponse -> () # | |
Eq DisableSerialConsoleAccessResponse Source # | |
type Rep DisableSerialConsoleAccessResponse Source # | |
Defined in Amazonka.EC2.DisableSerialConsoleAccess type Rep DisableSerialConsoleAccessResponse = D1 ('MetaData "DisableSerialConsoleAccessResponse" "Amazonka.EC2.DisableSerialConsoleAccess" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DisableSerialConsoleAccessResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serialConsoleAccessEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDisableSerialConsoleAccessResponse Source #
Create a value of DisableSerialConsoleAccessResponse
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:DisableSerialConsoleAccessResponse'
, disableSerialConsoleAccessResponse_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:DisableSerialConsoleAccessResponse'
, disableSerialConsoleAccessResponse_httpStatus
- The response's http status code.
Response Lenses
disableSerialConsoleAccessResponse_serialConsoleAccessEnabled :: Lens' DisableSerialConsoleAccessResponse (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.
disableSerialConsoleAccessResponse_httpStatus :: Lens' DisableSerialConsoleAccessResponse Int Source #
The response's http status code.