TableResourceTableRoleAssignmentArgs

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",
});
});
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
})
}
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());
}
}

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}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, principalId: Output<String>? = null, resourceGroupName: Output<String>? = null, roleAssignmentId: Output<String>? = null, roleDefinitionId: Output<String>? = null, scope: Output<String>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

Cosmos DB database account name.

Link copied to clipboard
val principalId: Output<String>? = null

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
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val roleAssignmentId: Output<String>? = null

The GUID for the Role Assignment.

Link copied to clipboard
val roleDefinitionId: Output<String>? = null

The unique identifier for the associated Role Definition.

Link copied to clipboard
val scope: Output<String>? = null

The data plane resource path for which access is being granted through this Table Role Assignment.

Functions

Link copied to clipboard
open override fun toJava(): TableResourceTableRoleAssignmentArgs