import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Provides a Cloudflare custom ssl resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const config = new pulumi.Config(); * const cloudflareZoneId = config.get("cloudflareZoneId") || "1d5fdc9e88c8a8c4518b068cd94331fe"; * * // Add a custom ssl certificate to the domain * const foossl = new cloudflare.CustomSsl("foossl", { * customSslOptions: { * bundleMethod: "ubiquitous", * certificate: "-----INSERT CERTIFICATE-----", * geoRestrictions: "us", * privateKey: "-----INSERT PRIVATE KEY-----", * type: "legacy_custom", * }, * zoneId: cloudflareZoneId, * }); * ``` * * ## Import * * Custom SSL Certs can be imported using a composite ID formed of the zone ID and [certificate ID](https://api.cloudflare.com/#custom-ssl-for-a-zone-properties), separated by a "/" e.g. * * ```sh * $ pulumi import cloudflare:index/customSsl:CustomSsl default 1d5fdc9e88c8a8c4518b068cd94331fe/0123f0ab-9cde-45b2-80bd-4da3010f1337 * ``` */ export declare class CustomSsl extends pulumi.CustomResource { /** * Get an existing CustomSsl 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?: CustomSslState, opts?: pulumi.CustomResourceOptions): CustomSsl; /** * Returns true if the given object is an instance of CustomSsl. 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 CustomSsl; /** * The certificate, private key and associated optional parameters, such as bundle_method, geo_restrictions, and type. */ readonly customSslOptions: pulumi.Output; readonly customSslPriorities: pulumi.Output; readonly expiresOn: pulumi.Output; readonly hosts: pulumi.Output; readonly issuer: pulumi.Output; readonly modifiedOn: pulumi.Output; readonly priority: pulumi.Output; readonly signature: pulumi.Output; readonly status: pulumi.Output; readonly uploadedOn: pulumi.Output; /** * The DNS zone id to the custom ssl cert should be added. */ readonly zoneId: pulumi.Output; /** * Create a CustomSsl 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: CustomSslArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CustomSsl resources. */ export interface CustomSslState { /** * The certificate, private key and associated optional parameters, such as bundle_method, geo_restrictions, and type. */ customSslOptions?: pulumi.Input; customSslPriorities?: pulumi.Input[]>; expiresOn?: pulumi.Input; hosts?: pulumi.Input[]>; issuer?: pulumi.Input; modifiedOn?: pulumi.Input; priority?: pulumi.Input; signature?: pulumi.Input; status?: pulumi.Input; uploadedOn?: pulumi.Input; /** * The DNS zone id to the custom ssl cert should be added. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a CustomSsl resource. */ export interface CustomSslArgs { /** * The certificate, private key and associated optional parameters, such as bundle_method, geo_restrictions, and type. */ customSslOptions?: pulumi.Input; customSslPriorities?: pulumi.Input[]>; /** * The DNS zone id to the custom ssl cert should be added. */ zoneId: pulumi.Input; }