import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * With this resource, you can manage scopes (permissions) associated with a resource server (API). * * !> This resource manages all the scopes assigned to a resource server. In contrast, the `auth0.ResourceServerScope` * resource only appends a scope to a resource server. To avoid potential issues, it is recommended not to use this * resource in conjunction with the `auth0.ResourceServerScope` 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 myApi = new auth0.ResourceServer("my_api", { * name: "Example Resource Server (Managed by Terraform)", * identifier: "https://api.example.com", * }); * const myApiScopes = new auth0.ResourceServerScopes("my_api_scopes", { * resourceServerIdentifier: myApi.identifier, * scopes: [ * { * name: "create:appointments", * description: "Ability to create appointments", * }, * { * name: "read:appointments", * description: "Ability to read appointments", * }, * ], * }); * ``` * * ## Import * * This resource can be imported by specifying the resource server identifier. * * Example: * * ```sh * $ pulumi import auth0:index/resourceServerScopes:ResourceServerScopes my_api_scopes "https://api.travel0.com/v1" * ``` */ export declare class ResourceServerScopes extends pulumi.CustomResource { /** * Get an existing ResourceServerScopes 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?: ResourceServerScopesState, opts?: pulumi.CustomResourceOptions): ResourceServerScopes; /** * Returns true if the given object is an instance of ResourceServerScopes. 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 ResourceServerScopes; /** * Identifier of the resource server that the scopes (permission) are associated with. */ readonly resourceServerIdentifier: pulumi.Output; readonly scopes: pulumi.Output; /** * Create a ResourceServerScopes 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: ResourceServerScopesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ResourceServerScopes resources. */ export interface ResourceServerScopesState { /** * Identifier of the resource server that the scopes (permission) are associated with. */ resourceServerIdentifier?: pulumi.Input; scopes?: pulumi.Input[]>; } /** * The set of arguments for constructing a ResourceServerScopes resource. */ export interface ResourceServerScopesArgs { /** * Identifier of the resource server that the scopes (permission) are associated with. */ resourceServerIdentifier: pulumi.Input; scopes: pulumi.Input[]>; }