Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.datamigration/v1.PrivateConnection
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new private connection in a given project and location.
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,
private_connection_id: Optional[str] = None,
display_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
skip_validation: Optional[bool] = None,
vpc_peering_config: Optional[VpcPeeringConfigArgs] = 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: google-native:datamigration/v1:PrivateConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args PrivateConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args PrivateConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 privateConnectionResource = new GoogleNative.Datamigration.V1.PrivateConnection("privateConnectionResource", new()
{
PrivateConnectionId = "string",
DisplayName = "string",
Labels =
{
{ "string", "string" },
},
Location = "string",
Name = "string",
Project = "string",
RequestId = "string",
SkipValidation = false,
VpcPeeringConfig = new GoogleNative.Datamigration.V1.Inputs.VpcPeeringConfigArgs
{
Subnet = "string",
VpcName = "string",
},
});
example, err := datamigration.NewPrivateConnection(ctx, "privateConnectionResource", &datamigration.PrivateConnectionArgs{
PrivateConnectionId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
SkipValidation: pulumi.Bool(false),
VpcPeeringConfig: &datamigration.VpcPeeringConfigArgs{
Subnet: pulumi.String("string"),
VpcName: pulumi.String("string"),
},
})
var privateConnectionResource = new PrivateConnection("privateConnectionResource", PrivateConnectionArgs.builder()
.privateConnectionId("string")
.displayName("string")
.labels(Map.of("string", "string"))
.location("string")
.name("string")
.project("string")
.requestId("string")
.skipValidation(false)
.vpcPeeringConfig(VpcPeeringConfigArgs.builder()
.subnet("string")
.vpcName("string")
.build())
.build());
private_connection_resource = google_native.datamigration.v1.PrivateConnection("privateConnectionResource",
private_connection_id="string",
display_name="string",
labels={
"string": "string",
},
location="string",
name="string",
project="string",
request_id="string",
skip_validation=False,
vpc_peering_config=google_native.datamigration.v1.VpcPeeringConfigArgs(
subnet="string",
vpc_name="string",
))
const privateConnectionResource = new google_native.datamigration.v1.PrivateConnection("privateConnectionResource", {
privateConnectionId: "string",
displayName: "string",
labels: {
string: "string",
},
location: "string",
name: "string",
project: "string",
requestId: "string",
skipValidation: false,
vpcPeeringConfig: {
subnet: "string",
vpcName: "string",
},
});
type: google-native:datamigration/v1:PrivateConnection
properties:
displayName: string
labels:
string: string
location: string
name: string
privateConnectionId: string
project: string
requestId: string
skipValidation: false
vpcPeeringConfig:
subnet: string
vpcName: string
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
The PrivateConnection resource accepts the following input properties:
- Private
Connection stringId - Required. The private connection identifier.
- Display
Name string - The private connection display name.
- Labels Dictionary<string, string>
- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:
{ "name": "wrench", "mass": "1.3kg", "count": "3" }
. - Location string
- Name string
- The name of the resource.
- Project string
- Request
Id string - Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- Skip
Validation bool - Optional. If set to true, will skip validations.
- Vpc
Peering Pulumi.Config Google Native. Datamigration. V1. Inputs. Vpc Peering Config - VPC peering configuration.
- Private
Connection stringId - Required. The private connection identifier.
- Display
Name string - The private connection display name.
- Labels map[string]string
- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:
{ "name": "wrench", "mass": "1.3kg", "count": "3" }
. - Location string
- Name string
- The name of the resource.
- Project string
- Request
Id string - Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- Skip
Validation bool - Optional. If set to true, will skip validations.
- Vpc
Peering VpcConfig Peering Config Args - VPC peering configuration.
- private
Connection StringId - Required. The private connection identifier.
- display
Name String - The private connection display name.
- labels Map<String,String>
- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:
{ "name": "wrench", "mass": "1.3kg", "count": "3" }
. - location String
- name String
- The name of the resource.
- project String
- request
Id String - Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- skip
Validation Boolean - Optional. If set to true, will skip validations.
- vpc
Peering VpcConfig Peering Config - VPC peering configuration.
- private
Connection stringId - Required. The private connection identifier.
- display
Name string - The private connection display name.
- labels {[key: string]: string}
- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:
{ "name": "wrench", "mass": "1.3kg", "count": "3" }
. - location string
- name string
- The name of the resource.
- project string
- request
Id string - Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- skip
Validation boolean - Optional. If set to true, will skip validations.
- vpc
Peering VpcConfig Peering Config - VPC peering configuration.
- private_
connection_ strid - Required. The private connection identifier.
- display_
name str - The private connection display name.
- labels Mapping[str, str]
- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:
{ "name": "wrench", "mass": "1.3kg", "count": "3" }
. - location str
- name str
- The name of the resource.
- project str
- request_
id str - Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- skip_
validation bool - Optional. If set to true, will skip validations.
- vpc_
peering_ Vpcconfig Peering Config Args - VPC peering configuration.
- private
Connection StringId - Required. The private connection identifier.
- display
Name String - The private connection display name.
- labels Map<String>
- The resource labels for private connections to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example:
{ "name": "wrench", "mass": "1.3kg", "count": "3" }
. - location String
- name String
- The name of the resource.
- project String
- request
Id String - Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
- skip
Validation Boolean - Optional. If set to true, will skip validations.
- vpc
Peering Property MapConfig - VPC peering configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateConnection resource produces the following output properties:
- Create
Time string - The create time of the resource.
- Error
Pulumi.
Google Native. Datamigration. V1. Outputs. Status Response - The error details in case of state FAILED.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The state of the private connection.
- Update
Time string - The last update time of the resource.
- Create
Time string - The create time of the resource.
- Error
Status
Response - The error details in case of state FAILED.
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- The state of the private connection.
- Update
Time string - The last update time of the resource.
- create
Time String - The create time of the resource.
- error
Status
Response - The error details in case of state FAILED.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The state of the private connection.
- update
Time String - The last update time of the resource.
- create
Time string - The create time of the resource.
- error
Status
Response - The error details in case of state FAILED.
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- The state of the private connection.
- update
Time string - The last update time of the resource.
- create_
time str - The create time of the resource.
- error
Status
Response - The error details in case of state FAILED.
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- The state of the private connection.
- update_
time str - The last update time of the resource.
- create
Time String - The create time of the resource.
- error Property Map
- The error details in case of state FAILED.
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- The state of the private connection.
- update
Time String - The last update time of the resource.
Supporting Types
StatusResponse, StatusResponseArgs
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details
List<Immutable
Dictionary<string, string>> - A list of messages that carry the error details. There is a common set of message types for APIs to use.
- Message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- Code int
- The status code, which should be an enum value of google.rpc.Code.
- Details []map[string]string
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- Message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code Integer
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String,String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message String
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code number
- The status code, which should be an enum value of google.rpc.Code.
- details {[key: string]: string}[]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message string
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code int
- The status code, which should be an enum value of google.rpc.Code.
- details Sequence[Mapping[str, str]]
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message str
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
- code Number
- The status code, which should be an enum value of google.rpc.Code.
- details List<Map<String>>
- A list of messages that carry the error details. There is a common set of message types for APIs to use.
- message String
- A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
VpcPeeringConfig, VpcPeeringConfigArgs
VpcPeeringConfigResponse, VpcPeeringConfigResponseArgs
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.