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.DisableSerialConsoleAccess

Description

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

Creating a Request

data DisableSerialConsoleAccess Source #

See: newDisableSerialConsoleAccess smart constructor.

Constructors

DisableSerialConsoleAccess' 

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 DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

ToPath DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

ToQuery DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

AWSRequest DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Generic DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Associated Types

type Rep DisableSerialConsoleAccess :: Type -> Type #

Read DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Show DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

NFData DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Eq DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Hashable DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

type AWSResponse DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

type Rep DisableSerialConsoleAccess Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

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

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 #

Constructors

DisableSerialConsoleAccessResponse' 

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 DisableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Associated Types

type Rep DisableSerialConsoleAccessResponse :: Type -> Type #

Read DisableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Show DisableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

NFData DisableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

Eq DisableSerialConsoleAccessResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableSerialConsoleAccess

type Rep DisableSerialConsoleAccessResponse Source # 
Instance details

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.