modify_vpc_tenancy¶
Operation¶
modify_vpc_tenancy
async
¶
modify_vpc_tenancy(input: ModifyVpcTenancyInput, plugins: list[Plugin] | None = None) -> ModifyVpcTenancyOutput
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.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ModifyVpcTenancyInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
ModifyVpcTenancyOutput
|
An instance of |
Input¶
ModifyVpcTenancyInput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVpcTenancyInput structure.
Attributes¶
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
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.
Output¶
ModifyVpcTenancyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for ModifyVpcTenancyOutput structure.