Skip to content

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.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct

IdRequired

  • Type: string

PropsRequired


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.
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.

SessionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • 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.

XRequired

  • 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.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


RefRequired

public string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrAutoReleaseTimeRequired

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.


AttrCreatedByRequired

public IResolvable AttrCreatedBy { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute CreatedBy: The creator of the launch template.


AttrCreateTimeRequired

public IResolvable AttrCreateTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute CreateTime: The time when the instance launch template was created.


AttrDataDiskRequired

public IResolvable AttrDataDisk { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DataDisk: Data disk information list.


AttrDefaultVersionNumberRequired

public IResolvable AttrDefaultVersionNumber { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DefaultVersionNumber: The default version number of the template.


AttrDeletionProtectionRequired

public IResolvable AttrDeletionProtection { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DeletionProtection: Instance deletion protection attribute.


AttrDeploymentSetIdRequired

public IResolvable AttrDeploymentSetId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute DeploymentSetId: The ID of the deployment set.


AttrDescriptionRequired

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.


AttrHostNameRequired

public IResolvable AttrHostName { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute HostName: The hostname of the instance.


AttrImageIdRequired

public IResolvable AttrImageId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ImageId: The ID of the image.


AttrImageOwnerAliasRequired

public IResolvable AttrImageOwnerAlias { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ImageOwnerAlias: The source of the image.


AttrInstanceChargeTypeRequired

public IResolvable AttrInstanceChargeType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute InstanceChargeType: The billing method of the instance.


AttrInstanceNameRequired

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 (-).


AttrInstanceTypeRequired

public IResolvable AttrInstanceType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute InstanceType: The instance type.


AttrInternetChargeTypeRequired

public IResolvable AttrInternetChargeType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute InternetChargeType: Network billing method.


AttrInternetMaxBandwidthInRequired

public IResolvable AttrInternetMaxBandwidthIn { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.


AttrInternetMaxBandwidthOutRequired

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.


AttrIoOptimizedRequired

public IResolvable AttrIoOptimized { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute IoOptimized: Whether to optimize the instance for I/O.


AttrIpv6AddressCountRequired

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.


AttrKeyPairNameRequired

public IResolvable AttrKeyPairName { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute KeyPairName: The name of the key pair.


AttrLatestVersionNumberRequired

public IResolvable AttrLatestVersionNumber { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LatestVersionNumber: The latest version number of the template.


AttrLaunchTemplateIdRequired

public IResolvable AttrLaunchTemplateId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LaunchTemplateId: The ID of the launch template.


AttrLaunchTemplateNameRequired

public IResolvable AttrLaunchTemplateName { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute LaunchTemplateName: The name of the launch template.


AttrModifiedTimeRequired

public IResolvable AttrModifiedTime { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ModifiedTime: The time when the launch template was modified.


AttrNetworkInterfaceRequired

public IResolvable AttrNetworkInterface { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute NetworkInterface: The elastic network interfaces (ENIs).


AttrNetworkTypeRequired

public IResolvable AttrNetworkType { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute NetworkType: The network type of the instance.


AttrPasswordInheritRequired

public IResolvable AttrPasswordInherit { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PasswordInherit: Whether to use the password preset by the image.


AttrPeriodRequired

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.


AttrPrivateIpAddressRequired

public IResolvable AttrPrivateIpAddress { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute PrivateIpAddress: The private IP address of the instance.


AttrRamRoleNameRequired

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.


AttrResourceGroupIdRequired

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.


AttrSecurityEnhancementStrategyRequired

public IResolvable AttrSecurityEnhancementStrategy { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.


AttrSecurityGroupIdsRequired

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.


AttrSpotPriceLimitRequired

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.


AttrSpotStrategyRequired

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.


AttrSystemDiskRequired

public IResolvable AttrSystemDisk { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute SystemDisk: System disk configuration.


AttrTagsRequired

public IResolvable AttrTags { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute Tags: The tags of the launch template.


AttrTemplateResourceGroupIdRequired

public IResolvable AttrTemplateResourceGroupId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute TemplateResourceGroupId: Q.


AttrTemplateTagRequired

public IResolvable AttrTemplateTag { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute TemplateTag: The tags of the launch template.


AttrUserDataRequired

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.


AttrVersionDescriptionRequired

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.


AttrVpcIdRequired

public IResolvable AttrVpcId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute VpcId: VPC Id.


AttrVSwitchIdRequired

public IResolvable AttrVSwitchId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute VSwitchId: The ID of the vSwitch.


AttrZoneIdRequired

public IResolvable AttrZoneId { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable

Attribute ZoneId: The ID of the zone to which the instance belongs.