import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides unified certificate management service for HTTPS protocol. Certificates do not need to be uploaded to backend servers. Supports decryption processing on CLB instances, reducing CPU overhead on backend servers. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const certificatDemo = new volcenginecc.clb.Certificate("CertificatDemo", { * certificateName: "CertificatDemo", * privateKey: "-----BEGIN RSA PRIVATE KEY-----***----END RSA PRIVATE KEY-----", * publicKey: `-----BEGIN CERTIFICATE-----***-----END CERTIFICATE----- * -----BEGIN CERTIFICATE-----***-----END CERTIFICATE----- * -----BEGIN CERTIFICATE-----***-----END CERTIFICATE-----`, * description: "CertificateDemo Example", * projectName: "default", * tags: [{ * key: "env", * value: "test", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:clb/certificate:Certificate example "certificate_id" * ``` */ export declare class Certificate extends pulumi.CustomResource { /** * Get an existing Certificate resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate; /** * Returns true if the given object is an instance of Certificate. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Certificate; /** * Certificate ID. */ readonly certificateId: pulumi.Output; /** * Certificate name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length limit: 1–128 characters. */ readonly certificateName: pulumi.Output; /** * Certificate creation time. */ readonly createdTime: pulumi.Output; /** * Certificate description. Default value is an empty string. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. */ readonly description: pulumi.Output; /** * Certificate primary domain name. */ readonly domainName: pulumi.Output; /** * Certificate expiration time. */ readonly expiredAt: pulumi.Output; /** * ID of the listener associated with the certificate. */ readonly listeners: pulumi.Output; /** * Certificate private key. */ readonly privateKey: pulumi.Output; /** * Name of the project the certificate belongs to. If not specified, defaults to 'default'. */ readonly projectName: pulumi.Output; /** * Certificate public key. */ readonly publicKey: pulumi.Output; /** * Managed resource status. true: managed resource. false: unmanaged resource. */ readonly serviceManaged: pulumi.Output; /** * List of alternate domain names for the certificate. */ readonly subjectAlternativeNames: pulumi.Output; readonly tags: pulumi.Output; /** * Create a Certificate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CertificateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Certificate resources. */ export interface CertificateState { /** * Certificate ID. */ certificateId?: pulumi.Input; /** * Certificate name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length limit: 1–128 characters. */ certificateName?: pulumi.Input; /** * Certificate creation time. */ createdTime?: pulumi.Input; /** * Certificate description. Default value is an empty string. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. */ description?: pulumi.Input; /** * Certificate primary domain name. */ domainName?: pulumi.Input; /** * Certificate expiration time. */ expiredAt?: pulumi.Input; /** * ID of the listener associated with the certificate. */ listeners?: pulumi.Input[]>; /** * Certificate private key. */ privateKey?: pulumi.Input; /** * Name of the project the certificate belongs to. If not specified, defaults to 'default'. */ projectName?: pulumi.Input; /** * Certificate public key. */ publicKey?: pulumi.Input; /** * Managed resource status. true: managed resource. false: unmanaged resource. */ serviceManaged?: pulumi.Input; /** * List of alternate domain names for the certificate. */ subjectAlternativeNames?: pulumi.Input[]>; tags?: pulumi.Input[]>; } /** * The set of arguments for constructing a Certificate resource. */ export interface CertificateArgs { /** * Certificate name. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length limit: 1–128 characters. */ certificateName?: pulumi.Input; /** * Certificate description. Default value is an empty string. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. */ description?: pulumi.Input; /** * Certificate private key. */ privateKey: pulumi.Input; /** * Name of the project the certificate belongs to. If not specified, defaults to 'default'. */ projectName?: pulumi.Input; /** * Certificate public key. */ publicKey: pulumi.Input; tags?: pulumi.Input[]>; }