1. Registry
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. memorystore
  6. AclPolicy
Viewing docs for Google Cloud v9.36.1
published on Thursday, Sep 3, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.36.1
published on Thursday, Sep 3, 2026 by Pulumi

    A Google Cloud Memorystore ACL policy.

    Create AclPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AclPolicy(name: string, args: AclPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def AclPolicy(resource_name: str,
                  args: AclPolicyArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AclPolicy(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  acl_policy_id: Optional[str] = None,
                  location: Optional[str] = None,
                  rules: Optional[Sequence[AclPolicyRuleArgs]] = None,
                  deletion_policy: Optional[str] = None,
                  project: Optional[str] = None)
    func NewAclPolicy(ctx *Context, name string, args AclPolicyArgs, opts ...ResourceOption) (*AclPolicy, error)
    public AclPolicy(string name, AclPolicyArgs args, CustomResourceOptions? opts = null)
    public AclPolicy(String name, AclPolicyArgs args)
    public AclPolicy(String name, AclPolicyArgs args, CustomResourceOptions options)
    
    type: gcp:memorystore:AclPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_memorystore_acl_policy" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AclPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AclPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AclPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AclPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AclPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var aclPolicyResource = new Gcp.MemoryStore.AclPolicy("aclPolicyResource", new()
    {
        AclPolicyId = "string",
        Location = "string",
        Rules = new[]
        {
            new Gcp.MemoryStore.Inputs.AclPolicyRuleArgs
            {
                Rule = "string",
                Username = "string",
            },
        },
        DeletionPolicy = "string",
        Project = "string",
    });
    
    example, err := memorystore.NewAclPolicy(ctx, "aclPolicyResource", &memorystore.AclPolicyArgs{
    	AclPolicyId: pulumi.String("string"),
    	Location:    pulumi.String("string"),
    	Rules: memorystore.AclPolicyRuleArray{
    		&memorystore.AclPolicyRuleArgs{
    			Rule:     pulumi.String("string"),
    			Username: pulumi.String("string"),
    		},
    	},
    	DeletionPolicy: pulumi.String("string"),
    	Project:        pulumi.String("string"),
    })
    
    resource "gcp_memorystore_acl_policy" "aclPolicyResource" {
      lifecycle {
        create_before_destroy = true
      }
      acl_policy_id = "string"
      location      = "string"
      rules {
        rule     = "string"
        username = "string"
      }
      deletion_policy = "string"
      project         = "string"
    }
    
    var aclPolicyResource = new AclPolicy("aclPolicyResource", AclPolicyArgs.builder()
        .aclPolicyId("string")
        .location("string")
        .rules(AclPolicyRuleArgs.builder()
            .rule("string")
            .username("string")
            .build())
        .deletionPolicy("string")
        .project("string")
        .build());
    
    acl_policy_resource = gcp.memorystore.AclPolicy("aclPolicyResource",
        acl_policy_id="string",
        location="string",
        rules=[{
            "rule": "string",
            "username": "string",
        }],
        deletion_policy="string",
        project="string")
    
    const aclPolicyResource = new gcp.memorystore.AclPolicy("aclPolicyResource", {
        aclPolicyId: "string",
        location: "string",
        rules: [{
            rule: "string",
            username: "string",
        }],
        deletionPolicy: "string",
        project: "string",
    });
    
    type: gcp:memorystore:AclPolicy
    properties:
        aclPolicyId: string
        deletionPolicy: string
        location: string
        project: string
        rules:
            - rule: string
              username: string
    

    AclPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AclPolicy resource accepts the following input properties:

    AclPolicyId string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Rules List<AclPolicyRule>
    The ACL rules within the ACL policy. Structure is documented below.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    AclPolicyId string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Rules []AclPolicyRuleArgs
    The ACL rules within the ACL policy. Structure is documented below.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    acl_policy_id string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    rules list(object)
    The ACL rules within the ACL policy. Structure is documented below.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    aclPolicyId String
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    rules List<AclPolicyRule>
    The ACL rules within the ACL policy. Structure is documented below.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    aclPolicyId string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    rules AclPolicyRule[]
    The ACL rules within the ACL policy. Structure is documented below.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    acl_policy_id str
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    rules Sequence[AclPolicyRuleArgs]
    The ACL rules within the ACL policy. Structure is documented below.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    aclPolicyId String
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    rules List<Property Map>
    The ACL rules within the ACL policy. Structure is documented below.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AclPolicy resource produces the following output properties:

    Etag string
    Etag of the ACL policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Full resource path of the ACL policy.
    State string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    Etag string
    Etag of the ACL policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. Full resource path of the ACL policy.
    State string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    etag string
    Etag of the ACL policy.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. Full resource path of the ACL policy.
    state string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    etag String
    Etag of the ACL policy.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Full resource path of the ACL policy.
    state String
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    etag string
    Etag of the ACL policy.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. Full resource path of the ACL policy.
    state string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    etag str
    Etag of the ACL policy.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. Full resource path of the ACL policy.
    state str
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    etag String
    Etag of the ACL policy.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. Full resource path of the ACL policy.
    state String
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING

    Look up Existing AclPolicy Resource

    Get an existing AclPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AclPolicyState, opts?: CustomResourceOptions): AclPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl_policy_id: Optional[str] = None,
            deletion_policy: Optional[str] = None,
            etag: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            rules: Optional[Sequence[AclPolicyRuleArgs]] = None,
            state: Optional[str] = None) -> AclPolicy
    func GetAclPolicy(ctx *Context, name string, id IDInput, state *AclPolicyState, opts ...ResourceOption) (*AclPolicy, error)
    public static AclPolicy Get(string name, Input<string> id, AclPolicyState? state, CustomResourceOptions? opts = null)
    public static AclPolicy get(String name, Output<String> id, AclPolicyState state, CustomResourceOptions options)
    resources:  _:    type: gcp:memorystore:AclPolicy    get:      id: ${id}
    import {
      to = gcp_memorystore_acl_policy.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AclPolicyId string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    Etag string
    Etag of the ACL policy.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. Full resource path of the ACL policy.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Rules List<AclPolicyRule>
    The ACL rules within the ACL policy. Structure is documented below.
    State string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    AclPolicyId string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    Etag string
    Etag of the ACL policy.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Name string
    Identifier. Full resource path of the ACL policy.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Rules []AclPolicyRuleArgs
    The ACL rules within the ACL policy. Structure is documented below.
    State string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    acl_policy_id string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    etag string
    Etag of the ACL policy.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    Identifier. Full resource path of the ACL policy.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    rules list(object)
    The ACL rules within the ACL policy. Structure is documented below.
    state string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    aclPolicyId String
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    etag String
    Etag of the ACL policy.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. Full resource path of the ACL policy.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    rules List<AclPolicyRule>
    The ACL rules within the ACL policy. Structure is documented below.
    state String
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    aclPolicyId string
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    etag string
    Etag of the ACL policy.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name string
    Identifier. Full resource path of the ACL policy.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    rules AclPolicyRule[]
    The ACL rules within the ACL policy. Structure is documented below.
    state string
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    acl_policy_id str
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    etag str
    Etag of the ACL policy.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name str
    Identifier. Full resource path of the ACL policy.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    rules Sequence[AclPolicyRuleArgs]
    The ACL rules within the ACL policy. Structure is documented below.
    state str
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING
    aclPolicyId String
    The logical name of the ACL policy in the customer project with the following restrictions:

    • Must contain only lowercase letters, numbers, and hyphens.
    • Must start with a letter.
    • Must be between 1-63 characters.
    • Must end with a number or a letter.
    • Must be unique within the customer project / location
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    etag String
    Etag of the ACL policy.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    name String
    Identifier. Full resource path of the ACL policy.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    rules List<Property Map>
    The ACL rules within the ACL policy. Structure is documented below.
    state String
    The state of the ACL policy. Possible values: ACTIVE UPDATING DELETING

    Supporting Types

    AclPolicyRule, AclPolicyRuleArgs

    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 str
    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 str
    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.

    Import

    AclPolicy can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/aclPolicies/{{acl_policy_id}}
    • {{project}}/{{location}}/{{acl_policy_id}}
    • {{location}}/{{acl_policy_id}}

    When using the pulumi import command, AclPolicy can be imported using one of the formats above. For example:

    $ pulumi import gcp:memorystore/aclPolicy:AclPolicy default projects/{{project}}/locations/{{location}}/aclPolicies/{{acl_policy_id}}
    $ pulumi import gcp:memorystore/aclPolicy:AclPolicy default {{project}}/{{location}}/{{acl_policy_id}}
    $ pulumi import gcp:memorystore/aclPolicy:AclPolicy default {{location}}/{{acl_policy_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.36.1
    published on Thursday, Sep 3, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial