1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. datastream
  5. PrivateConnection
Google Cloud v8.14.0 published on Wednesday, Jan 15, 2025 by Pulumi

gcp.datastream.PrivateConnection

Explore with Pulumi AI

The PrivateConnection resource is used to establish private connectivity between Datastream and a customer’s network.

To get more information about PrivateConnection, see:

Example Usage

Datastream Private Connection Full

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const defaultNetwork = new gcp.compute.Network("default", {name: "my-network"});
const _default = new gcp.datastream.PrivateConnection("default", {
    displayName: "Connection profile",
    location: "us-central1",
    privateConnectionId: "my-connection",
    labels: {
        key: "value",
    },
    vpcPeeringConfig: {
        vpc: defaultNetwork.id,
        subnet: "10.0.0.0/29",
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

default_network = gcp.compute.Network("default", name="my-network")
default = gcp.datastream.PrivateConnection("default",
    display_name="Connection profile",
    location="us-central1",
    private_connection_id="my-connection",
    labels={
        "key": "value",
    },
    vpc_peering_config={
        "vpc": default_network.id,
        "subnet": "10.0.0.0/29",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/datastream"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultNetwork, err := compute.NewNetwork(ctx, "default", &compute.NetworkArgs{
			Name: pulumi.String("my-network"),
		})
		if err != nil {
			return err
		}
		_, err = datastream.NewPrivateConnection(ctx, "default", &datastream.PrivateConnectionArgs{
			DisplayName:         pulumi.String("Connection profile"),
			Location:            pulumi.String("us-central1"),
			PrivateConnectionId: pulumi.String("my-connection"),
			Labels: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
			VpcPeeringConfig: &datastream.PrivateConnectionVpcPeeringConfigArgs{
				Vpc:    defaultNetwork.ID(),
				Subnet: pulumi.String("10.0.0.0/29"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var defaultNetwork = new Gcp.Compute.Network("default", new()
    {
        Name = "my-network",
    });

    var @default = new Gcp.Datastream.PrivateConnection("default", new()
    {
        DisplayName = "Connection profile",
        Location = "us-central1",
        PrivateConnectionId = "my-connection",
        Labels = 
        {
            { "key", "value" },
        },
        VpcPeeringConfig = new Gcp.Datastream.Inputs.PrivateConnectionVpcPeeringConfigArgs
        {
            Vpc = defaultNetwork.Id,
            Subnet = "10.0.0.0/29",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.datastream.PrivateConnection;
import com.pulumi.gcp.datastream.PrivateConnectionArgs;
import com.pulumi.gcp.datastream.inputs.PrivateConnectionVpcPeeringConfigArgs;
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) {
        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .name("my-network")
            .build());

        var default_ = new PrivateConnection("default", PrivateConnectionArgs.builder()
            .displayName("Connection profile")
            .location("us-central1")
            .privateConnectionId("my-connection")
            .labels(Map.of("key", "value"))
            .vpcPeeringConfig(PrivateConnectionVpcPeeringConfigArgs.builder()
                .vpc(defaultNetwork.id())
                .subnet("10.0.0.0/29")
                .build())
            .build());

    }
}
Copy
resources:
  default:
    type: gcp:datastream:PrivateConnection
    properties:
      displayName: Connection profile
      location: us-central1
      privateConnectionId: my-connection
      labels:
        key: value
      vpcPeeringConfig:
        vpc: ${defaultNetwork.id}
        subnet: 10.0.0.0/29
  defaultNetwork:
    type: gcp:compute:Network
    name: default
    properties:
      name: my-network
Copy

Create PrivateConnection Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new PrivateConnection(name: string, args: PrivateConnectionArgs, opts?: CustomResourceOptions);
@overload
def PrivateConnection(resource_name: str,
                      args: PrivateConnectionArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def PrivateConnection(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      display_name: Optional[str] = None,
                      location: Optional[str] = None,
                      private_connection_id: Optional[str] = None,
                      vpc_peering_config: Optional[PrivateConnectionVpcPeeringConfigArgs] = None,
                      create_without_validation: Optional[bool] = None,
                      labels: Optional[Mapping[str, str]] = None,
                      project: Optional[str] = None)
func NewPrivateConnection(ctx *Context, name string, args PrivateConnectionArgs, opts ...ResourceOption) (*PrivateConnection, error)
public PrivateConnection(string name, PrivateConnectionArgs args, CustomResourceOptions? opts = null)
public PrivateConnection(String name, PrivateConnectionArgs args)
public PrivateConnection(String name, PrivateConnectionArgs args, CustomResourceOptions options)
type: gcp:datastream:PrivateConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PrivateConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PrivateConnectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PrivateConnectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PrivateConnectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PrivateConnectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var gcpPrivateConnectionResource = new Gcp.Datastream.PrivateConnection("gcpPrivateConnectionResource", new()
{
    DisplayName = "string",
    Location = "string",
    PrivateConnectionId = "string",
    VpcPeeringConfig = new Gcp.Datastream.Inputs.PrivateConnectionVpcPeeringConfigArgs
    {
        Subnet = "string",
        Vpc = "string",
    },
    CreateWithoutValidation = false,
    Labels = 
    {
        { "string", "string" },
    },
    Project = "string",
});
Copy
example, err := datastream.NewPrivateConnection(ctx, "gcpPrivateConnectionResource", &datastream.PrivateConnectionArgs{
	DisplayName:         pulumi.String("string"),
	Location:            pulumi.String("string"),
	PrivateConnectionId: pulumi.String("string"),
	VpcPeeringConfig: &datastream.PrivateConnectionVpcPeeringConfigArgs{
		Subnet: pulumi.String("string"),
		Vpc:    pulumi.String("string"),
	},
	CreateWithoutValidation: pulumi.Bool(false),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Project: pulumi.String("string"),
})
Copy
var gcpPrivateConnectionResource = new PrivateConnection("gcpPrivateConnectionResource", PrivateConnectionArgs.builder()
    .displayName("string")
    .location("string")
    .privateConnectionId("string")
    .vpcPeeringConfig(PrivateConnectionVpcPeeringConfigArgs.builder()
        .subnet("string")
        .vpc("string")
        .build())
    .createWithoutValidation(false)
    .labels(Map.of("string", "string"))
    .project("string")
    .build());
Copy
gcp_private_connection_resource = gcp.datastream.PrivateConnection("gcpPrivateConnectionResource",
    display_name="string",
    location="string",
    private_connection_id="string",
    vpc_peering_config={
        "subnet": "string",
        "vpc": "string",
    },
    create_without_validation=False,
    labels={
        "string": "string",
    },
    project="string")
Copy
const gcpPrivateConnectionResource = new gcp.datastream.PrivateConnection("gcpPrivateConnectionResource", {
    displayName: "string",
    location: "string",
    privateConnectionId: "string",
    vpcPeeringConfig: {
        subnet: "string",
        vpc: "string",
    },
    createWithoutValidation: false,
    labels: {
        string: "string",
    },
    project: "string",
});
Copy
type: gcp:datastream:PrivateConnection
properties:
    createWithoutValidation: false
    displayName: string
    labels:
        string: string
    location: string
    privateConnectionId: string
    project: string
    vpcPeeringConfig:
        subnet: string
        vpc: string
Copy

PrivateConnection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The PrivateConnection resource accepts the following input properties:

DisplayName
This property is required.
Changes to this property will trigger replacement.
string
Display name.
Location
This property is required.
Changes to this property will trigger replacement.
string
The name of the location this private connection is located in.
PrivateConnectionId
This property is required.
Changes to this property will trigger replacement.
string
The private connectivity identifier.
VpcPeeringConfig
This property is required.
Changes to this property will trigger replacement.
PrivateConnectionVpcPeeringConfig
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
CreateWithoutValidation Changes to this property will trigger replacement. bool
If set to true, will skip validations.
Labels Dictionary<string, string>
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Project Changes to this property will trigger replacement. string
DisplayName
This property is required.
Changes to this property will trigger replacement.
string
Display name.
Location
This property is required.
Changes to this property will trigger replacement.
string
The name of the location this private connection is located in.
PrivateConnectionId
This property is required.
Changes to this property will trigger replacement.
string
The private connectivity identifier.
VpcPeeringConfig
This property is required.
Changes to this property will trigger replacement.
PrivateConnectionVpcPeeringConfigArgs
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
CreateWithoutValidation Changes to this property will trigger replacement. bool
If set to true, will skip validations.
Labels map[string]string
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Project Changes to this property will trigger replacement. string
displayName
This property is required.
Changes to this property will trigger replacement.
String
Display name.
location
This property is required.
Changes to this property will trigger replacement.
String
The name of the location this private connection is located in.
privateConnectionId
This property is required.
Changes to this property will trigger replacement.
String
The private connectivity identifier.
vpcPeeringConfig
This property is required.
Changes to this property will trigger replacement.
PrivateConnectionVpcPeeringConfig
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
createWithoutValidation Changes to this property will trigger replacement. Boolean
If set to true, will skip validations.
labels Map<String,String>
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
project Changes to this property will trigger replacement. String
displayName
This property is required.
Changes to this property will trigger replacement.
string
Display name.
location
This property is required.
Changes to this property will trigger replacement.
string
The name of the location this private connection is located in.
privateConnectionId
This property is required.
Changes to this property will trigger replacement.
string
The private connectivity identifier.
vpcPeeringConfig
This property is required.
Changes to this property will trigger replacement.
PrivateConnectionVpcPeeringConfig
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
createWithoutValidation Changes to this property will trigger replacement. boolean
If set to true, will skip validations.
labels {[key: string]: string}
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
project Changes to this property will trigger replacement. string
display_name
This property is required.
Changes to this property will trigger replacement.
str
Display name.
location
This property is required.
Changes to this property will trigger replacement.
str
The name of the location this private connection is located in.
private_connection_id
This property is required.
Changes to this property will trigger replacement.
str
The private connectivity identifier.
vpc_peering_config
This property is required.
Changes to this property will trigger replacement.
PrivateConnectionVpcPeeringConfigArgs
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
create_without_validation Changes to this property will trigger replacement. bool
If set to true, will skip validations.
labels Mapping[str, str]
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
project Changes to this property will trigger replacement. str
displayName
This property is required.
Changes to this property will trigger replacement.
String
Display name.
location
This property is required.
Changes to this property will trigger replacement.
String
The name of the location this private connection is located in.
privateConnectionId
This property is required.
Changes to this property will trigger replacement.
String
The private connectivity identifier.
vpcPeeringConfig
This property is required.
Changes to this property will trigger replacement.
Property Map
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
createWithoutValidation Changes to this property will trigger replacement. Boolean
If set to true, will skip validations.
labels Map<String>
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
project Changes to this property will trigger replacement. String

Outputs

All input properties are implicitly available as output properties. Additionally, the PrivateConnection resource produces the following output properties:

EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Errors List<PrivateConnectionError>
The PrivateConnection error in case of failure. Structure is documented below.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource's name.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
State of the PrivateConnection.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Errors []PrivateConnectionError
The PrivateConnection error in case of failure. Structure is documented below.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The resource's name.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
State of the PrivateConnection.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors List<PrivateConnectionError>
The PrivateConnection error in case of failure. Structure is documented below.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource's name.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
State of the PrivateConnection.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors PrivateConnectionError[]
The PrivateConnection error in case of failure. Structure is documented below.
id string
The provider-assigned unique ID for this managed resource.
name string
The resource's name.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
state string
State of the PrivateConnection.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors Sequence[PrivateConnectionError]
The PrivateConnection error in case of failure. Structure is documented below.
id str
The provider-assigned unique ID for this managed resource.
name str
The resource's name.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
state str
State of the PrivateConnection.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors List<Property Map>
The PrivateConnection error in case of failure. Structure is documented below.
id String
The provider-assigned unique ID for this managed resource.
name String
The resource's name.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
State of the PrivateConnection.

Look up Existing PrivateConnection Resource

Get an existing PrivateConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PrivateConnectionState, opts?: CustomResourceOptions): PrivateConnection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_without_validation: Optional[bool] = None,
        display_name: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        errors: Optional[Sequence[PrivateConnectionErrorArgs]] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        private_connection_id: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        state: Optional[str] = None,
        vpc_peering_config: Optional[PrivateConnectionVpcPeeringConfigArgs] = None) -> PrivateConnection
func GetPrivateConnection(ctx *Context, name string, id IDInput, state *PrivateConnectionState, opts ...ResourceOption) (*PrivateConnection, error)
public static PrivateConnection Get(string name, Input<string> id, PrivateConnectionState? state, CustomResourceOptions? opts = null)
public static PrivateConnection get(String name, Output<String> id, PrivateConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateWithoutValidation Changes to this property will trigger replacement. bool
If set to true, will skip validations.
DisplayName Changes to this property will trigger replacement. string
Display name.
EffectiveLabels Changes to this property will trigger replacement. Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Errors List<PrivateConnectionError>
The PrivateConnection error in case of failure. Structure is documented below.
Labels Dictionary<string, string>
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The name of the location this private connection is located in.
Name string
The resource's name.
PrivateConnectionId Changes to this property will trigger replacement. string
The private connectivity identifier.
Project Changes to this property will trigger replacement. string
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
State of the PrivateConnection.
VpcPeeringConfig Changes to this property will trigger replacement. PrivateConnectionVpcPeeringConfig
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
CreateWithoutValidation Changes to this property will trigger replacement. bool
If set to true, will skip validations.
DisplayName Changes to this property will trigger replacement. string
Display name.
EffectiveLabels Changes to this property will trigger replacement. map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Errors []PrivateConnectionErrorArgs
The PrivateConnection error in case of failure. Structure is documented below.
Labels map[string]string
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
Location Changes to this property will trigger replacement. string
The name of the location this private connection is located in.
Name string
The resource's name.
PrivateConnectionId Changes to this property will trigger replacement. string
The private connectivity identifier.
Project Changes to this property will trigger replacement. string
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
State string
State of the PrivateConnection.
VpcPeeringConfig Changes to this property will trigger replacement. PrivateConnectionVpcPeeringConfigArgs
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
createWithoutValidation Changes to this property will trigger replacement. Boolean
If set to true, will skip validations.
displayName Changes to this property will trigger replacement. String
Display name.
effectiveLabels Changes to this property will trigger replacement. Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors List<PrivateConnectionError>
The PrivateConnection error in case of failure. Structure is documented below.
labels Map<String,String>
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The name of the location this private connection is located in.
name String
The resource's name.
privateConnectionId Changes to this property will trigger replacement. String
The private connectivity identifier.
project Changes to this property will trigger replacement. String
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
State of the PrivateConnection.
vpcPeeringConfig Changes to this property will trigger replacement. PrivateConnectionVpcPeeringConfig
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
createWithoutValidation Changes to this property will trigger replacement. boolean
If set to true, will skip validations.
displayName Changes to this property will trigger replacement. string
Display name.
effectiveLabels Changes to this property will trigger replacement. {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors PrivateConnectionError[]
The PrivateConnection error in case of failure. Structure is documented below.
labels {[key: string]: string}
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. string
The name of the location this private connection is located in.
name string
The resource's name.
privateConnectionId Changes to this property will trigger replacement. string
The private connectivity identifier.
project Changes to this property will trigger replacement. string
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
state string
State of the PrivateConnection.
vpcPeeringConfig Changes to this property will trigger replacement. PrivateConnectionVpcPeeringConfig
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
create_without_validation Changes to this property will trigger replacement. bool
If set to true, will skip validations.
display_name Changes to this property will trigger replacement. str
Display name.
effective_labels Changes to this property will trigger replacement. Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors Sequence[PrivateConnectionErrorArgs]
The PrivateConnection error in case of failure. Structure is documented below.
labels Mapping[str, str]
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. str
The name of the location this private connection is located in.
name str
The resource's name.
private_connection_id Changes to this property will trigger replacement. str
The private connectivity identifier.
project Changes to this property will trigger replacement. str
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
state str
State of the PrivateConnection.
vpc_peering_config Changes to this property will trigger replacement. PrivateConnectionVpcPeeringConfigArgs
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.
createWithoutValidation Changes to this property will trigger replacement. Boolean
If set to true, will skip validations.
displayName Changes to this property will trigger replacement. String
Display name.
effectiveLabels Changes to this property will trigger replacement. Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
errors List<Property Map>
The PrivateConnection error in case of failure. Structure is documented below.
labels Map<String>
Labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
location Changes to this property will trigger replacement. String
The name of the location this private connection is located in.
name String
The resource's name.
privateConnectionId Changes to this property will trigger replacement. String
The private connectivity identifier.
project Changes to this property will trigger replacement. String
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
state String
State of the PrivateConnection.
vpcPeeringConfig Changes to this property will trigger replacement. Property Map
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC. Structure is documented below.

Supporting Types

PrivateConnectionError
, PrivateConnectionErrorArgs

Details Dictionary<string, string>
A list of messages that carry the error details.
Message string
A message containing more information about the error that occurred.
Details map[string]string
A list of messages that carry the error details.
Message string
A message containing more information about the error that occurred.
details Map<String,String>
A list of messages that carry the error details.
message String
A message containing more information about the error that occurred.
details {[key: string]: string}
A list of messages that carry the error details.
message string
A message containing more information about the error that occurred.
details Mapping[str, str]
A list of messages that carry the error details.
message str
A message containing more information about the error that occurred.
details Map<String>
A list of messages that carry the error details.
message String
A message containing more information about the error that occurred.

PrivateConnectionVpcPeeringConfig
, PrivateConnectionVpcPeeringConfigArgs

Subnet
This property is required.
Changes to this property will trigger replacement.
string
A free subnet for peering. (CIDR of /29)


Vpc
This property is required.
Changes to this property will trigger replacement.
string
Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}
Subnet
This property is required.
Changes to this property will trigger replacement.
string
A free subnet for peering. (CIDR of /29)


Vpc
This property is required.
Changes to this property will trigger replacement.
string
Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}
subnet
This property is required.
Changes to this property will trigger replacement.
String
A free subnet for peering. (CIDR of /29)


vpc
This property is required.
Changes to this property will trigger replacement.
String
Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}
subnet
This property is required.
Changes to this property will trigger replacement.
string
A free subnet for peering. (CIDR of /29)


vpc
This property is required.
Changes to this property will trigger replacement.
string
Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}
subnet
This property is required.
Changes to this property will trigger replacement.
str
A free subnet for peering. (CIDR of /29)


vpc
This property is required.
Changes to this property will trigger replacement.
str
Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}
subnet
This property is required.
Changes to this property will trigger replacement.
String
A free subnet for peering. (CIDR of /29)


vpc
This property is required.
Changes to this property will trigger replacement.
String
Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}

Import

PrivateConnection can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/privateConnections/{{private_connection_id}}

  • {{project}}/{{location}}/{{private_connection_id}}

  • {{location}}/{{private_connection_id}}

When using the pulumi import command, PrivateConnection can be imported using one of the formats above. For example:

$ pulumi import gcp:datastream/privateConnection:PrivateConnection default projects/{{project}}/locations/{{location}}/privateConnections/{{private_connection_id}}
Copy
$ pulumi import gcp:datastream/privateConnection:PrivateConnection default {{project}}/{{location}}/{{private_connection_id}}
Copy
$ pulumi import gcp:datastream/privateConnection:PrivateConnection default {{location}}/{{private_connection_id}}
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.