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 * 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);
import pulumi
import pulumi_rediscloud as rediscloud
example = rediscloud.get_acl_role(name="fast-admin")
pulumi.export("rediscloudAclRole", 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)
public static Output<GetAclRoleResult> getAclRole(GetAclRoleArgs args, InvokeOptions options)
fn::invoke:
function: rediscloud:index/getAclRole:getAclRole
arguments:
# arguments dictionary
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<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
This property is required. List<RedisLabs. Rediscloud. Inputs. Get Acl Role Rule Database> - 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. []GetAcl Role Rule Database - 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<GetAcl Role Rule Database> - 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. GetAcl Role Rule Database[] - 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[GetAcl Role Rule Database] - 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.