1. Packages
  2. RedisCloud
  3. API Docs
  4. getAclRole
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs

rediscloud.getAclRole

Explore with Pulumi AI

Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs

The Role data source allows access to an existing Role within your Redis Enterprise Cloud Account.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Rediscloud = Pulumi.Rediscloud;

return await Deployment.RunAsync(() => 
{
    var example = Rediscloud.GetAclRole.Invoke(new()
    {
        Name = "fast-admin",
    });

    return new Dictionary<string, object?>
    {
        ["rediscloudAclRole"] = example.Apply(getAclRoleResult => getAclRoleResult.Id),
    };
});
Copy
package main

import (
	"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := rediscloud.LookupAclRole(ctx, &rediscloud.LookupAclRoleArgs{
			Name: "fast-admin",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("rediscloudAclRole", example.Id)
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rediscloud.RediscloudFunctions;
import com.pulumi.rediscloud.inputs.GetAclRoleArgs;
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) {
        final var example = RediscloudFunctions.getAclRole(GetAclRoleArgs.builder()
            .name("fast-admin")
            .build());

        ctx.export("rediscloudAclRole", example.applyValue(getAclRoleResult -> getAclRoleResult.id()));
    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as rediscloud from "@pulumi/rediscloud";

const example = rediscloud.getAclRole({
    name: "fast-admin",
});
export const rediscloudAclRole = example.then(example => example.id);
Copy
import pulumi
import pulumi_rediscloud as rediscloud

example = rediscloud.get_acl_role(name="fast-admin")
pulumi.export("rediscloudAclRole", example.id)
Copy
variables:
  example:
    fn::invoke:
      Function: rediscloud:getAclRole
      Arguments:
        name: fast-admin
outputs:
  rediscloudAclRole: ${example.id}
Copy

Using getAclRole

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAclRole(args: GetAclRoleArgs, opts?: InvokeOptions): Promise<GetAclRoleResult>
function getAclRoleOutput(args: GetAclRoleOutputArgs, opts?: InvokeOptions): Output<GetAclRoleResult>
Copy
def get_acl_role(name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetAclRoleResult
def get_acl_role_output(name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetAclRoleResult]
Copy
func LookupAclRole(ctx *Context, args *LookupAclRoleArgs, opts ...InvokeOption) (*LookupAclRoleResult, error)
func LookupAclRoleOutput(ctx *Context, args *LookupAclRoleOutputArgs, opts ...InvokeOption) LookupAclRoleResultOutput
Copy

> Note: This function is named LookupAclRole in the Go SDK.

public static class GetAclRole 
{
    public static Task<GetAclRoleResult> InvokeAsync(GetAclRoleArgs args, InvokeOptions? opts = null)
    public static Output<GetAclRoleResult> Invoke(GetAclRoleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAclRoleResult> getAclRole(GetAclRoleArgs args, InvokeOptions options)
public static Output<GetAclRoleResult> getAclRole(GetAclRoleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: rediscloud:index/getAclRole:getAclRole
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the Role to filter returned subscriptions
Name This property is required. string
The name of the Role to filter returned subscriptions
name This property is required. String
The name of the Role to filter returned subscriptions
name This property is required. string
The name of the Role to filter returned subscriptions
name This property is required. str
The name of the Role to filter returned subscriptions
name This property is required. String
The name of the Role to filter returned subscriptions

getAclRole Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the Rule.
Rules List<RedisLabs.Rediscloud.Outputs.GetAclRoleRule>
The Rules associated with the Role.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the Rule.
Rules []GetAclRoleRule
The Rules associated with the Role.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the Rule.
rules List<GetAclRoleRule>
The Rules associated with the Role.
id string
The provider-assigned unique ID for this managed resource.
name string
Name of the Rule.
rules GetAclRoleRule[]
The Rules associated with the Role.
id str
The provider-assigned unique ID for this managed resource.
name str
Name of the Rule.
rules Sequence[GetAclRoleRule]
The Rules associated with the Role.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the Rule.
rules List<Property Map>
The Rules associated with the Role.

Supporting Types

GetAclRoleRule

Databases This property is required. List<RedisLabs.Rediscloud.Inputs.GetAclRoleRuleDatabase>
ID of the database to which the Rule should apply.
Name This property is required. string
The name of the Role to filter returned subscriptions
Databases This property is required. []GetAclRoleRuleDatabase
ID of the database to which the Rule should apply.
Name This property is required. string
The name of the Role to filter returned subscriptions
databases This property is required. List<GetAclRoleRuleDatabase>
ID of the database to which the Rule should apply.
name This property is required. String
The name of the Role to filter returned subscriptions
databases This property is required. GetAclRoleRuleDatabase[]
ID of the database to which the Rule should apply.
name This property is required. string
The name of the Role to filter returned subscriptions
databases This property is required. Sequence[GetAclRoleRuleDatabase]
ID of the database to which the Rule should apply.
name This property is required. str
The name of the Role to filter returned subscriptions
databases This property is required. List<Property Map>
ID of the database to which the Rule should apply.
name This property is required. String
The name of the Role to filter returned subscriptions

GetAclRoleRuleDatabase

Database This property is required. int
ID of the database to which the Rule should apply.
Regions This property is required. List<string>
The regions to which the Rule should apply, if appropriate to the database.
Subscription This property is required. int
ID of the subscription containing the database.
Database This property is required. int
ID of the database to which the Rule should apply.
Regions This property is required. []string
The regions to which the Rule should apply, if appropriate to the database.
Subscription This property is required. int
ID of the subscription containing the database.
database This property is required. Integer
ID of the database to which the Rule should apply.
regions This property is required. List<String>
The regions to which the Rule should apply, if appropriate to the database.
subscription This property is required. Integer
ID of the subscription containing the database.
database This property is required. number
ID of the database to which the Rule should apply.
regions This property is required. string[]
The regions to which the Rule should apply, if appropriate to the database.
subscription This property is required. number
ID of the subscription containing the database.
database This property is required. int
ID of the database to which the Rule should apply.
regions This property is required. Sequence[str]
The regions to which the Rule should apply, if appropriate to the database.
subscription This property is required. int
ID of the subscription containing the database.
database This property is required. Number
ID of the database to which the Rule should apply.
regions This property is required. List<String>
The regions to which the Rule should apply, if appropriate to the database.
subscription This property is required. Number
ID of the subscription containing the database.

Package Details

Repository
rediscloud RedisLabs/pulumi-rediscloud
License
Apache-2.0
Notes
This Pulumi package is based on the rediscloud Terraform Provider.
Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs