Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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 about Dedicated Instances, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide .
Synopsis
- modifyVPCTenancy :: Text -> VPCTenancy -> ModifyVPCTenancy
- data ModifyVPCTenancy
- mvtDryRun :: Lens' ModifyVPCTenancy (Maybe Bool)
- mvtVPCId :: Lens' ModifyVPCTenancy Text
- mvtInstanceTenancy :: Lens' ModifyVPCTenancy VPCTenancy
- modifyVPCTenancyResponse :: Int -> ModifyVPCTenancyResponse
- data ModifyVPCTenancyResponse
- mvtrsReturnValue :: Lens' ModifyVPCTenancyResponse (Maybe Bool)
- mvtrsResponseStatus :: Lens' ModifyVPCTenancyResponse Int
Creating a Request
Creates a value of ModifyVPCTenancy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mvtDryRun
- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.mvtVPCId
- The ID of the VPC.mvtInstanceTenancy
- The instance tenancy attribute for the VPC.
data ModifyVPCTenancy Source #
Contains the parameters for ModifyVpcTenancy.
See: modifyVPCTenancy
smart constructor.
Instances
Request Lenses
mvtDryRun :: Lens' ModifyVPCTenancy (Maybe Bool) Source #
Checks whether you have the required permissions for the operation, 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
.
mvtInstanceTenancy :: Lens' ModifyVPCTenancy VPCTenancy Source #
The instance tenancy attribute for the VPC.
Destructuring the Response
modifyVPCTenancyResponse Source #
Creates a value of ModifyVPCTenancyResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mvtrsReturnValue
- Returnstrue
if the request succeeds; otherwise, returns an error.mvtrsResponseStatus
- -- | The response status code.
data ModifyVPCTenancyResponse Source #
Contains the output of ModifyVpcTenancy.
See: modifyVPCTenancyResponse
smart constructor.
Instances
Response Lenses
mvtrsReturnValue :: Lens' ModifyVPCTenancyResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, returns an error.
mvtrsResponseStatus :: Lens' ModifyVPCTenancyResponse Int Source #
- - | The response status code.