Copyright | (c) 2013-2021 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 |
Authorizes the Amazon Web Services 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.
If you want to associate multiple VPCs that you created by using one account with a hosted zone that you created by using a different account, you must submit one authorization request for each VPC.
Synopsis
- data CreateVPCAssociationAuthorization = CreateVPCAssociationAuthorization' {
- hostedZoneId :: ResourceId
- vpc :: VPC
- newCreateVPCAssociationAuthorization :: ResourceId -> VPC -> CreateVPCAssociationAuthorization
- createVPCAssociationAuthorization_hostedZoneId :: Lens' CreateVPCAssociationAuthorization ResourceId
- createVPCAssociationAuthorization_vpc :: Lens' CreateVPCAssociationAuthorization VPC
- data CreateVPCAssociationAuthorizationResponse = CreateVPCAssociationAuthorizationResponse' {
- httpStatus :: Int
- hostedZoneId :: ResourceId
- vpc :: VPC
- newCreateVPCAssociationAuthorizationResponse :: Int -> ResourceId -> VPC -> CreateVPCAssociationAuthorizationResponse
- createVPCAssociationAuthorizationResponse_httpStatus :: Lens' CreateVPCAssociationAuthorizationResponse Int
- createVPCAssociationAuthorizationResponse_hostedZoneId :: Lens' CreateVPCAssociationAuthorizationResponse ResourceId
- createVPCAssociationAuthorizationResponse_vpc :: Lens' CreateVPCAssociationAuthorizationResponse VPC
Creating a Request
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: newCreateVPCAssociationAuthorization
smart constructor.
CreateVPCAssociationAuthorization' | |
|
Instances
newCreateVPCAssociationAuthorization Source #
Create a value of CreateVPCAssociationAuthorization
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:hostedZoneId:CreateVPCAssociationAuthorization'
, createVPCAssociationAuthorization_hostedZoneId
- The ID of the private hosted zone that you want to authorize associating
a VPC with.
$sel:vpc:CreateVPCAssociationAuthorization'
, createVPCAssociationAuthorization_vpc
- A complex type that contains the VPC ID and region for the VPC that you
want to authorize associating with your hosted zone.
Request Lenses
createVPCAssociationAuthorization_hostedZoneId :: Lens' CreateVPCAssociationAuthorization ResourceId Source #
The ID of the private hosted zone that you want to authorize associating a VPC with.
createVPCAssociationAuthorization_vpc :: 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
data CreateVPCAssociationAuthorizationResponse Source #
A complex type that contains the response information from a
CreateVPCAssociationAuthorization
request.
See: newCreateVPCAssociationAuthorizationResponse
smart constructor.
CreateVPCAssociationAuthorizationResponse' | |
|
Instances
newCreateVPCAssociationAuthorizationResponse Source #
Create a value of CreateVPCAssociationAuthorizationResponse
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:httpStatus:CreateVPCAssociationAuthorizationResponse'
, createVPCAssociationAuthorizationResponse_httpStatus
- The response's http status code.
$sel:hostedZoneId:CreateVPCAssociationAuthorization'
, createVPCAssociationAuthorizationResponse_hostedZoneId
- The ID of the hosted zone that you authorized associating a VPC with.
$sel:vpc:CreateVPCAssociationAuthorization'
, createVPCAssociationAuthorizationResponse_vpc
- The VPC that you authorized associating with a hosted zone.
Response Lenses
createVPCAssociationAuthorizationResponse_httpStatus :: Lens' CreateVPCAssociationAuthorizationResponse Int Source #
The response's http status code.
createVPCAssociationAuthorizationResponse_hostedZoneId :: Lens' CreateVPCAssociationAuthorizationResponse ResourceId Source #
The ID of the hosted zone that you authorized associating a VPC with.
createVPCAssociationAuthorizationResponse_vpc :: Lens' CreateVPCAssociationAuthorizationResponse VPC Source #
The VPC that you authorized associating with a hosted zone.