import * as pulumi from "@pulumi/pulumi"; /** * With this resource, you can manage a client grant associated with an organization. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // Create an Organization * const myOrganization = new auth0.Organization("my_organization", { * name: "test-org-acceptance-testing", * displayName: "Test Org Acceptance Testing", * }); * // Create a Resource Server * const newResourceServer = new auth0.ResourceServer("new_resource_server", { * name: "Example API", * identifier: "https://api.travel00123.com/", * }); * // Create a Client by referencing the newly created organisation or by reference an existing one. * const myTestClient = new auth0.Client("my_test_client", { * name: "test_client", * organizationUsage: "allow", * defaultOrganization: { * organizationId: myOrganization.id, * flows: ["client_credentials"], * }, * }, { * dependsOn: [ * myOrganization, * newResourceServer, * ], * }); * // Create a client grant which is associated with the client and resource server. * const myClientGrant = new auth0.ClientGrant("my_client_grant", { * clientId: myTestClient.id, * audience: newResourceServer.identifier, * scopes: [ * "create:organization_client_grants", * "create:resource", * ], * allowAnyOrganization: true, * organizationUsage: "allow", * }, { * dependsOn: [ * newResourceServer, * myTestClient, * ], * }); * // Create the organization and client grant association * const associateOrgClientGrant = new auth0.OrganizationClientGrant("associate_org_client_grant", { * organizationId: myOrganization.id, * grantId: myClientGrant.id, * }, { * dependsOn: [myClientGrant], * }); * ``` * * ## Import * * This resource can be imported by specifying the * * organization ID and client grant ID separated by "::" (note the double colon) * * :: * * Example: * * ```sh * $ pulumi import auth0:index/organizationClientGrant:OrganizationClientGrant my_org_client_grant "org_XXXXX::cgr_XXXXX" * ``` */ export declare class OrganizationClientGrant extends pulumi.CustomResource { /** * Get an existing OrganizationClientGrant 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?: OrganizationClientGrantState, opts?: pulumi.CustomResourceOptions): OrganizationClientGrant; /** * Returns true if the given object is an instance of OrganizationClientGrant. 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 OrganizationClientGrant; /** * A Client Grant ID to add to the organization. */ readonly grantId: pulumi.Output; /** * The ID of the organization to associate the client grant. */ readonly organizationId: pulumi.Output; /** * Create a OrganizationClientGrant 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: OrganizationClientGrantArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OrganizationClientGrant resources. */ export interface OrganizationClientGrantState { /** * A Client Grant ID to add to the organization. */ grantId?: pulumi.Input; /** * The ID of the organization to associate the client grant. */ organizationId?: pulumi.Input; } /** * The set of arguments for constructing a OrganizationClientGrant resource. */ export interface OrganizationClientGrantArgs { /** * A Client Grant ID to add to the organization. */ grantId: pulumi.Input; /** * The ID of the organization to associate the client grant. */ organizationId: pulumi.Input; }