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 items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

    Declaration

    Objective-C

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

    Swift

    var maxResults: NSNumber? { get set }
  • The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

    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.

    Declaration

    Objective-C

    @property (nonatomic) AWSEC2TargetCapacityUnitType targetCapacityUnitType;

    Swift

    var targetCapacityUnitType: AWSEC2TargetCapacityUnitType { get set }