LaunchTemplate
- Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.datasource.ILaunchTemplate
This class encapsulates and extends the ROS resource type DATASOURCE::ECS::LaunchTemplate.
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. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct
idRequired
- Type: *string
propsRequired
- Type: LaunchTemplateProps
enableResourcePropertyConstraintOptional
- Type: *bool
Methods
| Name | Description |
|---|---|
ToString | Returns a string representation of this construct. |
Synthesize | Allows this construct to emit artifacts into the cloud assembly during synthesis. |
AddCondition | No description. |
AddCount | No description. |
AddDependency | No description. |
AddResourceDesc | No description. |
ApplyRemovalPolicy | No description. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | No description. |
GetAtt | No description. |
SetMetadata | No description. |
ToString
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.
- 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
FetchCondition
func FetchCondition() RosCondition
FetchDependency
func FetchDependency() *[]*string
FetchResourceDesc
func FetchResourceDesc() *string
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. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
Ref | *string | No description. |
Stack | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack | The stack in which this resource is defined. |
Resource | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource | No description. |
AttrAutoReleaseTime | interface{} | Attribute AutoReleaseTime: Automatic release time (UTC). |
AttrCreatedBy | interface{} | Attribute CreatedBy: The creator of the launch template. |
AttrCreateTime | interface{} | Attribute CreateTime: The time when the instance launch template was created. |
AttrDataDisk | interface{} | Attribute DataDisk: Data disk information list. |
AttrDefaultVersionNumber | interface{} | Attribute DefaultVersionNumber: The default version number of the template. |
AttrDeletionProtection | interface{} | Attribute DeletionProtection: Instance deletion protection attribute. |
AttrDeploymentSetId | interface{} | Attribute DeploymentSetId: The ID of the deployment set. |
AttrDescription | interface{} | Attribute Description: Instance description. |
AttrHostName | interface{} | Attribute HostName: The hostname of the instance. |
AttrImageId | interface{} | Attribute ImageId: The ID of the image. |
AttrImageOwnerAlias | interface{} | Attribute ImageOwnerAlias: The source of the image. |
AttrInstanceChargeType | interface{} | Attribute InstanceChargeType: The billing method of the instance. |
AttrInstanceName | interface{} | Attribute InstanceName: The name of the instance. |
AttrInstanceType | interface{} | Attribute InstanceType: The instance type. |
AttrInternetChargeType | interface{} | Attribute InternetChargeType: Network billing method. |
AttrInternetMaxBandwidthIn | interface{} | Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s. |
AttrInternetMaxBandwidthOut | interface{} | Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network. |
AttrIoOptimized | interface{} | Attribute IoOptimized: Whether to optimize the instance for I/O. |
AttrIpv6AddressCount | interface{} | Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card. |
AttrKeyPairName | interface{} | Attribute KeyPairName: The name of the key pair. |
AttrLatestVersionNumber | interface{} | Attribute LatestVersionNumber: The latest version number of the template. |
AttrLaunchTemplateId | interface{} | Attribute LaunchTemplateId: The ID of the launch template. |
AttrLaunchTemplateName | interface{} | Attribute LaunchTemplateName: The name of the launch template. |
AttrModifiedTime | interface{} | Attribute ModifiedTime: The time when the launch template was modified. |
AttrNetworkInterface | interface{} | Attribute NetworkInterface: The elastic network interfaces (ENIs). |
AttrNetworkType | interface{} | Attribute NetworkType: The network type of the instance. |
AttrPasswordInherit | interface{} | Attribute PasswordInherit: Whether to use the password preset by the image. |
AttrPeriod | interface{} | Attribute Period: The duration of the purchase of resources, in months. |
AttrPrivateIpAddress | interface{} | Attribute PrivateIpAddress: The private IP address of the instance. |
AttrRamRoleName | interface{} | Attribute RamRoleName: The instance RAM role name. |
AttrResourceGroupId | interface{} | Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong. |
AttrSecurityEnhancementStrategy | interface{} | Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system. |
AttrSecurityGroupIds | interface{} | Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance. |
AttrSpotPriceLimit | interface{} | Attribute SpotPriceLimit: Set the maximum price per hour for the instance. |
AttrSpotStrategy | interface{} | Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance. |
AttrSystemDisk | interface{} | Attribute SystemDisk: System disk configuration. |
AttrTags | interface{} | Attribute Tags: The tags of the launch template. |
AttrTemplateResourceGroupId | interface{} | Attribute TemplateResourceGroupId: Q. |
AttrTemplateTag | interface{} | Attribute TemplateTag: The tags of the launch template. |
AttrUserData | interface{} | Attribute UserData: The user-defined data of the instance must be encoded in Base64. |
AttrVersionDescription | interface{} | Attribute VersionDescription: Instance launch template version description. |
AttrVpcId | interface{} | Attribute VpcId: VPC Id. |
AttrVSwitchId | interface{} | Attribute VSwitchId: The ID of the vSwitch. |
AttrZoneId | interface{} | Attribute ZoneId: The ID of the zone to which the instance belongs. |
Props | LaunchTemplateProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
RefRequired
func Ref() *string
- Type: *string
StackRequired
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
ResourceOptional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrAutoReleaseTimeRequired
func AttrAutoReleaseTime() interface{}
- Type: interface{}
Attribute AutoReleaseTime: Automatic release time (UTC).
The format is: yyyy-MM-ddTHH:mm:ssZ.
AttrCreatedByRequired
func AttrCreatedBy() interface{}
- Type: interface{}
Attribute CreatedBy: The creator of the launch template.
AttrCreateTimeRequired
func AttrCreateTime() interface{}
- Type: interface{}
Attribute CreateTime: The time when the instance launch template was created.
AttrDataDiskRequired
func AttrDataDisk() interface{}
- Type: interface{}
Attribute DataDisk: Data disk information list.
AttrDefaultVersionNumberRequired
func AttrDefaultVersionNumber() interface{}
- Type: interface{}
Attribute DefaultVersionNumber: The default version number of the template.
AttrDeletionProtectionRequired
func AttrDeletionProtection() interface{}
- Type: interface{}
Attribute DeletionProtection: Instance deletion protection attribute.
AttrDeploymentSetIdRequired
func AttrDeploymentSetId() interface{}
- Type: interface{}
Attribute DeploymentSetId: The ID of the deployment set.
AttrDescriptionRequired
func AttrDescription() interface{}
- Type: interface{}
Attribute Description: Instance description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
AttrHostNameRequired
func AttrHostName() interface{}
- Type: interface{}
Attribute HostName: The hostname of the instance.
AttrImageIdRequired
func AttrImageId() interface{}
- Type: interface{}
Attribute ImageId: The ID of the image.
AttrImageOwnerAliasRequired
func AttrImageOwnerAlias() interface{}
- Type: interface{}
Attribute ImageOwnerAlias: The source of the image.
AttrInstanceChargeTypeRequired
func AttrInstanceChargeType() interface{}
- Type: interface{}
Attribute InstanceChargeType: The billing method of the instance.
AttrInstanceNameRequired
func AttrInstanceName() interface{}
- Type: interface{}
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 (-).
AttrInstanceTypeRequired
func AttrInstanceType() interface{}
- Type: interface{}
Attribute InstanceType: The instance type.
AttrInternetChargeTypeRequired
func AttrInternetChargeType() interface{}
- Type: interface{}
Attribute InternetChargeType: Network billing method.
AttrInternetMaxBandwidthInRequired
func AttrInternetMaxBandwidthIn() interface{}
- Type: interface{}
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.
AttrInternetMaxBandwidthOutRequired
func AttrInternetMaxBandwidthOut() interface{}
- Type: interface{}
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network.
The unit is Mbit/s. The value range is 0~100.
AttrIoOptimizedRequired
func AttrIoOptimized() interface{}
- Type: interface{}
Attribute IoOptimized: Whether to optimize the instance for I/O.
AttrIpv6AddressCountRequired
func AttrIpv6AddressCount() interface{}
- Type: interface{}
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card.
The value range is 1 to 10.
AttrKeyPairNameRequired
func AttrKeyPairName() interface{}
- Type: interface{}
Attribute KeyPairName: The name of the key pair.
AttrLatestVersionNumberRequired
func AttrLatestVersionNumber() interface{}
- Type: interface{}
Attribute LatestVersionNumber: The latest version number of the template.
AttrLaunchTemplateIdRequired
func AttrLaunchTemplateId() interface{}
- Type: interface{}
Attribute LaunchTemplateId: The ID of the launch template.
AttrLaunchTemplateNameRequired
func AttrLaunchTemplateName() interface{}
- Type: interface{}
Attribute LaunchTemplateName: The name of the launch template.
AttrModifiedTimeRequired
func AttrModifiedTime() interface{}
- Type: interface{}
Attribute ModifiedTime: The time when the launch template was modified.
AttrNetworkInterfaceRequired
func AttrNetworkInterface() interface{}
- Type: interface{}
Attribute NetworkInterface: The elastic network interfaces (ENIs).
AttrNetworkTypeRequired
func AttrNetworkType() interface{}
- Type: interface{}
Attribute NetworkType: The network type of the instance.
AttrPasswordInheritRequired
func AttrPasswordInherit() interface{}
- Type: interface{}
Attribute PasswordInherit: Whether to use the password preset by the image.
AttrPeriodRequired
func AttrPeriod() interface{}
- Type: interface{}
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.
AttrPrivateIpAddressRequired
func AttrPrivateIpAddress() interface{}
- Type: interface{}
Attribute PrivateIpAddress: The private IP address of the instance.
AttrRamRoleNameRequired
func AttrRamRoleName() interface{}
- Type: interface{}
Attribute RamRoleName: The instance RAM role name.
AttrResourceGroupIdRequired
func AttrResourceGroupId() interface{}
- Type: interface{}
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong.
AttrSecurityEnhancementStrategyRequired
func AttrSecurityEnhancementStrategy() interface{}
- Type: interface{}
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.
AttrSecurityGroupIdsRequired
func AttrSecurityGroupIds() interface{}
- Type: interface{}
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance.
AttrSpotPriceLimitRequired
func AttrSpotPriceLimit() interface{}
- Type: interface{}
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.
AttrSpotStrategyRequired
func AttrSpotStrategy() interface{}
- Type: interface{}
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.
AttrSystemDiskRequired
func AttrSystemDisk() interface{}
- Type: interface{}
Attribute SystemDisk: System disk configuration.
AttrTagsRequired
func AttrTags() interface{}
- Type: interface{}
Attribute Tags: The tags of the launch template.
AttrTemplateResourceGroupIdRequired
func AttrTemplateResourceGroupId() interface{}
- Type: interface{}
Attribute TemplateResourceGroupId: Q.
AttrTemplateTagRequired
func AttrTemplateTag() interface{}
- Type: interface{}
Attribute TemplateTag: The tags of the launch template.
AttrUserDataRequired
func AttrUserData() interface{}
- Type: interface{}
Attribute UserData: The user-defined data of the instance must be encoded in Base64.
The maximum original data is 16KB.
AttrVersionDescriptionRequired
func AttrVersionDescription() interface{}
- Type: interface{}
Attribute VersionDescription: Instance launch template version description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
AttrVpcIdRequired
func AttrVpcId() interface{}
- Type: interface{}
Attribute VpcId: VPC Id.
AttrVSwitchIdRequired
func AttrVSwitchId() interface{}
- Type: interface{}
Attribute VSwitchId: The ID of the vSwitch.
AttrZoneIdRequired
func AttrZoneId() interface{}
- Type: interface{}
Attribute ZoneId: The ID of the zone to which the instance belongs.
PropsRequired
func Props() LaunchTemplateProps
- Type: LaunchTemplateProps