Skip to content

Instance

  • Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkrocketmq5.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

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrocketmq5/datasource"
datasource.NewInstance(scope Construct, id *string, props InstanceProps, enableResourcePropertyConstraint *bool) Instance
Name Type Description
scope github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct No description.
id *string No description.
props InstanceProps No description.
enableResourcePropertyConstraint *bool No description.

scopeRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct

idRequired

  • Type: *string

propsRequired


enableResourcePropertyConstraintOptional

  • Type: *bool

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

func ToString() *string

Returns a string representation of this construct.

Synthesize

func Synthesize(session ISynthesisSession)

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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

FetchCondition

func FetchCondition() RosCondition

FetchDependency

func FetchDependency() *[]*string

FetchResourceDesc

func FetchResourceDesc() *string

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

  • Type: interface{}

Static Functions

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

IsConstruct

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkrocketmq5/datasource"
datasource.Instance_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

xRequired

  • Type: interface{}

Properties

Name Type Description
Node github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode The construct tree node associated with this construct.
Env github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment The environment this resource belongs to.
Ref *string No description.
Stack github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack The stack in which this resource is defined.
Resource github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource No description.
AttrAccountInfo interface{} Attribute AccountInfo: The account information.
AttrAclInfo interface{} Attribute AclInfo: The information about access control.
AttrBid interface{} Attribute Bid: The business ID (BID) of the commodity.
AttrCommodityCode interface{} Attribute CommodityCode: The commodity code of the instance.
AttrCreateTime interface{} Attribute CreateTime: The time when the instance was created.
AttrExpireTime interface{} Attribute ExpireTime: The time when the instance expires.
AttrExtConfig interface{} Attribute ExtConfig: The extended configurations.
AttrGroupCount interface{} Attribute GroupCount: The number of groups.
AttrInstanceId interface{} Attribute InstanceId: The ID of the RocketMQ instance.
AttrInstanceName interface{} Attribute InstanceName: The name of the instance.
AttrInstanceQuotas interface{} Attribute InstanceQuotas: The instance quotas.
AttrNetworkInfo interface{} Attribute NetworkInfo: The network information.
AttrPaymentType interface{} Attribute PaymentType: The billing method of the instance.
AttrProductInfo interface{} Attribute ProductInfo: The extended configurations of the instance.
AttrReleaseTime interface{} Attribute ReleaseTime: The time when the instance was released.
AttrRemark interface{} Attribute Remark: The description of the instance.
AttrResourceGroupId interface{} Attribute ResourceGroupId: The ID of the resource group.
AttrSeriesCode interface{} Attribute SeriesCode: The primary edition of the instance.
AttrServiceCode interface{} Attribute ServiceCode: The code of the service to which the instance belongs.
AttrSoftware interface{} Attribute Software: The instance software information.
AttrStartTime interface{} Attribute StartTime: The time when the instance was started.
AttrStatus interface{} Attribute Status: The status of the instance.
AttrSubSeriesCode interface{} Attribute SubSeriesCode: The sub-category edition of the instance.
AttrTags interface{} Attribute Tags: The resource tags.
AttrTopicCount interface{} Attribute TopicCount: The number of topics.
AttrUpdateTime interface{} Attribute UpdateTime: The time when the instance was last modified.
AttrUserId interface{} Attribute UserId: The ID of the user who owns the instance.
Props InstanceProps No description.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


EnvRequired

func Env() IResourceEnvironment
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func Ref() *string
  • Type: *string

StackRequired

func Stack() Stack
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack

The stack in which this resource is defined.


ResourceOptional

func Resource() RosResource
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource

AttrAccountInfoRequired

func AttrAccountInfo() interface{}
  • Type: interface{}

Attribute AccountInfo: The account information.


AttrAclInfoRequired

func AttrAclInfo() interface{}
  • Type: interface{}

Attribute AclInfo: The information about access control.


AttrBidRequired

func AttrBid() interface{}
  • Type: interface{}

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


AttrCommodityCodeRequired

func AttrCommodityCode() interface{}
  • Type: interface{}

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.


AttrCreateTimeRequired

func AttrCreateTime() interface{}
  • Type: interface{}

Attribute CreateTime: The time when the instance was created.


AttrExpireTimeRequired

func AttrExpireTime() interface{}
  • Type: interface{}

Attribute ExpireTime: The time when the instance expires.


AttrExtConfigRequired

func AttrExtConfig() interface{}
  • Type: interface{}

Attribute ExtConfig: The extended configurations.

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


AttrGroupCountRequired

func AttrGroupCount() interface{}
  • Type: interface{}

Attribute GroupCount: The number of groups.


AttrInstanceIdRequired

func AttrInstanceId() interface{}
  • Type: interface{}

Attribute InstanceId: The ID of the RocketMQ instance.


AttrInstanceNameRequired

func AttrInstanceName() interface{}
  • Type: interface{}

Attribute InstanceName: The name of the instance.


AttrInstanceQuotasRequired

func AttrInstanceQuotas() interface{}
  • Type: interface{}

Attribute InstanceQuotas: The instance quotas.


AttrNetworkInfoRequired

func AttrNetworkInfo() interface{}
  • Type: interface{}

Attribute NetworkInfo: The network information.


AttrPaymentTypeRequired

func AttrPaymentType() interface{}
  • Type: interface{}

Attribute PaymentType: The billing method of the instance.


AttrProductInfoRequired

func AttrProductInfo() interface{}
  • Type: interface{}

Attribute ProductInfo: The extended configurations of the instance.


AttrReleaseTimeRequired

func AttrReleaseTime() interface{}
  • Type: interface{}

Attribute ReleaseTime: The time when the instance was released.


AttrRemarkRequired

func AttrRemark() interface{}
  • Type: interface{}

Attribute Remark: The description of the instance.


AttrResourceGroupIdRequired

func AttrResourceGroupId() interface{}
  • Type: interface{}

Attribute ResourceGroupId: The ID of the resource group.


AttrSeriesCodeRequired

func AttrSeriesCode() interface{}
  • Type: interface{}

Attribute SeriesCode: The primary edition of the instance.


AttrServiceCodeRequired

func AttrServiceCode() interface{}
  • Type: interface{}

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

The service code of ApsaraMQ for RocketMQ is rmq.


AttrSoftwareRequired

func AttrSoftware() interface{}
  • Type: interface{}

Attribute Software: The instance software information.


AttrStartTimeRequired

func AttrStartTime() interface{}
  • Type: interface{}

Attribute StartTime: The time when the instance was started.


AttrStatusRequired

func AttrStatus() interface{}
  • Type: interface{}

Attribute Status: The status of the instance.


AttrSubSeriesCodeRequired

func AttrSubSeriesCode() interface{}
  • Type: interface{}

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


AttrTagsRequired

func AttrTags() interface{}
  • Type: interface{}

Attribute Tags: The resource tags.


AttrTopicCountRequired

func AttrTopicCount() interface{}
  • Type: interface{}

Attribute TopicCount: The number of topics.


AttrUpdateTimeRequired

func AttrUpdateTime() interface{}
  • Type: interface{}

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


AttrUserIdRequired

func AttrUserId() interface{}
  • Type: interface{}

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


PropsRequired

func Props() InstanceProps