1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. getSecondaryNetwork

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

Viewing docs for AWS Cloud Control v1.82.0
published on Monday, Oct 5, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.82.0
published on Monday, Oct 5, 2026 by Pulumi

    Resource Type definition for AWS::EC2::SecondaryNetwork. Creates a secondary network for RDMA (Remote Direct Memory Access) connectivity.

    Using getSecondaryNetwork

    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 getSecondaryNetwork(args: GetSecondaryNetworkArgs, opts?: InvokeOptions): Promise<GetSecondaryNetworkResult>
    function getSecondaryNetworkOutput(args: GetSecondaryNetworkOutputArgs, opts?: InvokeOutputOptions): Output<GetSecondaryNetworkResult>
    def get_secondary_network(secondary_network_arn: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetSecondaryNetworkResult
    def get_secondary_network_output(secondary_network_arn: pulumi.Input[Optional[str]] = None,
                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetSecondaryNetworkResult]
    func LookupSecondaryNetwork(ctx *Context, args *LookupSecondaryNetworkArgs, opts ...InvokeOption) (*LookupSecondaryNetworkResult, error)
    func LookupSecondaryNetworkOutput(ctx *Context, args *LookupSecondaryNetworkOutputArgs, opts ...InvokeOption) LookupSecondaryNetworkResultOutput

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

    public static class GetSecondaryNetwork 
    {
        public static Task<GetSecondaryNetworkResult> InvokeAsync(GetSecondaryNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetSecondaryNetworkResult> Invoke(GetSecondaryNetworkInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSecondaryNetworkResult> Invoke(GetSecondaryNetworkInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSecondaryNetworkResult> getSecondaryNetwork(GetSecondaryNetworkArgs args, InvokeOptions options)
    public static Output<GetSecondaryNetworkResult> getSecondaryNetwork(GetSecondaryNetworkArgs args, InvokeOptions options)
    public static Output<GetSecondaryNetworkResult> getSecondaryNetwork(GetSecondaryNetworkArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getSecondaryNetwork
      arguments:
        # arguments dictionary
    data "aws-native_ec2_get_secondary_network" "name" {
        # arguments
    }

    The following arguments are supported:

    SecondaryNetworkArn string
    The Amazon Resource Name (ARN) of the secondary network.
    SecondaryNetworkArn string
    The Amazon Resource Name (ARN) of the secondary network.
    secondary_network_arn string
    The Amazon Resource Name (ARN) of the secondary network.
    secondaryNetworkArn String
    The Amazon Resource Name (ARN) of the secondary network.
    secondaryNetworkArn string
    The Amazon Resource Name (ARN) of the secondary network.
    secondary_network_arn str
    The Amazon Resource Name (ARN) of the secondary network.
    secondaryNetworkArn String
    The Amazon Resource Name (ARN) of the secondary network.

    getSecondaryNetwork Result

    The following output properties are available:

    Ipv4CidrBlockAssociations List<Pulumi.AwsNative.Ec2.Outputs.SecondaryNetworkIpv4CidrBlockAssociation>
    Information about the IPv4 CIDR blocks associated with the secondary network.
    OwnerId string
    The ID of the Amazon Web Services account that owns the secondary network.
    SecondaryNetworkArn string
    The Amazon Resource Name (ARN) of the secondary network.
    SecondaryNetworkId string
    The ID of the secondary network.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags for the secondary network.
    Ipv4CidrBlockAssociations []SecondaryNetworkIpv4CidrBlockAssociation
    Information about the IPv4 CIDR blocks associated with the secondary network.
    OwnerId string
    The ID of the Amazon Web Services account that owns the secondary network.
    SecondaryNetworkArn string
    The Amazon Resource Name (ARN) of the secondary network.
    SecondaryNetworkId string
    The ID of the secondary network.
    Tags Tag
    The tags for the secondary network.
    ipv4_cidr_block_associations list(object)
    Information about the IPv4 CIDR blocks associated with the secondary network.
    owner_id string
    The ID of the Amazon Web Services account that owns the secondary network.
    secondary_network_arn string
    The Amazon Resource Name (ARN) of the secondary network.
    secondary_network_id string
    The ID of the secondary network.
    tags list(object)
    The tags for the secondary network.
    ipv4CidrBlockAssociations List<SecondaryNetworkIpv4CidrBlockAssociation>
    Information about the IPv4 CIDR blocks associated with the secondary network.
    ownerId String
    The ID of the Amazon Web Services account that owns the secondary network.
    secondaryNetworkArn String
    The Amazon Resource Name (ARN) of the secondary network.
    secondaryNetworkId String
    The ID of the secondary network.
    tags List<Tag>
    The tags for the secondary network.
    ipv4CidrBlockAssociations SecondaryNetworkIpv4CidrBlockAssociation[]
    Information about the IPv4 CIDR blocks associated with the secondary network.
    ownerId string
    The ID of the Amazon Web Services account that owns the secondary network.
    secondaryNetworkArn string
    The Amazon Resource Name (ARN) of the secondary network.
    secondaryNetworkId string
    The ID of the secondary network.
    tags Tag[]
    The tags for the secondary network.
    ipv4_cidr_block_associations Sequence[SecondaryNetworkIpv4CidrBlockAssociation]
    Information about the IPv4 CIDR blocks associated with the secondary network.
    owner_id str
    The ID of the Amazon Web Services account that owns the secondary network.
    secondary_network_arn str
    The Amazon Resource Name (ARN) of the secondary network.
    secondary_network_id str
    The ID of the secondary network.
    tags Sequence[root_Tag]
    The tags for the secondary network.
    ipv4CidrBlockAssociations List<Property Map>
    Information about the IPv4 CIDR blocks associated with the secondary network.
    ownerId String
    The ID of the Amazon Web Services account that owns the secondary network.
    secondaryNetworkArn String
    The Amazon Resource Name (ARN) of the secondary network.
    secondaryNetworkId String
    The ID of the secondary network.
    tags List<Property Map>
    The tags for the secondary network.

    Supporting Types

    SecondaryNetworkIpv4CidrBlockAssociation

    AssociationId string
    The association ID for the IPv4 CIDR block.
    CidrBlock string
    The IPv4 CIDR block.
    State Pulumi.AwsNative.Ec2.SecondaryNetworkIpv4CidrBlockAssociationState
    The state of the CIDR block association.
    AssociationId string
    The association ID for the IPv4 CIDR block.
    CidrBlock string
    The IPv4 CIDR block.
    State SecondaryNetworkIpv4CidrBlockAssociationState
    The state of the CIDR block association.
    association_id string
    The association ID for the IPv4 CIDR block.
    cidr_block string
    The IPv4 CIDR block.
    state "associating" | "associated" | "association-failed" | "disassociating" | "disassociated" | "disassociation-failed"
    The state of the CIDR block association.
    associationId String
    The association ID for the IPv4 CIDR block.
    cidrBlock String
    The IPv4 CIDR block.
    state SecondaryNetworkIpv4CidrBlockAssociationState
    The state of the CIDR block association.
    associationId string
    The association ID for the IPv4 CIDR block.
    cidrBlock string
    The IPv4 CIDR block.
    state SecondaryNetworkIpv4CidrBlockAssociationState
    The state of the CIDR block association.
    association_id str
    The association ID for the IPv4 CIDR block.
    cidr_block str
    The IPv4 CIDR block.
    state SecondaryNetworkIpv4CidrBlockAssociationState
    The state of the CIDR block association.
    associationId String
    The association ID for the IPv4 CIDR block.
    cidrBlock String
    The IPv4 CIDR block.
    state "associating" | "associated" | "association-failed" | "disassociating" | "disassociated" | "disassociation-failed"
    The state of the CIDR block association.

    SecondaryNetworkIpv4CidrBlockAssociationState

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

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

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

    Viewing docs for AWS Cloud Control v1.82.0
    published on Monday, Oct 5, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial