import * as pulumi from "@pulumi/pulumi"; /** * With Auth0, you can use a custom domain to maintain a consistent user experience. This is a three-step process; you must configure the custom domain in Auth0, then create a DNS record for the domain, then verify the DNS record in Auth0. This resource allows for automating the verification part of the process. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * import * as digitalocean from "@pulumi/digitalocean"; * import * as std from "@pulumi/std"; * * // Example of a custom domain managed through DigitalOcean and verified using this resource. * const myCustomDomain = new auth0.CustomDomain("my_custom_domain", { * domain: "login.example.com", * type: "auth0_managed_certs", * }); * const myDomainNameRecord = new digitalocean.index.Record("my_domain_name_record", { * domain: "example.com", * type: std.index.upper({ * input: myCustomDomain.verifications[0].methods?.[0]?.name, * }).result, * name: std.index.trimsuffix({ * input: myCustomDomain.verifications[0].methods?.[0]?.domain, * suffix: ".example.com", * }).result, * value: myCustomDomain.verifications[0].methods?.[0]?.record, * }); * const myCustomDomainVerification = new auth0.CustomDomainVerification("my_custom_domain_verification", {customDomainId: myCustomDomain.id}, { * dependsOn: [myDomainNameRecord], * }); * ``` * * ## Import * * You can import this resource using the custom domain ID. * * Example: * * ```sh * $ pulumi import auth0:index/customDomainVerification:CustomDomainVerification my_custom_domain_verification "cd_XXXXXXXXXXXXXXXX" * ``` */ export declare class CustomDomainVerification extends pulumi.CustomResource { /** * Get an existing CustomDomainVerification 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?: CustomDomainVerificationState, opts?: pulumi.CustomResourceOptions): CustomDomainVerification; /** * Returns true if the given object is an instance of CustomDomainVerification. 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 CustomDomainVerification; readonly cnameApiKey: pulumi.Output; /** * ID of the custom domain resource. */ readonly customDomainId: pulumi.Output; /** * The DNS name of the Auth0 origin server that handles traffic for the custom domain. */ readonly originDomainName: pulumi.Output; /** * Create a CustomDomainVerification 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: CustomDomainVerificationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CustomDomainVerification resources. */ export interface CustomDomainVerificationState { cnameApiKey?: pulumi.Input; /** * ID of the custom domain resource. */ customDomainId?: pulumi.Input; /** * The DNS name of the Auth0 origin server that handles traffic for the custom domain. */ originDomainName?: pulumi.Input; } /** * The set of arguments for constructing a CustomDomainVerification resource. */ export interface CustomDomainVerificationArgs { /** * ID of the custom domain resource. */ customDomainId: pulumi.Input; }