Skip to content

AclProps

Properties for defining a Acl.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-kafka-acl

Initializer

import ros_cdk_kafka
ros_cdk_kafka.AclProps(
  acl_operation_types: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]],
  acl_resource_name: typing.Union[str, IResolvable],
  acl_resource_pattern_type: typing.Union[str, IResolvable],
  acl_resource_type: typing.Union[str, IResolvable],
  instance_id: typing.Union[str, IResolvable],
  username: typing.Union[str, IResolvable],
  acl_permission_type: typing.Union[str, IResolvable] = None,
  host: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
acl_operation_types typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]] Property aclOperationTypes: The types of operations allowed by the ACL.
acl_resource_name typing.Union[str, ros_cdk_core.IResolvable] Property aclResourceName: The resource name.
acl_resource_pattern_type typing.Union[str, ros_cdk_core.IResolvable] Property aclResourcePatternType: The matching mode.
acl_resource_type typing.Union[str, ros_cdk_core.IResolvable] Property aclResourceType: The resource type.
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: The instance ID.
username typing.Union[str, ros_cdk_core.IResolvable] Property username: The username.
acl_permission_type typing.Union[str, ros_cdk_core.IResolvable] Property aclPermissionType: The authorization method.
host typing.Union[str, ros_cdk_core.IResolvable] Property host: The source IP address.

acl_operation_typesRequired

acl_operation_types: typing.Union[IResolvable, typing.List[typing.Union[str, IResolvable]]]
  • Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[str, ros_cdk_core.IResolvable]]]

Property aclOperationTypes: The types of operations allowed by the ACL.


acl_resource_nameRequired

acl_resource_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property aclResourceName: The resource name.

The value can be a topic name, a group ID, a cluster name, or a transaction ID. You can use an asterisk () to specify the names of all resources of the specified type. Note You can use an asterisk () to query the resources on which permissions are granted only after you grant the user the required permissions on all resources.


acl_resource_pattern_typeRequired

acl_resource_pattern_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property aclResourcePatternType: The matching mode.

Valid values: LITERAL: exact match PREFIXED: prefix match


acl_resource_typeRequired

acl_resource_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property aclResourceType: The resource type.

Valid values: Topic Group Cluster TransactionalId: transactional ID


instance_idRequired

instance_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property instanceId: The instance ID.


usernameRequired

username: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property username: The username.

You can use an asterisk () to specify all usernames. Note You can use an asterisk () to query the authorized users only after you grant the required permissions to all users.


acl_permission_typeOptional

acl_permission_type: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property aclPermissionType: The authorization method.

Valid values: DENY ALLOW Note This parameter is available only for ApsaraMQ for Kafka V3 serverless instances.


hostOptional

host: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property host: The source IP address.

Note You can specify only a specific IP address or use the asterisk (*) wildcard character to specify all IP addresses. CIDR blocks are not supported. This parameter is available only for ApsaraMQ for Kafka V3 serverless instances.