CockroachDB v0.2.3 published on Monday, May 27, 2024 by pulumiverse
cockroach.CaCert
Explore with Pulumi AI
Manages client CA certs.
Create CaCert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CaCert(name: string, args: CaCertArgs, opts?: CustomResourceOptions);
@overload
def CaCert(resource_name: str,
args: CaCertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CaCert(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
x509_pem_cert: Optional[str] = None)
func NewCaCert(ctx *Context, name string, args CaCertArgs, opts ...ResourceOption) (*CaCert, error)
public CaCert(string name, CaCertArgs args, CustomResourceOptions? opts = null)
public CaCert(String name, CaCertArgs args)
public CaCert(String name, CaCertArgs args, CustomResourceOptions options)
type: cockroach:CaCert
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 CaCertArgs
- 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 CaCertArgs
- 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 CaCertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CaCertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CaCertArgs
- 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 caCertResource = new Cockroach.CaCert("caCertResource", new()
{
ClusterId = "string",
X509PemCert = "string",
});
example, err := cockroach.NewCaCert(ctx, "caCertResource", &cockroach.CaCertArgs{
ClusterId: pulumi.String("string"),
X509PemCert: pulumi.String("string"),
})
var caCertResource = new CaCert("caCertResource", CaCertArgs.builder()
.clusterId("string")
.x509PemCert("string")
.build());
ca_cert_resource = cockroach.CaCert("caCertResource",
cluster_id="string",
x509_pem_cert="string")
const caCertResource = new cockroach.CaCert("caCertResource", {
clusterId: "string",
x509PemCert: "string",
});
type: cockroach:CaCert
properties:
clusterId: string
x509PemCert: string
CaCert 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 CaCert resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- X509Pem
Cert string - X509 certificate in PEM format.
- Cluster
Id string - Cluster ID.
- X509Pem
Cert string - X509 certificate in PEM format.
- cluster
Id String - Cluster ID.
- x509Pem
Cert String - X509 certificate in PEM format.
- cluster
Id string - Cluster ID.
- x509Pem
Cert string - X509 certificate in PEM format.
- cluster_
id str - Cluster ID.
- x509_
pem_ strcert - X509 certificate in PEM format.
- cluster
Id String - Cluster ID.
- x509Pem
Cert String - X509 certificate in PEM format.
Outputs
All input properties are implicitly available as output properties. Additionally, the CaCert resource produces the following output properties:
Look up Existing CaCert Resource
Get an existing CaCert 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?: CaCertState, opts?: CustomResourceOptions): CaCert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
status: Optional[str] = None,
x509_pem_cert: Optional[str] = None) -> CaCert
func GetCaCert(ctx *Context, name string, id IDInput, state *CaCertState, opts ...ResourceOption) (*CaCert, error)
public static CaCert Get(string name, Input<string> id, CaCertState? state, CustomResourceOptions? opts = null)
public static CaCert get(String name, Output<String> id, CaCertState 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 - Cluster ID.
- Status string
- Status of client CA certs on a cluster.
- X509Pem
Cert string - X509 certificate in PEM format.
- Cluster
Id string - Cluster ID.
- Status string
- Status of client CA certs on a cluster.
- X509Pem
Cert string - X509 certificate in PEM format.
- cluster
Id String - Cluster ID.
- status String
- Status of client CA certs on a cluster.
- x509Pem
Cert String - X509 certificate in PEM format.
- cluster
Id string - Cluster ID.
- status string
- Status of client CA certs on a cluster.
- x509Pem
Cert string - X509 certificate in PEM format.
- cluster_
id str - Cluster ID.
- status str
- Status of client CA certs on a cluster.
- x509_
pem_ strcert - X509 certificate in PEM format.
- cluster
Id String - Cluster ID.
- status String
- Status of client CA certs on a cluster.
- x509Pem
Cert String - X509 certificate in PEM format.
Package Details
- Repository
- cockroach pulumiverse/pulumi-cockroach
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cockroach
Terraform Provider.