Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed at /56.
You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR block.
For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and subnet sizing in the Amazon Virtual Private Cloud User Guide.
Synopsis
- data AssociateVpcCidrBlock = AssociateVpcCidrBlock' {}
- newAssociateVpcCidrBlock :: Text -> AssociateVpcCidrBlock
- associateVpcCidrBlock_amazonProvidedIpv6CidrBlock :: Lens' AssociateVpcCidrBlock (Maybe Bool)
- associateVpcCidrBlock_cidrBlock :: Lens' AssociateVpcCidrBlock (Maybe Text)
- associateVpcCidrBlock_ipv4IpamPoolId :: Lens' AssociateVpcCidrBlock (Maybe Text)
- associateVpcCidrBlock_ipv4NetmaskLength :: Lens' AssociateVpcCidrBlock (Maybe Int)
- associateVpcCidrBlock_ipv6CidrBlock :: Lens' AssociateVpcCidrBlock (Maybe Text)
- associateVpcCidrBlock_ipv6CidrBlockNetworkBorderGroup :: Lens' AssociateVpcCidrBlock (Maybe Text)
- associateVpcCidrBlock_ipv6IpamPoolId :: Lens' AssociateVpcCidrBlock (Maybe Text)
- associateVpcCidrBlock_ipv6NetmaskLength :: Lens' AssociateVpcCidrBlock (Maybe Int)
- associateVpcCidrBlock_ipv6Pool :: Lens' AssociateVpcCidrBlock (Maybe Text)
- associateVpcCidrBlock_vpcId :: Lens' AssociateVpcCidrBlock Text
- data AssociateVpcCidrBlockResponse = AssociateVpcCidrBlockResponse' {}
- newAssociateVpcCidrBlockResponse :: Int -> AssociateVpcCidrBlockResponse
- associateVpcCidrBlockResponse_cidrBlockAssociation :: Lens' AssociateVpcCidrBlockResponse (Maybe VpcCidrBlockAssociation)
- associateVpcCidrBlockResponse_ipv6CidrBlockAssociation :: Lens' AssociateVpcCidrBlockResponse (Maybe VpcIpv6CidrBlockAssociation)
- associateVpcCidrBlockResponse_vpcId :: Lens' AssociateVpcCidrBlockResponse (Maybe Text)
- associateVpcCidrBlockResponse_httpStatus :: Lens' AssociateVpcCidrBlockResponse Int
Creating a Request
data AssociateVpcCidrBlock Source #
See: newAssociateVpcCidrBlock
smart constructor.
AssociateVpcCidrBlock' | |
|
Instances
newAssociateVpcCidrBlock Source #
Create a value of AssociateVpcCidrBlock
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:amazonProvidedIpv6CidrBlock:AssociateVpcCidrBlock'
, associateVpcCidrBlock_amazonProvidedIpv6CidrBlock
- Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
for the VPC. You cannot specify the range of IPv6 addresses, or the size
of the CIDR block.
AssociateVpcCidrBlock
, associateVpcCidrBlock_cidrBlock
- An IPv4 CIDR block to associate with the VPC.
$sel:ipv4IpamPoolId:AssociateVpcCidrBlock'
, associateVpcCidrBlock_ipv4IpamPoolId
- Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more
information about Amazon VPC IP Address Manager (IPAM), see
What is IPAM?
in the Amazon VPC IPAM User Guide.
$sel:ipv4NetmaskLength:AssociateVpcCidrBlock'
, associateVpcCidrBlock_ipv4NetmaskLength
- The netmask length of the IPv4 CIDR you would like to associate from an
Amazon VPC IP Address Manager (IPAM) pool. For more information about
IPAM, see
What is IPAM?
in the Amazon VPC IPAM User Guide.
AssociateVpcCidrBlock
, associateVpcCidrBlock_ipv6CidrBlock
- An IPv6 CIDR block from the IPv6 address pool. You must also specify
Ipv6Pool
in the request.
To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
$sel:ipv6CidrBlockNetworkBorderGroup:AssociateVpcCidrBlock'
, associateVpcCidrBlock_ipv6CidrBlockNetworkBorderGroup
- The name of the location from which we advertise the IPV6 CIDR block.
Use this parameter to limit the CIDR block to this location.
You must set AmazonProvidedIpv6CidrBlock
to true
to use this
parameter.
You can have one IPv6 CIDR block association per network border group.
$sel:ipv6IpamPoolId:AssociateVpcCidrBlock'
, associateVpcCidrBlock_ipv6IpamPoolId
- Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more
information about Amazon VPC IP Address Manager (IPAM), see
What is IPAM?
in the Amazon VPC IPAM User Guide.
$sel:ipv6NetmaskLength:AssociateVpcCidrBlock'
, associateVpcCidrBlock_ipv6NetmaskLength
- The netmask length of the IPv6 CIDR you would like to associate from an
Amazon VPC IP Address Manager (IPAM) pool. For more information about
IPAM, see
What is IPAM?
in the Amazon VPC IPAM User Guide.
AssociateVpcCidrBlock
, associateVpcCidrBlock_ipv6Pool
- The ID of an IPv6 address pool from which to allocate the IPv6 CIDR
block.
AssociateVpcCidrBlock
, associateVpcCidrBlock_vpcId
- The ID of the VPC.
Request Lenses
associateVpcCidrBlock_amazonProvidedIpv6CidrBlock :: Lens' AssociateVpcCidrBlock (Maybe Bool) Source #
Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
associateVpcCidrBlock_cidrBlock :: Lens' AssociateVpcCidrBlock (Maybe Text) Source #
An IPv4 CIDR block to associate with the VPC.
associateVpcCidrBlock_ipv4IpamPoolId :: Lens' AssociateVpcCidrBlock (Maybe Text) Source #
Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
associateVpcCidrBlock_ipv4NetmaskLength :: Lens' AssociateVpcCidrBlock (Maybe Int) Source #
The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
associateVpcCidrBlock_ipv6CidrBlock :: Lens' AssociateVpcCidrBlock (Maybe Text) Source #
An IPv6 CIDR block from the IPv6 address pool. You must also specify
Ipv6Pool
in the request.
To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
associateVpcCidrBlock_ipv6CidrBlockNetworkBorderGroup :: Lens' AssociateVpcCidrBlock (Maybe Text) Source #
The name of the location from which we advertise the IPV6 CIDR block. Use this parameter to limit the CIDR block to this location.
You must set AmazonProvidedIpv6CidrBlock
to true
to use this
parameter.
You can have one IPv6 CIDR block association per network border group.
associateVpcCidrBlock_ipv6IpamPoolId :: Lens' AssociateVpcCidrBlock (Maybe Text) Source #
Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide.
associateVpcCidrBlock_ipv6NetmaskLength :: Lens' AssociateVpcCidrBlock (Maybe Int) Source #
The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
associateVpcCidrBlock_ipv6Pool :: Lens' AssociateVpcCidrBlock (Maybe Text) Source #
The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.
associateVpcCidrBlock_vpcId :: Lens' AssociateVpcCidrBlock Text Source #
The ID of the VPC.
Destructuring the Response
data AssociateVpcCidrBlockResponse Source #
See: newAssociateVpcCidrBlockResponse
smart constructor.
AssociateVpcCidrBlockResponse' | |
|
Instances
newAssociateVpcCidrBlockResponse Source #
Create a value of AssociateVpcCidrBlockResponse
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:cidrBlockAssociation:AssociateVpcCidrBlockResponse'
, associateVpcCidrBlockResponse_cidrBlockAssociation
- Information about the IPv4 CIDR block association.
$sel:ipv6CidrBlockAssociation:AssociateVpcCidrBlockResponse'
, associateVpcCidrBlockResponse_ipv6CidrBlockAssociation
- Information about the IPv6 CIDR block association.
AssociateVpcCidrBlock
, associateVpcCidrBlockResponse_vpcId
- The ID of the VPC.
$sel:httpStatus:AssociateVpcCidrBlockResponse'
, associateVpcCidrBlockResponse_httpStatus
- The response's http status code.
Response Lenses
associateVpcCidrBlockResponse_cidrBlockAssociation :: Lens' AssociateVpcCidrBlockResponse (Maybe VpcCidrBlockAssociation) Source #
Information about the IPv4 CIDR block association.
associateVpcCidrBlockResponse_ipv6CidrBlockAssociation :: Lens' AssociateVpcCidrBlockResponse (Maybe VpcIpv6CidrBlockAssociation) Source #
Information about the IPv6 CIDR block association.
associateVpcCidrBlockResponse_vpcId :: Lens' AssociateVpcCidrBlockResponse (Maybe Text) Source #
The ID of the VPC.
associateVpcCidrBlockResponse_httpStatus :: Lens' AssociateVpcCidrBlockResponse Int Source #
The response's http status code.