alicloudroscdkcddc

package module
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

Aliyun ROS CDDC Construct Library

This module is part of the AliCloud ROS Cloud Development Kit (ROS CDK) project.

import * as CDDC from '@alicloud/ros-cdk-cddc';

Documentation

Overview

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DedicatedHostGroup_IsConstruct

func DedicatedHostGroup_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func DedicatedHost_IsConstruct

func DedicatedHost_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func MyBase_IsConstruct

func MyBase_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func NewDedicatedHostGroup_Override

func NewDedicatedHostGroup_Override(d DedicatedHostGroup, scope alicloudroscdkcore.Construct, id *string, props *DedicatedHostGroupProps, enableResourcePropertyConstraint *bool)

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

func NewDedicatedHost_Override

func NewDedicatedHost_Override(d DedicatedHost, scope alicloudroscdkcore.Construct, id *string, props *DedicatedHostProps, enableResourcePropertyConstraint *bool)

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

func NewMyBase_Override

func NewMyBase_Override(m MyBase, scope alicloudroscdkcore.Construct, id *string, props *MyBaseProps, enableResourcePropertyConstraint *bool)

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

func NewRosDedicatedHostGroup_Override

func NewRosDedicatedHostGroup_Override(r RosDedicatedHostGroup, scope alicloudroscdkcore.Construct, id *string, props *RosDedicatedHostGroupProps, enableResourcePropertyConstraint *bool)

func NewRosDedicatedHost_Override

func NewRosDedicatedHost_Override(r RosDedicatedHost, scope alicloudroscdkcore.Construct, id *string, props *RosDedicatedHostProps, enableResourcePropertyConstraint *bool)

func NewRosMyBase_Override

func NewRosMyBase_Override(r RosMyBase, scope alicloudroscdkcore.Construct, id *string, props *RosMyBaseProps, enableResourcePropertyConstraint *bool)

func RosDedicatedHostGroup_IsConstruct

func RosDedicatedHostGroup_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosDedicatedHostGroup_IsRosElement

func RosDedicatedHostGroup_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 RosDedicatedHostGroup_IsRosResource

func RosDedicatedHostGroup_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosDedicatedHostGroup_ROS_RESOURCE_TYPE_NAME

func RosDedicatedHostGroup_ROS_RESOURCE_TYPE_NAME() *string

func RosDedicatedHost_IsConstruct

func RosDedicatedHost_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosDedicatedHost_IsRosElement

func RosDedicatedHost_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 RosDedicatedHost_IsRosResource

func RosDedicatedHost_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosDedicatedHost_ROS_RESOURCE_TYPE_NAME

func RosDedicatedHost_ROS_RESOURCE_TYPE_NAME() *string

func RosMyBase_IsConstruct

func RosMyBase_IsConstruct(x interface{}) *bool

Return whether the given object is a Construct.

func RosMyBase_IsRosElement

func RosMyBase_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 RosMyBase_IsRosResource

func RosMyBase_IsRosResource(construct alicloudroscdkcore.IConstruct) *bool

Check whether the given construct is a RosResource.

func RosMyBase_ROS_RESOURCE_TYPE_NAME

func RosMyBase_ROS_RESOURCE_TYPE_NAME() *string

Types

type DedicatedHost

type DedicatedHost interface {
	alicloudroscdkcore.Resource
	IDedicatedHost
	// Attribute AutoRenew: Whether Auto Renew.
	AttrAutoRenew() interface{}
	// Attribute CpuAllocationRatio: CPU Allocation Ratio.
	AttrCpuAllocationRatio() interface{}
	// Attribute CpuUsed: CPU Used.
	AttrCpuUsed() interface{}
	// Attribute DedicatedHostGroupId: Dedicated Host Group ID.
	AttrDedicatedHostGroupId() interface{}
	// Attribute DedicatedHostId: The first ID of the resource.
	AttrDedicatedHostId() interface{}
	// Attribute DiskAllocationRatio: Disk Allocation Ratio.
	AttrDiskAllocationRatio() interface{}
	// Attribute EcsClassCode: ECS Class Code.
	AttrEcsClassCode() interface{}
	// Attribute HostClass: Host Class.
	AttrHostClass() interface{}
	// Attribute HostCpu: Host CPU.
	AttrHostCpu() interface{}
	// Attribute HostMem: Host Memory.
	AttrHostMem() interface{}
	// Attribute HostName: Host Name.
	AttrHostName() interface{}
	// Attribute HostStorage: Host Storage.
	AttrHostStorage() interface{}
	// Attribute HostType: Host Storage Type.
	AttrHostType() interface{}
	// Attribute ImageCategory: Host Image Category.
	AttrImageCategory() interface{}
	// Attribute IpAddress: Host IP Address.
	AttrIpAddress() interface{}
	// Attribute MemAllocationRatio: Memory Allocation Ratio.
	AttrMemAllocationRatio() interface{}
	// Attribute MemoryUsed: Host Memory Used.
	AttrMemoryUsed() interface{}
	// Attribute OpenPermission: Whether Open OS Permission.
	AttrOpenPermission() interface{}
	// Attribute PaymentType: Payment Type.
	AttrPaymentType() interface{}
	// Attribute StorageUsed: Storage Used.
	AttrStorageUsed() interface{}
	// Attribute VpcId: VPC ID.
	AttrVpcId() interface{}
	// Attribute VSwitchId: VSwitch ID.
	AttrVSwitchId() interface{}
	// Attribute ZoneId: Zone ID.
	AttrZoneId() interface{}
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	// 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.
	Env() *alicloudroscdkcore.ResourceEnvironment
	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() *DedicatedHostProps
	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)
	FetchCondition() alicloudroscdkcore.RosCondition
	FetchDependency() *[]*string
	FetchResourceDesc() *string
	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::CDDC::DedicatedHost`, which is used to create a host in a dedicated cluster.

func NewDedicatedHost

func NewDedicatedHost(scope alicloudroscdkcore.Construct, id *string, props *DedicatedHostProps, enableResourcePropertyConstraint *bool) DedicatedHost

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type DedicatedHostGroup

type DedicatedHostGroup interface {
	alicloudroscdkcore.Resource
	IDedicatedHostGroup
	// Attribute AllocationPolicy: Allocation Policy.
	AttrAllocationPolicy() interface{}
	// Attribute BastionInstanceId: BastionInstanceId.
	AttrBastionInstanceId() interface{}
	// Attribute CpuAllocatedAmount: CpuAllocatedAmount.
	AttrCpuAllocatedAmount() interface{}
	// Attribute CpuAllocateRation: CpuAllocateRation.
	AttrCpuAllocateRation() interface{}
	// Attribute CpuAllocationRatio: Cpu Allocation Ratio.
	AttrCpuAllocationRatio() interface{}
	// Attribute DedicatedHostGroupDesc: Dedicated Host Group Description.
	AttrDedicatedHostGroupDesc() interface{}
	// Attribute DedicatedHostGroupId: Dedicated Host Group ID.
	AttrDedicatedHostGroupId() interface{}
	// Attribute DeployType: DeployType.
	AttrDeployType() interface{}
	// Attribute DiskAllocatedAmount: DiskAllocatedAmount.
	AttrDiskAllocatedAmount() interface{}
	// Attribute DiskAllocateRation: DiskAllocateRation.
	AttrDiskAllocateRation() interface{}
	// Attribute DiskAllocationRatio: Disk Allocation Ratio.
	AttrDiskAllocationRatio() interface{}
	// Attribute DiskUsedAmount: DiskUsedAmount.
	AttrDiskUsedAmount() interface{}
	// Attribute DiskUtility: DiskUtility.
	AttrDiskUtility() interface{}
	// Attribute Engine: Database Engine Type.
	AttrEngine() interface{}
	// Attribute HostNumber: Total Host Number.
	AttrHostNumber() interface{}
	// Attribute HostReplacePolicy: Host Replace Policy.
	AttrHostReplacePolicy() interface{}
	// Attribute InstanceNumber: Total Instance Number.
	AttrInstanceNumber() interface{}
	// Attribute MemAllocatedAmount: MemAllocatedAmount.
	AttrMemAllocatedAmount() interface{}
	// Attribute MemAllocateRation: MemAllocateRation.
	AttrMemAllocateRation() interface{}
	// Attribute MemAllocationRatio: Memory Allocation Ratio.
	AttrMemAllocationRatio() interface{}
	// Attribute MemUsedAmount: MemUsedAmount.
	AttrMemUsedAmount() interface{}
	// Attribute MemUtility: MemUtility.
	AttrMemUtility() interface{}
	// Attribute OpenPermission: Whether Open OS Permission.
	AttrOpenPermission() interface{}
	// Attribute Text: Text.
	AttrText() interface{}
	// Attribute VpcId: VPC ID.
	AttrVpcId() interface{}
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	// 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.
	Env() *alicloudroscdkcore.ResourceEnvironment
	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() *DedicatedHostGroupProps
	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)
	FetchCondition() alicloudroscdkcore.RosCondition
	FetchDependency() *[]*string
	FetchResourceDesc() *string
	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::CDDC::DedicatedHostGroup`, which is used to create a dedicated cluster.

func NewDedicatedHostGroup

func NewDedicatedHostGroup(scope alicloudroscdkcore.Construct, id *string, props *DedicatedHostGroupProps, enableResourcePropertyConstraint *bool) DedicatedHostGroup

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type DedicatedHostGroupProps

type DedicatedHostGroupProps struct {
	// Property engine: Database Engine Type.
	Engine interface{} `field:"required" json:"engine" yaml:"engine"`
	// Property vpcId: VPC ID.
	VpcId interface{} `field:"required" json:"vpcId" yaml:"vpcId"`
	// Property allocationPolicy: Allocation Policy.
	AllocationPolicy interface{} `field:"optional" json:"allocationPolicy" yaml:"allocationPolicy"`
	// Property cpuAllocationRatio: Cpu Allocation Ratio.
	CpuAllocationRatio interface{} `field:"optional" json:"cpuAllocationRatio" yaml:"cpuAllocationRatio"`
	// Property dedicatedHostGroupDesc: Dedicated Host Group Description.
	DedicatedHostGroupDesc interface{} `field:"optional" json:"dedicatedHostGroupDesc" yaml:"dedicatedHostGroupDesc"`
	// Property diskAllocationRatio: Disk Allocation Ratio.
	DiskAllocationRatio interface{} `field:"optional" json:"diskAllocationRatio" yaml:"diskAllocationRatio"`
	// Property hostReplacePolicy: Host Replace Policy.
	HostReplacePolicy interface{} `field:"optional" json:"hostReplacePolicy" yaml:"hostReplacePolicy"`
	// Property memAllocationRatio: Memory Allocation Ratio.
	MemAllocationRatio interface{} `field:"optional" json:"memAllocationRatio" yaml:"memAllocationRatio"`
	// Property openPermission: Whether Open OS Permission.
	OpenPermission interface{} `field:"optional" json:"openPermission" yaml:"openPermission"`
}

Properties for defining a `DedicatedHostGroup`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-dedicatedhostgroup

type DedicatedHostProps

type DedicatedHostProps struct {
	// Property dedicatedHostGroupId: Dedicated Host Group ID.
	DedicatedHostGroupId interface{} `field:"required" json:"dedicatedHostGroupId" yaml:"dedicatedHostGroupId"`
	// Property hostClass: Host Class.
	HostClass interface{} `field:"required" json:"hostClass" yaml:"hostClass"`
	// Property paymentType: Payment Type.
	PaymentType interface{} `field:"required" json:"paymentType" yaml:"paymentType"`
	// Property vSwitchId: VSwitch ID.
	VSwitchId interface{} `field:"required" json:"vSwitchId" yaml:"vSwitchId"`
	// Property zoneId: Zone ID.
	ZoneId interface{} `field:"required" json:"zoneId" yaml:"zoneId"`
	// Property autoRenew: Whether Auto Renew.
	AutoRenew interface{} `field:"optional" json:"autoRenew" yaml:"autoRenew"`
	// Property hostName: Host Name.
	HostName interface{} `field:"optional" json:"hostName" yaml:"hostName"`
	// Property imageCategory: Host Image Category.
	ImageCategory interface{} `field:"optional" json:"imageCategory" yaml:"imageCategory"`
	// Property osPassword:.
	OsPassword interface{} `field:"optional" json:"osPassword" yaml:"osPassword"`
	// Property period:.
	Period interface{} `field:"optional" json:"period" yaml:"period"`
	// Property tags: The tag of the resource.
	Tags *[]*RosDedicatedHost_TagsProperty `field:"optional" json:"tags" yaml:"tags"`
	// Property usedTime:.
	UsedTime interface{} `field:"optional" json:"usedTime" yaml:"usedTime"`
}

Properties for defining a `DedicatedHost`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-dedicatedhost

type IDedicatedHost added in v1.6.0

type IDedicatedHost interface {
	alicloudroscdkcore.IResource
	// Attribute AutoRenew: Whether Auto Renew.
	AttrAutoRenew() interface{}
	// Attribute CpuAllocationRatio: CPU Allocation Ratio.
	AttrCpuAllocationRatio() interface{}
	// Attribute CpuUsed: CPU Used.
	AttrCpuUsed() interface{}
	// Attribute DedicatedHostGroupId: Dedicated Host Group ID.
	AttrDedicatedHostGroupId() interface{}
	// Attribute DedicatedHostId: The first ID of the resource.
	AttrDedicatedHostId() interface{}
	// Attribute DiskAllocationRatio: Disk Allocation Ratio.
	AttrDiskAllocationRatio() interface{}
	// Attribute EcsClassCode: ECS Class Code.
	AttrEcsClassCode() interface{}
	// Attribute HostClass: Host Class.
	AttrHostClass() interface{}
	// Attribute HostCpu: Host CPU.
	AttrHostCpu() interface{}
	// Attribute HostMem: Host Memory.
	AttrHostMem() interface{}
	// Attribute HostName: Host Name.
	AttrHostName() interface{}
	// Attribute HostStorage: Host Storage.
	AttrHostStorage() interface{}
	// Attribute HostType: Host Storage Type.
	AttrHostType() interface{}
	// Attribute ImageCategory: Host Image Category.
	AttrImageCategory() interface{}
	// Attribute IpAddress: Host IP Address.
	AttrIpAddress() interface{}
	// Attribute MemAllocationRatio: Memory Allocation Ratio.
	AttrMemAllocationRatio() interface{}
	// Attribute MemoryUsed: Host Memory Used.
	AttrMemoryUsed() interface{}
	// Attribute OpenPermission: Whether Open OS Permission.
	AttrOpenPermission() interface{}
	// Attribute PaymentType: Payment Type.
	AttrPaymentType() interface{}
	// Attribute StorageUsed: Storage Used.
	AttrStorageUsed() interface{}
	// Attribute VpcId: VPC ID.
	AttrVpcId() interface{}
	// Attribute VSwitchId: VSwitch ID.
	AttrVSwitchId() interface{}
	// Attribute ZoneId: Zone ID.
	AttrZoneId() interface{}
	Props() *DedicatedHostProps
}

Represents a `DedicatedHost`.

type IDedicatedHostGroup added in v1.6.0

type IDedicatedHostGroup interface {
	alicloudroscdkcore.IResource
	// Attribute AllocationPolicy: Allocation Policy.
	AttrAllocationPolicy() interface{}
	// Attribute BastionInstanceId: BastionInstanceId.
	AttrBastionInstanceId() interface{}
	// Attribute CpuAllocatedAmount: CpuAllocatedAmount.
	AttrCpuAllocatedAmount() interface{}
	// Attribute CpuAllocateRation: CpuAllocateRation.
	AttrCpuAllocateRation() interface{}
	// Attribute CpuAllocationRatio: Cpu Allocation Ratio.
	AttrCpuAllocationRatio() interface{}
	// Attribute DedicatedHostGroupDesc: Dedicated Host Group Description.
	AttrDedicatedHostGroupDesc() interface{}
	// Attribute DedicatedHostGroupId: Dedicated Host Group ID.
	AttrDedicatedHostGroupId() interface{}
	// Attribute DeployType: DeployType.
	AttrDeployType() interface{}
	// Attribute DiskAllocatedAmount: DiskAllocatedAmount.
	AttrDiskAllocatedAmount() interface{}
	// Attribute DiskAllocateRation: DiskAllocateRation.
	AttrDiskAllocateRation() interface{}
	// Attribute DiskAllocationRatio: Disk Allocation Ratio.
	AttrDiskAllocationRatio() interface{}
	// Attribute DiskUsedAmount: DiskUsedAmount.
	AttrDiskUsedAmount() interface{}
	// Attribute DiskUtility: DiskUtility.
	AttrDiskUtility() interface{}
	// Attribute Engine: Database Engine Type.
	AttrEngine() interface{}
	// Attribute HostNumber: Total Host Number.
	AttrHostNumber() interface{}
	// Attribute HostReplacePolicy: Host Replace Policy.
	AttrHostReplacePolicy() interface{}
	// Attribute InstanceNumber: Total Instance Number.
	AttrInstanceNumber() interface{}
	// Attribute MemAllocatedAmount: MemAllocatedAmount.
	AttrMemAllocatedAmount() interface{}
	// Attribute MemAllocateRation: MemAllocateRation.
	AttrMemAllocateRation() interface{}
	// Attribute MemAllocationRatio: Memory Allocation Ratio.
	AttrMemAllocationRatio() interface{}
	// Attribute MemUsedAmount: MemUsedAmount.
	AttrMemUsedAmount() interface{}
	// Attribute MemUtility: MemUtility.
	AttrMemUtility() interface{}
	// Attribute OpenPermission: Whether Open OS Permission.
	AttrOpenPermission() interface{}
	// Attribute Text: Text.
	AttrText() interface{}
	// Attribute VpcId: VPC ID.
	AttrVpcId() interface{}
	Props() *DedicatedHostGroupProps
}

Represents a `DedicatedHostGroup`.

type IMyBase added in v1.6.0

type IMyBase interface {
	alicloudroscdkcore.IResource
	// Attribute InstanceIds: The instance id list of created ecs instances.
	AttrInstanceIds() interface{}
	// Attribute OrderIds: The order id list.
	AttrOrderIds() interface{}
	Props() *MyBaseProps
}

Represents a `MyBase`.

type MyBase

type MyBase interface {
	alicloudroscdkcore.Resource
	IMyBase
	// Attribute InstanceIds: The instance id list of created ecs instances.
	AttrInstanceIds() interface{}
	// Attribute OrderIds: The order id list.
	AttrOrderIds() interface{}
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	// 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.
	Env() *alicloudroscdkcore.ResourceEnvironment
	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() *MyBaseProps
	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)
	FetchCondition() alicloudroscdkcore.RosCondition
	FetchDependency() *[]*string
	FetchResourceDesc() *string
	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::CDDC::MyBase`, which is used to create a host in a Proprietary MyBase dedicated cluster in ApsaraDB for MyBase.

func NewMyBase

func NewMyBase(scope alicloudroscdkcore.Construct, id *string, props *MyBaseProps, enableResourcePropertyConstraint *bool) MyBase

Param scope - scope in which this resource is defined Param id - scoped id of the resource Param props - resource properties.

type MyBaseProps

type MyBaseProps struct {
	// Property ecsClassList: ECS Class List.
	EcsClassList interface{} `field:"required" json:"ecsClassList" yaml:"ecsClassList"`
	// Property engine: Database type.
	Engine interface{} `field:"required" json:"engine" yaml:"engine"`
	// Property payType: Payment type, currently only supports PrePaid.
	PayType interface{} `field:"required" json:"payType" yaml:"payType"`
	// Property period: The period of the subscription in months.
	Period interface{} `field:"required" json:"period" yaml:"period"`
	// Property securityGroupId: The ID of the security group.
	SecurityGroupId interface{} `field:"required" json:"securityGroupId" yaml:"securityGroupId"`
	// Property vpcId: The ID of the VPC.
	VpcId interface{} `field:"required" json:"vpcId" yaml:"vpcId"`
	// Property vSwitchId: Virtual switch ID.
	VSwitchId interface{} `field:"required" json:"vSwitchId" yaml:"vSwitchId"`
	// Property zoneId: Availability Zone ID.
	ZoneId interface{} `field:"required" json:"zoneId" yaml:"zoneId"`
	// Property autoRenew: Whether to enable auto renew.
	AutoRenew interface{} `field:"optional" json:"autoRenew" yaml:"autoRenew"`
	// Property dedicatedHostGroupDescription: The name of the dedicated cluster.
	DedicatedHostGroupDescription interface{} `field:"optional" json:"dedicatedHostGroupDescription" yaml:"dedicatedHostGroupDescription"`
	// Property dedicatedHostGroupId: The ID of the dedicated cluster.
	DedicatedHostGroupId interface{} `field:"optional" json:"dedicatedHostGroupId" yaml:"dedicatedHostGroupId"`
	// Property ecsDeploymentSetId: The ID of the deployment set.
	EcsDeploymentSetId interface{} `field:"optional" json:"ecsDeploymentSetId" yaml:"ecsDeploymentSetId"`
	// Property ecsHostName: The host name of the ECS instance.
	EcsHostName interface{} `field:"optional" json:"ecsHostName" yaml:"ecsHostName"`
	// Property ecsInstanceName: The name of the ECS instance.
	EcsInstanceName interface{} `field:"optional" json:"ecsInstanceName" yaml:"ecsInstanceName"`
	// Property ecsUniqueSuffix: The unique suffix of the ECS instance.
	EcsUniqueSuffix interface{} `field:"optional" json:"ecsUniqueSuffix" yaml:"ecsUniqueSuffix"`
	// Property imageId: The image ID.
	ImageId interface{} `field:"optional" json:"imageId" yaml:"imageId"`
	// Property internetChargeType: Network billing type.
	//
	// Value range:
	// PayByBandwidth: billed based on fixed bandwidth.
	// PayByTraffic: Pay by traffic usage.
	InternetChargeType interface{} `field:"optional" json:"internetChargeType" yaml:"internetChargeType"`
	// Property internetMaxBandwidthOut: Set internet output bandwidth of instance.
	//
	// Unit is Mbps(Mega bit per second).
	// Range is [0,200]. Default is 1.
	// While the property is not 0, public ip will be assigned for instance.
	InternetMaxBandwidthOut interface{} `field:"optional" json:"internetMaxBandwidthOut" yaml:"internetMaxBandwidthOut"`
	// Property keyPairName: The name of the key pair.
	KeyPairName interface{} `field:"optional" json:"keyPairName" yaml:"keyPairName"`
	// Property osPassword: Password of created ecs instance.
	//
	// Must contain at least 3 types of special character, lower character, upper character, number.
	OsPassword interface{} `field:"optional" json:"osPassword" yaml:"osPassword"`
	// Property passwordInherit: Whether to inherit the password from the parent cluster.
	PasswordInherit interface{} `field:"optional" json:"passwordInherit" yaml:"passwordInherit"`
	// Property periodType: Prepaid type, currently only supports Monthly (monthly subscription).
	PeriodType interface{} `field:"optional" json:"periodType" yaml:"periodType"`
	// Property resourceGroupId: Resource group id.
	ResourceGroupId interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"`
	// Property userData: User-defined script data, the original data is up to 16KB.
	UserData interface{} `field:"optional" json:"userData" yaml:"userData"`
	// Property userDataInBase64: The user data of the ECS instance.
	UserDataInBase64 interface{} `field:"optional" json:"userDataInBase64" yaml:"userDataInBase64"`
}

Properties for defining a `MyBase`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-mybase

type RosDedicatedHost

type RosDedicatedHost interface {
	alicloudroscdkcore.RosResource
	AttrAutoRenew() alicloudroscdkcore.IResolvable
	AttrCpuAllocationRatio() alicloudroscdkcore.IResolvable
	AttrCpuUsed() alicloudroscdkcore.IResolvable
	AttrDedicatedHostGroupId() alicloudroscdkcore.IResolvable
	AttrDedicatedHostId() alicloudroscdkcore.IResolvable
	AttrDiskAllocationRatio() alicloudroscdkcore.IResolvable
	AttrEcsClassCode() alicloudroscdkcore.IResolvable
	AttrHostClass() alicloudroscdkcore.IResolvable
	AttrHostCpu() alicloudroscdkcore.IResolvable
	AttrHostMem() alicloudroscdkcore.IResolvable
	AttrHostName() alicloudroscdkcore.IResolvable
	AttrHostStorage() alicloudroscdkcore.IResolvable
	AttrHostType() alicloudroscdkcore.IResolvable
	AttrImageCategory() alicloudroscdkcore.IResolvable
	AttrIpAddress() alicloudroscdkcore.IResolvable
	AttrMemAllocationRatio() alicloudroscdkcore.IResolvable
	AttrMemoryUsed() alicloudroscdkcore.IResolvable
	AttrOpenPermission() alicloudroscdkcore.IResolvable
	AttrPaymentType() alicloudroscdkcore.IResolvable
	AttrStorageUsed() alicloudroscdkcore.IResolvable
	AttrVpcId() alicloudroscdkcore.IResolvable
	AttrVSwitchId() alicloudroscdkcore.IResolvable
	AttrZoneId() alicloudroscdkcore.IResolvable
	AutoRenew() interface{}
	SetAutoRenew(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
	DedicatedHostGroupId() interface{}
	SetDedicatedHostGroupId(val interface{})
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	HostClass() interface{}
	SetHostClass(val interface{})
	HostName() interface{}
	SetHostName(val interface{})
	ImageCategory() interface{}
	SetImageCategory(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
	OsPassword() interface{}
	SetOsPassword(val interface{})
	PaymentType() interface{}
	SetPaymentType(val interface{})
	Period() interface{}
	SetPeriod(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
	// 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
	Tags() *[]*RosDedicatedHost_TagsProperty
	SetTags(val *[]*RosDedicatedHost_TagsProperty)
	// 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{}
	UsedTime() interface{}
	SetUsedTime(val interface{})
	VSwitchId() interface{}
	SetVSwitchId(val interface{})
	ZoneId() interface{}
	SetZoneId(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)
	FetchCondition() alicloudroscdkcore.RosCondition
	FetchDesc() *string
	FetchRosDependency() *[]*string
	// 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::CDDC::DedicatedHost`, which is used to create a host in a dedicated cluster.

func NewRosDedicatedHost

func NewRosDedicatedHost(scope alicloudroscdkcore.Construct, id *string, props *RosDedicatedHostProps, enableResourcePropertyConstraint *bool) RosDedicatedHost

type RosDedicatedHostGroup

type RosDedicatedHostGroup interface {
	alicloudroscdkcore.RosResource
	AllocationPolicy() interface{}
	SetAllocationPolicy(val interface{})
	AttrAllocationPolicy() alicloudroscdkcore.IResolvable
	AttrBastionInstanceId() alicloudroscdkcore.IResolvable
	AttrCpuAllocatedAmount() alicloudroscdkcore.IResolvable
	AttrCpuAllocateRation() alicloudroscdkcore.IResolvable
	AttrCpuAllocationRatio() alicloudroscdkcore.IResolvable
	AttrDedicatedHostGroupDesc() alicloudroscdkcore.IResolvable
	AttrDedicatedHostGroupId() alicloudroscdkcore.IResolvable
	AttrDeployType() alicloudroscdkcore.IResolvable
	AttrDiskAllocatedAmount() alicloudroscdkcore.IResolvable
	AttrDiskAllocateRation() alicloudroscdkcore.IResolvable
	AttrDiskAllocationRatio() alicloudroscdkcore.IResolvable
	AttrDiskUsedAmount() alicloudroscdkcore.IResolvable
	AttrDiskUtility() alicloudroscdkcore.IResolvable
	AttrEngine() alicloudroscdkcore.IResolvable
	AttrHostNumber() alicloudroscdkcore.IResolvable
	AttrHostReplacePolicy() alicloudroscdkcore.IResolvable
	AttrInstanceNumber() alicloudroscdkcore.IResolvable
	AttrMemAllocatedAmount() alicloudroscdkcore.IResolvable
	AttrMemAllocateRation() alicloudroscdkcore.IResolvable
	AttrMemAllocationRatio() alicloudroscdkcore.IResolvable
	AttrMemUsedAmount() alicloudroscdkcore.IResolvable
	AttrMemUtility() alicloudroscdkcore.IResolvable
	AttrOpenPermission() alicloudroscdkcore.IResolvable
	AttrText() alicloudroscdkcore.IResolvable
	AttrVpcId() alicloudroscdkcore.IResolvable
	CpuAllocationRatio() interface{}
	SetCpuAllocationRatio(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
	DedicatedHostGroupDesc() interface{}
	SetDedicatedHostGroupDesc(val interface{})
	DiskAllocationRatio() interface{}
	SetDiskAllocationRatio(val interface{})
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	Engine() interface{}
	SetEngine(val interface{})
	HostReplacePolicy() interface{}
	SetHostReplacePolicy(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
	MemAllocationRatio() interface{}
	SetMemAllocationRatio(val interface{})
	// The construct tree node associated with this construct.
	Node() alicloudroscdkcore.ConstructNode
	OpenPermission() interface{}
	SetOpenPermission(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
	// 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{}
	VpcId() interface{}
	SetVpcId(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)
	FetchCondition() alicloudroscdkcore.RosCondition
	FetchDesc() *string
	FetchRosDependency() *[]*string
	// 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::CDDC::DedicatedHostGroup`, which is used to create a dedicated cluster.

func NewRosDedicatedHostGroup

func NewRosDedicatedHostGroup(scope alicloudroscdkcore.Construct, id *string, props *RosDedicatedHostGroupProps, enableResourcePropertyConstraint *bool) RosDedicatedHostGroup

type RosDedicatedHostGroupProps

type RosDedicatedHostGroupProps struct {
	Engine                 interface{} `field:"required" json:"engine" yaml:"engine"`
	VpcId                  interface{} `field:"required" json:"vpcId" yaml:"vpcId"`
	AllocationPolicy       interface{} `field:"optional" json:"allocationPolicy" yaml:"allocationPolicy"`
	CpuAllocationRatio     interface{} `field:"optional" json:"cpuAllocationRatio" yaml:"cpuAllocationRatio"`
	DedicatedHostGroupDesc interface{} `field:"optional" json:"dedicatedHostGroupDesc" yaml:"dedicatedHostGroupDesc"`
	DiskAllocationRatio    interface{} `field:"optional" json:"diskAllocationRatio" yaml:"diskAllocationRatio"`
	HostReplacePolicy      interface{} `field:"optional" json:"hostReplacePolicy" yaml:"hostReplacePolicy"`
	MemAllocationRatio     interface{} `field:"optional" json:"memAllocationRatio" yaml:"memAllocationRatio"`
	OpenPermission         interface{} `field:"optional" json:"openPermission" yaml:"openPermission"`
}

Properties for defining a `RosDedicatedHostGroup`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-dedicatedhostgroup

type RosDedicatedHostProps

type RosDedicatedHostProps struct {
	DedicatedHostGroupId interface{}                       `field:"required" json:"dedicatedHostGroupId" yaml:"dedicatedHostGroupId"`
	HostClass            interface{}                       `field:"required" json:"hostClass" yaml:"hostClass"`
	PaymentType          interface{}                       `field:"required" json:"paymentType" yaml:"paymentType"`
	VSwitchId            interface{}                       `field:"required" json:"vSwitchId" yaml:"vSwitchId"`
	ZoneId               interface{}                       `field:"required" json:"zoneId" yaml:"zoneId"`
	AutoRenew            interface{}                       `field:"optional" json:"autoRenew" yaml:"autoRenew"`
	HostName             interface{}                       `field:"optional" json:"hostName" yaml:"hostName"`
	ImageCategory        interface{}                       `field:"optional" json:"imageCategory" yaml:"imageCategory"`
	OsPassword           interface{}                       `field:"optional" json:"osPassword" yaml:"osPassword"`
	Period               interface{}                       `field:"optional" json:"period" yaml:"period"`
	Tags                 *[]*RosDedicatedHost_TagsProperty `field:"optional" json:"tags" yaml:"tags"`
	UsedTime             interface{}                       `field:"optional" json:"usedTime" yaml:"usedTime"`
}

Properties for defining a `RosDedicatedHost`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-dedicatedhost

type RosDedicatedHost_TagsProperty

type RosDedicatedHost_TagsProperty struct {
	TagKey   interface{} `field:"optional" json:"tagKey" yaml:"tagKey"`
	TagValue interface{} `field:"optional" json:"tagValue" yaml:"tagValue"`
}

type RosMyBase

type RosMyBase interface {
	alicloudroscdkcore.RosResource
	AttrInstanceIds() alicloudroscdkcore.IResolvable
	AttrOrderIds() alicloudroscdkcore.IResolvable
	AutoRenew() interface{}
	SetAutoRenew(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
	DedicatedHostGroupDescription() interface{}
	SetDedicatedHostGroupDescription(val interface{})
	DedicatedHostGroupId() interface{}
	SetDedicatedHostGroupId(val interface{})
	EcsClassList() interface{}
	SetEcsClassList(val interface{})
	EcsDeploymentSetId() interface{}
	SetEcsDeploymentSetId(val interface{})
	EcsHostName() interface{}
	SetEcsHostName(val interface{})
	EcsInstanceName() interface{}
	SetEcsInstanceName(val interface{})
	EcsUniqueSuffix() interface{}
	SetEcsUniqueSuffix(val interface{})
	EnableResourcePropertyConstraint() *bool
	SetEnableResourcePropertyConstraint(val *bool)
	Engine() interface{}
	SetEngine(val interface{})
	ImageId() interface{}
	SetImageId(val interface{})
	InternetChargeType() interface{}
	SetInternetChargeType(val interface{})
	InternetMaxBandwidthOut() interface{}
	SetInternetMaxBandwidthOut(val interface{})
	KeyPairName() interface{}
	SetKeyPairName(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
	OsPassword() interface{}
	SetOsPassword(val interface{})
	PasswordInherit() interface{}
	SetPasswordInherit(val interface{})
	PayType() interface{}
	SetPayType(val interface{})
	Period() interface{}
	SetPeriod(val interface{})
	PeriodType() interface{}
	SetPeriodType(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
	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
	SecurityGroupId() interface{}
	SetSecurityGroupId(val interface{})
	// 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{}
	UserData() interface{}
	SetUserData(val interface{})
	UserDataInBase64() interface{}
	SetUserDataInBase64(val interface{})
	VpcId() interface{}
	SetVpcId(val interface{})
	VSwitchId() interface{}
	SetVSwitchId(val interface{})
	ZoneId() interface{}
	SetZoneId(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)
	FetchCondition() alicloudroscdkcore.RosCondition
	FetchDesc() *string
	FetchRosDependency() *[]*string
	// 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::CDDC::MyBase`, which is used to create a host in a Proprietary MyBase dedicated cluster in ApsaraDB for MyBase.

func NewRosMyBase

func NewRosMyBase(scope alicloudroscdkcore.Construct, id *string, props *RosMyBaseProps, enableResourcePropertyConstraint *bool) RosMyBase

type RosMyBaseProps

type RosMyBaseProps struct {
	EcsClassList                  interface{} `field:"required" json:"ecsClassList" yaml:"ecsClassList"`
	Engine                        interface{} `field:"required" json:"engine" yaml:"engine"`
	PayType                       interface{} `field:"required" json:"payType" yaml:"payType"`
	Period                        interface{} `field:"required" json:"period" yaml:"period"`
	SecurityGroupId               interface{} `field:"required" json:"securityGroupId" yaml:"securityGroupId"`
	VpcId                         interface{} `field:"required" json:"vpcId" yaml:"vpcId"`
	VSwitchId                     interface{} `field:"required" json:"vSwitchId" yaml:"vSwitchId"`
	ZoneId                        interface{} `field:"required" json:"zoneId" yaml:"zoneId"`
	AutoRenew                     interface{} `field:"optional" json:"autoRenew" yaml:"autoRenew"`
	DedicatedHostGroupDescription interface{} `field:"optional" json:"dedicatedHostGroupDescription" yaml:"dedicatedHostGroupDescription"`
	DedicatedHostGroupId          interface{} `field:"optional" json:"dedicatedHostGroupId" yaml:"dedicatedHostGroupId"`
	EcsDeploymentSetId            interface{} `field:"optional" json:"ecsDeploymentSetId" yaml:"ecsDeploymentSetId"`
	EcsHostName                   interface{} `field:"optional" json:"ecsHostName" yaml:"ecsHostName"`
	EcsInstanceName               interface{} `field:"optional" json:"ecsInstanceName" yaml:"ecsInstanceName"`
	EcsUniqueSuffix               interface{} `field:"optional" json:"ecsUniqueSuffix" yaml:"ecsUniqueSuffix"`
	ImageId                       interface{} `field:"optional" json:"imageId" yaml:"imageId"`
	InternetChargeType            interface{} `field:"optional" json:"internetChargeType" yaml:"internetChargeType"`
	InternetMaxBandwidthOut       interface{} `field:"optional" json:"internetMaxBandwidthOut" yaml:"internetMaxBandwidthOut"`
	KeyPairName                   interface{} `field:"optional" json:"keyPairName" yaml:"keyPairName"`
	OsPassword                    interface{} `field:"optional" json:"osPassword" yaml:"osPassword"`
	PasswordInherit               interface{} `field:"optional" json:"passwordInherit" yaml:"passwordInherit"`
	PeriodType                    interface{} `field:"optional" json:"periodType" yaml:"periodType"`
	ResourceGroupId               interface{} `field:"optional" json:"resourceGroupId" yaml:"resourceGroupId"`
	UserData                      interface{} `field:"optional" json:"userData" yaml:"userData"`
	UserDataInBase64              interface{} `field:"optional" json:"userDataInBase64" yaml:"userDataInBase64"`
}

Properties for defining a `RosMyBase`.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-mybase

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL