import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing Cosmos DB SQL Role Definition. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.cosmosdb.getSqlRoleDefinition({ * resourceGroupName: "tfex-cosmosdb-sql-role-definition-rg", * accountName: "tfex-cosmosdb-sql-role-definition-account-name", * roleDefinitionId: "00000000-0000-0000-0000-000000000000", * }); * ``` */ export declare function getSqlRoleDefinition(args: GetSqlRoleDefinitionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSqlRoleDefinition. */ export interface GetSqlRoleDefinitionArgs { /** * The name of the Cosmos DB Account. */ accountName: string; /** * The name of the Resource Group in which the Cosmos DB SQL Role Definition is created. */ resourceGroupName: string; /** * The GUID as the name of the Cosmos DB SQL Role Definition. */ roleDefinitionId: string; } /** * A collection of values returned by getSqlRoleDefinition. */ export interface GetSqlRoleDefinitionResult { readonly accountName: string; /** * A list of fully qualified scopes at or below which Role Assignments may be created using this Cosmos DB SQL Role Definition. */ readonly assignableScopes: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The role name of the Cosmos DB SQL Role Definition. */ readonly name: string; /** * A `permissions` block as defined below. */ readonly permissions: outputs.cosmosdb.GetSqlRoleDefinitionPermission[]; readonly resourceGroupName: string; readonly roleDefinitionId: string; /** * The type of the Cosmos DB SQL Role Definition. */ readonly type: string; } /** * Use this data source to access information about an existing Cosmos DB SQL Role Definition. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.cosmosdb.getSqlRoleDefinition({ * resourceGroupName: "tfex-cosmosdb-sql-role-definition-rg", * accountName: "tfex-cosmosdb-sql-role-definition-account-name", * roleDefinitionId: "00000000-0000-0000-0000-000000000000", * }); * ``` */ export declare function getSqlRoleDefinitionOutput(args: GetSqlRoleDefinitionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSqlRoleDefinition. */ export interface GetSqlRoleDefinitionOutputArgs { /** * The name of the Cosmos DB Account. */ accountName: pulumi.Input; /** * The name of the Resource Group in which the Cosmos DB SQL Role Definition is created. */ resourceGroupName: pulumi.Input; /** * The GUID as the name of the Cosmos DB SQL Role Definition. */ roleDefinitionId: pulumi.Input; }