AWSAutoScalingLaunchTemplateSpecification

Objective-C

@interface AWSAutoScalingLaunchTemplateSpecification

Swift

class AWSAutoScalingLaunchTemplateSpecification

Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.

  • The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.

    Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable launchTemplateId;

    Swift

    var launchTemplateId: String? { get set }
  • The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.

    Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable launchTemplateName;

    Swift

    var launchTemplateName: String? { get set }
  • The version number, $Latest, or $Default. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. If the value is $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable version;

    Swift

    var version: String? { get set }