Documentation ¶
Overview ¶
Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com
Index ¶
- func ConsumerGroup_IsConstruct(x interface{}) *bool
- func Instance_IsConstruct(x interface{}) *bool
- func NewConsumerGroup_Override(c ConsumerGroup, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewInstance_Override(i Instance, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosConsumerGroup_Override(r RosConsumerGroup, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosInstance_Override(r RosInstance, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewRosTopic_Override(r RosTopic, scope alicloudroscdkcore.Construct, id *string, ...)
- func NewTopic_Override(t Topic, scope alicloudroscdkcore.Construct, id *string, props *TopicProps, ...)
- func RosConsumerGroup_IsConstruct(x interface{}) *bool
- func RosConsumerGroup_IsRosElement(x interface{}) *bool
- func RosConsumerGroup_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosConsumerGroup_ROS_RESOURCE_TYPE_NAME() *string
- func RosInstance_IsConstruct(x interface{}) *bool
- func RosInstance_IsRosElement(x interface{}) *bool
- func RosInstance_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosInstance_ROS_RESOURCE_TYPE_NAME() *string
- func RosTopic_IsConstruct(x interface{}) *bool
- func RosTopic_IsRosElement(x interface{}) *bool
- func RosTopic_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
- func RosTopic_ROS_RESOURCE_TYPE_NAME() *string
- func Topic_IsConstruct(x interface{}) *bool
- type ConsumerGroup
- type ConsumerGroupProps
- type Instance
- type InstanceProps
- type RosConsumerGroup
- type RosConsumerGroupProps
- type RosConsumerGroup_ConsumeRetryPolicyProperty
- type RosInstance
- type RosInstanceProps
- type RosInstance_InternetInfoProperty
- type RosInstance_ProductInfoProperty
- type RosInstance_VpcInfoProperty
- type RosTopic
- type RosTopicProps
- type Topic
- type TopicProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumerGroup_IsConstruct ¶
func ConsumerGroup_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func Instance_IsConstruct ¶
func Instance_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func NewConsumerGroup_Override ¶
func NewConsumerGroup_Override(c ConsumerGroup, scope alicloudroscdkcore.Construct, id *string, props *ConsumerGroupProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewInstance_Override ¶
func NewInstance_Override(i Instance, scope alicloudroscdkcore.Construct, id *string, props *InstanceProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func NewRosConsumerGroup_Override ¶
func NewRosConsumerGroup_Override(r RosConsumerGroup, scope alicloudroscdkcore.Construct, id *string, props *RosConsumerGroupProps, enableResourcePropertyConstraint *bool)
func NewRosInstance_Override ¶
func NewRosInstance_Override(r RosInstance, scope alicloudroscdkcore.Construct, id *string, props *RosInstanceProps, enableResourcePropertyConstraint *bool)
func NewRosTopic_Override ¶
func NewRosTopic_Override(r RosTopic, scope alicloudroscdkcore.Construct, id *string, props *RosTopicProps, enableResourcePropertyConstraint *bool)
func NewTopic_Override ¶
func NewTopic_Override(t Topic, scope alicloudroscdkcore.Construct, id *string, props *TopicProps, enableResourcePropertyConstraint *bool)
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
func RosConsumerGroup_IsConstruct ¶
func RosConsumerGroup_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosConsumerGroup_IsRosElement ¶
func RosConsumerGroup_IsRosElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosConsumerGroup_IsRosResource ¶
func RosConsumerGroup_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosConsumerGroup_ROS_RESOURCE_TYPE_NAME ¶
func RosConsumerGroup_ROS_RESOURCE_TYPE_NAME() *string
func RosInstance_IsConstruct ¶
func RosInstance_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosInstance_IsRosElement ¶
func RosInstance_IsRosElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosInstance_IsRosResource ¶
func RosInstance_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosInstance_ROS_RESOURCE_TYPE_NAME ¶
func RosInstance_ROS_RESOURCE_TYPE_NAME() *string
func RosTopic_IsConstruct ¶
func RosTopic_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
func RosTopic_IsRosElement ¶
func RosTopic_IsRosElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func RosTopic_IsRosResource ¶
func RosTopic_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool
Check whether the given construct is a RosResource.
func RosTopic_ROS_RESOURCE_TYPE_NAME ¶
func RosTopic_ROS_RESOURCE_TYPE_NAME() *string
func Topic_IsConstruct ¶
func Topic_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
Types ¶
type ConsumerGroup ¶
type ConsumerGroup interface { alicloudroscdkcore.Resource // Attribute ConsumerGroupId: The ID of the consumer group. AttrConsumerGroupId() alicloudroscdkcore.IResolvable // Attribute DeliveryOrderType: Delivery sequence of consumer group. AttrDeliveryOrderType() alicloudroscdkcore.IResolvable // Attribute InstanceId: The ID of the instance. AttrInstanceId() alicloudroscdkcore.IResolvable EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *ConsumerGroupProps SetProps(val *ConsumerGroupProps) Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `ALIYUN::ROCKETMQ5::ConsumerGroup`, which is used to create a consumer group in ApsaraMQ for RocketMQ 5.0.
func NewConsumerGroup ¶
func NewConsumerGroup(scope alicloudroscdkcore.Construct, id *string, props *ConsumerGroupProps, enableResourcePropertyConstraint *bool) ConsumerGroup
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type ConsumerGroupProps ¶
type ConsumerGroupProps struct { // Property consumeRetryPolicy: The consumption retry policy of the consumer group to be created. ConsumeRetryPolicy interface{} `field:"required" json:"consumeRetryPolicy" yaml:"consumeRetryPolicy"` // Property consumerGroupId: The ID of the consumer group to be created. // // Used to identify consumer groups, globally unique. // The value description is as follows: // Character limitation: supports letters a~z or A-Z, numbers 0-9, underscore (_), dash (-) and percent sign (%). // Length limit: 1-60 characters. ConsumerGroupId interface{} `field:"required" json:"consumerGroupId" yaml:"consumerGroupId"` // Property deliveryOrderType: Delivery sequence of the consumer group to be created. DeliveryOrderType interface{} `field:"required" json:"deliveryOrderType" yaml:"deliveryOrderType"` // Property instanceId: The ID of the instance. InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"` // Property remark: The remark of the consumer group to be created. Remark interface{} `field:"optional" json:"remark" yaml:"remark"` }
Properties for defining a `ConsumerGroup`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq5-consumergroup
type Instance ¶
type Instance interface { alicloudroscdkcore.Resource // Attribute InstanceId: Instance ID created. AttrInstanceId() alicloudroscdkcore.IResolvable // Attribute InstanceName: Instance name. AttrInstanceName() alicloudroscdkcore.IResolvable // Attribute InternetEndpoint: Internet endpoint. AttrInternetEndpoint() alicloudroscdkcore.IResolvable // Attribute VpcEndpoint: VPC endpoint. AttrVpcEndpoint() alicloudroscdkcore.IResolvable EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *InstanceProps SetProps(val *InstanceProps) Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `ALIYUN::ROCKETMQ5::Instance`, which is used to create an ApsaraMQ for RocketMQ 5.0 instance.
func NewInstance ¶
func NewInstance(scope alicloudroscdkcore.Construct, id *string, props *InstanceProps, enableResourcePropertyConstraint *bool) Instance
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type InstanceProps ¶
type InstanceProps struct { // Property internetInfo: Public network configuration information. InternetInfo interface{} `field:"required" json:"internetInfo" yaml:"internetInfo"` // Property productInfo: Instance specification information. ProductInfo interface{} `field:"required" json:"productInfo" yaml:"productInfo"` // Property seriesCode: The primary series code of the instance. SeriesCode interface{} `field:"required" json:"seriesCode" yaml:"seriesCode"` // Property subSeriesCode: The sub series code of the instance. SubSeriesCode interface{} `field:"required" json:"subSeriesCode" yaml:"subSeriesCode"` // Property vpcInfo: Private network configuration information. VpcInfo interface{} `field:"required" json:"vpcInfo" yaml:"vpcInfo"` // Property autoRenew: Whether to auto-renew. // // This parameter takes effect only when the PaymentType=Subscription. AutoRenew interface{} `field:"optional" json:"autoRenew" yaml:"autoRenew"` // Property autoRenewPeriod: Automatic renewal period. // // This parameter is valid only when automatic renewal is enabled. Unit: Month. AutoRenewPeriod interface{} `field:"optional" json:"autoRenewPeriod" yaml:"autoRenewPeriod"` // Property instanceName: The name of the instance to be created. InstanceName interface{} `field:"optional" json:"instanceName" yaml:"instanceName"` // Property paymentType: The sub series code of the instance. PaymentType interface{} `field:"optional" json:"paymentType" yaml:"paymentType"` // Property period: The subscription duration. // // Valid values: // When Period is Month, it could be from 1 to 6, 12, 24, 36. // When Period is Year, it could be from 1 to 3. Period interface{} `field:"optional" json:"period" yaml:"period"` // Property periodUnit: The period unit for the duration of the instance. PeriodUnit interface{} `field:"optional" json:"periodUnit" yaml:"periodUnit"` // Property remark: The remark of instance. Remark interface{} `field:"optional" json:"remark" yaml:"remark"` // Property resourceGroupId: Resource group ID. ResourceGroupId interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"` }
Properties for defining a `Instance`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq5-instance
type RosConsumerGroup ¶
type RosConsumerGroup interface { alicloudroscdkcore.RosResource AttrConsumerGroupId() alicloudroscdkcore.IResolvable AttrDeliveryOrderType() alicloudroscdkcore.IResolvable AttrInstanceId() alicloudroscdkcore.IResolvable ConsumeRetryPolicy() interface{} SetConsumeRetryPolicy(val interface{}) ConsumerGroupId() interface{} SetConsumerGroupId(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string DeliveryOrderType() interface{} SetDeliveryOrderType(val interface{}) EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) InstanceId() interface{} SetInstanceId(val interface{}) // The logical ID for this stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Return a string that will be resolved to a RosTemplate `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string Remark() interface{} SetRemark(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // Adds an override to the synthesized ROS resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // For example, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `ALIYUN::ROCKETMQ5::ConsumerGroup`, which is used to create a consumer group in ApsaraMQ for RocketMQ 5.0.
func NewRosConsumerGroup ¶
func NewRosConsumerGroup(scope alicloudroscdkcore.Construct, id *string, props *RosConsumerGroupProps, enableResourcePropertyConstraint *bool) RosConsumerGroup
type RosConsumerGroupProps ¶
type RosConsumerGroupProps struct { ConsumeRetryPolicy interface{} `field:"required" json:"consumeRetryPolicy" yaml:"consumeRetryPolicy"` ConsumerGroupId interface{} `field:"required" json:"consumerGroupId" yaml:"consumerGroupId"` DeliveryOrderType interface{} `field:"required" json:"deliveryOrderType" yaml:"deliveryOrderType"` InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"` Remark interface{} `field:"optional" json:"remark" yaml:"remark"` }
Properties for defining a `RosConsumerGroup`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq5-consumergroup
type RosConsumerGroup_ConsumeRetryPolicyProperty ¶
type RosConsumerGroup_ConsumeRetryPolicyProperty struct { RetryPolicy interface{} `field:"required" json:"retryPolicy" yaml:"retryPolicy"` MaxRetryTimes interface{} `field:"optional" json:"maxRetryTimes" yaml:"maxRetryTimes"` }
type RosInstance ¶
type RosInstance interface { alicloudroscdkcore.RosResource AttrInstanceId() alicloudroscdkcore.IResolvable AttrInstanceName() alicloudroscdkcore.IResolvable AttrInternetEndpoint() alicloudroscdkcore.IResolvable AttrVpcEndpoint() alicloudroscdkcore.IResolvable AutoRenew() interface{} SetAutoRenew(val interface{}) AutoRenewPeriod() interface{} SetAutoRenewPeriod(val interface{}) // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) InstanceName() interface{} SetInstanceName(val interface{}) InternetInfo() interface{} SetInternetInfo(val interface{}) // The logical ID for this stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode PaymentType() interface{} SetPaymentType(val interface{}) Period() interface{} SetPeriod(val interface{}) PeriodUnit() interface{} SetPeriodUnit(val interface{}) ProductInfo() interface{} SetProductInfo(val interface{}) // Return a string that will be resolved to a RosTemplate `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string Remark() interface{} SetRemark(val interface{}) ResourceGroupId() interface{} SetResourceGroupId(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string SeriesCode() interface{} SetSeriesCode(val interface{}) // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack SubSeriesCode() interface{} SetSubSeriesCode(val interface{}) // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} VpcInfo() interface{} SetVpcInfo(val interface{}) AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // Adds an override to the synthesized ROS resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // For example, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `ALIYUN::ROCKETMQ5::Instance`, which is used to create an ApsaraMQ for RocketMQ 5.0 instance.
func NewRosInstance ¶
func NewRosInstance(scope alicloudroscdkcore.Construct, id *string, props *RosInstanceProps, enableResourcePropertyConstraint *bool) RosInstance
type RosInstanceProps ¶
type RosInstanceProps struct { InternetInfo interface{} `field:"required" json:"internetInfo" yaml:"internetInfo"` ProductInfo interface{} `field:"required" json:"productInfo" yaml:"productInfo"` SeriesCode interface{} `field:"required" json:"seriesCode" yaml:"seriesCode"` SubSeriesCode interface{} `field:"required" json:"subSeriesCode" yaml:"subSeriesCode"` VpcInfo interface{} `field:"required" json:"vpcInfo" yaml:"vpcInfo"` AutoRenew interface{} `field:"optional" json:"autoRenew" yaml:"autoRenew"` AutoRenewPeriod interface{} `field:"optional" json:"autoRenewPeriod" yaml:"autoRenewPeriod"` InstanceName interface{} `field:"optional" json:"instanceName" yaml:"instanceName"` PaymentType interface{} `field:"optional" json:"paymentType" yaml:"paymentType"` Period interface{} `field:"optional" json:"period" yaml:"period"` PeriodUnit interface{} `field:"optional" json:"periodUnit" yaml:"periodUnit"` Remark interface{} `field:"optional" json:"remark" yaml:"remark"` ResourceGroupId interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"` }
Properties for defining a `RosInstance`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq5-instance
type RosInstance_InternetInfoProperty ¶
type RosInstance_InternetInfoProperty struct { InternetSpec interface{} `field:"required" json:"internetSpec" yaml:"internetSpec"` FlowOutBandwidth interface{} `field:"optional" json:"flowOutBandwidth" yaml:"flowOutBandwidth"` FlowOutType interface{} `field:"optional" json:"flowOutType" yaml:"flowOutType"` IpWhitelist interface{} `field:"optional" json:"ipWhitelist" yaml:"ipWhitelist"` }
type RosInstance_ProductInfoProperty ¶
type RosInstance_ProductInfoProperty struct { MsgProcessSpec interface{} `field:"required" json:"msgProcessSpec" yaml:"msgProcessSpec"` AutoScaling interface{} `field:"optional" json:"autoScaling" yaml:"autoScaling"` MessageRetentionTime interface{} `field:"optional" json:"messageRetentionTime" yaml:"messageRetentionTime"` SendReceiveRatio interface{} `field:"optional" json:"sendReceiveRatio" yaml:"sendReceiveRatio"` }
type RosInstance_VpcInfoProperty ¶
type RosInstance_VpcInfoProperty struct { VpcId interface{} `field:"required" json:"vpcId" yaml:"vpcId"` SecurityGroupId interface{} `field:"optional" json:"securityGroupId" yaml:"securityGroupId"` VSwitchId interface{} `field:"optional" json:"vSwitchId" yaml:"vSwitchId"` VSwitchIds interface{} `field:"optional" json:"vSwitchIds" yaml:"vSwitchIds"` }
type RosTopic ¶
type RosTopic interface { alicloudroscdkcore.RosResource AttrInstanceId() alicloudroscdkcore.IResolvable AttrMessageType() alicloudroscdkcore.IResolvable AttrTopicName() alicloudroscdkcore.IResolvable // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aliyun:ros:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) InstanceId() interface{} SetInstanceId(val interface{}) // The logical ID for this stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string MessageType() interface{} SetMessageType(val interface{}) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Return a string that will be resolved to a RosTemplate `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string Remark() interface{} SetRemark(val interface{}) // Options for this resource, such as condition, update policy etc. RosOptions() alicloudroscdkcore.IRosResourceOptions RosProperties() *map[string]interface{} // ROS resource type. RosResourceType() *string // The stack in which this element is defined. // // RosElements must be defined within a stack scope (directly or indirectly). Stack() alicloudroscdkcore.Stack TopicName() interface{} SetTopicName(val interface{}) // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} AddCondition(con alicloudroscdkcore.RosCondition) AddCount(count interface{}) // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependsOn(target alicloudroscdkcore.RosResource) AddDesc(desc *string) AddMetaData(key *string, value interface{}) // Adds an override to the synthesized ROS resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // For example, // “`typescript // addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']) // addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE') // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “`. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) AddRosDependency(target *string) // Sets the deletion policy of the resource based on the removal policy specified. ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy, options *alicloudroscdkcore.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string) alicloudroscdkcore.Reference // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string ValidateProperties(_properties interface{}) }
This class is a base encapsulation around the ROS resource type `ALIYUN::ROCKETMQ5::Topic`, which is used to create a topic for a Message Queue for Apache RocketMQ V5.0 instance.
func NewRosTopic ¶
func NewRosTopic(scope alicloudroscdkcore.Construct, id *string, props *RosTopicProps, enableResourcePropertyConstraint *bool) RosTopic
type RosTopicProps ¶
type RosTopicProps struct { InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"` MessageType interface{} `field:"required" json:"messageType" yaml:"messageType"` TopicName interface{} `field:"required" json:"topicName" yaml:"topicName"` Remark interface{} `field:"optional" json:"remark" yaml:"remark"` }
Properties for defining a `RosTopic`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq5-topic
type Topic ¶
type Topic interface { alicloudroscdkcore.Resource // Attribute InstanceId: The ID of the instance. AttrInstanceId() alicloudroscdkcore.IResolvable // Attribute MessageType: The type of the message. AttrMessageType() alicloudroscdkcore.IResolvable // Attribute TopicName: The name of the topic. AttrTopicName() alicloudroscdkcore.IResolvable EnableResourcePropertyConstraint() *bool SetEnableResourcePropertyConstraint(val *bool) Id() *string SetId(val *string) // The construct tree node associated with this construct. Node() alicloudroscdkcore.ConstructNode // Returns a string-encoded token that resolves to the physical name that should be passed to the ROS resource. // // This value will resolve to one of the following: // - a concrete value (e.g. `"my-awesome-bucket"`) // - `undefined`, when a name should be generated by ROS // - a concrete name generated automatically during synthesis, in // cross-environment scenarios. // Experimental. PhysicalName() *string Props() *TopicProps SetProps(val *TopicProps) Ref() *string Resource() alicloudroscdkcore.RosResource SetResource(val alicloudroscdkcore.RosResource) Scope() alicloudroscdkcore.Construct SetScope(val alicloudroscdkcore.Construct) // The stack in which this resource is defined. Stack() alicloudroscdkcore.Stack AddCondition(condition alicloudroscdkcore.RosCondition) AddCount(count interface{}) AddDependency(resource alicloudroscdkcore.Resource) AddResourceDesc(desc *string) ApplyRemovalPolicy(policy alicloudroscdkcore.RemovalPolicy) GeneratePhysicalName() *string GetAtt(name *string) alicloudroscdkcore.IResolvable // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. OnPrepare() // 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. OnSynthesize(session constructs.ISynthesisSession) // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. OnValidate() *[]*string // Perform final modifications before synthesis. // // This method can be implemented by derived constructs in order to perform // final changes before synthesis. prepare() will be called after child // constructs have been prepared. // // This is an advanced framework feature. Only use this if you // understand the implications. Prepare() SetMetadata(key *string, value interface{}) // 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. Synthesize(session alicloudroscdkcore.ISynthesisSession) // Returns a string representation of this construct. ToString() *string // Validate the current construct. // // This method can be implemented by derived constructs in order to perform // validation logic. It is called on all constructs before synthesis. // // Returns: An array of validation error messages, or an empty array if the construct is valid. Validate() *[]*string }
This class encapsulates and extends the ROS resource type `ALIYUN::ROCKETMQ5::Topic`, which is used to create a topic for a Message Queue for Apache RocketMQ V5.0 instance.
func NewTopic ¶
func NewTopic(scope alicloudroscdkcore.Construct, id *string, props *TopicProps, enableResourcePropertyConstraint *bool) Topic
Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.
type TopicProps ¶
type TopicProps struct { // Property instanceId: The ID of the instance. InstanceId interface{} `field:"required" json:"instanceId" yaml:"instanceId"` // Property messageType: The message type of the topic to be created. // // Valid values: // NORMAL // FIFO // DELAY // TRANSACTION. MessageType interface{} `field:"required" json:"messageType" yaml:"messageType"` // Property topicName: The name of the topic to be created is used to identify the topic and is globally unique. // // Valid values: // Character limitation: supports letters a~z or A-Z, numbers 0-9, underscore (_), dash (-) and percent sign (%). // Length limit: 1-60 characters. TopicName interface{} `field:"required" json:"topicName" yaml:"topicName"` // Property remark: The remark of the topic to be created. Remark interface{} `field:"optional" json:"remark" yaml:"remark"` }
Properties for defining a `Topic`.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rocketmq5-topic
Source Files ¶
- ConsumerGroup.go
- ConsumerGroupProps.go
- ConsumerGroup__checks.go
- Instance.go
- InstanceProps.go
- Instance__checks.go
- RosConsumerGroup.go
- RosConsumerGroupProps.go
- RosConsumerGroup_ConsumeRetryPolicyProperty.go
- RosConsumerGroup__checks.go
- RosInstance.go
- RosInstanceProps.go
- RosInstance_InternetInfoProperty.go
- RosInstance_ProductInfoProperty.go
- RosInstance_VpcInfoProperty.go
- RosInstance__checks.go
- RosTopic.go
- RosTopicProps.go
- RosTopic__checks.go
- Topic.go
- TopicProps.go
- Topic__checks.go
- main.go
Directories ¶
Path | Synopsis |
---|---|
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves.
|
Package jsii contains the functionaility needed for jsii packages to initialize their dependencies and themselves. |