AWSEC2FleetLaunchTemplateSpecification

Objective-C

@interface AWSEC2FleetLaunchTemplateSpecification

Swift

class AWSEC2FleetLaunchTemplateSpecification

Describes the Amazon EC2 launch template and the launch template version that can be used by a Spot Fleet request to configure Amazon EC2 instances. For information about launch templates, see Launching an instance from a launch template in the Amazon EC2 User Guide for Linux Instances.

  • The ID of the launch template. If you specify the template ID, you can’t specify the template name.

    Declaration

    Objective-C

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

    Swift

    var launchTemplateId: String? { get set }
  • The name of the launch template. If you specify the template name, you can’t specify the template ID.

    Declaration

    Objective-C

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

    Swift

    var launchTemplateName: String? { get set }
  • The launch template version number, $Latest, or $Default. You must specify a value, otherwise the request fails.

    If the value is $Latest, Amazon EC2 uses the latest version of the launch template.

    If the value is $Default, Amazon EC2 uses the default version of the launch template.

    Declaration

    Objective-C

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

    Swift

    var version: String? { get set }