Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Associates an Amazon VPC with a private hosted zone.
The VPC and the hosted zone must already exist, and you must have created a private hosted zone. You cannot convert a public hosted zone into a private hosted zone.
Send a POST
request to the '/Amazon Route 53 API version/hostedzone/hosted zone ID/associatevpc' resource. The request body must include an XML document with a AssociateVPCWithHostedZoneRequest
element. The response returns the AssociateVPCWithHostedZoneResponse
element.
If you used different accounts to create the hosted zone and to create the Amazon VPCs that you want to associate with the hosted zone, we need to update account permissions for you. For more information, see Associating Amazon VPCs and Private Hosted Zones That You Create with Different AWS Accounts in the Amazon Route 53 Developer Guide.
- associateVPCWithHostedZone :: Text -> VPC -> AssociateVPCWithHostedZone
- data AssociateVPCWithHostedZone
- avwhzComment :: Lens' AssociateVPCWithHostedZone (Maybe Text)
- avwhzHostedZoneId :: Lens' AssociateVPCWithHostedZone Text
- avwhzVPC :: Lens' AssociateVPCWithHostedZone VPC
- associateVPCWithHostedZoneResponse :: Int -> ChangeInfo -> AssociateVPCWithHostedZoneResponse
- data AssociateVPCWithHostedZoneResponse
- avwhzrsResponseStatus :: Lens' AssociateVPCWithHostedZoneResponse Int
- avwhzrsChangeInfo :: Lens' AssociateVPCWithHostedZoneResponse ChangeInfo
Creating a Request
associateVPCWithHostedZone Source #
Creates a value of AssociateVPCWithHostedZone
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AssociateVPCWithHostedZone Source #
A complex type that contains information about the VPC and the hosted zone that you want to associate.
See: associateVPCWithHostedZone
smart constructor.
Request Lenses
avwhzComment :: Lens' AssociateVPCWithHostedZone (Maybe Text) Source #
Optional: A comment about the association request.
avwhzHostedZoneId :: Lens' AssociateVPCWithHostedZone Text Source #
The ID of the hosted zone you want to associate your VPC with.
Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.
avwhzVPC :: Lens' AssociateVPCWithHostedZone VPC Source #
A complex type containing information about the Amazon VPC that you're associating with the specified hosted zone.
Destructuring the Response
associateVPCWithHostedZoneResponse Source #
Creates a value of AssociateVPCWithHostedZoneResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AssociateVPCWithHostedZoneResponse Source #
A complex type that contains the response information for the hosted zone.
See: associateVPCWithHostedZoneResponse
smart constructor.
Response Lenses
avwhzrsResponseStatus :: Lens' AssociateVPCWithHostedZoneResponse Int Source #
The response status code.
avwhzrsChangeInfo :: Lens' AssociateVPCWithHostedZoneResponse ChangeInfo Source #
A complex type that describes the changes made to your hosted zone.