Skip to content

LaunchTemplate

This class encapsulates and extends the ROS resource type DATASOURCE::ECS::LaunchTemplate, which is used to query the information about a launch template.

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


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

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.

sessionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession

The synthesis session.


AddCondition

func AddCondition(condition RosCondition)

conditionRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition

AddCount

func AddCount(count interface{})

countRequired

  • Type: interface{}

AddDependency

func AddDependency(resource Resource)

resourceRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource

AddResourceDesc

func AddResourceDesc(desc *string)

descRequired

  • Type: *string

ApplyRemovalPolicy

func ApplyRemovalPolicy(policy RemovalPolicy)

policyRequired

  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy

GetAtt

func GetAtt(name *string) IResolvable

nameRequired

  • Type: *string

SetMetadata

func SetMetadata(key *string, value interface{})

keyRequired

  • Type: *string

valueRequired

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

xRequired

  • Type: interface{}

Properties

Name Type Description
Node github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode The construct tree node associated with this construct.
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 github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute AutoReleaseTime: Automatic release time (UTC).
AttrCreatedBy github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute CreatedBy: The creator of the launch template.
AttrCreateTime github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute CreateTime: The time when the instance launch template was created.
AttrDataDisk github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DataDisk: Data disk information list.
AttrDefaultVersionNumber github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DefaultVersionNumber: The default version number of the template.
AttrDeletionProtection github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DeletionProtection: Instance deletion protection attribute.
AttrDeploymentSetId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute DeploymentSetId: The ID of the deployment set.
AttrDescription github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Description: Instance description.
AttrHostName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute HostName: The hostname of the instance.
AttrImageId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ImageId: The ID of the image.
AttrImageOwnerAlias github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ImageOwnerAlias: The source of the image.
AttrInstanceChargeType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceChargeType: The billing method of the instance.
AttrInstanceName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceName: The name of the instance.
AttrInstanceType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InstanceType: The instance type.
AttrInternetChargeType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InternetChargeType: Network billing method.
AttrInternetMaxBandwidthIn github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InternetMaxBandwidthIn: The maximum public inbound bandwidth, in Mbit/s.
AttrInternetMaxBandwidthOut github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network.
AttrIoOptimized github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute IoOptimized: Whether to optimize the instance for I/O.
AttrIpv6AddressCount github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Ipv6AddressCount: Specify the number of randomly generated IPv6 addresses for the primary network card.
AttrKeyPairName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute KeyPairName: The name of the key pair.
AttrLatestVersionNumber github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute LatestVersionNumber: The latest version number of the template.
AttrLaunchTemplateId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute LaunchTemplateId: The ID of the launch template.
AttrLaunchTemplateName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute LaunchTemplateName: The name of the launch template.
AttrModifiedTime github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ModifiedTime: The time when the launch template was modified.
AttrNetworkInterface github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute NetworkInterface: The elastic network interfaces (ENIs).
AttrNetworkType github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute NetworkType: The network type of the instance.
AttrPasswordInherit github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute PasswordInherit: Whether to use the password preset by the image.
AttrPeriod github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Period: The duration of the purchase of resources, in months.
AttrPrivateIpAddress github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute PrivateIpAddress: The private IP address of the instance.
AttrRamRoleName github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute RamRoleName: The instance RAM role name.
AttrResourceGroupId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong.
AttrSecurityEnhancementStrategy github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute SecurityEnhancementStrategy: Whether to turn on security reinforcement for the operating system.
AttrSecurityGroupIds github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance.
AttrSpotPriceLimit github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute SpotPriceLimit: Set the maximum price per hour for the instance.
AttrSpotStrategy github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute SpotStrategy: The preemption policy for a pay-as-you-go instance.
AttrSystemDisk github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute SystemDisk: System disk configuration.
AttrTags github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute Tags: The tags of the launch template.
AttrTemplateResourceGroupId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute TemplateResourceGroupId: Q.
AttrTemplateTag github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute TemplateTag: The tags of the launch template.
AttrUserData github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute UserData: The user-defined data of the instance must be encoded in Base64.
AttrVersionDescription github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VersionDescription: Instance launch template version description.
AttrVpcId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VpcId: VPC Id.
AttrVSwitchId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute VSwitchId: The ID of the vSwitch.
AttrZoneId github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable Attribute ZoneId: The ID of the zone to which the instance belongs.

NodeRequired

func Node() ConstructNode
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode

The construct tree node associated with this construct.


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() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute AutoReleaseTime: Automatic release time (UTC).

The format is: yyyy-MM-ddTHH:mm:ssZ.


AttrCreatedByRequired

func AttrCreatedBy() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute CreatedBy: The creator of the launch template.


AttrCreateTimeRequired

func AttrCreateTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrDataDiskRequired

func AttrDataDisk() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DataDisk: Data disk information list.


AttrDefaultVersionNumberRequired

func AttrDefaultVersionNumber() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DefaultVersionNumber: The default version number of the template.


AttrDeletionProtectionRequired

func AttrDeletionProtection() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DeletionProtection: Instance deletion protection attribute.


AttrDeploymentSetIdRequired

func AttrDeploymentSetId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute DeploymentSetId: The ID of the deployment set.


AttrDescriptionRequired

func AttrDescription() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Description: Instance description.

2 to 256 English or Chinese characters in length and cannot start with' http:// 'or' https.


AttrHostNameRequired

func AttrHostName() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute HostName: The hostname of the instance.


AttrImageIdRequired

func AttrImageId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ImageId: The ID of the image.


AttrImageOwnerAliasRequired

func AttrImageOwnerAlias() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ImageOwnerAlias: The source of the image.


AttrInstanceChargeTypeRequired

func AttrInstanceChargeType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InstanceChargeType: The billing method of the instance.


AttrInstanceNameRequired

func AttrInstanceName() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrInstanceType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InstanceType: The instance type.


AttrInternetChargeTypeRequired

func AttrInternetChargeType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InternetChargeType: Network billing method.


AttrInternetMaxBandwidthInRequired

func AttrInternetMaxBandwidthIn() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrInternetMaxBandwidthOutRequired

func AttrInternetMaxBandwidthOut() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute InternetMaxBandwidthOut: The maximum outbound bandwidth of the public network.

The unit is Mbit/s. The value range is 0~100.


AttrIoOptimizedRequired

func AttrIoOptimized() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrIpv6AddressCountRequired

func AttrIpv6AddressCount() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute KeyPairName: The name of the key pair.


AttrLatestVersionNumberRequired

func AttrLatestVersionNumber() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute LatestVersionNumber: The latest version number of the template.


AttrLaunchTemplateIdRequired

func AttrLaunchTemplateId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute LaunchTemplateId: The ID of the launch template.


AttrLaunchTemplateNameRequired

func AttrLaunchTemplateName() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute LaunchTemplateName: The name of the launch template.


AttrModifiedTimeRequired

func AttrModifiedTime() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrNetworkInterfaceRequired

func AttrNetworkInterface() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute NetworkInterface: The elastic network interfaces (ENIs).


AttrNetworkTypeRequired

func AttrNetworkType() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute NetworkType: The network type of the instance.


AttrPasswordInheritRequired

func AttrPasswordInherit() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrPeriodRequired

func AttrPeriod() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrPrivateIpAddress() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute PrivateIpAddress: The private IP address of the instance.


AttrRamRoleNameRequired

func AttrRamRoleName() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute RamRoleName: The instance RAM role name.


AttrResourceGroupIdRequired

func AttrResourceGroupId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute ResourceGroupId: The ID of the resource group to which the instance, Elastic Block Storage (EBS) device, and ENI belong.


AttrSecurityEnhancementStrategyRequired

func AttrSecurityEnhancementStrategy() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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


AttrSecurityGroupIdsRequired

func AttrSecurityGroupIds() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute SecurityGroupIds: The IDs of one or more security groups to which you want to add the instance.


AttrSpotPriceLimitRequired

func AttrSpotPriceLimit() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrSpotStrategy() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrSystemDisk() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute SystemDisk: System disk configuration.


AttrTagsRequired

func AttrTags() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute Tags: The tags of the launch template.


AttrTemplateResourceGroupIdRequired

func AttrTemplateResourceGroupId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute TemplateResourceGroupId: Q.


AttrTemplateTagRequired

func AttrTemplateTag() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute TemplateTag: The tags of the launch template.


AttrUserDataRequired

func AttrUserData() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute UserData: The user-defined data of the instance must be encoded in Base64.

The maximum original data is 16KB.


AttrVersionDescriptionRequired

func AttrVersionDescription() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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

func AttrVpcId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute VpcId: VPC Id.


AttrVSwitchIdRequired

func AttrVSwitchId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

Attribute VSwitchId: The ID of the vSwitch.


AttrZoneIdRequired

func AttrZoneId() IResolvable
  • Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable

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