import * as pulumi from "@pulumi/pulumi"; /** * Provides a Cloudflare Access Mutual TLS Certificate resource. Mutual TLS authentication ensures that the traffic is secure and trusted in both directions between a client and server and can be used with Access to only allows requests from devices with a corresponding client certificate. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi_cloudflare from "@mapped/pulumi-cloudflare"; * * const myCert = new cloudflare.AccessMutualTlsCertificate("myCert", { * zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe", * name: "My Root Cert", * certificate: _var.ca_pem, * associatedHostnames: ["staging.example.com"], * }); * ``` * * ## Import * * Access Mutual TLS Certificate can be imported using a composite ID composed of the account or zone and the mutual TLS certificate ID in the form of`account/ACCOUNT_ID/MUTUAL_TLS_CERTIFICATE_ID` or `zone/ZONE_ID/MUTUAL_TLS_CERTIFICATE_ID`. * * ```sh * $ pulumi import cloudflare:index/accessMutualTlsCertificate:AccessMutualTlsCertificate staging account/cb029e245cfdd66dc8d2e570d5dd3322/d41d8cd98f00b204e9800998ecf8427e * ``` */ export declare class AccessMutualTlsCertificate extends pulumi.CustomResource { /** * Get an existing AccessMutualTlsCertificate 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?: AccessMutualTlsCertificateState, opts?: pulumi.CustomResourceOptions): AccessMutualTlsCertificate; /** * Returns true if the given object is an instance of AccessMutualTlsCertificate. 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 AccessMutualTlsCertificate; /** * The account to which the certificate should be added. Conflicts with `zoneId`. */ readonly accountId: pulumi.Output; /** * The hostnames that will be prompted for this certificate. */ readonly associatedHostnames: pulumi.Output; /** * The Root CA for your certificates. */ readonly certificate: pulumi.Output; readonly fingerprint: pulumi.Output; /** * The name of the certificate. */ readonly name: pulumi.Output; /** * The DNS zone to which the certificate should be added. Conflicts with `accountId`. */ readonly zoneId: pulumi.Output; /** * Create a AccessMutualTlsCertificate 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: AccessMutualTlsCertificateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccessMutualTlsCertificate resources. */ export interface AccessMutualTlsCertificateState { /** * The account to which the certificate should be added. Conflicts with `zoneId`. */ accountId?: pulumi.Input; /** * The hostnames that will be prompted for this certificate. */ associatedHostnames?: pulumi.Input[]>; /** * The Root CA for your certificates. */ certificate?: pulumi.Input; fingerprint?: pulumi.Input; /** * The name of the certificate. */ name?: pulumi.Input; /** * The DNS zone to which the certificate should be added. Conflicts with `accountId`. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a AccessMutualTlsCertificate resource. */ export interface AccessMutualTlsCertificateArgs { /** * The account to which the certificate should be added. Conflicts with `zoneId`. */ accountId?: pulumi.Input; /** * The hostnames that will be prompted for this certificate. */ associatedHostnames?: pulumi.Input[]>; /** * The Root CA for your certificates. */ certificate?: pulumi.Input; /** * The name of the certificate. */ name: pulumi.Input; /** * The DNS zone to which the certificate should be added. Conflicts with `accountId`. */ zoneId?: pulumi.Input; }