import * as pulumi from "@pulumi/pulumi"; /** * With this resource, you can manage scopes (permissions) associated with a resource server (API). * * !> This resource appends a scope to a resource server. In contrast, the `auth0.ResourceServerScopes` resource manages * all the scopes assigned to a resource server. To avoid potential issues, it is recommended not to use this resource in * conjunction with the `auth0.ResourceServerScopes` resource when managing scopes for the same resource server id. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const resourceServer = new auth0.ResourceServer("resource_server", { * name: "Example Resource Server (Managed by Terraform)", * identifier: "https://api.example.com", * }); * const readPosts = new auth0.ResourceServerScope("read_posts", { * resourceServerIdentifier: resourceServer.identifier, * scope: "read:posts", * }); * const writePosts = new auth0.ResourceServerScope("write_posts", { * resourceServerIdentifier: resourceServer.identifier, * scope: "write:posts", * }); * ``` * * ## Import * * This resource can be imported by specifying the * * resource identifier and scope name separated by "::" (note the double colon) * * :: * * Example: * * ```sh * $ pulumi import auth0:index/resourceServerScope:ResourceServerScope scope "https://api.travel0.com/v1::read:posts" * ``` */ export declare class ResourceServerScope extends pulumi.CustomResource { /** * Get an existing ResourceServerScope 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?: ResourceServerScopeState, opts?: pulumi.CustomResourceOptions): ResourceServerScope; /** * Returns true if the given object is an instance of ResourceServerScope. 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 ResourceServerScope; /** * Description of the scope (permission). */ readonly description: pulumi.Output; /** * Identifier of the resource server that the scope (permission) is associated with. */ readonly resourceServerIdentifier: pulumi.Output; /** * Name of the scope (permission). */ readonly scope: pulumi.Output; /** * Create a ResourceServerScope 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: ResourceServerScopeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourceServerScope resources. */ export interface ResourceServerScopeState { /** * Description of the scope (permission). */ description?: pulumi.Input; /** * Identifier of the resource server that the scope (permission) is associated with. */ resourceServerIdentifier?: pulumi.Input; /** * Name of the scope (permission). */ scope?: pulumi.Input; } /** * The set of arguments for constructing a ResourceServerScope resource. */ export interface ResourceServerScopeArgs { /** * Description of the scope (permission). */ description?: pulumi.Input; /** * Identifier of the resource server that the scope (permission) is associated with. */ resourceServerIdentifier: pulumi.Input; /** * Name of the scope (permission). */ scope: pulumi.Input; }