import * as pulumi from "@pulumi/pulumi"; /** * Upload a TLS certificate to Hetzner Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const sampleCertificate = new hcloud.UploadedCertificate("sample_certificate", { * name: "test-certificate-%d", * privateKey: `-----BEGIN RSA PRIVATE KEY----- * MIIEpQIBAAKCAQEAorPccsHibgGLJIub5Sb1yvDvARifoKzg7MIhyAYLnJkGn9B1 * ... * AHcjLFCNvobInLHTTmCoAxYBmEv2eakas0+n4g/LM2Ukaw1Bz+3VrVo= * -----END RSA PRIVATE KEY----- * `, * certificate: `-----BEGIN CERTIFICATE----- * MIIDMDCCAhigAwIBAgIIJgROscP8RRUwDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE * ... * TKS8gQ== * -----END CERTIFICATE----- * `, * labels: { * label_1: "value_1", * label_2: "value_2", * }, * }); * ``` * * ## Import * * Uploaded certificates can be imported using their `id`: * * ```sh * $ pulumi import hcloud:index/uploadedCertificate:UploadedCertificate example "$CERTIFICATE_ID" * ``` */ export declare class UploadedCertificate extends pulumi.CustomResource { /** * Get an existing UploadedCertificate 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?: UploadedCertificateState, opts?: pulumi.CustomResourceOptions): UploadedCertificate; /** * Returns true if the given object is an instance of UploadedCertificate. 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 UploadedCertificate; /** * 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; /** * (list) Domains and subdomains covered by the certificate. */ 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; /** * PEM encoded private key belonging to the certificate. */ readonly privateKey: pulumi.Output; readonly type: pulumi.Output; /** * Create a UploadedCertificate 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: UploadedCertificateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering UploadedCertificate resources. */ export interface UploadedCertificateState { /** * 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; /** * (list) Domains and subdomains covered by the certificate. */ 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; /** * PEM encoded private key belonging to the certificate. */ privateKey?: pulumi.Input; type?: pulumi.Input; } /** * The set of arguments for constructing a UploadedCertificate resource. */ export interface UploadedCertificateArgs { /** * PEM encoded TLS certificate. */ certificate: 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; /** * PEM encoded private key belonging to the certificate. */ privateKey: pulumi.Input; }