import * as pulumi from "@pulumi/pulumi";
/**
 * Provides a resource to manage alb replace certificate
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as fs from "fs";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * // replace server certificate
 * const foo1 = new volcengine.alb.ReplaceCertificate("foo1", {
 *     certificateType: "server",
 *     oldCertificateId: "cert-bdde0znk524g8dv40or*****",
 *     updateMode: "new",
 *     certificateName: "replaced-server-cert",
 *     description: "Replaced server certificate",
 *     projectName: "default",
 *     publicKey: fs.readFileSync("/path/server_certificate.pem", "utf8"),
 *     privateKey: fs.readFileSync("/path/private_key_rsa.pem", "utf8"),
 * });
 * const foo2 = new volcengine.alb.ReplaceCertificate("foo2", {
 *     certificateType: "server",
 *     oldCertificateId: "cert-1pf4a8k8tokcg845wfar*****",
 *     updateMode: "stock",
 *     certificateSource: "alb",
 *     certificateId: "cert-bdde0znk524g8dv40or*****",
 *     certificateName: "replaced-server-cert-stock",
 *     description: "Replaced server certificate (stock)",
 *     projectName: "default",
 * });
 * // replace ca certificate
 * const foo3 = new volcengine.alb.ReplaceCertificate("foo3", {
 *     certificateType: "ca",
 *     oldCertificateId: "cert-xoekc6lpu9s054ov5eo*****",
 *     updateMode: "new",
 *     certificateName: "acc-test-replace",
 *     caCertificate: fs.readFileSync("/path/server_certificate.pem", "utf8"),
 *     description: "acc-test-replace",
 *     projectName: "default",
 * });
 * ```
 *
 * ## Import
 *
 * The AlbReplaceCertificate is not support import.
 */
export declare class ReplaceCertificate extends pulumi.CustomResource {
    /**
     * Get an existing ReplaceCertificate 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<pulumi.ID>, state?: ReplaceCertificateState, opts?: pulumi.CustomResourceOptions): ReplaceCertificate;
    /**
     * Returns true if the given object is an instance of ReplaceCertificate.  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 ReplaceCertificate;
    /**
     * The content of the CA certificate. Required when certificateType is 'ca' and updateMode is 'new'.
     */
    readonly caCertificate: pulumi.Output<string | undefined>;
    /**
     * The ID of the new certificate. Required when certificateSource is 'cert_center' and updateMode is 'stock'.
     */
    readonly certCenterCertificateId: pulumi.Output<string | undefined>;
    /**
     * The ID of the new certificate or CA certificate. Required when certificateSource is 'alb' and updateMode is 'stock'.
     */
    readonly certificateId: pulumi.Output<string | undefined>;
    /**
     * The name of the certificate.
     */
    readonly certificateName: pulumi.Output<string | undefined>;
    /**
     * The source of the server certificate. Valid values: `alb`, `certCenter`. Required when updateMode is 'stock'.
     */
    readonly certificateSource: pulumi.Output<string | undefined>;
    /**
     * The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
     */
    readonly certificateType: pulumi.Output<string>;
    /**
     * The description of the certificate.
     */
    readonly description: pulumi.Output<string | undefined>;
    /**
     * The ID of the old certificate to be replaced.
     */
    readonly oldCertificateId: pulumi.Output<string>;
    /**
     * The private key of the server certificate. Required when certificateType is 'server' and updateMode is 'new'.
     */
    readonly privateKey: pulumi.Output<string | undefined>;
    /**
     * The project name of the certificate.
     */
    readonly projectName: pulumi.Output<string | undefined>;
    /**
     * The public key of the server certificate. Required when certificateType is 'server' and updateMode is 'new'.
     */
    readonly publicKey: pulumi.Output<string | undefined>;
    /**
     * The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
     */
    readonly updateMode: pulumi.Output<string>;
    /**
     * Create a ReplaceCertificate 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: ReplaceCertificateArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ReplaceCertificate resources.
 */
export interface ReplaceCertificateState {
    /**
     * The content of the CA certificate. Required when certificateType is 'ca' and updateMode is 'new'.
     */
    caCertificate?: pulumi.Input<string>;
    /**
     * The ID of the new certificate. Required when certificateSource is 'cert_center' and updateMode is 'stock'.
     */
    certCenterCertificateId?: pulumi.Input<string>;
    /**
     * The ID of the new certificate or CA certificate. Required when certificateSource is 'alb' and updateMode is 'stock'.
     */
    certificateId?: pulumi.Input<string>;
    /**
     * The name of the certificate.
     */
    certificateName?: pulumi.Input<string>;
    /**
     * The source of the server certificate. Valid values: `alb`, `certCenter`. Required when updateMode is 'stock'.
     */
    certificateSource?: pulumi.Input<string>;
    /**
     * The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
     */
    certificateType?: pulumi.Input<string>;
    /**
     * The description of the certificate.
     */
    description?: pulumi.Input<string>;
    /**
     * The ID of the old certificate to be replaced.
     */
    oldCertificateId?: pulumi.Input<string>;
    /**
     * The private key of the server certificate. Required when certificateType is 'server' and updateMode is 'new'.
     */
    privateKey?: pulumi.Input<string>;
    /**
     * The project name of the certificate.
     */
    projectName?: pulumi.Input<string>;
    /**
     * The public key of the server certificate. Required when certificateType is 'server' and updateMode is 'new'.
     */
    publicKey?: pulumi.Input<string>;
    /**
     * The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
     */
    updateMode?: pulumi.Input<string>;
}
/**
 * The set of arguments for constructing a ReplaceCertificate resource.
 */
export interface ReplaceCertificateArgs {
    /**
     * The content of the CA certificate. Required when certificateType is 'ca' and updateMode is 'new'.
     */
    caCertificate?: pulumi.Input<string>;
    /**
     * The ID of the new certificate. Required when certificateSource is 'cert_center' and updateMode is 'stock'.
     */
    certCenterCertificateId?: pulumi.Input<string>;
    /**
     * The ID of the new certificate or CA certificate. Required when certificateSource is 'alb' and updateMode is 'stock'.
     */
    certificateId?: pulumi.Input<string>;
    /**
     * The name of the certificate.
     */
    certificateName?: pulumi.Input<string>;
    /**
     * The source of the server certificate. Valid values: `alb`, `certCenter`. Required when updateMode is 'stock'.
     */
    certificateSource?: pulumi.Input<string>;
    /**
     * The type of the certificate. Valid values: 'server' for server certificates, 'ca' for CA certificates.
     */
    certificateType: pulumi.Input<string>;
    /**
     * The description of the certificate.
     */
    description?: pulumi.Input<string>;
    /**
     * The ID of the old certificate to be replaced.
     */
    oldCertificateId: pulumi.Input<string>;
    /**
     * The private key of the server certificate. Required when certificateType is 'server' and updateMode is 'new'.
     */
    privateKey?: pulumi.Input<string>;
    /**
     * The project name of the certificate.
     */
    projectName?: pulumi.Input<string>;
    /**
     * The public key of the server certificate. Required when certificateType is 'server' and updateMode is 'new'.
     */
    publicKey?: pulumi.Input<string>;
    /**
     * The mode of certificate replacement. Valid values: 'new' for uploading new certificate, 'stock' for using existing certificate.
     */
    updateMode: pulumi.Input<string>;
}
