1. Packages
  2. AWS
  3. API Docs
  4. odb
  5. getNetworkPeeringConnections
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi

    Data source for retrieving all oracle database network peering resource in Oracle Database@AWS.

    You can find out more about Oracle Database@AWS from User Guide.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.odb.getNetworkPeeringConnections({});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.odb.get_network_peering_connections()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/odb"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := odb.GetNetworkPeeringConnections(ctx, &odb.GetNetworkPeeringConnectionsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.Odb.GetNetworkPeeringConnections.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.odb.OdbFunctions;
    import com.pulumi.aws.odb.inputs.GetNetworkPeeringConnectionsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = OdbFunctions.getNetworkPeeringConnections(GetNetworkPeeringConnectionsArgs.builder()
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:odb:getNetworkPeeringConnections
          arguments: {}
    

    Using getNetworkPeeringConnections

    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 getNetworkPeeringConnections(args: GetNetworkPeeringConnectionsArgs, opts?: InvokeOptions): Promise<GetNetworkPeeringConnectionsResult>
    function getNetworkPeeringConnectionsOutput(args: GetNetworkPeeringConnectionsOutputArgs, opts?: InvokeOptions): Output<GetNetworkPeeringConnectionsResult>
    def get_network_peering_connections(region: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetNetworkPeeringConnectionsResult
    def get_network_peering_connections_output(region: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetNetworkPeeringConnectionsResult]
    func GetNetworkPeeringConnections(ctx *Context, args *GetNetworkPeeringConnectionsArgs, opts ...InvokeOption) (*GetNetworkPeeringConnectionsResult, error)
    func GetNetworkPeeringConnectionsOutput(ctx *Context, args *GetNetworkPeeringConnectionsOutputArgs, opts ...InvokeOption) GetNetworkPeeringConnectionsResultOutput

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

    public static class GetNetworkPeeringConnections 
    {
        public static Task<GetNetworkPeeringConnectionsResult> InvokeAsync(GetNetworkPeeringConnectionsArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkPeeringConnectionsResult> Invoke(GetNetworkPeeringConnectionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkPeeringConnectionsResult> getNetworkPeeringConnections(GetNetworkPeeringConnectionsArgs args, InvokeOptions options)
    public static Output<GetNetworkPeeringConnectionsResult> getNetworkPeeringConnections(GetNetworkPeeringConnectionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:odb/getNetworkPeeringConnections:getNetworkPeeringConnections
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getNetworkPeeringConnections Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OdbPeeringConnections List<GetNetworkPeeringConnectionsOdbPeeringConnection>
    The list of ODB peering connections. A summary of an ODB peering connection.
    Region string
    Id string
    The provider-assigned unique ID for this managed resource.
    OdbPeeringConnections []GetNetworkPeeringConnectionsOdbPeeringConnection
    The list of ODB peering connections. A summary of an ODB peering connection.
    Region string
    id String
    The provider-assigned unique ID for this managed resource.
    odbPeeringConnections List<GetNetworkPeeringConnectionsOdbPeeringConnection>
    The list of ODB peering connections. A summary of an ODB peering connection.
    region String
    id string
    The provider-assigned unique ID for this managed resource.
    odbPeeringConnections GetNetworkPeeringConnectionsOdbPeeringConnection[]
    The list of ODB peering connections. A summary of an ODB peering connection.
    region string
    id str
    The provider-assigned unique ID for this managed resource.
    odb_peering_connections Sequence[GetNetworkPeeringConnectionsOdbPeeringConnection]
    The list of ODB peering connections. A summary of an ODB peering connection.
    region str
    id String
    The provider-assigned unique ID for this managed resource.
    odbPeeringConnections List<Property Map>
    The list of ODB peering connections. A summary of an ODB peering connection.
    region String

    Supporting Types

    GetNetworkPeeringConnectionsOdbPeeringConnection

    Arn string
    The Amazon Resource Name (ARN) for the ODB network peering connection.
    DisplayName string
    Display name of the ODB network peering connection.
    Id string
    The unique identifier of the ODB network peering connection.
    OdbNetworkArn string
    ARN of the ODB network peering connection.
    PeerNetworkArn string
    ARN of the peer network peering connection.
    Arn string
    The Amazon Resource Name (ARN) for the ODB network peering connection.
    DisplayName string
    Display name of the ODB network peering connection.
    Id string
    The unique identifier of the ODB network peering connection.
    OdbNetworkArn string
    ARN of the ODB network peering connection.
    PeerNetworkArn string
    ARN of the peer network peering connection.
    arn String
    The Amazon Resource Name (ARN) for the ODB network peering connection.
    displayName String
    Display name of the ODB network peering connection.
    id String
    The unique identifier of the ODB network peering connection.
    odbNetworkArn String
    ARN of the ODB network peering connection.
    peerNetworkArn String
    ARN of the peer network peering connection.
    arn string
    The Amazon Resource Name (ARN) for the ODB network peering connection.
    displayName string
    Display name of the ODB network peering connection.
    id string
    The unique identifier of the ODB network peering connection.
    odbNetworkArn string
    ARN of the ODB network peering connection.
    peerNetworkArn string
    ARN of the peer network peering connection.
    arn str
    The Amazon Resource Name (ARN) for the ODB network peering connection.
    display_name str
    Display name of the ODB network peering connection.
    id str
    The unique identifier of the ODB network peering connection.
    odb_network_arn str
    ARN of the ODB network peering connection.
    peer_network_arn str
    ARN of the peer network peering connection.
    arn String
    The Amazon Resource Name (ARN) for the ODB network peering connection.
    displayName String
    Display name of the ODB network peering connection.
    id String
    The unique identifier of the ODB network peering connection.
    odbNetworkArn String
    ARN of the ODB network peering connection.
    peerNetworkArn String
    ARN of the peer network peering connection.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.22.0
    published on Wednesday, Mar 11, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.