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 |
Enables 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 EnableSerialConsoleAccess = EnableSerialConsoleAccess' {}
- newEnableSerialConsoleAccess :: EnableSerialConsoleAccess
- enableSerialConsoleAccess_dryRun :: Lens' EnableSerialConsoleAccess (Maybe Bool)
- data EnableSerialConsoleAccessResponse = EnableSerialConsoleAccessResponse' {}
- newEnableSerialConsoleAccessResponse :: Int -> EnableSerialConsoleAccessResponse
- enableSerialConsoleAccessResponse_serialConsoleAccessEnabled :: Lens' EnableSerialConsoleAccessResponse (Maybe Bool)
- enableSerialConsoleAccessResponse_httpStatus :: Lens' EnableSerialConsoleAccessResponse Int
Creating a Request
data EnableSerialConsoleAccess Source #
See: newEnableSerialConsoleAccess
smart constructor.
Instances
newEnableSerialConsoleAccess :: EnableSerialConsoleAccess Source #
Create a value of EnableSerialConsoleAccess
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:EnableSerialConsoleAccess'
, enableSerialConsoleAccess_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
enableSerialConsoleAccess_dryRun :: Lens' EnableSerialConsoleAccess (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 EnableSerialConsoleAccessResponse Source #
See: newEnableSerialConsoleAccessResponse
smart constructor.
EnableSerialConsoleAccessResponse' | |
|
Instances
Generic EnableSerialConsoleAccessResponse Source # | |
Read EnableSerialConsoleAccessResponse Source # | |
Show EnableSerialConsoleAccessResponse Source # | |
Defined in Amazonka.EC2.EnableSerialConsoleAccess | |
NFData EnableSerialConsoleAccessResponse Source # | |
Defined in Amazonka.EC2.EnableSerialConsoleAccess rnf :: EnableSerialConsoleAccessResponse -> () # | |
Eq EnableSerialConsoleAccessResponse Source # | |
type Rep EnableSerialConsoleAccessResponse Source # | |
Defined in Amazonka.EC2.EnableSerialConsoleAccess type Rep EnableSerialConsoleAccessResponse = D1 ('MetaData "EnableSerialConsoleAccessResponse" "Amazonka.EC2.EnableSerialConsoleAccess" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableSerialConsoleAccessResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "serialConsoleAccessEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newEnableSerialConsoleAccessResponse Source #
Create a value of EnableSerialConsoleAccessResponse
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:EnableSerialConsoleAccessResponse'
, enableSerialConsoleAccessResponse_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:EnableSerialConsoleAccessResponse'
, enableSerialConsoleAccessResponse_httpStatus
- The response's http status code.
Response Lenses
enableSerialConsoleAccessResponse_serialConsoleAccessEnabled :: Lens' EnableSerialConsoleAccessResponse (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.
enableSerialConsoleAccessResponse_httpStatus :: Lens' EnableSerialConsoleAccessResponse Int Source #
The response's http status code.