amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.CapacityReservation

Description

 
Synopsis

Documentation

data CapacityReservation Source #

Describes a Capacity Reservation.

See: newCapacityReservation smart constructor.

Constructors

CapacityReservation' 

Fields

  • availabilityZone :: Maybe Text

    The Availability Zone in which the capacity is reserved.

  • availabilityZoneId :: Maybe Text

    The Availability Zone ID of the Capacity Reservation.

  • availableInstanceCount :: Maybe Int

    The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

  • capacityAllocations :: Maybe [CapacityAllocation]

    Information about instance capacity usage.

  • capacityReservationArn :: Maybe Text

    The Amazon Resource Name (ARN) of the Capacity Reservation.

  • capacityReservationFleetId :: Maybe Text

    The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet.

  • capacityReservationId :: Maybe Text

    The ID of the Capacity Reservation.

  • createDate :: Maybe ISO8601

    The date and time at which the Capacity Reservation was created.

  • ebsOptimized :: Maybe Bool

    Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.

  • endDate :: Maybe ISO8601

    The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

  • endDateType :: Maybe EndDateType

    Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

    • unlimited - The Capacity Reservation remains active until you explicitly cancel it.
    • limited - The Capacity Reservation expires automatically at a specified date and time.
  • ephemeralStorage :: Maybe Bool

    Deprecated.

  • instanceMatchCriteria :: Maybe InstanceMatchCriteria

    Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

    • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.
    • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.
  • instancePlatform :: Maybe CapacityReservationInstancePlatform

    The type of operating system for which the Capacity Reservation reserves capacity.

  • instanceType :: Maybe Text

    The type of instance for which the Capacity Reservation reserves capacity.

  • outpostArn :: Maybe Text

    The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

  • ownerId :: Maybe Text

    The ID of the Amazon Web Services account that owns the Capacity Reservation.

  • placementGroupArn :: Maybe Text

    The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.

  • startDate :: Maybe ISO8601

    The date and time at which the Capacity Reservation was started.

  • state :: Maybe CapacityReservationState

    The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

    • active - The Capacity Reservation is active and the capacity is available for your use.
    • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.
    • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.
    • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.
    • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.
  • tags :: Maybe [Tag]

    Any tags assigned to the Capacity Reservation.

  • tenancy :: Maybe CapacityReservationTenancy

    Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

    • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.
    • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.
  • totalInstanceCount :: Maybe Int

    The total number of instances for which the Capacity Reservation reserves capacity.

Instances

Instances details
FromXML CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

Generic CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

Associated Types

type Rep CapacityReservation :: Type -> Type #

Read CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

Show CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

NFData CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

Methods

rnf :: CapacityReservation -> () #

Eq CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

Hashable CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

type Rep CapacityReservation Source # 
Instance details

Defined in Amazonka.EC2.Types.CapacityReservation

type Rep CapacityReservation = D1 ('MetaData "CapacityReservation" "Amazonka.EC2.Types.CapacityReservation" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CapacityReservation'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "availabilityZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "availableInstanceCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "capacityAllocations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CapacityAllocation])) :*: S1 ('MetaSel ('Just "capacityReservationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "capacityReservationFleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "capacityReservationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: (S1 ('MetaSel ('Just "ebsOptimized") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "endDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "endDateType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EndDateType)))))) :*: (((S1 ('MetaSel ('Just "ephemeralStorage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "instanceMatchCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceMatchCriteria)) :*: S1 ('MetaSel ('Just "instancePlatform") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CapacityReservationInstancePlatform)))) :*: (S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "outpostArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ownerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "placementGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "startDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CapacityReservationState)))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "tenancy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CapacityReservationTenancy)) :*: S1 ('MetaSel ('Just "totalInstanceCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))))))

newCapacityReservation :: CapacityReservation Source #

Create a value of CapacityReservation with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:availabilityZone:CapacityReservation', capacityReservation_availabilityZone - The Availability Zone in which the capacity is reserved.

$sel:availabilityZoneId:CapacityReservation', capacityReservation_availabilityZoneId - The Availability Zone ID of the Capacity Reservation.

$sel:availableInstanceCount:CapacityReservation', capacityReservation_availableInstanceCount - The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

$sel:capacityAllocations:CapacityReservation', capacityReservation_capacityAllocations - Information about instance capacity usage.

$sel:capacityReservationArn:CapacityReservation', capacityReservation_capacityReservationArn - The Amazon Resource Name (ARN) of the Capacity Reservation.

$sel:capacityReservationFleetId:CapacityReservation', capacityReservation_capacityReservationFleetId - The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet.

$sel:capacityReservationId:CapacityReservation', capacityReservation_capacityReservationId - The ID of the Capacity Reservation.

$sel:createDate:CapacityReservation', capacityReservation_createDate - The date and time at which the Capacity Reservation was created.

$sel:ebsOptimized:CapacityReservation', capacityReservation_ebsOptimized - Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.

$sel:endDate:CapacityReservation', capacityReservation_endDate - The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

$sel:endDateType:CapacityReservation', capacityReservation_endDateType - Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.
  • limited - The Capacity Reservation expires automatically at a specified date and time.

$sel:ephemeralStorage:CapacityReservation', capacityReservation_ephemeralStorage - Deprecated.

$sel:instanceMatchCriteria:CapacityReservation', capacityReservation_instanceMatchCriteria - Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.
  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

$sel:instancePlatform:CapacityReservation', capacityReservation_instancePlatform - The type of operating system for which the Capacity Reservation reserves capacity.

$sel:instanceType:CapacityReservation', capacityReservation_instanceType - The type of instance for which the Capacity Reservation reserves capacity.

$sel:outpostArn:CapacityReservation', capacityReservation_outpostArn - The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

$sel:ownerId:CapacityReservation', capacityReservation_ownerId - The ID of the Amazon Web Services account that owns the Capacity Reservation.

$sel:placementGroupArn:CapacityReservation', capacityReservation_placementGroupArn - The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.

$sel:startDate:CapacityReservation', capacityReservation_startDate - The date and time at which the Capacity Reservation was started.

$sel:state:CapacityReservation', capacityReservation_state - The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.
  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.
  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.
  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.
  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

$sel:tags:CapacityReservation', capacityReservation_tags - Any tags assigned to the Capacity Reservation.

$sel:tenancy:CapacityReservation', capacityReservation_tenancy - Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.
  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

$sel:totalInstanceCount:CapacityReservation', capacityReservation_totalInstanceCount - The total number of instances for which the Capacity Reservation reserves capacity.

capacityReservation_availabilityZone :: Lens' CapacityReservation (Maybe Text) Source #

The Availability Zone in which the capacity is reserved.

capacityReservation_availabilityZoneId :: Lens' CapacityReservation (Maybe Text) Source #

The Availability Zone ID of the Capacity Reservation.

capacityReservation_availableInstanceCount :: Lens' CapacityReservation (Maybe Int) Source #

The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

capacityReservation_capacityReservationArn :: Lens' CapacityReservation (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Capacity Reservation.

capacityReservation_capacityReservationFleetId :: Lens' CapacityReservation (Maybe Text) Source #

The ID of the Capacity Reservation Fleet to which the Capacity Reservation belongs. Only valid for Capacity Reservations that were created by a Capacity Reservation Fleet.

capacityReservation_createDate :: Lens' CapacityReservation (Maybe UTCTime) Source #

The date and time at which the Capacity Reservation was created.

capacityReservation_ebsOptimized :: Lens' CapacityReservation (Maybe Bool) Source #

Indicates whether the Capacity Reservation supports EBS-optimized instances. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS- optimized instance.

capacityReservation_endDate :: Lens' CapacityReservation (Maybe UTCTime) Source #

The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to expired when it reaches its end date and time.

capacityReservation_endDateType :: Lens' CapacityReservation (Maybe EndDateType) Source #

Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:

  • unlimited - The Capacity Reservation remains active until you explicitly cancel it.
  • limited - The Capacity Reservation expires automatically at a specified date and time.

capacityReservation_instanceMatchCriteria :: Lens' CapacityReservation (Maybe InstanceMatchCriteria) Source #

Indicates the type of instance launches that the Capacity Reservation accepts. The options include:

  • open - The Capacity Reservation accepts all instances that have matching attributes (instance type, platform, and Availability Zone). Instances that have matching attributes launch into the Capacity Reservation automatically without specifying any additional parameters.
  • targeted - The Capacity Reservation only accepts instances that have matching attributes (instance type, platform, and Availability Zone), and explicitly target the Capacity Reservation. This ensures that only permitted instances can use the reserved capacity.

capacityReservation_instancePlatform :: Lens' CapacityReservation (Maybe CapacityReservationInstancePlatform) Source #

The type of operating system for which the Capacity Reservation reserves capacity.

capacityReservation_instanceType :: Lens' CapacityReservation (Maybe Text) Source #

The type of instance for which the Capacity Reservation reserves capacity.

capacityReservation_outpostArn :: Lens' CapacityReservation (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation was created.

capacityReservation_ownerId :: Lens' CapacityReservation (Maybe Text) Source #

The ID of the Amazon Web Services account that owns the Capacity Reservation.

capacityReservation_placementGroupArn :: Lens' CapacityReservation (Maybe Text) Source #

The Amazon Resource Name (ARN) of the cluster placement group in which the Capacity Reservation was created. For more information, see Capacity Reservations for cluster placement groups in the Amazon EC2 User Guide.

capacityReservation_startDate :: Lens' CapacityReservation (Maybe UTCTime) Source #

The date and time at which the Capacity Reservation was started.

capacityReservation_state :: Lens' CapacityReservation (Maybe CapacityReservationState) Source #

The current state of the Capacity Reservation. A Capacity Reservation can be in one of the following states:

  • active - The Capacity Reservation is active and the capacity is available for your use.
  • expired - The Capacity Reservation expired automatically at the date and time specified in your request. The reserved capacity is no longer available for your use.
  • cancelled - The Capacity Reservation was cancelled. The reserved capacity is no longer available for your use.
  • pending - The Capacity Reservation request was successful but the capacity provisioning is still pending.
  • failed - The Capacity Reservation request has failed. A request might fail due to invalid request parameters, capacity constraints, or instance limit constraints. Failed requests are retained for 60 minutes.

capacityReservation_tags :: Lens' CapacityReservation (Maybe [Tag]) Source #

Any tags assigned to the Capacity Reservation.

capacityReservation_tenancy :: Lens' CapacityReservation (Maybe CapacityReservationTenancy) Source #

Indicates the tenancy of the Capacity Reservation. A Capacity Reservation can have one of the following tenancy settings:

  • default - The Capacity Reservation is created on hardware that is shared with other Amazon Web Services accounts.
  • dedicated - The Capacity Reservation is created on single-tenant hardware that is dedicated to a single Amazon Web Services account.

capacityReservation_totalInstanceCount :: Lens' CapacityReservation (Maybe Int) Source #

The total number of instances for which the Capacity Reservation reserves capacity.