Class: Aws::EC2::Types::CreateInterruptibleCapacityReservationAllocationRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#capacity_reservation_id ⇒ String

The ID of the source Capacity Reservation from which to create the interruptible Capacity Reservation. Your Capacity Reservation must be in active state with no end date set and have available capacity for allocation.

Returns:

  • (String)


12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 12964

class CreateInterruptibleCapacityReservationAllocationRequest < Struct.new(
  :capacity_reservation_id,
  :instance_count,
  :client_token,
  :dry_run,
  :tag_specifications,
  :zero_size_preference)
  SENSITIVE = []
  include Aws::Structure
end

#client_token ⇒ String

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 12964

class CreateInterruptibleCapacityReservationAllocationRequest < Struct.new(
  :capacity_reservation_id,
  :instance_count,
  :client_token,
  :dry_run,
  :tag_specifications,
  :zero_size_preference)
  SENSITIVE = []
  include Aws::Structure
end

#dry_run ⇒ Boolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

Returns:

  • (Boolean)


12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 12964

class CreateInterruptibleCapacityReservationAllocationRequest < Struct.new(
  :capacity_reservation_id,
  :instance_count,
  :client_token,
  :dry_run,
  :tag_specifications,
  :zero_size_preference)
  SENSITIVE = []
  include Aws::Structure
end

#instance_count ⇒ Integer

The number of instances to allocate from your source reservation. You can only allocate available instances (also called unused capacity).

Returns:

  • (Integer)


12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 12964

class CreateInterruptibleCapacityReservationAllocationRequest < Struct.new(
  :capacity_reservation_id,
  :instance_count,
  :client_token,
  :dry_run,
  :tag_specifications,
  :zero_size_preference)
  SENSITIVE = []
  include Aws::Structure
end

#tag_specifications ⇒ Array<Types::TagSpecification>

The tags to apply to the interruptible Capacity Reservation during creation.

Returns:



12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 12964

class CreateInterruptibleCapacityReservationAllocationRequest < Struct.new(
  :capacity_reservation_id,
  :instance_count,
  :client_token,
  :dry_run,
  :tag_specifications,
  :zero_size_preference)
  SENSITIVE = []
  include Aws::Structure
end

#zero_size_preference ⇒ String

Specifies the behavior for the interruptible Capacity Reservation when you reduce its allocation to zero instances. Specify retain to keep the interruptible Capacity Reservation active at zero capacity so that you can allocate instances to it again later. Specify default to cancel the interruptible Capacity Reservation and return the capacity to your source Capacity Reservation. The default value is default.

Returns:

  • (String)


12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 12964

class CreateInterruptibleCapacityReservationAllocationRequest < Struct.new(
  :capacity_reservation_id,
  :instance_count,
  :client_token,
  :dry_run,
  :tag_specifications,
  :zero_size_preference)
  SENSITIVE = []
  include Aws::Structure
end