LaunchTemplate
This class encapsulates and extends the ROS resource type DATASOURCE::ECS::LaunchTemplate
.
Initializers
import { datasource } from '@alicloud/ros-cdk-ecs'
new datasource.LaunchTemplate(scope: Construct, id: string, props: LaunchTemplateProps, enableResourcePropertyConstraint?: boolean)
Name | Type | Description |
---|---|---|
scope |
@alicloud/ros-cdk-core.Construct |
No description. |
id |
string |
No description. |
props |
LaunchTemplateProps |
No description. |
enableResourcePropertyConstraint |
boolean |
No description. |
scope
Required
- Type: @alicloud/ros-cdk-core.Construct
id
Required
- Type: string
props
Required
- Type: LaunchTemplateProps
enableResourcePropertyConstraint
Optional
- Type: boolean
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
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import { datasource } from '@alicloud/ros-cdk-ecs'
datasource.LaunchTemplate.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
Name | Type | Description |
---|---|---|
node |
@alicloud/ros-cdk-core.ConstructNode |
The construct tree node associated with this construct. |
ref |
string |
No description. |
stack |
@alicloud/ros-cdk-core.Stack |
The stack in which this resource is defined. |
resource |
@alicloud/ros-cdk-core.RosResource |
No description. |
attrAutoReleaseTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute AutoReleaseTime: Automatic release time. |
attrCreatedBy |
@alicloud/ros-cdk-core.IResolvable |
Attribute CreatedBy: The creator of the launch template. |
attrCreateTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute CreateTime: The time when the instance launch template was created. |
attrDataDisk |
@alicloud/ros-cdk-core.IResolvable |
Attribute DataDisk: Data disk information list. |
attrDefaultVersionNumber |
@alicloud/ros-cdk-core.IResolvable |
Attribute DefaultVersionNumber: The default version number of the template. |
attrDeletionProtection |
@alicloud/ros-cdk-core.IResolvable |
Attribute DeletionProtection: Instance deletion protection attribute. |
attrDeploymentSetId |
@alicloud/ros-cdk-core.IResolvable |
Attribute DeploymentSetId: The ID of the deployment set. |
attrDescription |
@alicloud/ros-cdk-core.IResolvable |
Attribute Description: Instance description. |
attrHostName |
@alicloud/ros-cdk-core.IResolvable |
Attribute HostName: The hostname of the instance. |
attrImageId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ImageId: The ID of the image. |
attrImageOwnerAlias |
@alicloud/ros-cdk-core.IResolvable |
Attribute ImageOwnerAlias: The source of the image. |
attrInstanceChargeType |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceChargeType: The billing method of the instance. |
attrInstanceName |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceName: The name of the instance. |
attrInstanceType |
@alicloud/ros-cdk-core.IResolvable |
Attribute InstanceType: The instance type. |
attrInternetChargeType |
@alicloud/ros-cdk-core.IResolvable |
Attribute InternetChargeType: Network billing method. |
attrInternetMaxBandwidthIn |
@alicloud/ros-cdk-core.IResolvable |
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s. |
attrInternetMaxBandwidthOut |
@alicloud/ros-cdk-core.IResolvable |
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network. |
attrIoOptimized |
@alicloud/ros-cdk-core.IResolvable |
Attribute IoOptimized: Whether to optimize the instance for I/O. |
attrIpv6AddressCount |
@alicloud/ros-cdk-core.IResolvable |
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card. |
attrKeyPairName |
@alicloud/ros-cdk-core.IResolvable |
Attribute KeyPairName: The name of the key pair. |
attrLatestVersionNumber |
@alicloud/ros-cdk-core.IResolvable |
Attribute LatestVersionNumber: The latest version number of the template. |
attrLaunchTemplateId |
@alicloud/ros-cdk-core.IResolvable |
Attribute LaunchTemplateId: The ID of the launch template. |
attrLaunchTemplateName |
@alicloud/ros-cdk-core.IResolvable |
Attribute LaunchTemplateName: The name of the launch template. |
attrModifiedTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute ModifiedTime: The time when the launch template was modified. |
attrNetworkInterface |
@alicloud/ros-cdk-core.IResolvable |
Attribute NetworkInterface: The elastic network interfaces (ENIs). |
attrNetworkType |
@alicloud/ros-cdk-core.IResolvable |
Attribute NetworkType: The network type of the instance. |
attrPasswordInherit |
@alicloud/ros-cdk-core.IResolvable |
Attribute PasswordInherit: Whether to use the password preset by the image. |
attrPeriod |
@alicloud/ros-cdk-core.IResolvable |
Attribute Period: The duration of the purchase of resources, in months. |
attrPrivateIpAddress |
@alicloud/ros-cdk-core.IResolvable |
Attribute PrivateIpAddress: The private IP address of the instance. |
attrRamRoleName |
@alicloud/ros-cdk-core.IResolvable |
Attribute RamRoleName: The instance RAM role name. |
attrResourceGroupId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong. |
attrSecurityEnhancementStrategy |
@alicloud/ros-cdk-core.IResolvable |
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system. |
attrSecurityGroupIds |
@alicloud/ros-cdk-core.IResolvable |
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance. |
attrSpotPriceLimit |
@alicloud/ros-cdk-core.IResolvable |
Attribute SpotPriceLimit: Set the maximum price per hour for the instance. |
attrSpotStrategy |
@alicloud/ros-cdk-core.IResolvable |
Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance. |
attrSystemDisk |
@alicloud/ros-cdk-core.IResolvable |
Attribute SystemDisk: System disk configuration. |
attrTags |
@alicloud/ros-cdk-core.IResolvable |
Attribute Tags: The tags of the launch template. |
attrTemplateResourceGroupId |
@alicloud/ros-cdk-core.IResolvable |
Attribute TemplateResourceGroupId: Q. |
attrTemplateTag |
@alicloud/ros-cdk-core.IResolvable |
Attribute TemplateTag: The tags of the launch template. |
attrUserData |
@alicloud/ros-cdk-core.IResolvable |
Attribute UserData: The user-defined data of the instance must be encoded in Base64. |
attrVersionDescription |
@alicloud/ros-cdk-core.IResolvable |
Attribute VersionDescription: Instance launch template version description. |
attrVpcId |
@alicloud/ros-cdk-core.IResolvable |
Attribute VpcId: VPC Id. |
attrVSwitchId |
@alicloud/ros-cdk-core.IResolvable |
Attribute VSwitchId: The ID of the vSwitch. |
attrZoneId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ZoneId: The ID of the zone to which the instance belongs. |
node
Required
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public readonly ref: string;
- Type: string
stack
Required
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resource
Optional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrAutoReleaseTime
Required
public readonly attrAutoReleaseTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AutoReleaseTime: Automatic release time.
According to the ISO8601 standard, and need to use UTC time. The format is: yyyy-MM-ddTHH:mm:ssZ.
attrCreatedBy
Required
public readonly attrCreatedBy: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CreatedBy: The creator of the launch template.
attrCreateTime
Required
public readonly attrCreateTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute CreateTime: The time when the instance launch template was created.
attrDataDisk
Required
public readonly attrDataDisk: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DataDisk: Data disk information list.
attrDefaultVersionNumber
Required
public readonly attrDefaultVersionNumber: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DefaultVersionNumber: The default version number of the template.
attrDeletionProtection
Required
public readonly attrDeletionProtection: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DeletionProtection: Instance deletion protection attribute.
attrDeploymentSetId
Required
public readonly attrDeploymentSetId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DeploymentSetId: The ID of the deployment set.
attrDescription
Required
public readonly attrDescription: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Description: Instance description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
attrHostName
Required
public readonly attrHostName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute HostName: The hostname of the instance.
attrImageId
Required
public readonly attrImageId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ImageId: The ID of the image.
attrImageOwnerAlias
Required
public readonly attrImageOwnerAlias: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ImageOwnerAlias: The source of the image.
attrInstanceChargeType
Required
public readonly attrInstanceChargeType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceChargeType: The billing method of the instance.
attrInstanceName
Required
public readonly attrInstanceName: IResolvable;
- Type: @alicloud/ros-cdk-core.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
public readonly attrInstanceType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InstanceType: The instance type.
attrInternetChargeType
Required
public readonly attrInternetChargeType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InternetChargeType: Network billing method.
attrInternetMaxBandwidthIn
Required
public readonly attrInternetMaxBandwidthIn: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.
attrInternetMaxBandwidthOut
Required
public readonly attrInternetMaxBandwidthOut: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network.
The unit is Mbit/s. The value range is 0~100.
attrIoOptimized
Required
public readonly attrIoOptimized: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute IoOptimized: Whether to optimize the instance for I/O.
attrIpv6AddressCount
Required
public readonly attrIpv6AddressCount: IResolvable;
- Type: @alicloud/ros-cdk-core.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
public readonly attrKeyPairName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute KeyPairName: The name of the key pair.
attrLatestVersionNumber
Required
public readonly attrLatestVersionNumber: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute LatestVersionNumber: The latest version number of the template.
attrLaunchTemplateId
Required
public readonly attrLaunchTemplateId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute LaunchTemplateId: The ID of the launch template.
attrLaunchTemplateName
Required
public readonly attrLaunchTemplateName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute LaunchTemplateName: The name of the launch template.
attrModifiedTime
Required
public readonly attrModifiedTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ModifiedTime: The time when the launch template was modified.
attrNetworkInterface
Required
public readonly attrNetworkInterface: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute NetworkInterface: The elastic network interfaces (ENIs).
attrNetworkType
Required
public readonly attrNetworkType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute NetworkType: The network type of the instance.
attrPasswordInherit
Required
public readonly attrPasswordInherit: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PasswordInherit: Whether to use the password preset by the image.
attrPeriod
Required
public readonly attrPeriod: IResolvable;
- Type: @alicloud/ros-cdk-core.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
public readonly attrPrivateIpAddress: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PrivateIpAddress: The private IP address of the instance.
attrRamRoleName
Required
public readonly attrRamRoleName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute RamRoleName: The instance RAM role name.
You can use the RAM API ListRoles to query the created instance RAM roles.
attrResourceGroupId
Required
public readonly attrResourceGroupId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong.
attrSecurityEnhancementStrategy
Required
public readonly attrSecurityEnhancementStrategy: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.
attrSecurityGroupIds
Required
public readonly attrSecurityGroupIds: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance.
attrSpotPriceLimit
Required
public readonly attrSpotPriceLimit: IResolvable;
- Type: @alicloud/ros-cdk-core.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
public readonly attrSpotStrategy: IResolvable;
- Type: @alicloud/ros-cdk-core.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
public readonly attrSystemDisk: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute SystemDisk: System disk configuration.
attrTags
Required
public readonly attrTags: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Tags: The tags of the launch template.
attrTemplateResourceGroupId
Required
public readonly attrTemplateResourceGroupId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute TemplateResourceGroupId: Q.
attrTemplateTag
Required
public readonly attrTemplateTag: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute TemplateTag: The tags of the launch template.
attrUserData
Required
public readonly attrUserData: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute UserData: The user-defined data of the instance must be encoded in Base64.
The maximum original data is 16KB.
attrVersionDescription
Required
public readonly attrVersionDescription: IResolvable;
- Type: @alicloud/ros-cdk-core.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
public readonly attrVpcId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VpcId: VPC Id.
attrVSwitchId
Required
public readonly attrVSwitchId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute VSwitchId: The ID of the vSwitch.
attrZoneId
Required
public readonly attrZoneId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ZoneId: The ID of the zone to which the instance belongs.