1. Packages
  2. AWS
  3. API Docs
  4. memorydb
  5. getAcl
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.memorydb.getAcl

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 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",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.memorydb.get_acl(name="my-acl")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:memorydb:getAcl
          Arguments:
            name: my-acl
    

    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>
    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]
    func LookupAcl(ctx *Context, args *LookupAclArgs, opts ...InvokeOption) (*LookupAclResult, error)
    func LookupAclOutput(ctx *Context, args *LookupAclOutputArgs, opts ...InvokeOption) LookupAclResultOutput

    > 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)
    }
    public static CompletableFuture<GetAclResult> getAcl(GetAclArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:memorydb/getAcl:getAcl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the ACL.
    Tags Dictionary<string, string>
    Map of tags assigned to the ACL.
    Name string
    Name of the ACL.
    Tags map[string]string
    Map of tags assigned to the ACL.
    name String
    Name of the ACL.
    tags Map<String,String>
    Map of tags assigned to the ACL.
    name string
    Name of the ACL.
    tags {[key: string]: string}
    Map of tags assigned to the ACL.
    name str
    Name of the ACL.
    tags Mapping[str, str]
    Map of tags assigned to the ACL.
    name 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 logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi