RosInstanceGroup
This class is a base encapsulation around the ROS resource type ALIYUN::ECS::InstanceGroup
, which is used to create Elastic Compute Service (ECS) instances that have the same configurations.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
alicloudroscdkecs.NewRosInstanceGroup(scope Construct, id *string, props RosInstanceGroupProps, enableResourcePropertyConstraint *bool) RosInstanceGroup
Name | Type | Description |
---|---|---|
scope |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct |
- scope in which this resource is defined. |
id |
*string |
- scoped id of the resource. |
props |
RosInstanceGroupProps |
- resource properties. |
enableResourcePropertyConstraint |
*bool |
No description. |
scope
Required
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
scope in which this resource is defined.
id
Required
- Type: *string
scoped id of the resource.
props
Required
- Type: RosInstanceGroupProps
resource properties.
enableResourcePropertyConstraint
Required
- Type: *bool
Methods
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
Synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
OverrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
AddCondition |
No description. |
AddCount |
No description. |
AddDeletionOverride |
Syntactic sugar for addOverride(path, undefined) . |
AddDependsOn |
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. |
AddDesc |
No description. |
AddMetaData |
No description. |
AddOverride |
Adds an override to the synthesized ROS resource. |
AddPropertyDeletionOverride |
Adds an override that deletes the value of a property from the resource definition. |
AddPropertyOverride |
Adds an override to a resource property. |
AddRosDependency |
No description. |
ApplyRemovalPolicy |
Sets the deletion policy of the resource based on the removal policy specified. |
GetAtt |
Returns a token for an runtime attribute of this resource. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
OverrideLogicalId
func OverrideLogicalId(newLogicalId *string)
Overrides the auto-generated logical ID with a specific ID.
- Type: *string
The new logical ID to use for this stack element.
AddCondition
func AddCondition(con RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDeletionOverride
func AddDeletionOverride(path *string)
Syntactic sugar for addOverride(path, undefined)
.
- Type: *string
The path of the value to delete.
AddDependsOn
func AddDependsOn(target RosResource)
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.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AddDesc
func AddDesc(desc *string)
- Type: *string
AddMetaData
func AddMetaData(key *string, value interface{})
- Type: *string
- Type: interface{}
AddOverride
func AddOverride(path *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,
addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute'])
addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE')
would add the overrides
"Properties": {
"GlobalSecondaryIndexes": [
{
"Projection": {
"NonKeyAttributes": [ "myattribute" ]
...
}
...
},
{
"ProjectionType": "INCLUDE"
...
},
]
...
}
- Type: *string
The path of the property, you can use dot notation to override values in complex types.
Any intermdediate keys will be created as needed.
- Type: interface{}
The value.
Could be primitive or complex.
AddPropertyDeletionOverride
func AddPropertyDeletionOverride(propertyPath *string)
Adds an override that deletes the value of a property from the resource definition.
- Type: *string
The path to the property.
AddPropertyOverride
func AddPropertyOverride(propertyPath *string, value interface{})
Adds an override to a resource property.
Syntactic sugar for addOverride("Properties.<...>", value)
.
- Type: *string
The path of the property.
- Type: interface{}
The value.
AddRosDependency
func AddRosDependency(target *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy, options RemovalPolicyOptions)
Sets the deletion policy of the resource based on the removal policy specified.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicyOptions
GetAtt
func GetAtt(attributeName *string) Reference
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.
- Type: *string
The name of the attribute.
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsRosElement |
Returns true if a construct is a stack element (i.e. part of the synthesized template). |
IsRosResource |
Check whether the given construct is a RosResource. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
alicloudroscdkecs.RosInstanceGroup_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
IsRosElement
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
alicloudroscdkecs.RosInstanceGroup_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.
- Type: interface{}
IsRosResource
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
alicloudroscdkecs.RosInstanceGroup_IsRosResource(construct IConstruct) *bool
Check whether the given construct is a RosResource.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IConstruct
Properties
Name | Type | Description |
---|---|---|
Node |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode |
The construct tree node associated with this construct. |
CreationStack |
[]string |
No description. |
LogicalId |
*string |
The logical ID for this stack element. |
Stack |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack |
The stack in which this element is defined. |
Ref |
*string |
Return a string that will be resolved to a RosTemplate { Ref } for this element. |
RosOptions |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IRosResourceOptions |
Options for this resource, such as condition, update policy etc. |
RosResourceType |
*string |
ROS resource type. |
AttrHostNames |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrInnerIps |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrInstanceIds |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrIpv6Addresses |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrIpv6AddressIds |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrOrderId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrPrivateIps |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrPublicIps |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrRelatedOrderIds |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
AttrZoneIds |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
No description. |
EnableResourcePropertyConstraint |
*bool |
No description. |
InstanceType |
interface{} |
No description. |
MaxAmount |
interface{} |
No description. |
Affinity |
interface{} |
No description. |
AllocatePublicIp |
interface{} |
No description. |
AutoReleaseTime |
interface{} |
No description. |
AutoRenew |
interface{} |
No description. |
AutoRenewPeriod |
interface{} |
No description. |
CpuOptions |
interface{} |
No description. |
CreditSpecification |
interface{} |
No description. |
DedicatedHostId |
interface{} |
No description. |
DeletionForce |
interface{} |
No description. |
DeletionProtection |
interface{} |
No description. |
DeploymentSetGroupNo |
interface{} |
No description. |
DeploymentSetId |
interface{} |
No description. |
Description |
interface{} |
No description. |
DiskMappings |
interface{} |
No description. |
EniMappings |
interface{} |
No description. |
HostName |
interface{} |
No description. |
HostNames |
interface{} |
No description. |
HpcClusterId |
interface{} |
No description. |
HttpEndpoint |
interface{} |
No description. |
HttpTokens |
interface{} |
No description. |
ImageFamily |
interface{} |
No description. |
ImageId |
interface{} |
No description. |
ImageOptions |
interface{} |
No description. |
InstanceChargeType |
interface{} |
No description. |
InstanceName |
interface{} |
No description. |
InternetChargeType |
interface{} |
No description. |
InternetMaxBandwidthOut |
interface{} |
No description. |
IoOptimized |
interface{} |
No description. |
Ipv6AddressCount |
interface{} |
No description. |
Ipv6Addresses |
interface{} |
No description. |
KeyPairName |
interface{} |
No description. |
LaunchTemplateId |
interface{} |
No description. |
LaunchTemplateName |
interface{} |
No description. |
LaunchTemplateVersion |
interface{} |
No description. |
NetworkInterfaceQueueNumber |
interface{} |
No description. |
NetworkOptions |
interface{} |
No description. |
NetworkType |
interface{} |
No description. |
Password |
interface{} |
No description. |
PasswordInherit |
interface{} |
No description. |
Period |
interface{} |
No description. |
PeriodUnit |
interface{} |
No description. |
PrivateIpAddress |
interface{} |
No description. |
PrivatePoolOptions |
interface{} |
No description. |
RamRoleName |
interface{} |
No description. |
ResourceGroupId |
interface{} |
No description. |
SchedulerOptions |
interface{} |
No description. |
SecurityEnhancementStrategy |
interface{} |
No description. |
SecurityGroupId |
interface{} |
No description. |
SecurityGroupIds |
interface{} |
No description. |
SecurityOptions |
interface{} |
No description. |
SpotDuration |
interface{} |
No description. |
SpotInterruptionBehavior |
interface{} |
No description. |
SpotPriceLimit |
interface{} |
No description. |
SpotStrategy |
interface{} |
No description. |
StorageSetId |
interface{} |
No description. |
StorageSetPartitionNumber |
interface{} |
No description. |
SystemDiskAutoSnapshotPolicyId |
interface{} |
No description. |
SystemDiskBurstingEnabled |
interface{} |
No description. |
SystemDiskCategory |
interface{} |
No description. |
SystemDiskDescription |
interface{} |
No description. |
SystemDiskDiskName |
interface{} |
No description. |
SystemDiskEncryptAlgorithm |
interface{} |
No description. |
SystemDiskEncrypted |
interface{} |
No description. |
SystemDiskKmsKeyId |
interface{} |
No description. |
SystemDiskPerformanceLevel |
interface{} |
No description. |
SystemDiskProvisionedIops |
interface{} |
No description. |
SystemDiskSize |
interface{} |
No description. |
SystemDiskStorageClusterId |
interface{} |
No description. |
Tags |
*[]TagsProperty |
No description. |
Tenancy |
interface{} |
No description. |
UniqueSuffix |
interface{} |
No description. |
UpdatePolicy |
interface{} |
No description. |
UseAdditionalService |
interface{} |
No description. |
UserData |
interface{} |
No description. |
VpcId |
interface{} |
No description. |
VSwitchId |
interface{} |
No description. |
ZoneId |
interface{} |
No description. |
ZoneIds |
interface{} |
No description. |
Node
Required
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
CreationStack
Required
func CreationStack() *[]*string
- Type: []string
LogicalId
Required
func LogicalId() *string
- Type: *string
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)
.
Stack
Required
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this element is defined.
RosElements must be defined within a stack scope (directly or indirectly).
Ref
Required
func Ref() *string
- Type: *string
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 })
.
RosOptions
Required
func RosOptions() IRosResourceOptions
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IRosResourceOptions
Options for this resource, such as condition, update policy etc.
RosResourceType
Required
func RosResourceType() *string
- Type: *string
ROS resource type.
AttrHostNames
Required
func AttrHostNames() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrInnerIps
Required
func AttrInnerIps() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrInstanceIds
Required
func AttrInstanceIds() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrIpv6Addresses
Required
func AttrIpv6Addresses() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrIpv6AddressIds
Required
func AttrIpv6AddressIds() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrOrderId
Required
func AttrOrderId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrPrivateIps
Required
func AttrPrivateIps() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrPublicIps
Required
func AttrPublicIps() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrRelatedOrderIds
Required
func AttrRelatedOrderIds() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
AttrZoneIds
Required
func AttrZoneIds() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
EnableResourcePropertyConstraint
Required
func EnableResourcePropertyConstraint() *bool
- Type: *bool
InstanceType
Required
func InstanceType() interface{}
- Type: interface{}
MaxAmount
Required
func MaxAmount() interface{}
- Type: interface{}
Affinity
Optional
func Affinity() interface{}
- Type: interface{}
AllocatePublicIp
Optional
func AllocatePublicIp() interface{}
- Type: interface{}
AutoReleaseTime
Optional
func AutoReleaseTime() interface{}
- Type: interface{}
AutoRenew
Optional
func AutoRenew() interface{}
- Type: interface{}
AutoRenewPeriod
Optional
func AutoRenewPeriod() interface{}
- Type: interface{}
CpuOptions
Optional
func CpuOptions() interface{}
- Type: interface{}
CreditSpecification
Optional
func CreditSpecification() interface{}
- Type: interface{}
DedicatedHostId
Optional
func DedicatedHostId() interface{}
- Type: interface{}
DeletionForce
Optional
func DeletionForce() interface{}
- Type: interface{}
DeletionProtection
Optional
func DeletionProtection() interface{}
- Type: interface{}
DeploymentSetGroupNo
Optional
func DeploymentSetGroupNo() interface{}
- Type: interface{}
DeploymentSetId
Optional
func DeploymentSetId() interface{}
- Type: interface{}
Description
Optional
func Description() interface{}
- Type: interface{}
DiskMappings
Optional
func DiskMappings() interface{}
- Type: interface{}
EniMappings
Optional
func EniMappings() interface{}
- Type: interface{}
HostName
Optional
func HostName() interface{}
- Type: interface{}
HostNames
Optional
func HostNames() interface{}
- Type: interface{}
HpcClusterId
Optional
func HpcClusterId() interface{}
- Type: interface{}
HttpEndpoint
Optional
func HttpEndpoint() interface{}
- Type: interface{}
HttpTokens
Optional
func HttpTokens() interface{}
- Type: interface{}
ImageFamily
Optional
func ImageFamily() interface{}
- Type: interface{}
ImageId
Optional
func ImageId() interface{}
- Type: interface{}
ImageOptions
Optional
func ImageOptions() interface{}
- Type: interface{}
InstanceChargeType
Optional
func InstanceChargeType() interface{}
- Type: interface{}
InstanceName
Optional
func InstanceName() interface{}
- Type: interface{}
InternetChargeType
Optional
func InternetChargeType() interface{}
- Type: interface{}
InternetMaxBandwidthOut
Optional
func InternetMaxBandwidthOut() interface{}
- Type: interface{}
IoOptimized
Optional
func IoOptimized() interface{}
- Type: interface{}
Ipv6AddressCount
Optional
func Ipv6AddressCount() interface{}
- Type: interface{}
Ipv6Addresses
Optional
func Ipv6Addresses() interface{}
- Type: interface{}
KeyPairName
Optional
func KeyPairName() interface{}
- Type: interface{}
LaunchTemplateId
Optional
func LaunchTemplateId() interface{}
- Type: interface{}
LaunchTemplateName
Optional
func LaunchTemplateName() interface{}
- Type: interface{}
LaunchTemplateVersion
Optional
func LaunchTemplateVersion() interface{}
- Type: interface{}
NetworkInterfaceQueueNumber
Optional
func NetworkInterfaceQueueNumber() interface{}
- Type: interface{}
NetworkOptions
Optional
func NetworkOptions() interface{}
- Type: interface{}
NetworkType
Optional
func NetworkType() interface{}
- Type: interface{}
Password
Optional
func Password() interface{}
- Type: interface{}
PasswordInherit
Optional
func PasswordInherit() interface{}
- Type: interface{}
Period
Optional
func Period() interface{}
- Type: interface{}
PeriodUnit
Optional
func PeriodUnit() interface{}
- Type: interface{}
PrivateIpAddress
Optional
func PrivateIpAddress() interface{}
- Type: interface{}
PrivatePoolOptions
Optional
func PrivatePoolOptions() interface{}
- Type: interface{}
RamRoleName
Optional
func RamRoleName() interface{}
- Type: interface{}
ResourceGroupId
Optional
func ResourceGroupId() interface{}
- Type: interface{}
SchedulerOptions
Optional
func SchedulerOptions() interface{}
- Type: interface{}
SecurityEnhancementStrategy
Optional
func SecurityEnhancementStrategy() interface{}
- Type: interface{}
SecurityGroupId
Optional
func SecurityGroupId() interface{}
- Type: interface{}
SecurityGroupIds
Optional
func SecurityGroupIds() interface{}
- Type: interface{}
SecurityOptions
Optional
func SecurityOptions() interface{}
- Type: interface{}
SpotDuration
Optional
func SpotDuration() interface{}
- Type: interface{}
SpotInterruptionBehavior
Optional
func SpotInterruptionBehavior() interface{}
- Type: interface{}
SpotPriceLimit
Optional
func SpotPriceLimit() interface{}
- Type: interface{}
SpotStrategy
Optional
func SpotStrategy() interface{}
- Type: interface{}
StorageSetId
Optional
func StorageSetId() interface{}
- Type: interface{}
StorageSetPartitionNumber
Optional
func StorageSetPartitionNumber() interface{}
- Type: interface{}
SystemDiskAutoSnapshotPolicyId
Optional
func SystemDiskAutoSnapshotPolicyId() interface{}
- Type: interface{}
SystemDiskBurstingEnabled
Optional
func SystemDiskBurstingEnabled() interface{}
- Type: interface{}
SystemDiskCategory
Optional
func SystemDiskCategory() interface{}
- Type: interface{}
SystemDiskDescription
Optional
func SystemDiskDescription() interface{}
- Type: interface{}
SystemDiskDiskName
Optional
func SystemDiskDiskName() interface{}
- Type: interface{}
SystemDiskEncryptAlgorithm
Optional
func SystemDiskEncryptAlgorithm() interface{}
- Type: interface{}
SystemDiskEncrypted
Optional
func SystemDiskEncrypted() interface{}
- Type: interface{}
SystemDiskKmsKeyId
Optional
func SystemDiskKmsKeyId() interface{}
- Type: interface{}
SystemDiskPerformanceLevel
Optional
func SystemDiskPerformanceLevel() interface{}
- Type: interface{}
SystemDiskProvisionedIops
Optional
func SystemDiskProvisionedIops() interface{}
- Type: interface{}
SystemDiskSize
Optional
func SystemDiskSize() interface{}
- Type: interface{}
SystemDiskStorageClusterId
Optional
func SystemDiskStorageClusterId() interface{}
- Type: interface{}
Tags
Optional
func Tags() *[]TagsProperty
- Type: *[]TagsProperty
Tenancy
Optional
func Tenancy() interface{}
- Type: interface{}
UniqueSuffix
Optional
func UniqueSuffix() interface{}
- Type: interface{}
UpdatePolicy
Optional
func UpdatePolicy() interface{}
- Type: interface{}
UseAdditionalService
Optional
func UseAdditionalService() interface{}
- Type: interface{}
UserData
Optional
func UserData() interface{}
- Type: interface{}
VpcId
Optional
func VpcId() interface{}
- Type: interface{}
VSwitchId
Optional
func VSwitchId() interface{}
- Type: interface{}
ZoneId
Optional
func ZoneId() interface{}
- Type: interface{}
ZoneIds
Optional
func ZoneIds() interface{}
- Type: interface{}
Constants
Name | Type | Description |
---|---|---|
RosResourceTypeName |
*string |
The resource type name for this resource class. |
RosResourceTypeName
Required
func RosResourceTypeName() *string
- Type: *string
The resource type name for this resource class.