Class NetworkPeeringConnection


  • public class NetworkPeeringConnection
    extends com.pulumi.resources.CustomResource
    Terraform resource for managing oracle database network peering resource in AWS. If underlying odb network is shared, ARN must be used while creating network peering. You can find out more about Oracle Database@AWS from [User Guide](https://docs.aws.amazon.com/odb/latest/UserGuide/what-is-odb.html). ## Example Usage ### Basic Usage
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.odb.NetworkPeeringConnection;
     import com.pulumi.aws.odb.NetworkPeeringConnectionArgs;
     import java.util.ArrayList;
     import java.util.Arrays;
     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) {
             var example = new NetworkPeeringConnection("example", NetworkPeeringConnectionArgs.builder()
                 .displayName("example")
                 .odbNetworkId("my-odb-network-id")
                 .peerNetworkId("my-vpc-id")
                 .tags(Map.of("env", "dev"))
                 .build());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import odb network peering using the `id`. For example: ```sh $ pulumi import aws:odb/networkPeeringConnection:NetworkPeeringConnection example example ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.lang.String> createdAt()  
      com.pulumi.core.Output<java.lang.String> displayName()  
      static NetworkPeeringConnection get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, NetworkPeeringConnectionState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> odbNetworkArn()  
      com.pulumi.core.Output<java.lang.String> odbNetworkId()  
      com.pulumi.core.Output<java.lang.String> odbPeeringConnectionType()  
      com.pulumi.core.Output<java.lang.String> peerNetworkArn()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> peerNetworkCidrs()  
      com.pulumi.core.Output<java.lang.String> peerNetworkId()  
      com.pulumi.core.Output<java.lang.Double> percentProgress()  
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.lang.String> status()  
      com.pulumi.core.Output<java.lang.String> statusReason()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.util.Optional<NetworkPeeringConnectionTimeouts>> timeouts()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetworkPeeringConnection

        public NetworkPeeringConnection​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • NetworkPeeringConnection

        public NetworkPeeringConnection​(java.lang.String name,
                                        NetworkPeeringConnectionArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • NetworkPeeringConnection

        public NetworkPeeringConnection​(java.lang.String name,
                                        NetworkPeeringConnectionArgs args,
                                        @Nullable
                                        com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the ODB network peering connection.
      • createdAt

        public com.pulumi.core.Output<java.lang.String> createdAt()
        Returns:
        Created time of the ODB network peering connection.
      • displayName

        public com.pulumi.core.Output<java.lang.String> displayName()
        Returns:
        Display name of the ODB network peering connection. Changing this will force Terraform to create a new resource.
      • odbNetworkArn

        public com.pulumi.core.Output<java.lang.String> odbNetworkArn()
        Returns:
        ARN of the ODB network that initiates the peering connection. Changing this will force Terraform to create a new resource. Either odbNetworkId or odbNetworkArn should be used.
      • odbNetworkId

        public com.pulumi.core.Output<java.lang.String> odbNetworkId()
        Returns:
        Unique identifier of the ODB network that initiates the peering connection. A sample ID is `odbpcx-abcdefgh12345678`. Changing this will force Terraform to create a new resource.
      • odbPeeringConnectionType

        public com.pulumi.core.Output<java.lang.String> odbPeeringConnectionType()
        Returns:
        Type of the ODB peering connection.
      • peerNetworkArn

        public com.pulumi.core.Output<java.lang.String> peerNetworkArn()
        Returns:
        ARN of the peer network peering connection.
      • peerNetworkCidrs

        public com.pulumi.core.Output<java.util.List<java.lang.String>> peerNetworkCidrs()
        Returns:
        Set of peer network cidrs. Add remove is only supported during update operation. During create this attribute is compute only.
      • peerNetworkId

        public com.pulumi.core.Output<java.lang.String> peerNetworkId()
        Returns:
        Unique identifier of the ODB peering connection. Changing this will force Terraform to create a new resource. Either odbNetworkId or odbNetworkArn should be used. The following arguments are optional:
      • percentProgress

        public com.pulumi.core.Output<java.lang.Double> percentProgress()
        Returns:
        Progress of the ODB network peering connection.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • status

        public com.pulumi.core.Output<java.lang.String> status()
        Returns:
        Status of the ODB network peering connection.
      • statusReason

        public com.pulumi.core.Output<java.lang.String> statusReason()
        Returns:
        Reason for the current status of the ODB peering connection.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        Map of tags assigned to the resource, including inherited tags.
      • get

        public static NetworkPeeringConnection get​(java.lang.String name,
                                                   com.pulumi.core.Output<java.lang.String> id,
                                                   @Nullable
                                                   NetworkPeeringConnectionState state,
                                                   @Nullable
                                                   com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.