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 |
Amazonka.EC2.EnableSerialConsoleAccess
Description
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.
Constructors
EnableSerialConsoleAccess' | |
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.
Constructors
EnableSerialConsoleAccessResponse' | |
Fields
|
Instances
newEnableSerialConsoleAccessResponse Source #
Arguments
:: Int | |
-> EnableSerialConsoleAccessResponse |
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.