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 |
Associates an Amazon VPC with a private hosted zone.
To perform the association, the VPC and the private hosted zone must already exist. You can't convert a public hosted zone into a private hosted zone.
If you want to associate a VPC that was created by using one Amazon Web
Services account with a private hosted zone that was created by using a
different account, the Amazon Web Services account that created the
private hosted zone must first submit a
CreateVPCAssociationAuthorization
request. Then the account that
created the VPC must submit an AssociateVPCWithHostedZone
request.
Synopsis
- data AssociateVPCWithHostedZone = AssociateVPCWithHostedZone' {
- comment :: Maybe Text
- hostedZoneId :: ResourceId
- vpc :: VPC
- newAssociateVPCWithHostedZone :: ResourceId -> VPC -> AssociateVPCWithHostedZone
- associateVPCWithHostedZone_comment :: Lens' AssociateVPCWithHostedZone (Maybe Text)
- associateVPCWithHostedZone_hostedZoneId :: Lens' AssociateVPCWithHostedZone ResourceId
- associateVPCWithHostedZone_vpc :: Lens' AssociateVPCWithHostedZone VPC
- data AssociateVPCWithHostedZoneResponse = AssociateVPCWithHostedZoneResponse' {}
- newAssociateVPCWithHostedZoneResponse :: Int -> ChangeInfo -> AssociateVPCWithHostedZoneResponse
- associateVPCWithHostedZoneResponse_httpStatus :: Lens' AssociateVPCWithHostedZoneResponse Int
- associateVPCWithHostedZoneResponse_changeInfo :: Lens' AssociateVPCWithHostedZoneResponse ChangeInfo
Creating a Request
data AssociateVPCWithHostedZone Source #
A complex type that contains information about the request to associate a VPC with a private hosted zone.
See: newAssociateVPCWithHostedZone
smart constructor.
AssociateVPCWithHostedZone' | |
|
Instances
newAssociateVPCWithHostedZone Source #
Create a value of AssociateVPCWithHostedZone
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:comment:AssociateVPCWithHostedZone'
, associateVPCWithHostedZone_comment
- Optional: A comment about the association request.
$sel:hostedZoneId:AssociateVPCWithHostedZone'
, associateVPCWithHostedZone_hostedZoneId
- The ID of the private hosted zone that you want to associate an Amazon
VPC with.
Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.
$sel:vpc:AssociateVPCWithHostedZone'
, associateVPCWithHostedZone_vpc
- A complex type that contains information about the VPC that you want to
associate with a private hosted zone.
Request Lenses
associateVPCWithHostedZone_comment :: Lens' AssociateVPCWithHostedZone (Maybe Text) Source #
Optional: A comment about the association request.
associateVPCWithHostedZone_hostedZoneId :: Lens' AssociateVPCWithHostedZone ResourceId Source #
The ID of the private hosted zone that you want to associate an Amazon VPC with.
Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.
associateVPCWithHostedZone_vpc :: Lens' AssociateVPCWithHostedZone VPC Source #
A complex type that contains information about the VPC that you want to associate with a private hosted zone.
Destructuring the Response
data AssociateVPCWithHostedZoneResponse Source #
A complex type that contains the response information for the
AssociateVPCWithHostedZone
request.
See: newAssociateVPCWithHostedZoneResponse
smart constructor.
AssociateVPCWithHostedZoneResponse' | |
|
Instances
Eq AssociateVPCWithHostedZoneResponse Source # | |
Read AssociateVPCWithHostedZoneResponse Source # | |
Show AssociateVPCWithHostedZoneResponse Source # | |
Generic AssociateVPCWithHostedZoneResponse Source # | |
NFData AssociateVPCWithHostedZoneResponse Source # | |
Defined in Amazonka.Route53.AssociateVPCWithHostedZone rnf :: AssociateVPCWithHostedZoneResponse -> () # | |
type Rep AssociateVPCWithHostedZoneResponse Source # | |
Defined in Amazonka.Route53.AssociateVPCWithHostedZone type Rep AssociateVPCWithHostedZoneResponse = D1 ('MetaData "AssociateVPCWithHostedZoneResponse" "Amazonka.Route53.AssociateVPCWithHostedZone" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "AssociateVPCWithHostedZoneResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "changeInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ChangeInfo))) |
newAssociateVPCWithHostedZoneResponse Source #
Create a value of AssociateVPCWithHostedZoneResponse
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:AssociateVPCWithHostedZoneResponse'
, associateVPCWithHostedZoneResponse_httpStatus
- The response's http status code.
$sel:changeInfo:AssociateVPCWithHostedZoneResponse'
, associateVPCWithHostedZoneResponse_changeInfo
- A complex type that describes the changes made to your hosted zone.
Response Lenses
associateVPCWithHostedZoneResponse_httpStatus :: Lens' AssociateVPCWithHostedZoneResponse Int Source #
The response's http status code.
associateVPCWithHostedZoneResponse_changeInfo :: Lens' AssociateVPCWithHostedZoneResponse ChangeInfo Source #
A complex type that describes the changes made to your hosted zone.