LaunchTemplate
This class encapsulates and extends the ROS resource type DATASOURCE::ECS::LaunchTemplate
.
Initializers
using AlibabaCloud.SDK.ROS.CDK.Ecs;
new LaunchTemplate(Construct Scope, string Id, LaunchTemplateProps Props, bool EnableResourcePropertyConstraint = null);
Name | Type | Description |
---|---|---|
Scope |
AlibabaCloud.SDK.ROS.CDK.Core.Construct |
No description. |
Id |
string |
No description. |
Props |
LaunchTemplateProps |
No description. |
EnableResourcePropertyConstraint |
bool |
No description. |
Scope
Required
- Type: AlibabaCloud.SDK.ROS.CDK.Core.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
private string ToString()
Returns a string representation of this construct.
Synthesize
private void Synthesize(ISynthesisSession Session)
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: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- Type: object
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsConstruct
using AlibabaCloud.SDK.ROS.CDK.Ecs;
LaunchTemplate.IsConstruct(object X);
Return whether the given object is a Construct.
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node |
AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode |
The construct tree node associated with this construct. |
Ref |
string |
No description. |
Stack |
AlibabaCloud.SDK.ROS.CDK.Core.Stack |
The stack in which this resource is defined. |
Resource |
AlibabaCloud.SDK.ROS.CDK.Core.RosResource |
No description. |
AttrAutoReleaseTime |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute AutoReleaseTime: Automatic release time. |
AttrCreatedBy |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute CreatedBy: The creator of the launch template. |
AttrCreateTime |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute CreateTime: The time when the instance launch template was created. |
AttrDataDisk |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute DataDisk: Data disk information list. |
AttrDefaultVersionNumber |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute DefaultVersionNumber: The default version number of the template. |
AttrDeletionProtection |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute DeletionProtection: Instance deletion protection attribute. |
AttrDeploymentSetId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute DeploymentSetId: The ID of the deployment set. |
AttrDescription |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Description: Instance description. |
AttrHostName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute HostName: The hostname of the instance. |
AttrImageId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ImageId: The ID of the image. |
AttrImageOwnerAlias |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ImageOwnerAlias: The source of the image. |
AttrInstanceChargeType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InstanceChargeType: The billing method of the instance. |
AttrInstanceName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InstanceName: The name of the instance. |
AttrInstanceType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InstanceType: The instance type. |
AttrInternetChargeType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InternetChargeType: Network billing method. |
AttrInternetMaxBandwidthIn |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s. |
AttrInternetMaxBandwidthOut |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network. |
AttrIoOptimized |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute IoOptimized: Whether to optimize the instance for I/O. |
AttrIpv6AddressCount |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card. |
AttrKeyPairName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute KeyPairName: The name of the key pair. |
AttrLatestVersionNumber |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute LatestVersionNumber: The latest version number of the template. |
AttrLaunchTemplateId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute LaunchTemplateId: The ID of the launch template. |
AttrLaunchTemplateName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute LaunchTemplateName: The name of the launch template. |
AttrModifiedTime |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ModifiedTime: The time when the launch template was modified. |
AttrNetworkInterface |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute NetworkInterface: The elastic network interfaces (ENIs). |
AttrNetworkType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute NetworkType: The network type of the instance. |
AttrPasswordInherit |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PasswordInherit: Whether to use the password preset by the image. |
AttrPeriod |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Period: The duration of the purchase of resources, in months. |
AttrPrivateIpAddress |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PrivateIpAddress: The private IP address of the instance. |
AttrRamRoleName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute RamRoleName: The instance RAM role name. |
AttrResourceGroupId |
AlibabaCloud.SDK.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 |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system. |
AttrSecurityGroupIds |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance. |
AttrSpotPriceLimit |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute SpotPriceLimit: Set the maximum price per hour for the instance. |
AttrSpotStrategy |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance. |
AttrSystemDisk |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute SystemDisk: System disk configuration. |
AttrTags |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Tags: The tags of the launch template. |
AttrTemplateResourceGroupId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute TemplateResourceGroupId: Q. |
AttrTemplateTag |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute TemplateTag: The tags of the launch template. |
AttrUserData |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute UserData: The user-defined data of the instance must be encoded in Base64. |
AttrVersionDescription |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute VersionDescription: Instance launch template version description. |
AttrVpcId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute VpcId: VPC Id. |
AttrVSwitchId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute VSwitchId: The ID of the vSwitch. |
AttrZoneId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ZoneId: The ID of the zone to which the instance belongs. |
Node
Required
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
Ref
Required
public string Ref { get; }
- Type: string
Stack
Required
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
Resource
Optional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrAutoReleaseTime
Required
public IResolvable AttrAutoReleaseTime { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrCreatedBy { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CreatedBy: The creator of the launch template.
AttrCreateTime
Required
public IResolvable AttrCreateTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute CreateTime: The time when the instance launch template was created.
AttrDataDisk
Required
public IResolvable AttrDataDisk { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DataDisk: Data disk information list.
AttrDefaultVersionNumber
Required
public IResolvable AttrDefaultVersionNumber { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DefaultVersionNumber: The default version number of the template.
AttrDeletionProtection
Required
public IResolvable AttrDeletionProtection { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DeletionProtection: Instance deletion protection attribute.
AttrDeploymentSetId
Required
public IResolvable AttrDeploymentSetId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DeploymentSetId: The ID of the deployment set.
AttrDescription
Required
public IResolvable AttrDescription { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrHostName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute HostName: The hostname of the instance.
AttrImageId
Required
public IResolvable AttrImageId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ImageId: The ID of the image.
AttrImageOwnerAlias
Required
public IResolvable AttrImageOwnerAlias { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ImageOwnerAlias: The source of the image.
AttrInstanceChargeType
Required
public IResolvable AttrInstanceChargeType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InstanceChargeType: The billing method of the instance.
AttrInstanceName
Required
public IResolvable AttrInstanceName { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrInstanceType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InstanceType: The instance type.
AttrInternetChargeType
Required
public IResolvable AttrInternetChargeType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InternetChargeType: Network billing method.
AttrInternetMaxBandwidthIn
Required
public IResolvable AttrInternetMaxBandwidthIn { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.
AttrInternetMaxBandwidthOut
Required
public IResolvable AttrInternetMaxBandwidthOut { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrIoOptimized { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute IoOptimized: Whether to optimize the instance for I/O.
AttrIpv6AddressCount
Required
public IResolvable AttrIpv6AddressCount { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrKeyPairName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute KeyPairName: The name of the key pair.
AttrLatestVersionNumber
Required
public IResolvable AttrLatestVersionNumber { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute LatestVersionNumber: The latest version number of the template.
AttrLaunchTemplateId
Required
public IResolvable AttrLaunchTemplateId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute LaunchTemplateId: The ID of the launch template.
AttrLaunchTemplateName
Required
public IResolvable AttrLaunchTemplateName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute LaunchTemplateName: The name of the launch template.
AttrModifiedTime
Required
public IResolvable AttrModifiedTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ModifiedTime: The time when the launch template was modified.
AttrNetworkInterface
Required
public IResolvable AttrNetworkInterface { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute NetworkInterface: The elastic network interfaces (ENIs).
AttrNetworkType
Required
public IResolvable AttrNetworkType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute NetworkType: The network type of the instance.
AttrPasswordInherit
Required
public IResolvable AttrPasswordInherit { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PasswordInherit: Whether to use the password preset by the image.
AttrPeriod
Required
public IResolvable AttrPeriod { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrPrivateIpAddress { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PrivateIpAddress: The private IP address of the instance.
AttrRamRoleName
Required
public IResolvable AttrRamRoleName { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrResourceGroupId { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrSecurityEnhancementStrategy { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.
AttrSecurityGroupIds
Required
public IResolvable AttrSecurityGroupIds { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrSpotPriceLimit { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrSpotStrategy { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrSystemDisk { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute SystemDisk: System disk configuration.
AttrTags
Required
public IResolvable AttrTags { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Tags: The tags of the launch template.
AttrTemplateResourceGroupId
Required
public IResolvable AttrTemplateResourceGroupId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute TemplateResourceGroupId: Q.
AttrTemplateTag
Required
public IResolvable AttrTemplateTag { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute TemplateTag: The tags of the launch template.
AttrUserData
Required
public IResolvable AttrUserData { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrVersionDescription { get; }
- Type: AlibabaCloud.SDK.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 IResolvable AttrVpcId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute VpcId: VPC Id.
AttrVSwitchId
Required
public IResolvable AttrVSwitchId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute VSwitchId: The ID of the vSwitch.
AttrZoneId
Required
public IResolvable AttrZoneId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ZoneId: The ID of the zone to which the instance belongs.