Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ModifyVpcTenancy = ModifyVpcTenancy' {
- dryRun :: Maybe Bool
- vpcId :: Text
- instanceTenancy :: VpcTenancy
- newModifyVpcTenancy :: Text -> VpcTenancy -> ModifyVpcTenancy
- modifyVpcTenancy_dryRun :: Lens' ModifyVpcTenancy (Maybe Bool)
- modifyVpcTenancy_vpcId :: Lens' ModifyVpcTenancy Text
- modifyVpcTenancy_instanceTenancy :: Lens' ModifyVpcTenancy VpcTenancy
- data ModifyVpcTenancyResponse = ModifyVpcTenancyResponse' {
- returnValue :: Maybe Bool
- httpStatus :: Int
- newModifyVpcTenancyResponse :: Int -> ModifyVpcTenancyResponse
- modifyVpcTenancyResponse_returnValue :: Lens' ModifyVpcTenancyResponse (Maybe Bool)
- modifyVpcTenancyResponse_httpStatus :: Lens' ModifyVpcTenancyResponse Int
Creating a Request
data ModifyVpcTenancy Source #
See: newModifyVpcTenancy
smart constructor.
ModifyVpcTenancy' | |
|
Instances
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_vpcId :: Lens' ModifyVpcTenancy Text Source #
The ID of the VPC.
modifyVpcTenancy_instanceTenancy :: Lens' ModifyVpcTenancy VpcTenancy Source #
The instance tenancy attribute for the VPC.
Destructuring the Response
data ModifyVpcTenancyResponse Source #
See: newModifyVpcTenancyResponse
smart constructor.
ModifyVpcTenancyResponse' | |
|
Instances
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.
modifyVpcTenancyResponse_httpStatus :: Lens' ModifyVpcTenancyResponse Int Source #
The response's http status code.