LaunchTemplate
- Implements: AlibabaCloud.SDK.ROS.CDK.Ecs.datasource.ILaunchTemplate
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
- 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
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
FetchCondition
private RosCondition FetchCondition()
FetchDependency
private string[] FetchDependency()
FetchResourceDesc
private string FetchResourceDesc()
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. |
Env | AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment | The environment this resource belongs to. |
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 | object | Attribute AutoReleaseTime: Automatic release time (UTC). |
AttrCreatedBy | object | Attribute CreatedBy: The creator of the launch template. |
AttrCreateTime | object | Attribute CreateTime: The time when the instance launch template was created. |
AttrDataDisk | object | Attribute DataDisk: Data disk information list. |
AttrDefaultVersionNumber | object | Attribute DefaultVersionNumber: The default version number of the template. |
AttrDeletionProtection | object | Attribute DeletionProtection: Instance deletion protection attribute. |
AttrDeploymentSetId | object | Attribute DeploymentSetId: The ID of the deployment set. |
AttrDescription | object | Attribute Description: Instance description. |
AttrHostName | object | Attribute HostName: The hostname of the instance. |
AttrImageId | object | Attribute ImageId: The ID of the image. |
AttrImageOwnerAlias | object | Attribute ImageOwnerAlias: The source of the image. |
AttrInstanceChargeType | object | Attribute InstanceChargeType: The billing method of the instance. |
AttrInstanceName | object | Attribute InstanceName: The name of the instance. |
AttrInstanceType | object | Attribute InstanceType: The instance type. |
AttrInternetChargeType | object | Attribute InternetChargeType: Network billing method. |
AttrInternetMaxBandwidthIn | object | Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s. |
AttrInternetMaxBandwidthOut | object | Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network. |
AttrIoOptimized | object | Attribute IoOptimized: Whether to optimize the instance for I/O. |
AttrIpv6AddressCount | object | Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card. |
AttrKeyPairName | object | Attribute KeyPairName: The name of the key pair. |
AttrLatestVersionNumber | object | Attribute LatestVersionNumber: The latest version number of the template. |
AttrLaunchTemplateId | object | Attribute LaunchTemplateId: The ID of the launch template. |
AttrLaunchTemplateName | object | Attribute LaunchTemplateName: The name of the launch template. |
AttrModifiedTime | object | Attribute ModifiedTime: The time when the launch template was modified. |
AttrNetworkInterface | object | Attribute NetworkInterface: The elastic network interfaces (ENIs). |
AttrNetworkType | object | Attribute NetworkType: The network type of the instance. |
AttrPasswordInherit | object | Attribute PasswordInherit: Whether to use the password preset by the image. |
AttrPeriod | object | Attribute Period: The duration of the purchase of resources, in months. |
AttrPrivateIpAddress | object | Attribute PrivateIpAddress: The private IP address of the instance. |
AttrRamRoleName | object | Attribute RamRoleName: The instance RAM role name. |
AttrResourceGroupId | object | Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong. |
AttrSecurityEnhancementStrategy | object | Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system. |
AttrSecurityGroupIds | object | Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance. |
AttrSpotPriceLimit | object | Attribute SpotPriceLimit: Set the maximum price per hour for the instance. |
AttrSpotStrategy | object | Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance. |
AttrSystemDisk | object | Attribute SystemDisk: System disk configuration. |
AttrTags | object | Attribute Tags: The tags of the launch template. |
AttrTemplateResourceGroupId | object | Attribute TemplateResourceGroupId: Q. |
AttrTemplateTag | object | Attribute TemplateTag: The tags of the launch template. |
AttrUserData | object | Attribute UserData: The user-defined data of the instance must be encoded in Base64. |
AttrVersionDescription | object | Attribute VersionDescription: Instance launch template version description. |
AttrVpcId | object | Attribute VpcId: VPC Id. |
AttrVSwitchId | object | Attribute VSwitchId: The ID of the vSwitch. |
AttrZoneId | object | Attribute ZoneId: The ID of the zone to which the instance belongs. |
Props | LaunchTemplateProps | No description. |
NodeRequired
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
EnvRequired
public IResourceEnvironment Env { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.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
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 object AttrAutoReleaseTime { get; }
- Type: object
Attribute AutoReleaseTime: Automatic release time (UTC).
The format is: yyyy-MM-ddTHH:mm:ssZ.
AttrCreatedByRequired
public object AttrCreatedBy { get; }
- Type: object
Attribute CreatedBy: The creator of the launch template.
AttrCreateTimeRequired
public object AttrCreateTime { get; }
- Type: object
Attribute CreateTime: The time when the instance launch template was created.
AttrDataDiskRequired
public object AttrDataDisk { get; }
- Type: object
Attribute DataDisk: Data disk information list.
AttrDefaultVersionNumberRequired
public object AttrDefaultVersionNumber { get; }
- Type: object
Attribute DefaultVersionNumber: The default version number of the template.
AttrDeletionProtectionRequired
public object AttrDeletionProtection { get; }
- Type: object
Attribute DeletionProtection: Instance deletion protection attribute.
AttrDeploymentSetIdRequired
public object AttrDeploymentSetId { get; }
- Type: object
Attribute DeploymentSetId: The ID of the deployment set.
AttrDescriptionRequired
public object AttrDescription { get; }
- Type: object
Attribute Description: Instance description.
2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.
AttrHostNameRequired
public object AttrHostName { get; }
- Type: object
Attribute HostName: The hostname of the instance.
AttrImageIdRequired
public object AttrImageId { get; }
- Type: object
Attribute ImageId: The ID of the image.
AttrImageOwnerAliasRequired
public object AttrImageOwnerAlias { get; }
- Type: object
Attribute ImageOwnerAlias: The source of the image.
AttrInstanceChargeTypeRequired
public object AttrInstanceChargeType { get; }
- Type: object
Attribute InstanceChargeType: The billing method of the instance.
AttrInstanceNameRequired
public object AttrInstanceName { get; }
- Type: object
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 object AttrInstanceType { get; }
- Type: object
Attribute InstanceType: The instance type.
AttrInternetChargeTypeRequired
public object AttrInternetChargeType { get; }
- Type: object
Attribute InternetChargeType: Network billing method.
AttrInternetMaxBandwidthInRequired
public object AttrInternetMaxBandwidthIn { get; }
- Type: object
Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.
AttrInternetMaxBandwidthOutRequired
public object AttrInternetMaxBandwidthOut { get; }
- Type: object
Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network.
The unit is Mbit/s. The value range is 0~100.
AttrIoOptimizedRequired
public object AttrIoOptimized { get; }
- Type: object
Attribute IoOptimized: Whether to optimize the instance for I/O.
AttrIpv6AddressCountRequired
public object AttrIpv6AddressCount { get; }
- Type: object
Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card.
The value range is 1 to 10.
AttrKeyPairNameRequired
public object AttrKeyPairName { get; }
- Type: object
Attribute KeyPairName: The name of the key pair.
AttrLatestVersionNumberRequired
public object AttrLatestVersionNumber { get; }
- Type: object
Attribute LatestVersionNumber: The latest version number of the template.
AttrLaunchTemplateIdRequired
public object AttrLaunchTemplateId { get; }
- Type: object
Attribute LaunchTemplateId: The ID of the launch template.
AttrLaunchTemplateNameRequired
public object AttrLaunchTemplateName { get; }
- Type: object
Attribute LaunchTemplateName: The name of the launch template.
AttrModifiedTimeRequired
public object AttrModifiedTime { get; }
- Type: object
Attribute ModifiedTime: The time when the launch template was modified.
AttrNetworkInterfaceRequired
public object AttrNetworkInterface { get; }
- Type: object
Attribute NetworkInterface: The elastic network interfaces (ENIs).
AttrNetworkTypeRequired
public object AttrNetworkType { get; }
- Type: object
Attribute NetworkType: The network type of the instance.
AttrPasswordInheritRequired
public object AttrPasswordInherit { get; }
- Type: object
Attribute PasswordInherit: Whether to use the password preset by the image.
AttrPeriodRequired
public object AttrPeriod { get; }
- Type: object
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 object AttrPrivateIpAddress { get; }
- Type: object
Attribute PrivateIpAddress: The private IP address of the instance.
AttrRamRoleNameRequired
public object AttrRamRoleName { get; }
- Type: object
Attribute RamRoleName: The instance RAM role name.
AttrResourceGroupIdRequired
public object AttrResourceGroupId { get; }
- Type: object
Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong.
AttrSecurityEnhancementStrategyRequired
public object AttrSecurityEnhancementStrategy { get; }
- Type: object
Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.
AttrSecurityGroupIdsRequired
public object AttrSecurityGroupIds { get; }
- Type: object
Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance.
AttrSpotPriceLimitRequired
public object AttrSpotPriceLimit { get; }
- Type: object
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 object AttrSpotStrategy { get; }
- Type: object
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 object AttrSystemDisk { get; }
- Type: object
Attribute SystemDisk: System disk configuration.
AttrTagsRequired
public object AttrTags { get; }
- Type: object
Attribute Tags: The tags of the launch template.
AttrTemplateResourceGroupIdRequired
public object AttrTemplateResourceGroupId { get; }
- Type: object
Attribute TemplateResourceGroupId: Q.
AttrTemplateTagRequired
public object AttrTemplateTag { get; }
- Type: object
Attribute TemplateTag: The tags of the launch template.
AttrUserDataRequired
public object AttrUserData { get; }
- Type: object
Attribute UserData: The user-defined data of the instance must be encoded in Base64.
The maximum original data is 16KB.
AttrVersionDescriptionRequired
public object AttrVersionDescription { get; }
- Type: object
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 object AttrVpcId { get; }
- Type: object
Attribute VpcId: VPC Id.
AttrVSwitchIdRequired
public object AttrVSwitchId { get; }
- Type: object
Attribute VSwitchId: The ID of the vSwitch.
AttrZoneIdRequired
public object AttrZoneId { get; }
- Type: object
Attribute ZoneId: The ID of the zone to which the instance belongs.
PropsRequired
public LaunchTemplateProps Props { get; }
- Type: LaunchTemplateProps