Instance
This class encapsulates and extends the ROS resource type ALIYUN::KAFKA::Instance
, which is used to create an ApsaraMQ for Kafka instance.
Initializers
import com.aliyun.ros.cdk.kafka.Instance;
Instance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.deployType(java.lang.Number)
.deployType(IResolvable)
// .deletionForce(java.lang.Boolean)
// .deletionForce(IResolvable)
// .deployOption(IResolvable)
// .deployOption(DeployOptionProperty)
// .diskSize(java.lang.Number)
// .diskSize(IResolvable)
// .diskType(java.lang.String)
// .diskType(IResolvable)
// .eipMax(java.lang.Number)
// .eipMax(IResolvable)
// .ioMax(java.lang.Number)
// .ioMax(IResolvable)
// .ioMaxSpec(java.lang.String)
// .ioMaxSpec(IResolvable)
// .openConnector(java.lang.Boolean)
// .openConnector(IResolvable)
// .partitionNum(java.lang.Number)
// .partitionNum(IResolvable)
// .payType(java.lang.String)
// .payType(IResolvable)
// .serverlessConfig(IResolvable)
// .serverlessConfig(ServerlessConfigProperty)
// .specType(java.lang.String)
// .specType(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .topicQuota(java.lang.Number)
// .topicQuota(IResolvable)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
deployType |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property deployType: The deployment mode of the Message Queue for Apache Kafka instance. |
deletionForce |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property deletionForce: Whether delete all topics, consumer groups of the kafka instance and then delete instance. |
deployOption |
com.aliyun.ros.cdk.core.IResolvable OR DeployOptionProperty |
Property deployOption: If you want to deploy instance after create at once, the VSwitchId and DeployModule parameters is required. |
diskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property diskSize: The size of the disk to be configured for the Message Queue for Apache Kafka instance. |
diskType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property diskType: The type of the disk to be configured for the Message Queue for Apache Kafka instance. |
eipMax |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property eipMax: The public traffic to be configured for the Message Queue for Apache Kafka instance. |
ioMax |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property ioMax: The peak traffic to be configured for the Message Queue for Apache Kafka instance. |
ioMaxSpec |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ioMaxSpec: Flow specification (recommended) The IoMax and IoMaxSpec must be optional. |
openConnector |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property openConnector: Whether open kafka connector or not. |
partitionNum |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property partitionNum: Number of partitions(recommended). |
payType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property payType: Pay by hour or month. |
serverlessConfig |
com.aliyun.ros.cdk.core.IResolvable OR ServerlessConfigProperty |
Property serverlessConfig: Serverless instance related settings. |
specType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property specType: The edition of the Message Queue for Apache Kafka instance. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to instance. |
topicQuota |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property topicQuota: Number of topics (not recommended). |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
deployType
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property deployType: The deployment mode of the Message Queue for Apache Kafka instance.
Valid values: 4: Instance of the public type 5: Instance of the VPC type
deletionForce
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionForce: Whether delete all topics, consumer groups of the kafka instance and then delete instance.
Default is false
deployOption
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR DeployOptionProperty
Property deployOption: If you want to deploy instance after create at once, the VSwitchId and DeployModule parameters is required.
diskSize
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property diskSize: The size of the disk to be configured for the Message Queue for Apache Kafka instance.
diskType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property diskType: The type of the disk to be configured for the Message Queue for Apache Kafka instance.
Valid values: 0: Ultra disk 1: SSD
eipMax
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property eipMax: The public traffic to be configured for the Message Queue for Apache Kafka instance.
This parameter must be specified when the DeployType parameter is set to 4.
ioMax
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property ioMax: The peak traffic to be configured for the Message Queue for Apache Kafka instance.
For more information about the value range, see Billing.
ioMaxSpec
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ioMaxSpec: Flow specification (recommended) The IoMax and IoMaxSpec must be optional.
When filling in at the same time, subject to IoMaxSpec. It is recommended that you only fill in the flow specification
openConnector
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property openConnector: Whether open kafka connector or not.
partitionNum
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property partitionNum: Number of partitions(recommended).
The number of partitions to be configured for the Message Queue for Apache Kafka instance. PartitionNum and TopicQuota must be selected. It is recommended that you only fill in the number of partitions.
payType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property payType: Pay by hour or month.
serverlessConfig
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR ServerlessConfigProperty
Property serverlessConfig: Serverless instance related settings.
specType
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property specType: The edition of the Message Queue for Apache Kafka instance.
Valid values: professional: Professional Edition normal: Normal version
tags
Optional
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.
topicQuota
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property topicQuota: Number of topics (not recommended).
The number of topics to be configured for the Message Queue for Apache Kafka instance. PartitionNum and TopicQuota must be selected. It is recommended that you only fill in the number of partitions. The default value of this parameter varies with different peak traffic values. Additional fees are charged if the default values are exceeded. Different specifications have different default values, and extra fees are charged. For more information, see Billing.
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.kafka.Instance;
Instance.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrDomainEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute DomainEndpoint: The default endpoints of the instance in domain name mode. |
attrEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Endpoint: The SSL endpoints of the instance in IP address mode. |
attrInstanceId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute InstanceId: Id of the instance. |
attrName |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Name: Name of the instance. |
attrOrderId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute OrderId: Id of the order. |
attrSaslDomainEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SaslDomainEndpoint: The Simple Authentication and Security Layer (SASL) endpoints of the instance in domain name mode. |
attrSslDomainEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SslDomainEndpoint: The SSL endpoints of the instance in domain name mode. |
attrSslEndpoint |
com.aliyun.ros.cdk.core.IResolvable |
Attribute SslEndpoint: The SSL endpoints of the instance in IP address mode. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrDomainEndpoint
Required
public IResolvable getAttrDomainEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute DomainEndpoint: The default endpoints of the instance in domain name mode.
attrEndpoint
Required
public IResolvable getAttrEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Endpoint: The SSL endpoints of the instance in IP address mode.
attrInstanceId
Required
public IResolvable getAttrInstanceId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute InstanceId: Id of the instance.
attrName
Required
public IResolvable getAttrName();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Name: Name of the instance.
attrOrderId
Required
public IResolvable getAttrOrderId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute OrderId: Id of the order.
attrSaslDomainEndpoint
Required
public IResolvable getAttrSaslDomainEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SaslDomainEndpoint: The Simple Authentication and Security Layer (SASL) endpoints of the instance in domain name mode.
attrSslDomainEndpoint
Required
public IResolvable getAttrSslDomainEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SslDomainEndpoint: The SSL endpoints of the instance in domain name mode.
attrSslEndpoint
Required
public IResolvable getAttrSslEndpoint();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute SslEndpoint: The SSL endpoints of the instance in IP address mode.