kafka.Acl
Explore with Pulumi AI
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)
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:
- Acl
Host string - Acl
Operation string - Acl
Permission stringType - Acl
Principal string - Acl
Resource stringName - The name of the resource
- Acl
Resource stringType - Resource
Pattern stringType Filter
- Acl
Host string - Acl
Operation string - Acl
Permission stringType - Acl
Principal string - Acl
Resource stringName - The name of the resource
- Acl
Resource stringType - Resource
Pattern stringType Filter
- acl
Host String - acl
Operation String - acl
Permission StringType - acl
Principal String - acl
Resource StringName - The name of the resource
- acl
Resource StringType - resource
Pattern StringType Filter
- acl
Host string - acl
Operation string - acl
Permission stringType - acl
Principal string - acl
Resource stringName - The name of the resource
- acl
Resource stringType - resource
Pattern stringType Filter
- acl_
host str - acl_
operation str - acl_
permission_ strtype - acl_
principal str - acl_
resource_ strname - The name of the resource
- acl_
resource_ strtype - resource_
pattern_ strtype_ filter
- acl
Host String - acl
Operation String - acl
Permission StringType - acl
Principal String - acl
Resource StringName - The name of the resource
- acl
Resource StringType - resource
Pattern StringType Filter
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.
- Acl
Host string - Acl
Operation string - Acl
Permission stringType - Acl
Principal string - Acl
Resource stringName - The name of the resource
- Acl
Resource stringType - Resource
Pattern stringType Filter
- Acl
Host string - Acl
Operation string - Acl
Permission stringType - Acl
Principal string - Acl
Resource stringName - The name of the resource
- Acl
Resource stringType - Resource
Pattern stringType Filter
- acl
Host String - acl
Operation String - acl
Permission StringType - acl
Principal String - acl
Resource StringName - The name of the resource
- acl
Resource StringType - resource
Pattern StringType Filter
- acl
Host string - acl
Operation string - acl
Permission stringType - acl
Principal string - acl
Resource stringName - The name of the resource
- acl
Resource stringType - resource
Pattern stringType Filter
- acl_
host str - acl_
operation str - acl_
permission_ strtype - acl_
principal str - acl_
resource_ strname - The name of the resource
- acl_
resource_ strtype - resource_
pattern_ strtype_ filter
- acl
Host String - acl
Operation String - acl
Permission StringType - acl
Principal String - acl
Resource StringName - The name of the resource
- acl
Resource StringType - resource
Pattern StringType Filter
Package Details
- Repository
- Kafka pulumi/pulumi-kafka
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
kafka
Terraform Provider.