LaunchTemplate
This class encapsulates and extends the ROS resource type DATASOURCE::ECS::LaunchTemplate
, which is used to query the information about a launch template.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
datasource.NewLaunchTemplate(scope Construct, id *string, props LaunchTemplateProps, enableResourcePropertyConstraint *bool) LaunchTemplate
Name | Type | Description |
---|---|---|
scope |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct |
No description. |
id |
*string |
No description. |
props |
LaunchTemplateProps |
No description. |
enableResourcePropertyConstraint |
*bool |
No description. |
scope
Required
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
id
Required
- Type: *string
props
Required
- Type: LaunchTemplateProps
enableResourcePropertyConstraint
Optional
- Type: *bool
Methods
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
Synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
AddCondition |
No description. |
AddCount |
No description. |
AddDependency |
No description. |
AddResourceDesc |
No description. |
ApplyRemovalPolicy |
No description. |
GetAtt |
No description. |
SetMetadata |
No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
GetAtt
func GetAtt(name *string) IResolvable
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- Type: interface{}
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs/datasource"
datasource.LaunchTemplate_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode |
The construct tree node associated with this construct. |
Ref |
*string |
No description. |
Stack |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack |
The stack in which this resource is defined. |
Resource |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource |
No description. |
AttrAutoReleaseTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute AutoReleaseTime: Automatic release time (UTC). |
AttrCreatedBy |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute CreatedBy: The creator of the launch template. |
AttrCreateTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute CreateTime: The time when the instance launch template was created. |
AttrDataDisk |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute DataDisk: Data disk information list. |
AttrDefaultVersionNumber |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute DefaultVersionNumber: The default version number of the template. |
AttrDeletionProtection |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute DeletionProtection: Instance deletion protection attribute. |
AttrDeploymentSetId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute DeploymentSetId: The ID of the deployment set. |
AttrDescription |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Description: Instance description. |
AttrHostName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute HostName: The hostname of the instance. |
AttrImageId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ImageId: The ID of the image. |
AttrImageOwnerAlias |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ImageOwnerAlias: The source of the image. |
AttrInstanceChargeType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InstanceChargeType: The billing method of the instance. |
AttrInstanceName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InstanceName: The name of the instance. |
AttrInstanceType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InstanceType: The instance type. |
AttrInternetChargeType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InternetChargeType: Network billing method. |
AttrInternetMaxBandwidthIn |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s. |
AttrInternetMaxBandwidthOut |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network. |
AttrIoOptimized |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute IoOptimized: Whether to optimize the instance for I/O. |
AttrIpv6AddressCount |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card. |
AttrKeyPairName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute KeyPairName: The name of the key pair. |
AttrLatestVersionNumber |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute LatestVersionNumber: The latest version number of the template. |
AttrLaunchTemplateId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute LaunchTemplateId: The ID of the launch template. |
AttrLaunchTemplateName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute LaunchTemplateName: The name of the launch template. |
AttrModifiedTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ModifiedTime: The time when the launch template was modified. |
AttrNetworkInterface |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute NetworkInterface: The elastic network interfaces (ENIs). |
AttrNetworkType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute NetworkType: The network type of the instance. |
AttrPasswordInherit |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PasswordInherit: Whether to use the password preset by the image. |
AttrPeriod |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Period: The duration of the purchase of resources, in months. |
AttrPrivateIpAddress |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PrivateIpAddress: The private IP address of the instance. |
AttrRamRoleName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute RamRoleName: The instance RAM role name. |
AttrResourceGroupId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong. |
AttrSecurityEnhancementStrategy |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system. |
AttrSecurityGroupIds |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance. |
AttrSpotPriceLimit |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SpotPriceLimit: Set the maximum price per hour for the instance. |
AttrSpotStrategy |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance. |
AttrSystemDisk |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute SystemDisk: System disk configuration. |
AttrTags |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Tags: The tags of the launch template. |
AttrTemplateResourceGroupId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute TemplateResourceGroupId: Q. |
AttrTemplateTag |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute TemplateTag: The tags of the launch template. |
AttrUserData |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute UserData: The user-defined data of the instance must be encoded in Base64. |
AttrVersionDescription |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute VersionDescription: Instance launch template version description. |
AttrVpcId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute VpcId: VPC Id. |
AttrVSwitchId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute VSwitchId: The ID of the vSwitch. |
AttrZoneId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ZoneId: The ID of the zone to which the instance belongs. |
Node
Required
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
Ref
Required
func Ref() *string
- Type: *string
Stack
Required
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
Resource
Optional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrAutoReleaseTime
Required
func AttrAutoReleaseTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute AutoReleaseTime: Automatic release time (UTC).
The format is: yyyy-MM-ddTHH:mm:ssZ.
AttrCreatedBy
Required
func AttrCreatedBy() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute CreatedBy: The creator of the launch template.
AttrCreateTime
Required
func AttrCreateTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute CreateTime: The time when the instance launch template was created.
AttrDataDisk
Required
func AttrDataDisk() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute DataDisk: Data disk information list.
AttrDefaultVersionNumber
Required
func AttrDefaultVersionNumber() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute DefaultVersionNumber: The default version number of the template.
AttrDeletionProtection
Required
func AttrDeletionProtection() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute DeletionProtection: Instance deletion protection attribute.
AttrDeploymentSetId
Required
func AttrDeploymentSetId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute DeploymentSetId: The ID of the deployment set.
AttrDescription
Required
func AttrDescription() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Description: Instance description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
AttrHostName
Required
func AttrHostName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute HostName: The hostname of the instance.
AttrImageId
Required
func AttrImageId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ImageId: The ID of the image.
AttrImageOwnerAlias
Required
func AttrImageOwnerAlias() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ImageOwnerAlias: The source of the image.
AttrInstanceChargeType
Required
func AttrInstanceChargeType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InstanceChargeType: The billing method of the instance.
AttrInstanceName
Required
func AttrInstanceName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InstanceName: The name of the instance.
The length is 2~128 English or Chinese characters. It must start with a large or small letter or Chinese, and cannot start with' http:// 'or' https. It can contain numbers, colons (:), underscores (_), or dashes (-).
AttrInstanceType
Required
func AttrInstanceType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InstanceType: The instance type.
AttrInternetChargeType
Required
func AttrInternetChargeType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InternetChargeType: Network billing method.
AttrInternetMaxBandwidthIn
Required
func AttrInternetMaxBandwidthIn() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.
AttrInternetMaxBandwidthOut
Required
func AttrInternetMaxBandwidthOut() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network.
The unit is Mbit/s. The value range is 0~100.
AttrIoOptimized
Required
func AttrIoOptimized() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute IoOptimized: Whether to optimize the instance for I/O.
AttrIpv6AddressCount
Required
func AttrIpv6AddressCount() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card.
The value range is 1 to 10.
AttrKeyPairName
Required
func AttrKeyPairName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute KeyPairName: The name of the key pair.
AttrLatestVersionNumber
Required
func AttrLatestVersionNumber() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute LatestVersionNumber: The latest version number of the template.
AttrLaunchTemplateId
Required
func AttrLaunchTemplateId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute LaunchTemplateId: The ID of the launch template.
AttrLaunchTemplateName
Required
func AttrLaunchTemplateName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute LaunchTemplateName: The name of the launch template.
AttrModifiedTime
Required
func AttrModifiedTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ModifiedTime: The time when the launch template was modified.
AttrNetworkInterface
Required
func AttrNetworkInterface() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute NetworkInterface: The elastic network interfaces (ENIs).
AttrNetworkType
Required
func AttrNetworkType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute NetworkType: The network type of the instance.
AttrPasswordInherit
Required
func AttrPasswordInherit() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PasswordInherit: Whether to use the password preset by the image.
AttrPeriod
Required
func AttrPeriod() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Period: The duration of the purchase of resources, in months.
When creating an instance, the parameter 'InstanceChargeType' takes effect and is required only when the value of the parameter 'PrePaid' is 'PrePaid. Value range: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, 60.
AttrPrivateIpAddress
Required
func AttrPrivateIpAddress() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PrivateIpAddress: The private IP address of the instance.
AttrRamRoleName
Required
func AttrRamRoleName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute RamRoleName: The instance RAM role name.
AttrResourceGroupId
Required
func AttrResourceGroupId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong.
AttrSecurityEnhancementStrategy
Required
func AttrSecurityEnhancementStrategy() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.
AttrSecurityGroupIds
Required
func AttrSecurityGroupIds() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance.
AttrSpotPriceLimit
Required
func AttrSpotPriceLimit() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SpotPriceLimit: Set the maximum price per hour for the instance.
The maximum number of 3 decimal places is supported. The value of the parameter 'SpotStrategy' is 'SpotWithPriceLimit.
AttrSpotStrategy
Required
func AttrSpotStrategy() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance.
This parameter takes effect when the value of the parameter 'InstanceChargeType' is 'PostPaid.
AttrSystemDisk
Required
func AttrSystemDisk() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute SystemDisk: System disk configuration.
AttrTags
Required
func AttrTags() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Tags: The tags of the launch template.
AttrTemplateResourceGroupId
Required
func AttrTemplateResourceGroupId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute TemplateResourceGroupId: Q.
AttrTemplateTag
Required
func AttrTemplateTag() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute TemplateTag: The tags of the launch template.
AttrUserData
Required
func AttrUserData() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute UserData: The user-defined data of the instance must be encoded in Base64.
The maximum original data is 16KB.
AttrVersionDescription
Required
func AttrVersionDescription() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute VersionDescription: Instance launch template version description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
AttrVpcId
Required
func AttrVpcId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute VpcId: VPC Id.
AttrVSwitchId
Required
func AttrVSwitchId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute VSwitchId: The ID of the vSwitch.
AttrZoneId
Required
func AttrZoneId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ZoneId: The ID of the zone to which the instance belongs.