azurermCosmosdbSqlRoleDefinition
Use this data source to access information about an existing Cosmos DB SQL Role Definition.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.dataAzurermCosmosdbSqlRoleDefinition.DataAzurermCosmosdbSqlRoleDefinition(
this,
"example",
{
account_name: "tfex-cosmosdb-sql-role-definition-account-name",
resource_group_name: "tfex-cosmosdb-sql-role-definition-rg",
role_definition_id: "00000000-0000-0000-0000-000000000000",
}
);
Arguments Reference
The following arguments are supported:
-
resourceGroupName
- (Required) The name of the Resource Group in which the Cosmos DB SQL Role Definition is created. -
accountName
- (Required) The name of the Cosmos DB Account. -
roleDefinitionId
- (Required) The GUID as the name of the Cosmos DB SQL Role Definition.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
-
id
- The ID of the Cosmos DB SQL Role Definition. -
name
- The role name of the Cosmos DB SQL Role Definition. -
assignableScopes
- A list of fully qualified scopes at or below which Role Assignments may be created using this Cosmos DB SQL Role Definition. -
type
- The type of the Cosmos DB SQL Role Definition. -
permissions
- Apermissions
block as defined below.
A permissions
block supports the following:
dataActions
- A list of data actions that are allowed for the Cosmos DB SQL Role Definition.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Cosmos DB SQL Role Definition.