Skip to content

AclProps

Properties for defining a Acl.

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

Initializer

import com.aliyun.ros.cdk.kafka.AclProps;
AclProps.builder()
    .aclOperationTypes(IResolvable)
    .aclOperationTypes(java.util.List<java.lang.String)
    .aclOperationTypes(IResolvable>)
    .aclResourceName(java.lang.String)
    .aclResourceName(IResolvable)
    .aclResourcePatternType(java.lang.String)
    .aclResourcePatternType(IResolvable)
    .aclResourceType(java.lang.String)
    .aclResourceType(IResolvable)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .username(java.lang.String)
    .username(IResolvable)
//  .aclPermissionType(java.lang.String)
//  .aclPermissionType(IResolvable)
//  .host(java.lang.String)
//  .host(IResolvable)
    .build();

Properties

Name Type Description
aclOperationTypes com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property aclOperationTypes: The types of operations allowed by the ACL.
aclResourceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property aclResourceName: The resource name.
aclResourcePatternType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property aclResourcePatternType: The matching mode.
aclResourceType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property aclResourceType: The resource type.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The instance ID.
username java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property username: The username.
aclPermissionType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property aclPermissionType: The authorization method.
host java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property host: The source IP address.

aclOperationTypesRequired

public java.lang.Object getAclOperationTypes();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

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


aclResourceNameRequired

public java.lang.Object getAclResourceName();
  • Type: java.lang.String OR com.aliyun.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.


aclResourcePatternTypeRequired

public java.lang.Object getAclResourcePatternType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property aclResourcePatternType: The matching mode.

Valid values: LITERAL: exact match PREFIXED: prefix match


aclResourceTypeRequired

public java.lang.Object getAclResourceType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property aclResourceType: The resource type.

Valid values: Topic Group Cluster TransactionalId: transactional ID


instanceIdRequired

public java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: The instance ID.


usernameRequired

public java.lang.Object getUsername();
  • Type: java.lang.String OR com.aliyun.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.


aclPermissionTypeOptional

public java.lang.Object getAclPermissionType();
  • Type: java.lang.String OR com.aliyun.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

public java.lang.Object getHost();
  • Type: java.lang.String OR com.aliyun.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.