1. Packages
  2. Kafka Provider
  3. API Docs
  4. Acl
Kafka v3.10.3 published on Thursday, Jul 24, 2025 by Pulumi

kafka.Acl

Explore with Pulumi AI

kafka logo
Kafka v3.10.3 published on Thursday, Jul 24, 2025 by Pulumi

    Create Acl Resource

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

    Constructor syntax

    new Acl(name: string, args: AclArgs, opts?: CustomResourceOptions);
    @overload
    def Acl(resource_name: str,
            args: AclArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Acl(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            acl_host: Optional[str] = None,
            acl_operation: Optional[str] = None,
            acl_permission_type: Optional[str] = None,
            acl_principal: Optional[str] = None,
            acl_resource_name: Optional[str] = None,
            acl_resource_type: Optional[str] = None,
            resource_pattern_type_filter: Optional[str] = None)
    func NewAcl(ctx *Context, name string, args AclArgs, opts ...ResourceOption) (*Acl, error)
    public Acl(string name, AclArgs args, CustomResourceOptions? opts = null)
    public Acl(String name, AclArgs args)
    public Acl(String name, AclArgs args, CustomResourceOptions options)
    
    type: kafka:Acl
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AclArgs
    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 AclArgs
    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 AclArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AclArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AclArgs
    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 aclResource = new Kafka.Acl("aclResource", new()
    {
        AclHost = "string",
        AclOperation = "string",
        AclPermissionType = "string",
        AclPrincipal = "string",
        AclResourceName = "string",
        AclResourceType = "string",
        ResourcePatternTypeFilter = "string",
    });
    
    example, err := kafka.NewAcl(ctx, "aclResource", &kafka.AclArgs{
    	AclHost:                   pulumi.String("string"),
    	AclOperation:              pulumi.String("string"),
    	AclPermissionType:         pulumi.String("string"),
    	AclPrincipal:              pulumi.String("string"),
    	AclResourceName:           pulumi.String("string"),
    	AclResourceType:           pulumi.String("string"),
    	ResourcePatternTypeFilter: pulumi.String("string"),
    })
    
    var aclResource = new Acl("aclResource", AclArgs.builder()
        .aclHost("string")
        .aclOperation("string")
        .aclPermissionType("string")
        .aclPrincipal("string")
        .aclResourceName("string")
        .aclResourceType("string")
        .resourcePatternTypeFilter("string")
        .build());
    
    acl_resource = kafka.Acl("aclResource",
        acl_host="string",
        acl_operation="string",
        acl_permission_type="string",
        acl_principal="string",
        acl_resource_name="string",
        acl_resource_type="string",
        resource_pattern_type_filter="string")
    
    const aclResource = new kafka.Acl("aclResource", {
        aclHost: "string",
        aclOperation: "string",
        aclPermissionType: "string",
        aclPrincipal: "string",
        aclResourceName: "string",
        aclResourceType: "string",
        resourcePatternTypeFilter: "string",
    });
    
    type: kafka:Acl
    properties:
        aclHost: string
        aclOperation: string
        aclPermissionType: string
        aclPrincipal: string
        aclResourceName: string
        aclResourceType: string
        resourcePatternTypeFilter: string
    

    Acl 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 Acl resource accepts the following input properties:

    AclHost string
    AclOperation string
    AclPermissionType string
    AclPrincipal string
    AclResourceName string
    The name of the resource
    AclResourceType string
    ResourcePatternTypeFilter string
    AclHost string
    AclOperation string
    AclPermissionType string
    AclPrincipal string
    AclResourceName string
    The name of the resource
    AclResourceType string
    ResourcePatternTypeFilter string
    aclHost String
    aclOperation String
    aclPermissionType String
    aclPrincipal String
    aclResourceName String
    The name of the resource
    aclResourceType String
    resourcePatternTypeFilter String
    aclHost string
    aclOperation string
    aclPermissionType string
    aclPrincipal string
    aclResourceName string
    The name of the resource
    aclResourceType string
    resourcePatternTypeFilter string
    aclHost String
    aclOperation String
    aclPermissionType String
    aclPrincipal String
    aclResourceName String
    The name of the resource
    aclResourceType String
    resourcePatternTypeFilter String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Acl Resource

    Get an existing Acl 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?: AclState, opts?: CustomResourceOptions): Acl
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl_host: Optional[str] = None,
            acl_operation: Optional[str] = None,
            acl_permission_type: Optional[str] = None,
            acl_principal: Optional[str] = None,
            acl_resource_name: Optional[str] = None,
            acl_resource_type: Optional[str] = None,
            resource_pattern_type_filter: Optional[str] = None) -> Acl
    func GetAcl(ctx *Context, name string, id IDInput, state *AclState, opts ...ResourceOption) (*Acl, error)
    public static Acl Get(string name, Input<string> id, AclState? state, CustomResourceOptions? opts = null)
    public static Acl get(String name, Output<String> id, AclState state, CustomResourceOptions options)
    resources:  _:    type: kafka:Acl    get:      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:
    AclHost string
    AclOperation string
    AclPermissionType string
    AclPrincipal string
    AclResourceName string
    The name of the resource
    AclResourceType string
    ResourcePatternTypeFilter string
    AclHost string
    AclOperation string
    AclPermissionType string
    AclPrincipal string
    AclResourceName string
    The name of the resource
    AclResourceType string
    ResourcePatternTypeFilter string
    aclHost String
    aclOperation String
    aclPermissionType String
    aclPrincipal String
    aclResourceName String
    The name of the resource
    aclResourceType String
    resourcePatternTypeFilter String
    aclHost string
    aclOperation string
    aclPermissionType string
    aclPrincipal string
    aclResourceName string
    The name of the resource
    aclResourceType string
    resourcePatternTypeFilter string
    aclHost String
    aclOperation String
    aclPermissionType String
    aclPrincipal String
    aclResourceName String
    The name of the resource
    aclResourceType String
    resourcePatternTypeFilter String

    Package Details

    Repository
    Kafka pulumi/pulumi-kafka
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the kafka Terraform Provider.
    kafka logo
    Kafka v3.10.3 published on Thursday, Jul 24, 2025 by Pulumi