import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * With this resource, you can manage the client profile (application profile) of a tenant. A client profile applies runtime policy to dynamically registered clients, such as clients registered through a Client ID Metadata Document (CIMD). A tenant can have only one client profile; if one already exists, import it instead of creating a new one. Destroying this resource deletes the tenant's client profile, which immediately removes the governance it applies to all matched clients. The docs recommend `preventDestroy`, and the resource requires the `create:client_profiles`, `read:client_profiles`, `update:client_profiles` and `delete:client_profiles` scopes. This feature is available in Early Access only. (EA only) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Early Access only. The Management API client needs the create, read, update and delete * // `client_profiles` scopes. * // * // A tenant can have only one client profile. Destroying it removes the governance it applies * // to all matched clients, so protect it from accidental deletion. * // Minimal example. * const minimal = new auth0.ClientProfile("minimal", {name: "Dynamic client profile"}); * // Full example. * const full = new auth0.ClientProfile("full", { * applyPolicy: { * externalMetadataType: "cimd", * externalMetadataCreatedBy: "client", * }, * clientConfiguration: { * refreshToken: { * tokenLifetime: { * defaultValue: 2592000, * }, * idleTokenLifetime: { * defaultValue: 1296000, * }, * leeway: { * defaultValue: 0, * }, * }, * organizationUsage: { * defaultValue: "require", * }, * organizationRequireBehavior: { * defaultValue: "pre_login_prompt", * }, * organizationDiscoveryMethods: { * defaultValues: [ * "email", * "organization_name", * ], * }, * requireProofOfPossession: { * defaultValue: true, * }, * }, * name: "Dynamic client profile", * description: "Runtime policy for dynamically registered clients.", * }); * ``` * * ## Import * * A client profile can be imported using its ID. * * You can find the existing client profile ID using the Auth0 Management API. * https://auth0.com/docs/api/management/v2#!/Client_Profiles/get_client_profiles * * Example: * * ```sh * $ pulumi import auth0:index/clientProfile:ClientProfile full "cpr_XXXXXXXXXXXXXXXX" * ``` */ export declare class ClientProfile extends pulumi.CustomResource { /** * Get an existing ClientProfile 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?: ClientProfileState, opts?: pulumi.CustomResourceOptions): ClientProfile; /** * Check whether an existing ClientProfile resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: ClientProfileState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of ClientProfile. 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 ClientProfile; /** * Runtime matching rules that determine which clients this profile governs. Defaults to dynamically registered CIMD clients. */ readonly applyPolicy: pulumi.Output; /** * Runtime policy applied to matched clients. Omitted settings fall back to each client's own setting. Auth0 replaces this block as a whole, so removing it clears all of its settings. */ readonly clientConfiguration: pulumi.Output; /** * The ISO 8601 formatted date the client profile was created. */ readonly createdAt: pulumi.Output; /** * The description of the client profile. Removing the attribute clears the description in Auth0. */ readonly description: pulumi.Output; /** * The name of the client profile. */ readonly name: pulumi.Output; /** * The ISO 8601 formatted date the client profile was updated. */ readonly updatedAt: pulumi.Output; /** * Create a ClientProfile 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?: ClientProfileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ClientProfile resources. */ export interface ClientProfileState { /** * Runtime matching rules that determine which clients this profile governs. Defaults to dynamically registered CIMD clients. */ applyPolicy?: pulumi.Input; /** * Runtime policy applied to matched clients. Omitted settings fall back to each client's own setting. Auth0 replaces this block as a whole, so removing it clears all of its settings. */ clientConfiguration?: pulumi.Input; /** * The ISO 8601 formatted date the client profile was created. */ createdAt?: pulumi.Input; /** * The description of the client profile. Removing the attribute clears the description in Auth0. */ description?: pulumi.Input; /** * The name of the client profile. */ name?: pulumi.Input; /** * The ISO 8601 formatted date the client profile was updated. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a ClientProfile resource. */ export interface ClientProfileArgs { /** * Runtime matching rules that determine which clients this profile governs. Defaults to dynamically registered CIMD clients. */ applyPolicy?: pulumi.Input; /** * Runtime policy applied to matched clients. Omitted settings fall back to each client's own setting. Auth0 replaces this block as a whole, so removing it clears all of its settings. */ clientConfiguration?: pulumi.Input; /** * The description of the client profile. Removing the attribute clears the description in Auth0. */ description?: pulumi.Input; /** * The name of the client profile. */ name?: pulumi.Input; } //# sourceMappingURL=clientProfile.d.ts.map