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 |
Authorizes the AWS account that created a specified VPC to submit an AssociateVPCWithHostedZone
request to associate the VPC with a specified hosted zone that was created by a different account. To submit a CreateVPCAssociationAuthorization
request, you must use the account that created the hosted zone. After you authorize the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone
request.
Send a POST
request to the 2013-04-01hostedzone/hosted zone ID /authorizevpcassociation
resource. The request body must include a document with a CreateVPCAssociationAuthorizationRequest
element. The response contains information about the authorization.
- createVPCAssociationAuthorization :: ResourceId -> VPC -> CreateVPCAssociationAuthorization
- data CreateVPCAssociationAuthorization
- cvaaHostedZoneId :: Lens' CreateVPCAssociationAuthorization ResourceId
- cvaaVPC :: Lens' CreateVPCAssociationAuthorization VPC
- createVPCAssociationAuthorizationResponse :: Int -> ResourceId -> VPC -> CreateVPCAssociationAuthorizationResponse
- data CreateVPCAssociationAuthorizationResponse
- cvaarsResponseStatus :: Lens' CreateVPCAssociationAuthorizationResponse Int
- cvaarsHostedZoneId :: Lens' CreateVPCAssociationAuthorizationResponse ResourceId
- cvaarsVPC :: Lens' CreateVPCAssociationAuthorizationResponse VPC
Creating a Request
createVPCAssociationAuthorization Source #
Creates a value of CreateVPCAssociationAuthorization
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cvaaHostedZoneId
- The ID of the private hosted zone that you want to authorize associating a VPC with.cvaaVPC
- A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.
data CreateVPCAssociationAuthorization Source #
A complex type that contains information about the request to authorize associating a VPC with your private hosted zone. Authorization is only required when a private hosted zone and a VPC were created by using different accounts.
See: createVPCAssociationAuthorization
smart constructor.
Request Lenses
cvaaHostedZoneId :: Lens' CreateVPCAssociationAuthorization ResourceId Source #
The ID of the private hosted zone that you want to authorize associating a VPC with.
cvaaVPC :: Lens' CreateVPCAssociationAuthorization VPC Source #
A complex type that contains the VPC ID and region for the VPC that you want to authorize associating with your hosted zone.
Destructuring the Response
createVPCAssociationAuthorizationResponse Source #
Creates a value of CreateVPCAssociationAuthorizationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cvaarsResponseStatus
- -- | The response status code.cvaarsHostedZoneId
- The ID of the hosted zone that you authorized associating a VPC with.cvaarsVPC
- The VPC that you authorized associating with a hosted zone.
data CreateVPCAssociationAuthorizationResponse Source #
A complex type that contains the response information from a CreateVPCAssociationAuthorization request.
See: createVPCAssociationAuthorizationResponse
smart constructor.
Response Lenses
cvaarsResponseStatus :: Lens' CreateVPCAssociationAuthorizationResponse Int Source #
- - | The response status code.
cvaarsHostedZoneId :: Lens' CreateVPCAssociationAuthorizationResponse ResourceId Source #
The ID of the hosted zone that you authorized associating a VPC with.