1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. getSubnetCidrBlock

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.ec2.getSubnetCidrBlock

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

    The AWS::EC2::SubnetCidrBlock resource creates association between subnet and IPv6 CIDR

    Using getSubnetCidrBlock

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSubnetCidrBlock(args: GetSubnetCidrBlockArgs, opts?: InvokeOptions): Promise<GetSubnetCidrBlockResult>
    function getSubnetCidrBlockOutput(args: GetSubnetCidrBlockOutputArgs, opts?: InvokeOptions): Output<GetSubnetCidrBlockResult>
    def get_subnet_cidr_block(id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSubnetCidrBlockResult
    def get_subnet_cidr_block_output(id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetSubnetCidrBlockResult]
    func LookupSubnetCidrBlock(ctx *Context, args *LookupSubnetCidrBlockArgs, opts ...InvokeOption) (*LookupSubnetCidrBlockResult, error)
    func LookupSubnetCidrBlockOutput(ctx *Context, args *LookupSubnetCidrBlockOutputArgs, opts ...InvokeOption) LookupSubnetCidrBlockResultOutput

    > Note: This function is named LookupSubnetCidrBlock in the Go SDK.

    public static class GetSubnetCidrBlock 
    {
        public static Task<GetSubnetCidrBlockResult> InvokeAsync(GetSubnetCidrBlockArgs args, InvokeOptions? opts = null)
        public static Output<GetSubnetCidrBlockResult> Invoke(GetSubnetCidrBlockInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSubnetCidrBlockResult> getSubnetCidrBlock(GetSubnetCidrBlockArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getSubnetCidrBlock
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Information about the IPv6 association.
    Id string
    Information about the IPv6 association.
    id String
    Information about the IPv6 association.
    id string
    Information about the IPv6 association.
    id str
    Information about the IPv6 association.
    id String
    Information about the IPv6 association.

    getSubnetCidrBlock Result

    The following output properties are available:

    Id string
    Information about the IPv6 association.
    IpSource string
    The IP Source of an IPv6 Subnet CIDR Block.
    Ipv6AddressAttribute string
    The value denoting whether an IPv6 Subnet CIDR Block is public or private.
    Id string
    Information about the IPv6 association.
    IpSource string
    The IP Source of an IPv6 Subnet CIDR Block.
    Ipv6AddressAttribute string
    The value denoting whether an IPv6 Subnet CIDR Block is public or private.
    id String
    Information about the IPv6 association.
    ipSource String
    The IP Source of an IPv6 Subnet CIDR Block.
    ipv6AddressAttribute String
    The value denoting whether an IPv6 Subnet CIDR Block is public or private.
    id string
    Information about the IPv6 association.
    ipSource string
    The IP Source of an IPv6 Subnet CIDR Block.
    ipv6AddressAttribute string
    The value denoting whether an IPv6 Subnet CIDR Block is public or private.
    id str
    Information about the IPv6 association.
    ip_source str
    The IP Source of an IPv6 Subnet CIDR Block.
    ipv6_address_attribute str
    The value denoting whether an IPv6 Subnet CIDR Block is public or private.
    id String
    Information about the IPv6 association.
    ipSource String
    The IP Source of an IPv6 Subnet CIDR Block.
    ipv6AddressAttribute String
    The value denoting whether an IPv6 Subnet CIDR Block is public or private.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi