AWSAutoScalingInstance

Objective-C

@interface AWSAutoScalingInstance

Swift

class AWSAutoScalingInstance

Describes an EC2 instance.

Required parameters: [InstanceId, AvailabilityZone, LifecycleState, HealthStatus, ProtectedFromScaleIn]

  • The Availability Zone in which the instance is running.

    Declaration

    Objective-C

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

    Swift

    var availabilityZone: String? { get set }
  • The last reported health status of the instance. Healthy means that the instance is healthy and should remain in service. Unhealthy means that the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace it.

    Declaration

    Objective-C

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

    Swift

    var healthStatus: String? { get set }
  • The ID of the instance.

    Declaration

    Objective-C

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

    Swift

    var instanceId: String? { get set }
  • The instance type of the EC2 instance.

    Declaration

    Objective-C

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

    Swift

    var instanceType: String? { get set }
  • The launch configuration associated with the instance.

    Declaration

    Objective-C

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

    Swift

    var launchConfigurationName: String? { get set }
  • The launch template for the instance.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSAutoScalingLaunchTemplateSpecification *_Nullable launchTemplate;

    Swift

    var launchTemplate: AWSAutoScalingLaunchTemplateSpecification? { get set }
  • A description of the current lifecycle state. The Quarantined state is not used. For information about lifecycle states, see Instance lifecycle in the Amazon EC2 Auto Scaling User Guide.

    Declaration

    Objective-C

    @property (nonatomic) AWSAutoScalingLifecycleState lifecycleState;

    Swift

    var lifecycleState: AWSAutoScalingLifecycleState { get set }
  • Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable protectedFromScaleIn;

    Swift

    var protectedFromScaleIn: NSNumber? { get set }
  • The number of capacity units contributed by the instance based on its instance type.

    Valid Range: Minimum value of 1. Maximum value of 999.

    Declaration

    Objective-C

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

    Swift

    var weightedCapacity: String? { get set }