AccessPolicyAssignment

class AccessPolicyAssignment : KotlinCustomResource

Response to an operation on access policy assignment Uses Azure REST API version 2024-11-01. Other available API versions: 2023-05-01-preview, 2023-08-01, 2024-03-01, 2024-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native redis [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

RedisCacheAccessPolicyAssignmentCreateUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var accessPolicyAssignment = new AzureNative.Redis.AccessPolicyAssignment("accessPolicyAssignment", new()
{
AccessPolicyAssignmentName = "accessPolicyAssignmentName1",
AccessPolicyName = "accessPolicy1",
CacheName = "cache1",
ObjectId = "6497c918-11ad-41e7-1b0f-7c518a87d0b0",
ObjectIdAlias = "TestAADAppRedis",
ResourceGroupName = "rg1",
});
});
package main
import (
redis "github.com/pulumi/pulumi-azure-native-sdk/redis/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := redis.NewAccessPolicyAssignment(ctx, "accessPolicyAssignment", &redis.AccessPolicyAssignmentArgs{
AccessPolicyAssignmentName: pulumi.String("accessPolicyAssignmentName1"),
AccessPolicyName: pulumi.String("accessPolicy1"),
CacheName: pulumi.String("cache1"),
ObjectId: pulumi.String("6497c918-11ad-41e7-1b0f-7c518a87d0b0"),
ObjectIdAlias: pulumi.String("TestAADAppRedis"),
ResourceGroupName: pulumi.String("rg1"),
})
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.redis.AccessPolicyAssignment;
import com.pulumi.azurenative.redis.AccessPolicyAssignmentArgs;
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 accessPolicyAssignment = new AccessPolicyAssignment("accessPolicyAssignment", AccessPolicyAssignmentArgs.builder()
.accessPolicyAssignmentName("accessPolicyAssignmentName1")
.accessPolicyName("accessPolicy1")
.cacheName("cache1")
.objectId("6497c918-11ad-41e7-1b0f-7c518a87d0b0")
.objectIdAlias("TestAADAppRedis")
.resourceGroupName("rg1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:redis:AccessPolicyAssignment accessPolicyAssignmentName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{cacheName}/accessPolicyAssignments/{accessPolicyAssignmentName}

Properties

Link copied to clipboard

The name of the access policy that is being assigned

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val objectId: Output<String>

Object Id to assign access policy to

Link copied to clipboard
val objectIdAlias: Output<String>

User friendly name for object id. Also represents username for token based authentication

Link copied to clipboard

Provisioning state of an access policy assignment set

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>