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

Description

Changes the opt-in status of the Local Zone and Wavelength Zone group for your account.

Use DescribeAvailabilityZones to view the value for GroupName.

Synopsis

Creating a Request

data ModifyAvailabilityZoneGroup Source #

See: newModifyAvailabilityZoneGroup smart constructor.

Constructors

ModifyAvailabilityZoneGroup' 

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.

  • groupName :: Text

    The name of the Availability Zone group, Local Zone group, or Wavelength Zone group.

  • optInStatus :: ModifyAvailabilityZoneOptInStatus

    Indicates whether you are opted in to the Local Zone group or Wavelength Zone group. The only valid value is opted-in. You must contact Amazon Web Services Support to opt out of a Local Zone or Wavelength Zone group.

Instances

Instances details
ToHeaders ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

ToPath ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

ToQuery ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

AWSRequest ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Generic ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Associated Types

type Rep ModifyAvailabilityZoneGroup :: Type -> Type #

Read ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Show ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

NFData ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Eq ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Hashable ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

type AWSResponse ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

type Rep ModifyAvailabilityZoneGroup Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

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

newModifyAvailabilityZoneGroup Source #

Create a value of ModifyAvailabilityZoneGroup 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:ModifyAvailabilityZoneGroup', modifyAvailabilityZoneGroup_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.

ModifyAvailabilityZoneGroup, modifyAvailabilityZoneGroup_groupName - The name of the Availability Zone group, Local Zone group, or Wavelength Zone group.

ModifyAvailabilityZoneGroup, modifyAvailabilityZoneGroup_optInStatus - Indicates whether you are opted in to the Local Zone group or Wavelength Zone group. The only valid value is opted-in. You must contact Amazon Web Services Support to opt out of a Local Zone or Wavelength Zone group.

Request Lenses

modifyAvailabilityZoneGroup_dryRun :: Lens' ModifyAvailabilityZoneGroup (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.

modifyAvailabilityZoneGroup_groupName :: Lens' ModifyAvailabilityZoneGroup Text Source #

The name of the Availability Zone group, Local Zone group, or Wavelength Zone group.

modifyAvailabilityZoneGroup_optInStatus :: Lens' ModifyAvailabilityZoneGroup ModifyAvailabilityZoneOptInStatus Source #

Indicates whether you are opted in to the Local Zone group or Wavelength Zone group. The only valid value is opted-in. You must contact Amazon Web Services Support to opt out of a Local Zone or Wavelength Zone group.

Destructuring the Response

data ModifyAvailabilityZoneGroupResponse Source #

Constructors

ModifyAvailabilityZoneGroupResponse' 

Fields

Instances

Instances details
Generic ModifyAvailabilityZoneGroupResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Read ModifyAvailabilityZoneGroupResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Show ModifyAvailabilityZoneGroupResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

NFData ModifyAvailabilityZoneGroupResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

Eq ModifyAvailabilityZoneGroupResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

type Rep ModifyAvailabilityZoneGroupResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyAvailabilityZoneGroup

type Rep ModifyAvailabilityZoneGroupResponse = D1 ('MetaData "ModifyAvailabilityZoneGroupResponse" "Amazonka.EC2.ModifyAvailabilityZoneGroup" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyAvailabilityZoneGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newModifyAvailabilityZoneGroupResponse Source #

Create a value of ModifyAvailabilityZoneGroupResponse 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:return':ModifyAvailabilityZoneGroupResponse', modifyAvailabilityZoneGroupResponse_return - Is true if the request succeeds, and an error otherwise.

$sel:httpStatus:ModifyAvailabilityZoneGroupResponse', modifyAvailabilityZoneGroupResponse_httpStatus - The response's http status code.

Response Lenses

modifyAvailabilityZoneGroupResponse_return :: Lens' ModifyAvailabilityZoneGroupResponse (Maybe Bool) Source #

Is true if the request succeeds, and an error otherwise.