Skip to content

Associate Subnet Cidr Block

ec2_associate_subnet_cidr_block R Documentation

Associates a CIDR block with your subnet

Description

Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet.

Usage

ec2_associate_subnet_cidr_block(Ipv6CidrBlock, SubnetId, Ipv6IpamPoolId,
  Ipv6NetmaskLength)

Arguments

Ipv6CidrBlock

The IPv6 CIDR block for your subnet.

SubnetId

[required] The ID of your subnet.

Ipv6IpamPoolId

An IPv6 IPAM pool ID.

Ipv6NetmaskLength

An IPv6 netmask length.

Value

A list with the following syntax:

list(
  Ipv6CidrBlockAssociation = list(
    AssociationId = "string",
    Ipv6CidrBlock = "string",
    Ipv6CidrBlockState = list(
      State = "associating"|"associated"|"disassociating"|"disassociated"|"failing"|"failed",
      StatusMessage = "string"
    ),
    Ipv6AddressAttribute = "public"|"private",
    IpSource = "amazon"|"byoip"|"none"
  ),
  SubnetId = "string"
)

Request syntax

svc$associate_subnet_cidr_block(
  Ipv6CidrBlock = "string",
  SubnetId = "string",
  Ipv6IpamPoolId = "string",
  Ipv6NetmaskLength = 123
)