Skip to content

Instance

  • Implements: ros_cdk_rocketmq5.datasource.IInstance

This class encapsulates and extends the ROS resource type DATASOURCE::ROCKETMQ5::Instance, which is used to query the information about an instance.

Initializers

from ros_cdk_rocketmq5 import datasource
datasource.Instance(
  scope: Construct,
  id: str,
  instance_id: typing.Union[str, IResolvable],
  refresh_options: typing.Union[str, IResolvable] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
instance_id typing.Union[str, ros_cdk_core.IResolvable] Property instanceId: The ID of the instance that you want to query.
refresh_options typing.Union[str, ros_cdk_core.IResolvable] Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

instance_idRequired

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

Property instanceId: The ID of the instance that you want to query.


refresh_optionsOptional

  • Type: typing.Union[str, 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.

enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
fetch_condition No description.
fetch_dependency No description.
fetch_resource_desc No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

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: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

fetch_condition

def fetch_condition() -> RosCondition

fetch_dependency

def fetch_dependency() -> typing.List[str]

fetch_resource_desc

def fetch_resource_desc() -> str

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

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

is_construct

from ros_cdk_rocketmq5 import datasource
datasource.Instance.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
env ros_cdk_core.IResourceEnvironment The environment this resource belongs to.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_account_info typing.Union[str, ros_cdk_core.IResolvable] Attribute AccountInfo: The account information.
attr_acl_info typing.Union[str, ros_cdk_core.IResolvable] Attribute AclInfo: The information about access control.
attr_bid typing.Union[str, ros_cdk_core.IResolvable] Attribute Bid: The business ID (BID) of the commodity.
attr_commodity_code typing.Union[str, ros_cdk_core.IResolvable] Attribute CommodityCode: The commodity code of the instance.
attr_create_time typing.Union[str, ros_cdk_core.IResolvable] Attribute CreateTime: The time when the instance was created.
attr_expire_time typing.Union[str, ros_cdk_core.IResolvable] Attribute ExpireTime: The time when the instance expires.
attr_ext_config typing.Union[str, ros_cdk_core.IResolvable] Attribute ExtConfig: The extended configurations.
attr_group_count typing.Union[str, ros_cdk_core.IResolvable] Attribute GroupCount: The number of groups.
attr_instance_id typing.Union[str, ros_cdk_core.IResolvable] Attribute InstanceId: The ID of the RocketMQ instance.
attr_instance_name typing.Union[str, ros_cdk_core.IResolvable] Attribute InstanceName: The name of the instance.
attr_instance_quotas typing.Union[str, ros_cdk_core.IResolvable] Attribute InstanceQuotas: The instance quotas.
attr_network_info typing.Union[str, ros_cdk_core.IResolvable] Attribute NetworkInfo: The network information.
attr_payment_type typing.Union[str, ros_cdk_core.IResolvable] Attribute PaymentType: The billing method of the instance.
attr_product_info typing.Union[str, ros_cdk_core.IResolvable] Attribute ProductInfo: The extended configurations of the instance.
attr_release_time typing.Union[str, ros_cdk_core.IResolvable] Attribute ReleaseTime: The time when the instance was released.
attr_remark typing.Union[str, ros_cdk_core.IResolvable] Attribute Remark: The description of the instance.
attr_resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Attribute ResourceGroupId: The ID of the resource group.
attr_series_code typing.Union[str, ros_cdk_core.IResolvable] Attribute SeriesCode: The primary edition of the instance.
attr_service_code typing.Union[str, ros_cdk_core.IResolvable] Attribute ServiceCode: The code of the service to which the instance belongs.
attr_software typing.Union[str, ros_cdk_core.IResolvable] Attribute Software: The instance software information.
attr_start_time typing.Union[str, ros_cdk_core.IResolvable] Attribute StartTime: The time when the instance was started.
attr_status typing.Union[str, ros_cdk_core.IResolvable] Attribute Status: The status of the instance.
attr_sub_series_code typing.Union[str, ros_cdk_core.IResolvable] Attribute SubSeriesCode: The sub-category edition of the instance.
attr_tags typing.Union[str, ros_cdk_core.IResolvable] Attribute Tags: The resource tags.
attr_topic_count typing.Union[str, ros_cdk_core.IResolvable] Attribute TopicCount: The number of topics.
attr_update_time typing.Union[str, ros_cdk_core.IResolvable] Attribute UpdateTime: The time when the instance was last modified.
attr_user_id typing.Union[str, ros_cdk_core.IResolvable] Attribute UserId: The ID of the user who owns the instance.
props InstanceProps No description.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


envRequired

env: IResourceEnvironment
  • Type: 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

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_account_infoRequired

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

Attribute AccountInfo: The account information.


attr_acl_infoRequired

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

Attribute AclInfo: The information about access control.


attr_bidRequired

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

Attribute Bid: The business ID (BID) of the commodity.


attr_commodity_codeRequired

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

Attribute CommodityCode: The commodity code of the instance.

The commodity code of a ApsaraMQ for RocketMQ 5.0 instance has a similar format as ons_rmqsub_public_cn.


attr_create_timeRequired

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

Attribute CreateTime: The time when the instance was created.


attr_expire_timeRequired

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

Attribute ExpireTime: The time when the instance expires.


attr_ext_configRequired

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

Attribute ExtConfig: The extended configurations.

We recommend you configure productInfo, internetInfo, or aclInfo instead of this parameter.


attr_group_countRequired

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

Attribute GroupCount: The number of groups.


attr_instance_idRequired

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

Attribute InstanceId: The ID of the RocketMQ instance.


attr_instance_nameRequired

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

Attribute InstanceName: The name of the instance.


attr_instance_quotasRequired

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

Attribute InstanceQuotas: The instance quotas.


attr_network_infoRequired

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

Attribute NetworkInfo: The network information.


attr_payment_typeRequired

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

Attribute PaymentType: The billing method of the instance.


attr_product_infoRequired

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

Attribute ProductInfo: The extended configurations of the instance.


attr_release_timeRequired

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

Attribute ReleaseTime: The time when the instance was released.


attr_remarkRequired

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

Attribute Remark: The description of the instance.


attr_resource_group_idRequired

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

Attribute ResourceGroupId: The ID of the resource group.


attr_series_codeRequired

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

Attribute SeriesCode: The primary edition of the instance.


attr_service_codeRequired

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

Attribute ServiceCode: The code of the service to which the instance belongs.

The service code of ApsaraMQ for RocketMQ is rmq.


attr_softwareRequired

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

Attribute Software: The instance software information.


attr_start_timeRequired

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

Attribute StartTime: The time when the instance was started.


attr_statusRequired

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

Attribute Status: The status of the instance.


attr_sub_series_codeRequired

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

Attribute SubSeriesCode: The sub-category edition of the instance.


attr_tagsRequired

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

Attribute Tags: The resource tags.


attr_topic_countRequired

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

Attribute TopicCount: The number of topics.


attr_update_timeRequired

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

Attribute UpdateTime: The time when the instance was last modified.


attr_user_idRequired

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

Attribute UserId: The ID of the user who owns the instance.


propsRequired

props: InstanceProps