import * as pulumi from "@pulumi/pulumi"; /** * With this resource, you can manage an agent identity (EA only). Link an agent to an application with the `agentId` attribute of the `auth0.Client` resource. Deleting an agent does not delete the clients linked to it and does not clear their `agentId`, so reference the agent as `auth0_agent..id` to make Terraform unlink the client before the agent is deleted. The Management API credentials need the `*:agents` scopes. Tenants without the feature enabled respond with `403 notEnabled`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Available in Early Access (EA). Requires the tenant to be enabled for agents. * const myAgent = new auth0.Agent("my_agent", { * name: "My Agent", * externalAgentId: "my-agent-001", * metadata: JSON.stringify({ * team: "platform", * }), * }); * // Link the agent to an application. Reference the agent as `auth0_agent..id` * // so the client is unlinked before the agent is deleted. * const myAgentClient = new auth0.Client("my_agent_client", { * name: "My Agent Client", * appType: "non_interactive", * agentId: myAgent.id, * }); * ``` * * ## Import * * This resource can be imported using the agent ID. * * Example: * * ```sh * $ pulumi import auth0:index/agent:Agent my_agent "agt_XXXXXXXXXXXXXXXXXXXXXX" * ``` */ export declare class Agent extends pulumi.CustomResource { /** * Get an existing Agent 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?: AgentState, opts?: pulumi.CustomResourceOptions): Agent; /** * Check whether an existing Agent 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?: AgentState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of Agent. 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 Agent; /** * The time the agent was created, in RFC 3339 format. */ readonly createdAt: pulumi.Output; /** * An external identifier for the agent. Must be unique within the tenant, 1-128 characters and cannot contain null characters. Changing it forces a new agent to be created. */ readonly externalAgentId: pulumi.Output; /** * Arbitrary key-value metadata for the agent, as a JSON object of at most 10240 bytes. Removing the attribute clears the metadata. */ readonly metadata: pulumi.Output; /** * The name of the agent. Must be 1-255 characters and cannot contain `<`, `>` or null characters. */ readonly name: pulumi.Output; /** * The time the agent was last updated, in RFC 3339 format. */ readonly updatedAt: pulumi.Output; /** * Create a Agent 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?: AgentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Agent resources. */ export interface AgentState { /** * The time the agent was created, in RFC 3339 format. */ createdAt?: pulumi.Input; /** * An external identifier for the agent. Must be unique within the tenant, 1-128 characters and cannot contain null characters. Changing it forces a new agent to be created. */ externalAgentId?: pulumi.Input; /** * Arbitrary key-value metadata for the agent, as a JSON object of at most 10240 bytes. Removing the attribute clears the metadata. */ metadata?: pulumi.Input; /** * The name of the agent. Must be 1-255 characters and cannot contain `<`, `>` or null characters. */ name?: pulumi.Input; /** * The time the agent was last updated, in RFC 3339 format. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a Agent resource. */ export interface AgentArgs { /** * An external identifier for the agent. Must be unique within the tenant, 1-128 characters and cannot contain null characters. Changing it forces a new agent to be created. */ externalAgentId?: pulumi.Input; /** * Arbitrary key-value metadata for the agent, as a JSON object of at most 10240 bytes. Removing the attribute clears the metadata. */ metadata?: pulumi.Input; /** * The name of the agent. Must be 1-255 characters and cannot contain `<`, `>` or null characters. */ name?: pulumi.Input; } //# sourceMappingURL=agent.d.ts.map