Table Resource Table Role Assignment Args
data class TableResourceTableRoleAssignmentArgs(val accountName: Output<String>? = null, val principalId: Output<String>? = null, val resourceGroupName: Output<String>? = null, val roleAssignmentId: Output<String>? = null, val roleDefinitionId: Output<String>? = null, val scope: Output<String>? = null) : ConvertibleToJava<TableResourceTableRoleAssignmentArgs>
Parameters to create and update an Azure Cosmos DB Table Role Assignment. Uses Azure REST API version 2024-12-01-preview.
Example Usage
CosmosDBTableRoleAssignmentCreateUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var tableResourceTableRoleAssignment = new AzureNative.DocumentDB.TableResourceTableRoleAssignment("tableResourceTableRoleAssignment", new()
{
AccountName = "myAccountName",
PrincipalId = "myPrincipalId",
ResourceGroupName = "myResourceGroupName",
RoleAssignmentId = "myRoleAssignmentId",
RoleDefinitionId = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/tableRoleDefinitions/myRoleDefinitionId",
Scope = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases",
});
});
Content copied to clipboard
package main
import (
documentdb "github.com/pulumi/pulumi-azure-native-sdk/documentdb/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := documentdb.NewTableResourceTableRoleAssignment(ctx, "tableResourceTableRoleAssignment", &documentdb.TableResourceTableRoleAssignmentArgs{
AccountName: pulumi.String("myAccountName"),
PrincipalId: pulumi.String("myPrincipalId"),
ResourceGroupName: pulumi.String("myResourceGroupName"),
RoleAssignmentId: pulumi.String("myRoleAssignmentId"),
RoleDefinitionId: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/tableRoleDefinitions/myRoleDefinitionId"),
Scope: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.documentdb.TableResourceTableRoleAssignment;
import com.pulumi.azurenative.documentdb.TableResourceTableRoleAssignmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var tableResourceTableRoleAssignment = new TableResourceTableRoleAssignment("tableResourceTableRoleAssignment", TableResourceTableRoleAssignmentArgs.builder()
.accountName("myAccountName")
.principalId("myPrincipalId")
.resourceGroupName("myResourceGroupName")
.roleAssignmentId("myRoleAssignmentId")
.roleDefinitionId("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/tableRoleDefinitions/myRoleDefinitionId")
.scope("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:documentdb:TableResourceTableRoleAssignment myRoleAssignmentId /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tableRoleAssignments/{roleAssignmentId}
Content copied to clipboard
Properties
Link copied to clipboard
Cosmos DB database account name.
Link copied to clipboard
The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Table Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The GUID for the Role Assignment.
Link copied to clipboard
The unique identifier for the associated Role Definition.