AWSEC2GetSpotPlacementScoresRequest

Objective-C

@interface AWSEC2GetSpotPlacementScoresRequest

Swift

class AWSEC2GetSpotPlacementScoresRequest
  • Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

    Declaration

    Objective-C

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

    Swift

    var dryRun: NSNumber? { get set }
  • The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.

    If you specify InstanceRequirementsWithMetadata, you can’t specify InstanceTypes.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2InstanceRequirementsWithMetadataRequest *_Nullable instanceRequirementsWithMetadata;

    Swift

    var instanceRequirementsWithMetadata: AWSEC2InstanceRequirementsWithMetadataRequest? { get set }
  • The instance types. We recommend that you specify at least three instance types. If you specify one or two instance types, or specify variations of a single instance type (for example, an m3.xlarge with and without instance storage), the returned placement score will always be low.

    If you specify InstanceTypes, you can’t specify InstanceRequirementsWithMetadata.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable instanceTypes;

    Swift

    var instanceTypes: [String]? { get set }
  • The maximum number of results to return in a single call. Specify a value between 1 and
 1000. The default value is 1000. To retrieve the remaining results, make another call with
 the returned NextToken value.

    Declaration

    Objective-C

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

    Swift

    var maxResults: NSNumber? { get set }
  • The token for the next set of results.

    Declaration

    Objective-C

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

    Swift

    var nextToken: String? { get set }
  • The Regions used to narrow down the list of Regions to be scored. Enter the Region code, for example, us-east-1.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<NSString *> *_Nullable regionNames;

    Swift

    var regionNames: [String]? { get set }
  • Specify true so that the response returns a list of scored Availability Zones. Otherwise, the response returns a list of scored Regions.

    A list of scored Availability Zones is useful if you want to launch all of your Spot capacity into a single Availability Zone.

    Declaration

    Objective-C

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

    Swift

    var singleAvailabilityZone: NSNumber? { get set }
  • The target capacity.

    Declaration

    Objective-C

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

    Swift

    var targetCapacity: NSNumber? { get set }
  • The unit for the target capacity.

    Default: units (translates to number of instances)

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2TargetCapacityUnitType targetCapacityUnitType;

    Swift

    var targetCapacityUnitType: AWSEC2TargetCapacityUnitType { get set }