Copyright | (c) 2013-2015 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 |
This action associates a VPC with an hosted zone.
To associate a VPC with an hosted zone, send a POST
request to the
'2013-04-01/hostedzone/hosted zone ID/associatevpc' resource. The
request body must include an XML document with a
AssociateVPCWithHostedZoneRequest
element. The response returns the
AssociateVPCWithHostedZoneResponse
element that contains ChangeInfo
for you to track the progress of the AssociateVPCWithHostedZoneRequest
you made. See GetChange
operation for how to track the progress of
your change.
See: AWS API Reference for AssociateVPCWithHostedZone.
- 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 request to associate a VPC with an hosted zone.
See: associateVPCWithHostedZone
smart constructor.
Request Lenses
avwhzComment :: Lens' AssociateVPCWithHostedZone (Maybe Text) Source
Optional: Any comments you want to include about a
AssociateVPCWithHostedZoneRequest
.
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
The VPC that you want your hosted zone to be associated with.
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 containing the response information for the request.
See: associateVPCWithHostedZoneResponse
smart constructor.
Response Lenses
avwhzrsResponseStatus :: Lens' AssociateVPCWithHostedZoneResponse Int Source
The response status code.
avwhzrsChangeInfo :: Lens' AssociateVPCWithHostedZoneResponse ChangeInfo Source
A complex type that contains the ID, the status, and the date and time
of your AssociateVPCWithHostedZoneRequest
.