Skip to content

Instance

  • Implements: com.aliyun.ros.cdk.kafka.datasource.IInstance

This class encapsulates and extends the ROS resource type DATASOURCE::KAFKA::Instance.

Initializers

import com.aliyun.ros.cdk.kafka.datasource.Instance;
Instance.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(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.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The ID of the instance.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

instanceIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: The ID of the instance.


refreshOptionsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values:

  • Never: Never refresh the datasource resource when the stack is updated.
  • Always: Always refresh the datasource resource when the stack is updated. Default is Never.

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.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc 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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

fetchCondition

public RosCondition fetchCondition()

fetchDependency

public java.util.List<java.lang.String> fetchDependency()

fetchResourceDesc

public java.lang.String fetchResourceDesc()

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.kafka.datasource.Instance;
Instance.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
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.
attrAllConfig java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AllConfig: The current configuration of the deployed message queue Kafka version.
attrAllowedList java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AllowedList: White list.
attrCreateTime java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CreateTime: Creation time.
attrDeployType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DeployType: Deployment method.
attrDiskSize java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DiskSize: Disk size.
attrDiskType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DiskType: Disk type.
attrDomainEndpoint java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute DomainEndpoint: The domain name access point of the default access point.
attrEipMax java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EipMax: Peak public network traffic.
attrEndPoint java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute EndPoint: Access point.
attrExpiredTime java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ExpiredTime: Expiration time.
attrInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceId: The ID of the instance.
attrInstanceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute InstanceName: Note name.
attrIoMax java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute IoMax: Peak flow.
attrIoMaxSpec java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute IoMaxSpec: Flow specifications (recommended).
attrMsgRetain java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute MsgRetain: Message save time.
attrPaymentType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PaymentType: The paymen type of the resource.
attrResourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ResourceGroupId: The ID of the resource group.
attrSaslDomainEndpoint java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SaslDomainEndpoint: The domain name access point of the SASL access point.
attrServiceVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ServiceVersion: The version of the Kafka version of the deployed Message Queue.
attrSpecType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SpecType: Instance type.
attrSslDomainEndpoint java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SslDomainEndpoint: The domain name of the SSL access point.
attrSslEndPoint java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute SslEndPoint: External access point.
attrTags java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Tags: The tag of the kafka console, which is used to group instance,topic, and consumption.
attrTopicNumLimit java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute TopicNumLimit: Maximum number of topic creation.
attrVpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute VpcId: VpcId.
attrVSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute VSwitchId: Switch id.
attrZoneId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ZoneId: The ID of the zone in which the instance is deployed.
props InstanceProps No description.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.ros.cdk.core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrAllConfigRequired

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

Attribute AllConfig: The current configuration of the deployed message queue Kafka version.


attrAllowedListRequired

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

Attribute AllowedList: White list.


attrCreateTimeRequired

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

Attribute CreateTime: Creation time.


attrDeployTypeRequired

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

Attribute DeployType: Deployment method.


attrDiskSizeRequired

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

Attribute DiskSize: Disk size.


attrDiskTypeRequired

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

Attribute DiskType: Disk type.


attrDomainEndpointRequired

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

Attribute DomainEndpoint: The domain name access point of the default access point.

The Kafka instance supports domain name access points and IP access points.


attrEipMaxRequired

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

Attribute EipMax: Peak public network traffic.


attrEndPointRequired

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

Attribute EndPoint: Access point.


attrExpiredTimeRequired

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

Attribute ExpiredTime: Expiration time.


attrInstanceIdRequired

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

Attribute InstanceId: The ID of the instance.


attrInstanceNameRequired

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

Attribute InstanceName: Note name.


attrIoMaxRequired

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

Attribute IoMax: Peak flow.


attrIoMaxSpecRequired

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

Attribute IoMaxSpec: Flow specifications (recommended).


attrMsgRetainRequired

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

Attribute MsgRetain: Message save time.


attrPaymentTypeRequired

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

Attribute PaymentType: The paymen type of the resource.


attrResourceGroupIdRequired

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

Attribute ResourceGroupId: The ID of the resource group.


attrSaslDomainEndpointRequired

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

Attribute SaslDomainEndpoint: The domain name access point of the SASL access point.

The Kafka instance supports domain name access points and IP access points.


attrServiceVersionRequired

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

Attribute ServiceVersion: The version of the Kafka version of the deployed Message Queue.

The value is 0.10.2 or 2.2.0.


attrSpecTypeRequired

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

Attribute SpecType: Instance type.


attrSslDomainEndpointRequired

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

Attribute SslDomainEndpoint: The domain name of the SSL access point.

The Kafka instance supports domain name access points and IP access points.


attrSslEndPointRequired

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

Attribute SslEndPoint: External access point.


attrTagsRequired

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

Attribute Tags: The tag of the kafka console, which is used to group instance,topic, and consumption.


attrTopicNumLimitRequired

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

Attribute TopicNumLimit: Maximum number of topic creation.


attrVpcIdRequired

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

Attribute VpcId: VpcId.


attrVSwitchIdRequired

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

Attribute VSwitchId: Switch id.


attrZoneIdRequired

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

Attribute ZoneId: The ID of the zone in which the instance is deployed.


propsRequired

public InstanceProps getProps();