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

Description

Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data ModifyVpcTenancy Source #

See: newModifyVpcTenancy smart constructor.

Constructors

ModifyVpcTenancy' 

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.

  • vpcId :: Text

    The ID of the VPC.

  • instanceTenancy :: VpcTenancy

    The instance tenancy attribute for the VPC.

Instances

Instances details
ToHeaders ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

ToPath ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

ToQuery ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

AWSRequest ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Associated Types

type AWSResponse ModifyVpcTenancy #

Generic ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Associated Types

type Rep ModifyVpcTenancy :: Type -> Type #

Read ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Show ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

NFData ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Methods

rnf :: ModifyVpcTenancy -> () #

Eq ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Hashable ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

type AWSResponse ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

type Rep ModifyVpcTenancy Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

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

newModifyVpcTenancy Source #

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

ModifyVpcTenancy, modifyVpcTenancy_vpcId - The ID of the VPC.

ModifyVpcTenancy, modifyVpcTenancy_instanceTenancy - The instance tenancy attribute for the VPC.

Request Lenses

modifyVpcTenancy_dryRun :: Lens' ModifyVpcTenancy (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.

modifyVpcTenancy_instanceTenancy :: Lens' ModifyVpcTenancy VpcTenancy Source #

The instance tenancy attribute for the VPC.

Destructuring the Response

data ModifyVpcTenancyResponse Source #

See: newModifyVpcTenancyResponse smart constructor.

Constructors

ModifyVpcTenancyResponse' 

Fields

Instances

Instances details
Generic ModifyVpcTenancyResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Associated Types

type Rep ModifyVpcTenancyResponse :: Type -> Type #

Read ModifyVpcTenancyResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Show ModifyVpcTenancyResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

NFData ModifyVpcTenancyResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

Eq ModifyVpcTenancyResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

type Rep ModifyVpcTenancyResponse Source # 
Instance details

Defined in Amazonka.EC2.ModifyVpcTenancy

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

newModifyVpcTenancyResponse Source #

Create a value of ModifyVpcTenancyResponse 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:returnValue:ModifyVpcTenancyResponse', modifyVpcTenancyResponse_returnValue - Returns true if the request succeeds; otherwise, returns an error.

$sel:httpStatus:ModifyVpcTenancyResponse', modifyVpcTenancyResponse_httpStatus - The response's http status code.

Response Lenses

modifyVpcTenancyResponse_returnValue :: Lens' ModifyVpcTenancyResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, returns an error.