Redis Cloud v1.3.5 published on Wednesday, Dec 20, 2023 by RedisLabs
rediscloud.getAclRole
Explore with Pulumi AI
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),
};
});
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
})
}
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()));
}
}
import pulumi
import pulumi_rediscloud as rediscloud
example = rediscloud.get_acl_role(name="fast-admin")
pulumi.export("rediscloudAclRole", example.id)
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);
variables:
example:
fn::invoke:
Function: rediscloud:getAclRole
Arguments:
name: fast-admin
outputs:
rediscloudAclRole: ${example.id}
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>
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]
func LookupAclRole(ctx *Context, args *LookupAclRoleArgs, opts ...InvokeOption) (*LookupAclRoleResult, error)
func LookupAclRoleOutput(ctx *Context, args *LookupAclRoleOutputArgs, opts ...InvokeOption) LookupAclRoleResultOutput
> 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)
}
public static CompletableFuture<GetAclRoleResult> getAclRole(GetAclRoleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: rediscloud:index/getAclRole:getAclRole
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the Role to filter returned subscriptions
- Name string
- The name of the Role to filter returned subscriptions
- name String
- The name of the Role to filter returned subscriptions
- name string
- The name of the Role to filter returned subscriptions
- name str
- The name of the Role to filter returned subscriptions
- name 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<Redis
Labs. Rediscloud. Outputs. Get Acl Role Rule> - The Rules associated with the Role.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Rule.
- Rules
[]Get
Acl Role Rule - 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<Get
Acl Role Rule> - The Rules associated with the Role.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the Rule.
- rules
Get
Acl Role Rule[] - 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[Get
Acl Role Rule] - 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
List<Redis
Labs. Rediscloud. Inputs. Get Acl Role Rule Database> - ID of the database to which the Rule should apply.
- Name string
- The name of the Role to filter returned subscriptions
- Databases
[]Get
Acl Role Rule Database - ID of the database to which the Rule should apply.
- Name string
- The name of the Role to filter returned subscriptions
- databases
List<Get
Acl Role Rule Database> - ID of the database to which the Rule should apply.
- name String
- The name of the Role to filter returned subscriptions
- databases
Get
Acl Role Rule Database[] - ID of the database to which the Rule should apply.
- name string
- The name of the Role to filter returned subscriptions
- databases
Sequence[Get
Acl Role Rule Database] - ID of the database to which the Rule should apply.
- name str
- The name of the Role to filter returned subscriptions
- databases List<Property Map>
- ID of the database to which the Rule should apply.
- name String
- The name of the Role to filter returned subscriptions
GetAclRoleRuleDatabase
- Database int
- ID of the database to which the Rule should apply.
- Regions List<string>
- The regions to which the Rule should apply, if appropriate to the database.
- Subscription int
- ID of the subscription containing the database.
- Database int
- ID of the database to which the Rule should apply.
- Regions []string
- The regions to which the Rule should apply, if appropriate to the database.
- Subscription int
- ID of the subscription containing the database.
- database Integer
- ID of the database to which the Rule should apply.
- regions List<String>
- The regions to which the Rule should apply, if appropriate to the database.
- subscription Integer
- ID of the subscription containing the database.
- database number
- ID of the database to which the Rule should apply.
- regions string[]
- The regions to which the Rule should apply, if appropriate to the database.
- subscription number
- ID of the subscription containing the database.
- database int
- ID of the database to which the Rule should apply.
- regions Sequence[str]
- The regions to which the Rule should apply, if appropriate to the database.
- subscription int
- ID of the subscription containing the database.
- database Number
- ID of the database to which the Rule should apply.
- regions List<String>
- The regions to which the Rule should apply, if appropriate to the database.
- subscription 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.