1. Packages
  2. CockroachDB Cloud
  3. API Docs
  4. PrivateEndpointTrustedOwner
CockroachDB v0.9.4 published on Friday, Mar 21, 2025 by pulumiverse

cockroach.PrivateEndpointTrustedOwner

Explore with Pulumi AI

Private Endpoint Trusted Owner.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cockroach from "@pulumiverse/cockroach";

const config = new pulumi.Config();
const clusterId = config.require("clusterId");
const example = new cockroach.PrivateEndpointTrustedOwner("example", {
    clusterId: clusterId,
    type: "AWS_ACCOUNT_ID",
    externalOwnerId: "012345678901",
});
Copy
import pulumi
import pulumiverse_cockroach as cockroach

config = pulumi.Config()
cluster_id = config.require("clusterId")
example = cockroach.PrivateEndpointTrustedOwner("example",
    cluster_id=cluster_id,
    type="AWS_ACCOUNT_ID",
    external_owner_id="012345678901")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
	"github.com/pulumiverse/pulumi-cockroach/sdk/go/cockroach"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		clusterId := cfg.Require("clusterId")
		_, err := cockroach.NewPrivateEndpointTrustedOwner(ctx, "example", &cockroach.PrivateEndpointTrustedOwnerArgs{
			ClusterId:       pulumi.String(clusterId),
			Type:            pulumi.String("AWS_ACCOUNT_ID"),
			ExternalOwnerId: pulumi.String("012345678901"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cockroach = Pulumiverse.Cockroach;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var clusterId = config.Require("clusterId");
    var example = new Cockroach.PrivateEndpointTrustedOwner("example", new()
    {
        ClusterId = clusterId,
        Type = "AWS_ACCOUNT_ID",
        ExternalOwnerId = "012345678901",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cockroach.PrivateEndpointTrustedOwner;
import com.pulumi.cockroach.PrivateEndpointTrustedOwnerArgs;
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) {
        final var config = ctx.config();
        final var clusterId = config.get("clusterId");
        var example = new PrivateEndpointTrustedOwner("example", PrivateEndpointTrustedOwnerArgs.builder()
            .clusterId(clusterId)
            .type("AWS_ACCOUNT_ID")
            .externalOwnerId("012345678901")
            .build());

    }
}
Copy
configuration:
  clusterId:
    type: string
resources:
  example:
    type: cockroach:PrivateEndpointTrustedOwner
    properties:
      clusterId: ${clusterId}
      type: AWS_ACCOUNT_ID
      externalOwnerId: '012345678901'
Copy

Create PrivateEndpointTrustedOwner Resource

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

Constructor syntax

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

@overload
def PrivateEndpointTrustedOwner(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                cluster_id: Optional[str] = None,
                                external_owner_id: Optional[str] = None,
                                type: Optional[str] = None)
func NewPrivateEndpointTrustedOwner(ctx *Context, name string, args PrivateEndpointTrustedOwnerArgs, opts ...ResourceOption) (*PrivateEndpointTrustedOwner, error)
public PrivateEndpointTrustedOwner(string name, PrivateEndpointTrustedOwnerArgs args, CustomResourceOptions? opts = null)
public PrivateEndpointTrustedOwner(String name, PrivateEndpointTrustedOwnerArgs args)
public PrivateEndpointTrustedOwner(String name, PrivateEndpointTrustedOwnerArgs args, CustomResourceOptions options)
type: cockroach:PrivateEndpointTrustedOwner
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. PrivateEndpointTrustedOwnerArgs
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. PrivateEndpointTrustedOwnerArgs
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. PrivateEndpointTrustedOwnerArgs
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. PrivateEndpointTrustedOwnerArgs
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. PrivateEndpointTrustedOwnerArgs
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 privateEndpointTrustedOwnerResource = new Cockroach.PrivateEndpointTrustedOwner("privateEndpointTrustedOwnerResource", new()
{
    ClusterId = "string",
    ExternalOwnerId = "string",
    Type = "string",
});
Copy
example, err := cockroach.NewPrivateEndpointTrustedOwner(ctx, "privateEndpointTrustedOwnerResource", &cockroach.PrivateEndpointTrustedOwnerArgs{
	ClusterId:       pulumi.String("string"),
	ExternalOwnerId: pulumi.String("string"),
	Type:            pulumi.String("string"),
})
Copy
var privateEndpointTrustedOwnerResource = new PrivateEndpointTrustedOwner("privateEndpointTrustedOwnerResource", PrivateEndpointTrustedOwnerArgs.builder()
    .clusterId("string")
    .externalOwnerId("string")
    .type("string")
    .build());
Copy
private_endpoint_trusted_owner_resource = cockroach.PrivateEndpointTrustedOwner("privateEndpointTrustedOwnerResource",
    cluster_id="string",
    external_owner_id="string",
    type="string")
Copy
const privateEndpointTrustedOwnerResource = new cockroach.PrivateEndpointTrustedOwner("privateEndpointTrustedOwnerResource", {
    clusterId: "string",
    externalOwnerId: "string",
    type: "string",
});
Copy
type: cockroach:PrivateEndpointTrustedOwner
properties:
    clusterId: string
    externalOwnerId: string
    type: string
Copy

PrivateEndpointTrustedOwner 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 PrivateEndpointTrustedOwner resource accepts the following input properties:

ClusterId This property is required. string
UUID of the cluster the private endpoint trusted owner entry belongs to.
ExternalOwnerId This property is required. string
Owner ID of the private endpoint connection in the cloud provider.
Type This property is required. string
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
ClusterId This property is required. string
UUID of the cluster the private endpoint trusted owner entry belongs to.
ExternalOwnerId This property is required. string
Owner ID of the private endpoint connection in the cloud provider.
Type This property is required. string
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
clusterId This property is required. String
UUID of the cluster the private endpoint trusted owner entry belongs to.
externalOwnerId This property is required. String
Owner ID of the private endpoint connection in the cloud provider.
type This property is required. String
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
clusterId This property is required. string
UUID of the cluster the private endpoint trusted owner entry belongs to.
externalOwnerId This property is required. string
Owner ID of the private endpoint connection in the cloud provider.
type This property is required. string
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
cluster_id This property is required. str
UUID of the cluster the private endpoint trusted owner entry belongs to.
external_owner_id This property is required. str
Owner ID of the private endpoint connection in the cloud provider.
type This property is required. str
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
clusterId This property is required. String
UUID of the cluster the private endpoint trusted owner entry belongs to.
externalOwnerId This property is required. String
Owner ID of the private endpoint connection in the cloud provider.
type This property is required. String
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
UUID of the private endpoint trusted owner entry.
Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
UUID of the private endpoint trusted owner entry.
id String
The provider-assigned unique ID for this managed resource.
ownerId String
UUID of the private endpoint trusted owner entry.
id string
The provider-assigned unique ID for this managed resource.
ownerId string
UUID of the private endpoint trusted owner entry.
id str
The provider-assigned unique ID for this managed resource.
owner_id str
UUID of the private endpoint trusted owner entry.
id String
The provider-assigned unique ID for this managed resource.
ownerId String
UUID of the private endpoint trusted owner entry.

Look up Existing PrivateEndpointTrustedOwner Resource

Get an existing PrivateEndpointTrustedOwner 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?: PrivateEndpointTrustedOwnerState, opts?: CustomResourceOptions): PrivateEndpointTrustedOwner
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None,
        external_owner_id: Optional[str] = None,
        owner_id: Optional[str] = None,
        type: Optional[str] = None) -> PrivateEndpointTrustedOwner
func GetPrivateEndpointTrustedOwner(ctx *Context, name string, id IDInput, state *PrivateEndpointTrustedOwnerState, opts ...ResourceOption) (*PrivateEndpointTrustedOwner, error)
public static PrivateEndpointTrustedOwner Get(string name, Input<string> id, PrivateEndpointTrustedOwnerState? state, CustomResourceOptions? opts = null)
public static PrivateEndpointTrustedOwner get(String name, Output<String> id, PrivateEndpointTrustedOwnerState state, CustomResourceOptions options)
resources:  _:    type: cockroach:PrivateEndpointTrustedOwner    get:      id: ${id}
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:
ClusterId string
UUID of the cluster the private endpoint trusted owner entry belongs to.
ExternalOwnerId string
Owner ID of the private endpoint connection in the cloud provider.
OwnerId string
UUID of the private endpoint trusted owner entry.
Type string
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
ClusterId string
UUID of the cluster the private endpoint trusted owner entry belongs to.
ExternalOwnerId string
Owner ID of the private endpoint connection in the cloud provider.
OwnerId string
UUID of the private endpoint trusted owner entry.
Type string
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
clusterId String
UUID of the cluster the private endpoint trusted owner entry belongs to.
externalOwnerId String
Owner ID of the private endpoint connection in the cloud provider.
ownerId String
UUID of the private endpoint trusted owner entry.
type String
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
clusterId string
UUID of the cluster the private endpoint trusted owner entry belongs to.
externalOwnerId string
Owner ID of the private endpoint connection in the cloud provider.
ownerId string
UUID of the private endpoint trusted owner entry.
type string
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
cluster_id str
UUID of the cluster the private endpoint trusted owner entry belongs to.
external_owner_id str
Owner ID of the private endpoint connection in the cloud provider.
owner_id str
UUID of the private endpoint trusted owner entry.
type str
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
clusterId String
UUID of the cluster the private endpoint trusted owner entry belongs to.
externalOwnerId String
Owner ID of the private endpoint connection in the cloud provider.
ownerId String
UUID of the private endpoint trusted owner entry.
type String
Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID

Import

format: :

$ pulumi import cockroach:index/privateEndpointTrustedOwner:PrivateEndpointTrustedOwner resource_name 1f69fdd2-600a-4cfc-a9ba-16995df0d77d:e50aa10d-1a16-4be8-85e6-4c18221daa49
Copy

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.