confluentcloud.CertificateAuthority
Explore with Pulumi AI
confluentcloud.CertificateAuthority
provides a Certificate Authority resource that enables creating, editing, and deleting Certificate Authorities on Confluent Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const main = new confluentcloud.CertificateAuthority("main", {
displayName: "my_certificate_authority",
description: "description",
certificateChainFilename: "certificate.pem",
certificateChain: "***REDACTED***",
});
import pulumi
import pulumi_confluentcloud as confluentcloud
main = confluentcloud.CertificateAuthority("main",
display_name="my_certificate_authority",
description="description",
certificate_chain_filename="certificate.pem",
certificate_chain="***REDACTED***")
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := confluentcloud.NewCertificateAuthority(ctx, "main", &confluentcloud.CertificateAuthorityArgs{
DisplayName: pulumi.String("my_certificate_authority"),
Description: pulumi.String("description"),
CertificateChainFilename: pulumi.String("certificate.pem"),
CertificateChain: pulumi.String("***REDACTED***"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var main = new ConfluentCloud.CertificateAuthority("main", new()
{
DisplayName = "my_certificate_authority",
Description = "description",
CertificateChainFilename = "certificate.pem",
CertificateChain = "***REDACTED***",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.CertificateAuthority;
import com.pulumi.confluentcloud.CertificateAuthorityArgs;
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) {
var main = new CertificateAuthority("main", CertificateAuthorityArgs.builder()
.displayName("my_certificate_authority")
.description("description")
.certificateChainFilename("certificate.pem")
.certificateChain("***REDACTED***")
.build());
}
}
resources:
main:
type: confluentcloud:CertificateAuthority
properties:
displayName: my_certificate_authority
description: description
certificateChainFilename: certificate.pem
certificateChain: '***REDACTED***'
Create CertificateAuthority Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CertificateAuthority(name: string, args: CertificateAuthorityArgs, opts?: CustomResourceOptions);
@overload
def CertificateAuthority(resource_name: str,
args: CertificateAuthorityArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CertificateAuthority(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_chain: Optional[str] = None,
certificate_chain_filename: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
crl_chain: Optional[str] = None,
crl_url: Optional[str] = None)
func NewCertificateAuthority(ctx *Context, name string, args CertificateAuthorityArgs, opts ...ResourceOption) (*CertificateAuthority, error)
public CertificateAuthority(string name, CertificateAuthorityArgs args, CustomResourceOptions? opts = null)
public CertificateAuthority(String name, CertificateAuthorityArgs args)
public CertificateAuthority(String name, CertificateAuthorityArgs args, CustomResourceOptions options)
type: confluentcloud:CertificateAuthority
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 CertificateAuthorityArgs
- 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 CertificateAuthorityArgs
- 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 CertificateAuthorityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateAuthorityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateAuthorityArgs
- 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 certificateAuthorityResource = new ConfluentCloud.CertificateAuthority("certificateAuthorityResource", new()
{
CertificateChain = "string",
CertificateChainFilename = "string",
Description = "string",
DisplayName = "string",
CrlChain = "string",
CrlUrl = "string",
});
example, err := confluentcloud.NewCertificateAuthority(ctx, "certificateAuthorityResource", &confluentcloud.CertificateAuthorityArgs{
CertificateChain: pulumi.String("string"),
CertificateChainFilename: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
CrlChain: pulumi.String("string"),
CrlUrl: pulumi.String("string"),
})
var certificateAuthorityResource = new CertificateAuthority("certificateAuthorityResource", CertificateAuthorityArgs.builder()
.certificateChain("string")
.certificateChainFilename("string")
.description("string")
.displayName("string")
.crlChain("string")
.crlUrl("string")
.build());
certificate_authority_resource = confluentcloud.CertificateAuthority("certificateAuthorityResource",
certificate_chain="string",
certificate_chain_filename="string",
description="string",
display_name="string",
crl_chain="string",
crl_url="string")
const certificateAuthorityResource = new confluentcloud.CertificateAuthority("certificateAuthorityResource", {
certificateChain: "string",
certificateChainFilename: "string",
description: "string",
displayName: "string",
crlChain: "string",
crlUrl: "string",
});
type: confluentcloud:CertificateAuthority
properties:
certificateChain: string
certificateChainFilename: string
crlChain: string
crlUrl: string
description: string
displayName: string
CertificateAuthority 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 CertificateAuthority resource accepts the following input properties:
- Certificate
Chain string - A base64 encoded string containing the signing certificate chain.
- Certificate
Chain stringFilename - The name of the certificate file.
- Description string
- A description of the Certificate Authority.
- Display
Name string - The name of the Certificate Authority.
- Crl
Chain string - A base64 encoded string containing the CRL for this certificate authority.
- Crl
Url string - The url from which to fetch the CRL for the certificate authority.
- Certificate
Chain string - A base64 encoded string containing the signing certificate chain.
- Certificate
Chain stringFilename - The name of the certificate file.
- Description string
- A description of the Certificate Authority.
- Display
Name string - The name of the Certificate Authority.
- Crl
Chain string - A base64 encoded string containing the CRL for this certificate authority.
- Crl
Url string - The url from which to fetch the CRL for the certificate authority.
- certificate
Chain String - A base64 encoded string containing the signing certificate chain.
- certificate
Chain StringFilename - The name of the certificate file.
- description String
- A description of the Certificate Authority.
- display
Name String - The name of the Certificate Authority.
- crl
Chain String - A base64 encoded string containing the CRL for this certificate authority.
- crl
Url String - The url from which to fetch the CRL for the certificate authority.
- certificate
Chain string - A base64 encoded string containing the signing certificate chain.
- certificate
Chain stringFilename - The name of the certificate file.
- description string
- A description of the Certificate Authority.
- display
Name string - The name of the Certificate Authority.
- crl
Chain string - A base64 encoded string containing the CRL for this certificate authority.
- crl
Url string - The url from which to fetch the CRL for the certificate authority.
- certificate_
chain str - A base64 encoded string containing the signing certificate chain.
- certificate_
chain_ strfilename - The name of the certificate file.
- description str
- A description of the Certificate Authority.
- display_
name str - The name of the Certificate Authority.
- crl_
chain str - A base64 encoded string containing the CRL for this certificate authority.
- crl_
url str - The url from which to fetch the CRL for the certificate authority.
- certificate
Chain String - A base64 encoded string containing the signing certificate chain.
- certificate
Chain StringFilename - The name of the certificate file.
- description String
- A description of the Certificate Authority.
- display
Name String - The name of the Certificate Authority.
- crl
Chain String - A base64 encoded string containing the CRL for this certificate authority.
- crl
Url String - The url from which to fetch the CRL for the certificate authority.
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateAuthority resource produces the following output properties:
- Crl
Source string - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated.
- Expiration
Dates List<string> - (Required List of Strings) The expiration dates of certificates in the chain.
- Fingerprints List<string>
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Serial
Numbers List<string> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- Crl
Source string - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated.
- Expiration
Dates []string - (Required List of Strings) The expiration dates of certificates in the chain.
- Fingerprints []string
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Serial
Numbers []string - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- crl
Source String - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated.
- expiration
Dates List<String> - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints List<String>
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- id String
- The provider-assigned unique ID for this managed resource.
- serial
Numbers List<String> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- crl
Source string - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated.
- expiration
Dates string[] - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints string[]
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- id string
- The provider-assigned unique ID for this managed resource.
- serial
Numbers string[] - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- crl_
source str - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl_
updated_ strat - (Optional String) The timestamp for when CRL was last updated.
- expiration_
dates Sequence[str] - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints Sequence[str]
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- id str
- The provider-assigned unique ID for this managed resource.
- serial_
numbers Sequence[str] - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- crl
Source String - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated.
- expiration
Dates List<String> - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints List<String>
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- id String
- The provider-assigned unique ID for this managed resource.
- serial
Numbers List<String> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
Look up Existing CertificateAuthority Resource
Get an existing CertificateAuthority 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?: CertificateAuthorityState, opts?: CustomResourceOptions): CertificateAuthority
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_chain: Optional[str] = None,
certificate_chain_filename: Optional[str] = None,
crl_chain: Optional[str] = None,
crl_source: Optional[str] = None,
crl_updated_at: Optional[str] = None,
crl_url: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
expiration_dates: Optional[Sequence[str]] = None,
fingerprints: Optional[Sequence[str]] = None,
serial_numbers: Optional[Sequence[str]] = None) -> CertificateAuthority
func GetCertificateAuthority(ctx *Context, name string, id IDInput, state *CertificateAuthorityState, opts ...ResourceOption) (*CertificateAuthority, error)
public static CertificateAuthority Get(string name, Input<string> id, CertificateAuthorityState? state, CustomResourceOptions? opts = null)
public static CertificateAuthority get(String name, Output<String> id, CertificateAuthorityState 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.
- Certificate
Chain string - A base64 encoded string containing the signing certificate chain.
- Certificate
Chain stringFilename - The name of the certificate file.
- Crl
Chain string - A base64 encoded string containing the CRL for this certificate authority.
- Crl
Source string - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated.
- Crl
Url string - The url from which to fetch the CRL for the certificate authority.
- Description string
- A description of the Certificate Authority.
- Display
Name string - The name of the Certificate Authority.
- Expiration
Dates List<string> - (Required List of Strings) The expiration dates of certificates in the chain.
- Fingerprints List<string>
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- Serial
Numbers List<string> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- Certificate
Chain string - A base64 encoded string containing the signing certificate chain.
- Certificate
Chain stringFilename - The name of the certificate file.
- Crl
Chain string - A base64 encoded string containing the CRL for this certificate authority.
- Crl
Source string - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- Crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated.
- Crl
Url string - The url from which to fetch the CRL for the certificate authority.
- Description string
- A description of the Certificate Authority.
- Display
Name string - The name of the Certificate Authority.
- Expiration
Dates []string - (Required List of Strings) The expiration dates of certificates in the chain.
- Fingerprints []string
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- Serial
Numbers []string - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- certificate
Chain String - A base64 encoded string containing the signing certificate chain.
- certificate
Chain StringFilename - The name of the certificate file.
- crl
Chain String - A base64 encoded string containing the CRL for this certificate authority.
- crl
Source String - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated.
- crl
Url String - The url from which to fetch the CRL for the certificate authority.
- description String
- A description of the Certificate Authority.
- display
Name String - The name of the Certificate Authority.
- expiration
Dates List<String> - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints List<String>
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- serial
Numbers List<String> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- certificate
Chain string - A base64 encoded string containing the signing certificate chain.
- certificate
Chain stringFilename - The name of the certificate file.
- crl
Chain string - A base64 encoded string containing the CRL for this certificate authority.
- crl
Source string - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl
Updated stringAt - (Optional String) The timestamp for when CRL was last updated.
- crl
Url string - The url from which to fetch the CRL for the certificate authority.
- description string
- A description of the Certificate Authority.
- display
Name string - The name of the Certificate Authority.
- expiration
Dates string[] - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints string[]
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- serial
Numbers string[] - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- certificate_
chain str - A base64 encoded string containing the signing certificate chain.
- certificate_
chain_ strfilename - The name of the certificate file.
- crl_
chain str - A base64 encoded string containing the CRL for this certificate authority.
- crl_
source str - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl_
updated_ strat - (Optional String) The timestamp for when CRL was last updated.
- crl_
url str - The url from which to fetch the CRL for the certificate authority.
- description str
- A description of the Certificate Authority.
- display_
name str - The name of the Certificate Authority.
- expiration_
dates Sequence[str] - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints Sequence[str]
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- serial_
numbers Sequence[str] - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
- certificate
Chain String - A base64 encoded string containing the signing certificate chain.
- certificate
Chain StringFilename - The name of the certificate file.
- crl
Chain String - A base64 encoded string containing the CRL for this certificate authority.
- crl
Source String - (Optional String) The source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL).
- crl
Updated StringAt - (Optional String) The timestamp for when CRL was last updated.
- crl
Url String - The url from which to fetch the CRL for the certificate authority.
- description String
- A description of the Certificate Authority.
- display
Name String - The name of the Certificate Authority.
- expiration
Dates List<String> - (Required List of Strings) The expiration dates of certificates in the chain.
- fingerprints List<String>
- (Required List of Strings) The fingerprints for each certificate in the certificate chain.
- serial
Numbers List<String> - (Required List of Strings) The serial numbers for each certificate in the certificate chain.
Import
You can import a Certificate Authority by using Certificate Authority ID, for example:
$ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
$ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
$ pulumi import confluentcloud:index/certificateAuthority:CertificateAuthority main op-abc123
!> Warning: Do not forget to delete terminal command history afterwards for security purposes.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.