import * as pulumi from "@pulumi/pulumi"; /** * Obtain a Hetzner Cloud managed TLS certificate. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const managedCert = new hcloud.ManagedCertificate("managed_cert", { * name: "managed_cert", * domainNames: [ * "*.example.com", * "example.com", * ], * labels: { * label_1: "value_1", * label_2: "value_2", * }, * }); * ``` * * ## Import * * Managed certificates can be imported using their `id`: * * ```sh * $ pulumi import hcloud:index/managedCertificate:ManagedCertificate example "$CERTIFICATE_ID" * ``` */ export declare class ManagedCertificate extends pulumi.CustomResource { /** * Get an existing ManagedCertificate 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?: ManagedCertificateState, opts?: pulumi.CustomResourceOptions): ManagedCertificate; /** * Returns true if the given object is an instance of ManagedCertificate. 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 ManagedCertificate; /** * (string) PEM encoded TLS certificate. */ readonly certificate: pulumi.Output; /** * (string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format). */ readonly created: pulumi.Output; /** * Domain names for which a certificate * should be obtained. */ readonly domainNames: pulumi.Output; /** * (string) Fingerprint of the certificate. */ readonly fingerprint: pulumi.Output; /** * User-defined labels (key-value pairs) the * certificate should be created with. */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Name of the Certificate. */ readonly name: pulumi.Output; /** * (string) Point in time when the Certificate stops being valid (in ISO-8601 format). */ readonly notValidAfter: pulumi.Output; /** * (string) Point in time when the Certificate becomes valid (in ISO-8601 format). */ readonly notValidBefore: pulumi.Output; readonly type: pulumi.Output; /** * Create a ManagedCertificate 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: ManagedCertificateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ManagedCertificate resources. */ export interface ManagedCertificateState { /** * (string) PEM encoded TLS certificate. */ certificate?: pulumi.Input; /** * (string) Point in time when the Certificate was created at Hetzner Cloud (in ISO-8601 format). */ created?: pulumi.Input; /** * Domain names for which a certificate * should be obtained. */ domainNames?: pulumi.Input[]>; /** * (string) Fingerprint of the certificate. */ fingerprint?: pulumi.Input; /** * User-defined labels (key-value pairs) the * certificate should be created with. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Name of the Certificate. */ name?: pulumi.Input; /** * (string) Point in time when the Certificate stops being valid (in ISO-8601 format). */ notValidAfter?: pulumi.Input; /** * (string) Point in time when the Certificate becomes valid (in ISO-8601 format). */ notValidBefore?: pulumi.Input; type?: pulumi.Input; } /** * The set of arguments for constructing a ManagedCertificate resource. */ export interface ManagedCertificateArgs { /** * Domain names for which a certificate * should be obtained. */ domainNames: pulumi.Input[]>; /** * User-defined labels (key-value pairs) the * certificate should be created with. */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Name of the Certificate. */ name?: pulumi.Input; }