Skip to content

/AWS1/CL_EC2=>MODIFYVPCTENANCY()

About ModifyVpcTenancy

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 EC2 User Guide.

Method Signature

IMPORTING

Required arguments:

IV_VPCID TYPE /AWS1/EC2VPCID /AWS1/EC2VPCID

The ID of the VPC.

IV_INSTANCETENANCY TYPE /AWS1/EC2VPCTENANCY /AWS1/EC2VPCTENANCY

The instance tenancy attribute for the VPC.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2MDFYVPCTENANCYRSLT /AWS1/CL_EC2MDFYVPCTENANCYRSLT