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",
});
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")
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
})
}
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",
});
});
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());
}
}
configuration:
clusterId:
type: string
resources:
example:
type: cockroach:PrivateEndpointTrustedOwner
properties:
clusterId: ${clusterId}
type: AWS_ACCOUNT_ID
externalOwnerId: '012345678901'
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 string
- The unique name of the resource.
- args PrivateEndpointTrustedOwnerArgs
- 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 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 string
- The unique name of the resource.
- args PrivateEndpointTrustedOwnerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateEndpointTrustedOwnerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := cockroach.NewPrivateEndpointTrustedOwner(ctx, "privateEndpointTrustedOwnerResource", &cockroach.PrivateEndpointTrustedOwnerArgs{
ClusterId: pulumi.String("string"),
ExternalOwnerId: pulumi.String("string"),
Type: pulumi.String("string"),
})
var privateEndpointTrustedOwnerResource = new PrivateEndpointTrustedOwner("privateEndpointTrustedOwnerResource", PrivateEndpointTrustedOwnerArgs.builder()
.clusterId("string")
.externalOwnerId("string")
.type("string")
.build());
private_endpoint_trusted_owner_resource = cockroach.PrivateEndpointTrustedOwner("privateEndpointTrustedOwnerResource",
cluster_id="string",
external_owner_id="string",
type="string")
const privateEndpointTrustedOwnerResource = new cockroach.PrivateEndpointTrustedOwner("privateEndpointTrustedOwnerResource", {
clusterId: "string",
externalOwnerId: "string",
type: "string",
});
type: cockroach:PrivateEndpointTrustedOwner
properties:
clusterId: string
externalOwnerId: string
type: string
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:
- Cluster
Id string - UUID of the cluster the private endpoint trusted owner entry belongs to.
- External
Owner stringId - Owner ID of the private endpoint connection in the cloud provider.
- Type string
- Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
- Cluster
Id string - UUID of the cluster the private endpoint trusted owner entry belongs to.
- External
Owner stringId - Owner ID of the private endpoint connection in the cloud provider.
- Type string
- Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
- cluster
Id String - UUID of the cluster the private endpoint trusted owner entry belongs to.
- external
Owner StringId - Owner ID of the private endpoint connection in the cloud provider.
- type String
- Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
- cluster
Id string - UUID of the cluster the private endpoint trusted owner entry belongs to.
- external
Owner stringId - Owner ID of the private endpoint connection in the cloud provider.
- 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_ strid - Owner ID of the private endpoint connection in the cloud provider.
- type str
- Representation of the external_owner_id field. Allowed values are: * AWS_ACCOUNT_ID
- cluster
Id String - UUID of the cluster the private endpoint trusted owner entry belongs to.
- external
Owner StringId - Owner ID of the private endpoint connection in the cloud provider.
- type 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:
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)
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.
- Cluster
Id string - UUID of the cluster the private endpoint trusted owner entry belongs to.
- External
Owner stringId - Owner ID of the private endpoint connection in the cloud provider.
- Owner
Id 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 string - UUID of the cluster the private endpoint trusted owner entry belongs to.
- External
Owner stringId - Owner ID of the private endpoint connection in the cloud provider.
- Owner
Id 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 String - UUID of the cluster the private endpoint trusted owner entry belongs to.
- external
Owner StringId - Owner ID of the private endpoint connection in the cloud provider.
- owner
Id 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 string - UUID of the cluster the private endpoint trusted owner entry belongs to.
- external
Owner stringId - Owner ID of the private endpoint connection in the cloud provider.
- owner
Id 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_ strid - 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
- cluster
Id String - UUID of the cluster the private endpoint trusted owner entry belongs to.
- external
Owner StringId - Owner ID of the private endpoint connection in the cloud provider.
- owner
Id 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
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.