Class Connection
Manages a private VPC connection with a GCP service provider. For more information see the official documentation and API.
Example usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var peeringNetwork = new Gcp.Compute.Network("peeringNetwork", new Gcp.Compute.NetworkArgs
{
});
var privateIpAlloc = new Gcp.Compute.GlobalAddress("privateIpAlloc", new Gcp.Compute.GlobalAddressArgs
{
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = peeringNetwork.Id,
});
var foobar = new Gcp.ServiceNetworking.Connection("foobar", new Gcp.ServiceNetworking.ConnectionArgs
{
Network = peeringNetwork.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges =
{
privateIpAlloc.Name,
},
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.ServiceNetworking
Assembly: Pulumi.Gcp.dll
Syntax
public class Connection : CustomResource
Constructors
View SourceConnection(String, ConnectionArgs, CustomResourceOptions)
Create a Connection resource with the given unique name, arguments, and options.
Declaration
public Connection(string name, ConnectionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ConnectionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceNetwork
Name of VPC network connected with service producers using VPC peering.
Declaration
public Output<string> Network { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Peering
Declaration
public Output<string> Peering { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ReservedPeeringRanges
Named IP address range(s) of PEERING type reserved for this service provider. Note that invoking this method with a different range when connection is already established will not reallocate already provisioned service producer subnetworks.
Declaration
public Output<ImmutableArray<string>> ReservedPeeringRanges { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Service
Provider peering service that is managing peering connectivity for a service provider organization. For Google services that support this functionality it is 'servicenetworking.googleapis.com'.
Declaration
public Output<string> Service { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ConnectionState, CustomResourceOptions)
Get an existing Connection resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Connection Get(string name, Input<string> id, ConnectionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ConnectionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Connection |