amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data EnableSerialConsoleAccess Source #

See: newEnableSerialConsoleAccess smart constructor.

Constructors

EnableSerialConsoleAccess' 

Fields

  • dryRun :: Maybe Bool

    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.

Instances

Instances details
ToHeaders EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

ToPath EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

ToQuery EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

AWSRequest EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Generic EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Associated Types

type Rep EnableSerialConsoleAccess :: Type -> Type #

Read EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Show EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

NFData EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Eq EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Hashable EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

type AWSResponse EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

type Rep EnableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

type Rep EnableSerialConsoleAccess = D1 ('MetaData "EnableSerialConsoleAccess" "Amazonka.EC2.EnableSerialConsoleAccess" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableSerialConsoleAccess'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

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

  • serialConsoleAccessEnabled :: Maybe Bool

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic EnableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Associated Types

type Rep EnableSerialConsoleAccessResponse :: Type -> Type #

Read EnableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Show EnableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

NFData EnableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

Eq EnableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableSerialConsoleAccess

type Rep EnableSerialConsoleAccessResponse Source # 
Instance details

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.