1. Packages
  2. AWS
  3. API Docs
  4. memorydb
  5. getAcl
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.memorydb.getAcl

Explore with Pulumi AI

AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

Provides information about a MemoryDB ACL.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.memorydb.getAcl({
    name: "my-acl",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.memorydb.get_acl(name="my-acl")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/memorydb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := memorydb.LookupAcl(ctx, &memorydb.LookupAclArgs{
			Name: "my-acl",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.MemoryDb.GetAcl.Invoke(new()
    {
        Name = "my-acl",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.MemorydbFunctions;
import com.pulumi.aws.memorydb.inputs.GetAclArgs;
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 = MemorydbFunctions.getAcl(GetAclArgs.builder()
            .name("my-acl")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:memorydb:getAcl
      arguments:
        name: my-acl
Copy

Using getAcl

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 getAcl(args: GetAclArgs, opts?: InvokeOptions): Promise<GetAclResult>
function getAclOutput(args: GetAclOutputArgs, opts?: InvokeOptions): Output<GetAclResult>
Copy
def get_acl(name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            opts: Optional[InvokeOptions] = None) -> GetAclResult
def get_acl_output(name: Optional[pulumi.Input[str]] = None,
            tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetAclResult]
Copy
func LookupAcl(ctx *Context, args *LookupAclArgs, opts ...InvokeOption) (*LookupAclResult, error)
func LookupAclOutput(ctx *Context, args *LookupAclOutputArgs, opts ...InvokeOption) LookupAclResultOutput
Copy

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

public static class GetAcl 
{
    public static Task<GetAclResult> InvokeAsync(GetAclArgs args, InvokeOptions? opts = null)
    public static Output<GetAclResult> Invoke(GetAclInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAclResult> getAcl(GetAclArgs args, InvokeOptions options)
public static Output<GetAclResult> getAcl(GetAclArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:memorydb/getAcl:getAcl
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the ACL.
Tags Dictionary<string, string>
Map of tags assigned to the ACL.
Name This property is required. string
Name of the ACL.
Tags map[string]string
Map of tags assigned to the ACL.
name This property is required. String
Name of the ACL.
tags Map<String,String>
Map of tags assigned to the ACL.
name This property is required. string
Name of the ACL.
tags {[key: string]: string}
Map of tags assigned to the ACL.
name This property is required. str
Name of the ACL.
tags Mapping[str, str]
Map of tags assigned to the ACL.
name This property is required. String
Name of the ACL.
tags Map<String>
Map of tags assigned to the ACL.

getAcl Result

The following output properties are available:

Arn string
ARN of the ACL.
Id string
The provider-assigned unique ID for this managed resource.
MinimumEngineVersion string
The minimum engine version supported by the ACL.
Name string
Tags Dictionary<string, string>
Map of tags assigned to the ACL.
UserNames List<string>
Set of MemoryDB user names included in this ACL.
Arn string
ARN of the ACL.
Id string
The provider-assigned unique ID for this managed resource.
MinimumEngineVersion string
The minimum engine version supported by the ACL.
Name string
Tags map[string]string
Map of tags assigned to the ACL.
UserNames []string
Set of MemoryDB user names included in this ACL.
arn String
ARN of the ACL.
id String
The provider-assigned unique ID for this managed resource.
minimumEngineVersion String
The minimum engine version supported by the ACL.
name String
tags Map<String,String>
Map of tags assigned to the ACL.
userNames List<String>
Set of MemoryDB user names included in this ACL.
arn string
ARN of the ACL.
id string
The provider-assigned unique ID for this managed resource.
minimumEngineVersion string
The minimum engine version supported by the ACL.
name string
tags {[key: string]: string}
Map of tags assigned to the ACL.
userNames string[]
Set of MemoryDB user names included in this ACL.
arn str
ARN of the ACL.
id str
The provider-assigned unique ID for this managed resource.
minimum_engine_version str
The minimum engine version supported by the ACL.
name str
tags Mapping[str, str]
Map of tags assigned to the ACL.
user_names Sequence[str]
Set of MemoryDB user names included in this ACL.
arn String
ARN of the ACL.
id String
The provider-assigned unique ID for this managed resource.
minimumEngineVersion String
The minimum engine version supported by the ACL.
name String
tags Map<String>
Map of tags assigned to the ACL.
userNames List<String>
Set of MemoryDB user names included in this ACL.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi