cockroach.PrivateEndpointConnection
Explore with Pulumi AI
Private endpoint connections allow customer applications to connect to a CockroachDB Cloud cluster without traversing the public internet. All application-database traffic remains within the cloud-provider network.
Create PrivateEndpointConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateEndpointConnection(name: string, args: PrivateEndpointConnectionArgs, opts?: CustomResourceOptions);
@overload
def PrivateEndpointConnection(resource_name: str,
args: PrivateEndpointConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateEndpointConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
endpoint_id: Optional[str] = None)
func NewPrivateEndpointConnection(ctx *Context, name string, args PrivateEndpointConnectionArgs, opts ...ResourceOption) (*PrivateEndpointConnection, error)
public PrivateEndpointConnection(string name, PrivateEndpointConnectionArgs args, CustomResourceOptions? opts = null)
public PrivateEndpointConnection(String name, PrivateEndpointConnectionArgs args)
public PrivateEndpointConnection(String name, PrivateEndpointConnectionArgs args, CustomResourceOptions options)
type: cockroach:PrivateEndpointConnection
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 PrivateEndpointConnectionArgs
- 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 PrivateEndpointConnectionArgs
- 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 PrivateEndpointConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateEndpointConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateEndpointConnectionArgs
- 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 privateEndpointConnectionResource = new Cockroach.PrivateEndpointConnection("privateEndpointConnectionResource", new()
{
ClusterId = "string",
EndpointId = "string",
});
example, err := cockroach.NewPrivateEndpointConnection(ctx, "privateEndpointConnectionResource", &cockroach.PrivateEndpointConnectionArgs{
ClusterId: pulumi.String("string"),
EndpointId: pulumi.String("string"),
})
var privateEndpointConnectionResource = new PrivateEndpointConnection("privateEndpointConnectionResource", PrivateEndpointConnectionArgs.builder()
.clusterId("string")
.endpointId("string")
.build());
private_endpoint_connection_resource = cockroach.PrivateEndpointConnection("privateEndpointConnectionResource",
cluster_id="string",
endpoint_id="string")
const privateEndpointConnectionResource = new cockroach.PrivateEndpointConnection("privateEndpointConnectionResource", {
clusterId: "string",
endpointId: "string",
});
type: cockroach:PrivateEndpointConnection
properties:
clusterId: string
endpointId: string
PrivateEndpointConnection 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 PrivateEndpointConnection resource accepts the following input properties:
- Cluster
Id string - Endpoint
Id string - Client side ID of the Private Endpoint Connection.
- Cluster
Id string - Endpoint
Id string - Client side ID of the Private Endpoint Connection.
- cluster
Id String - endpoint
Id String - Client side ID of the Private Endpoint Connection.
- cluster
Id string - endpoint
Id string - Client side ID of the Private Endpoint Connection.
- cluster_
id str - endpoint_
id str - Client side ID of the Private Endpoint Connection.
- cluster
Id String - endpoint
Id String - Client side ID of the Private Endpoint Connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateEndpointConnection resource produces the following output properties:
- Cloud
Provider string - Cloud provider associated with this connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Name string - Cloud provider region code associated with this connection.
- Service
Id string - Server side ID of the Private Endpoint Connection.
- Cloud
Provider string - Cloud provider associated with this connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Name string - Cloud provider region code associated with this connection.
- Service
Id string - Server side ID of the Private Endpoint Connection.
- cloud
Provider String - Cloud provider associated with this connection.
- id String
- The provider-assigned unique ID for this managed resource.
- region
Name String - Cloud provider region code associated with this connection.
- service
Id String - Server side ID of the Private Endpoint Connection.
- cloud
Provider string - Cloud provider associated with this connection.
- id string
- The provider-assigned unique ID for this managed resource.
- region
Name string - Cloud provider region code associated with this connection.
- service
Id string - Server side ID of the Private Endpoint Connection.
- cloud_
provider str - Cloud provider associated with this connection.
- id str
- The provider-assigned unique ID for this managed resource.
- region_
name str - Cloud provider region code associated with this connection.
- service_
id str - Server side ID of the Private Endpoint Connection.
- cloud
Provider String - Cloud provider associated with this connection.
- id String
- The provider-assigned unique ID for this managed resource.
- region
Name String - Cloud provider region code associated with this connection.
- service
Id String - Server side ID of the Private Endpoint Connection.
Look up Existing PrivateEndpointConnection Resource
Get an existing PrivateEndpointConnection 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?: PrivateEndpointConnectionState, opts?: CustomResourceOptions): PrivateEndpointConnection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
cluster_id: Optional[str] = None,
endpoint_id: Optional[str] = None,
region_name: Optional[str] = None,
service_id: Optional[str] = None) -> PrivateEndpointConnection
func GetPrivateEndpointConnection(ctx *Context, name string, id IDInput, state *PrivateEndpointConnectionState, opts ...ResourceOption) (*PrivateEndpointConnection, error)
public static PrivateEndpointConnection Get(string name, Input<string> id, PrivateEndpointConnectionState? state, CustomResourceOptions? opts = null)
public static PrivateEndpointConnection get(String name, Output<String> id, PrivateEndpointConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Cloud
Provider string - Cloud provider associated with this connection.
- Cluster
Id string - Endpoint
Id string - Client side ID of the Private Endpoint Connection.
- Region
Name string - Cloud provider region code associated with this connection.
- Service
Id string - Server side ID of the Private Endpoint Connection.
- Cloud
Provider string - Cloud provider associated with this connection.
- Cluster
Id string - Endpoint
Id string - Client side ID of the Private Endpoint Connection.
- Region
Name string - Cloud provider region code associated with this connection.
- Service
Id string - Server side ID of the Private Endpoint Connection.
- cloud
Provider String - Cloud provider associated with this connection.
- cluster
Id String - endpoint
Id String - Client side ID of the Private Endpoint Connection.
- region
Name String - Cloud provider region code associated with this connection.
- service
Id String - Server side ID of the Private Endpoint Connection.
- cloud
Provider string - Cloud provider associated with this connection.
- cluster
Id string - endpoint
Id string - Client side ID of the Private Endpoint Connection.
- region
Name string - Cloud provider region code associated with this connection.
- service
Id string - Server side ID of the Private Endpoint Connection.
- cloud_
provider str - Cloud provider associated with this connection.
- cluster_
id str - endpoint_
id str - Client side ID of the Private Endpoint Connection.
- region_
name str - Cloud provider region code associated with this connection.
- service_
id str - Server side ID of the Private Endpoint Connection.
- cloud
Provider String - Cloud provider associated with this connection.
- cluster
Id String - endpoint
Id String - Client side ID of the Private Endpoint Connection.
- region
Name String - Cloud provider region code associated with this connection.
- service
Id String - Server side ID of the Private Endpoint Connection.
Import
format:
$ pulumi import cockroach:index/privateEndpointConnection:PrivateEndpointConnection resource_name 1f69fdd2-600a-4cfc-a9ba-16995df0d77d:vpce-0c1308d7312217abc
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- cockroach pulumiverse/pulumi-cockroach
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cockroach
Terraform Provider.