KafkaAcl
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var mytestacl = new Aiven.KafkaAcl("mytestacl", new Aiven.KafkaAclArgs
{
Permission = "admin",
Project = aiven_project.Myproject.Project,
ServiceName = aiven_service.Myservice.Service_name,
Topic = "<TOPIC_NAME_PATTERN>",
Username = "<USERNAME_PATTERN>",
});
}
}
Coming soon!
import pulumi
import pulumi_aiven as aiven
mytestacl = aiven.KafkaAcl("mytestacl",
permission="admin",
project=aiven_project["myproject"]["project"],
service_name=aiven_service["myservice"]["service_name"],
topic="<TOPIC_NAME_PATTERN>",
username="<USERNAME_PATTERN>")import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const mytestacl = new aiven.KafkaAcl("mytestacl", {
permission: "admin",
project: aiven_project_myproject.project,
serviceName: aiven_service_myservice.serviceName,
topic: "<TOPIC_NAME_PATTERN>",
username: "<USERNAME_PATTERN>",
});Create a KafkaAcl Resource
new KafkaAcl(name: string, args: KafkaAclArgs, opts?: CustomResourceOptions);def KafkaAcl(resource_name, opts=None, permission=None, project=None, service_name=None, topic=None, username=None, __props__=None);func NewKafkaAcl(ctx *Context, name string, args KafkaAclArgs, opts ...ResourceOption) (*KafkaAcl, error)public KafkaAcl(string name, KafkaAclArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args KafkaAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KafkaAclArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KafkaAclArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
KafkaAcl Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The KafkaAcl resource accepts the following input properties:
- Permission string
Kafka permission to grant (admin, read, readwrite, write)
- Project string
Project to link the Kafka ACL to
- Service
Name string Service to link the Kafka ACL to
- Topic string
Topic name pattern for the ACL entry
- Username string
Username pattern for the ACL entry
- Permission string
Kafka permission to grant (admin, read, readwrite, write)
- Project string
Project to link the Kafka ACL to
- Service
Name string Service to link the Kafka ACL to
- Topic string
Topic name pattern for the ACL entry
- Username string
Username pattern for the ACL entry
- permission string
Kafka permission to grant (admin, read, readwrite, write)
- project string
Project to link the Kafka ACL to
- service
Name string Service to link the Kafka ACL to
- topic string
Topic name pattern for the ACL entry
- username string
Username pattern for the ACL entry
- permission str
Kafka permission to grant (admin, read, readwrite, write)
- project str
Project to link the Kafka ACL to
- service_
name str Service to link the Kafka ACL to
- topic str
Topic name pattern for the ACL entry
- username str
Username pattern for the ACL entry
Outputs
All input properties are implicitly available as output properties. Additionally, the KafkaAcl resource produces the following output properties:
Look up an Existing KafkaAcl Resource
Get an existing KafkaAcl 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?: KafkaAclState, opts?: CustomResourceOptions): KafkaAclstatic get(resource_name, id, opts=None, permission=None, project=None, service_name=None, topic=None, username=None, __props__=None);func GetKafkaAcl(ctx *Context, name string, id IDInput, state *KafkaAclState, opts ...ResourceOption) (*KafkaAcl, error)public static KafkaAcl Get(string name, Input<string> id, KafkaAclState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Permission string
Kafka permission to grant (admin, read, readwrite, write)
- Project string
Project to link the Kafka ACL to
- Service
Name string Service to link the Kafka ACL to
- Topic string
Topic name pattern for the ACL entry
- Username string
Username pattern for the ACL entry
- Permission string
Kafka permission to grant (admin, read, readwrite, write)
- Project string
Project to link the Kafka ACL to
- Service
Name string Service to link the Kafka ACL to
- Topic string
Topic name pattern for the ACL entry
- Username string
Username pattern for the ACL entry
- permission string
Kafka permission to grant (admin, read, readwrite, write)
- project string
Project to link the Kafka ACL to
- service
Name string Service to link the Kafka ACL to
- topic string
Topic name pattern for the ACL entry
- username string
Username pattern for the ACL entry
- permission str
Kafka permission to grant (admin, read, readwrite, write)
- project str
Project to link the Kafka ACL to
- service_
name str Service to link the Kafka ACL to
- topic str
Topic name pattern for the ACL entry
- username str
Username pattern for the ACL entry
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.