1. Registry
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. redis
  6. ClusterAclPolicy
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 Redis Cluster ACL policy.

    Create ClusterAclPolicy Resource

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

    Constructor syntax

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

    Parameters

    name string
    The unique name of the resource.
    args ClusterAclPolicyArgs
    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 ClusterAclPolicyArgs
    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 ClusterAclPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClusterAclPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClusterAclPolicyArgs
    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 clusterAclPolicyResource = new Gcp.Redis.ClusterAclPolicy("clusterAclPolicyResource", new()
    {
        AclPolicyId = "string",
        Location = "string",
        Rules = new[]
        {
            new Gcp.Redis.Inputs.ClusterAclPolicyRuleArgs
            {
                Rule = "string",
                Username = "string",
            },
        },
        DeletionPolicy = "string",
        Project = "string",
    });
    
    example, err := redis.NewClusterAclPolicy(ctx, "clusterAclPolicyResource", &redis.ClusterAclPolicyArgs{
    	AclPolicyId: pulumi.String("string"),
    	Location:    pulumi.String("string"),
    	Rules: redis.ClusterAclPolicyRuleArray{
    		&redis.ClusterAclPolicyRuleArgs{
    			Rule:     pulumi.String("string"),
    			Username: pulumi.String("string"),
    		},
    	},
    	DeletionPolicy: pulumi.String("string"),
    	Project:        pulumi.String("string"),
    })
    
    resource "gcp_redis_cluster_acl_policy" "clusterAclPolicyResource" {
      lifecycle {
        create_before_destroy = true
      }
      acl_policy_id = "string"
      location      = "string"
      rules {
        rule     = "string"
        username = "string"
      }
      deletion_policy = "string"
      project         = "string"
    }
    
    var clusterAclPolicyResource = new ClusterAclPolicy("clusterAclPolicyResource", ClusterAclPolicyArgs.builder()
        .aclPolicyId("string")
        .location("string")
        .rules(ClusterAclPolicyRuleArgs.builder()
            .rule("string")
            .username("string")
            .build())
        .deletionPolicy("string")
        .project("string")
        .build());
    
    cluster_acl_policy_resource = gcp.redis.ClusterAclPolicy("clusterAclPolicyResource",
        acl_policy_id="string",
        location="string",
        rules=[{
            "rule": "string",
            "username": "string",
        }],
        deletion_policy="string",
        project="string")
    
    const clusterAclPolicyResource = new gcp.redis.ClusterAclPolicy("clusterAclPolicyResource", {
        aclPolicyId: "string",
        location: "string",
        rules: [{
            rule: "string",
            username: "string",
        }],
        deletionPolicy: "string",
        project: "string",
    });
    
    type: gcp:redis:ClusterAclPolicy
    properties:
        aclPolicyId: string
        deletionPolicy: string
        location: string
        project: string
        rules:
            - rule: string
              username: string
    

    ClusterAclPolicy 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 ClusterAclPolicy 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<ClusterAclPolicyRule>
    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 []ClusterAclPolicyRuleArgs
    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<ClusterAclPolicyRule>
    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 ClusterAclPolicyRule[]
    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[ClusterAclPolicyRuleArgs]
    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 ClusterAclPolicy resource produces the following output properties:

    Etag string
    Etag for 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 for 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 for 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 for 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 for 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 for 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 for 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 ClusterAclPolicy Resource

    Get an existing ClusterAclPolicy 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?: ClusterAclPolicyState, opts?: CustomResourceOptions): ClusterAclPolicy
    @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[ClusterAclPolicyRuleArgs]] = None,
            state: Optional[str] = None) -> ClusterAclPolicy
    func GetClusterAclPolicy(ctx *Context, name string, id IDInput, state *ClusterAclPolicyState, opts ...ResourceOption) (*ClusterAclPolicy, error)
    public static ClusterAclPolicy Get(string name, Input<string> id, ClusterAclPolicyState? state, CustomResourceOptions? opts = null)
    public static ClusterAclPolicy get(String name, Output<String> id, ClusterAclPolicyState state, CustomResourceOptions options)
    resources:  _:    type: gcp:redis:ClusterAclPolicy    get:      id: ${id}
    import {
      to = gcp_redis_cluster_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 for 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<ClusterAclPolicyRule>
    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 for 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 []ClusterAclPolicyRuleArgs
    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 for 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 for 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<ClusterAclPolicyRule>
    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 for 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 ClusterAclPolicyRule[]
    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 for 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[ClusterAclPolicyRuleArgs]
    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 for 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

    ClusterAclPolicyRule, ClusterAclPolicyRuleArgs

    Rule string
    The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/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 Redis OSS.
    Rule string
    The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/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 Redis OSS.
    rule string
    The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/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 Redis OSS.
    rule String
    The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/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 Redis OSS.
    rule string
    The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/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 Redis OSS.
    rule str
    The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/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 Redis OSS.
    rule String
    The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/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 Redis OSS.

    Import

    ClusterAclPolicy 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, ClusterAclPolicy can be imported using one of the formats above. For example:

    $ pulumi import gcp:redis/clusterAclPolicy:ClusterAclPolicy default projects/{{project}}/locations/{{location}}/aclPolicies/{{acl_policy_id}}
    $ pulumi import gcp:redis/clusterAclPolicy:ClusterAclPolicy default {{project}}/{{location}}/{{acl_policy_id}}
    $ pulumi import gcp:redis/clusterAclPolicy:ClusterAclPolicy 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