Viewing docs for Google Cloud v9.36.1
published on Thursday, Sep 3, 2026 by Pulumi
published on Thursday, Sep 3, 2026 by Pulumi
Viewing docs for Google Cloud v9.36.1
published on Thursday, Sep 3, 2026 by Pulumi
published on Thursday, Sep 3, 2026 by Pulumi
Get information about a Google Cloud Memorystore ACL policy. For more information see the official documentation or the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const qa = gcp.memorystore.getAclPolicy({
aclPolicyId: "my-acl-policy",
location: "us-central1",
});
import pulumi
import pulumi_gcp as gcp
qa = gcp.memorystore.get_acl_policy(acl_policy_id="my-acl-policy",
location="us-central1")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/memorystore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := memorystore.LookupAclPolicy(ctx, &memorystore.LookupAclPolicyArgs{
AclPolicyId: "my-acl-policy",
Location: pulumi.StringRef("us-central1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var qa = Gcp.MemoryStore.GetAclPolicy.Invoke(new()
{
AclPolicyId = "my-acl-policy",
Location = "us-central1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.memorystore.MemorystoreFunctions;
import com.pulumi.gcp.memorystore.inputs.GetAclPolicyArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 qa = MemorystoreFunctions.getAclPolicy(GetAclPolicyArgs.builder()
.aclPolicyId("my-acl-policy")
.location("us-central1")
.build());
}
}
variables:
qa:
fn::invoke:
function: gcp:memorystore:getAclPolicy
arguments:
aclPolicyId: my-acl-policy
location: us-central1
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_memorystore_getaclpolicy" "qa" {
acl_policy_id = "my-acl-policy"
location = "us-central1"
}
Using getAclPolicy
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 getAclPolicy(args: GetAclPolicyArgs, opts?: InvokeOptions): Promise<GetAclPolicyResult>
function getAclPolicyOutput(args: GetAclPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetAclPolicyResult>def get_acl_policy(acl_policy_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAclPolicyResult
def get_acl_policy_output(acl_policy_id: pulumi.Input[Optional[str]] = None,
location: pulumi.Input[Optional[str]] = None,
project: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAclPolicyResult]func LookupAclPolicy(ctx *Context, args *LookupAclPolicyArgs, opts ...InvokeOption) (*LookupAclPolicyResult, error)
func LookupAclPolicyOutput(ctx *Context, args *LookupAclPolicyOutputArgs, opts ...InvokeOption) LookupAclPolicyResultOutput> Note: This function is named LookupAclPolicy in the Go SDK.
public static class GetAclPolicy
{
public static Task<GetAclPolicyResult> InvokeAsync(GetAclPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetAclPolicyResult> Invoke(GetAclPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAclPolicyResult> Invoke(GetAclPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAclPolicyResult> getAclPolicy(GetAclPolicyArgs args, InvokeOptions options)
public static Output<GetAclPolicyResult> getAclPolicy(GetAclPolicyArgs args, InvokeOptions options)
public static Output<GetAclPolicyResult> getAclPolicy(GetAclPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: gcp:memorystore/getAclPolicy:getAclPolicy
arguments:
# arguments dictionarydata "gcp_memorystore_get_acl_policy" "name" {
# arguments
}The following arguments are supported:
- Acl
Policy stringId - The logical name of the ACL Policy in the customer project.
- Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Acl
Policy stringId - The logical name of the ACL Policy in the customer project.
- Location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection. - Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- acl_
policy_ stringid - The logical name of the ACL Policy in the customer project.
- location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- acl
Policy StringId - The logical name of the ACL Policy in the customer project.
- location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- acl
Policy stringId - The logical name of the ACL Policy in the customer project.
- location string
- Resource ID segment making up resource
name. It identifies the resource within its parent collection. - project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- acl_
policy_ strid - The logical name of the ACL Policy in the customer project.
- location str
- Resource ID segment making up resource
name. It identifies the resource within its parent collection. - project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- acl
Policy StringId - The logical name of the ACL Policy in the customer project.
- location String
- Resource ID segment making up resource
name. It identifies the resource within its parent collection. - project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
getAclPolicy Result
The following output properties are available:
- Acl
Policy stringId - Deletion
Policy string - Etag string
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Rules
List<Get
Acl Policy Rule> - State string
- Location string
- Project string
- Acl
Policy stringId - Deletion
Policy string - Etag string
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Rules
[]Get
Acl Policy Rule - State string
- Location string
- Project string
- acl_
policy_ stringid - deletion_
policy string - etag string
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- rules list(object)
- state string
- location string
- project string
- acl
Policy StringId - deletion
Policy String - etag String
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- rules
List<Get
Acl Policy Rule> - state String
- location String
- project String
- acl
Policy stringId - deletion
Policy string - etag string
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- rules
Get
Acl Policy Rule[] - state string
- location string
- project string
- acl_
policy_ strid - deletion_
policy str - etag str
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- rules
Sequence[Get
Acl Policy Rule] - state str
- location str
- project str
- acl
Policy StringId - deletion
Policy String - etag String
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- rules List<Property Map>
- state String
- location String
- project String
Supporting Types
GetAclPolicyRule
- Rule string
- The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/
- Username string
- Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.
- Rule string
- The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/
- Username string
- Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.
- rule string
- The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/
- username string
- Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.
- rule String
- The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/
- username String
- Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.
- rule string
- The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/
- username string
- Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.
- rule String
- The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/
- username String
- Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v9.36.1
published on Thursday, Sep 3, 2026 by Pulumi
published on Thursday, Sep 3, 2026 by Pulumi