Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data CapacityReservation = CapacityReservation' {
- availabilityZone :: Maybe Text
- availabilityZoneId :: Maybe Text
- availableInstanceCount :: Maybe Int
- capacityAllocations :: Maybe [CapacityAllocation]
- capacityReservationArn :: Maybe Text
- capacityReservationFleetId :: Maybe Text
- capacityReservationId :: Maybe Text
- createDate :: Maybe ISO8601
- ebsOptimized :: Maybe Bool
- endDate :: Maybe ISO8601
- endDateType :: Maybe EndDateType
- ephemeralStorage :: Maybe Bool
- instanceMatchCriteria :: Maybe InstanceMatchCriteria
- instancePlatform :: Maybe CapacityReservationInstancePlatform
- instanceType :: Maybe Text
- outpostArn :: Maybe Text
- ownerId :: Maybe Text
- placementGroupArn :: Maybe Text
- startDate :: Maybe ISO8601
- state :: Maybe CapacityReservationState
- tags :: Maybe [Tag]
- tenancy :: Maybe CapacityReservationTenancy
- totalInstanceCount :: Maybe Int
- newCapacityReservation :: CapacityReservation
- capacityReservation_availabilityZone :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_availabilityZoneId :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_availableInstanceCount :: Lens' CapacityReservation (Maybe Int)
- capacityReservation_capacityAllocations :: Lens' CapacityReservation (Maybe [CapacityAllocation])
- capacityReservation_capacityReservationArn :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_capacityReservationFleetId :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_capacityReservationId :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_createDate :: Lens' CapacityReservation (Maybe UTCTime)
- capacityReservation_ebsOptimized :: Lens' CapacityReservation (Maybe Bool)
- capacityReservation_endDate :: Lens' CapacityReservation (Maybe UTCTime)
- capacityReservation_endDateType :: Lens' CapacityReservation (Maybe EndDateType)
- capacityReservation_ephemeralStorage :: Lens' CapacityReservation (Maybe Bool)
- capacityReservation_instanceMatchCriteria :: Lens' CapacityReservation (Maybe InstanceMatchCriteria)
- capacityReservation_instancePlatform :: Lens' CapacityReservation (Maybe CapacityReservationInstancePlatform)
- capacityReservation_instanceType :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_outpostArn :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_ownerId :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_placementGroupArn :: Lens' CapacityReservation (Maybe Text)
- capacityReservation_startDate :: Lens' CapacityReservation (Maybe UTCTime)
- capacityReservation_state :: Lens' CapacityReservation (Maybe CapacityReservationState)
- capacityReservation_tags :: Lens' CapacityReservation (Maybe [Tag])
- capacityReservation_tenancy :: Lens' CapacityReservation (Maybe CapacityReservationTenancy)
- capacityReservation_totalInstanceCount :: Lens' CapacityReservation (Maybe Int)
Documentation
data CapacityReservation Source #
Describes a Capacity Reservation.
See: newCapacityReservation
smart constructor.
CapacityReservation' | |
|
Instances
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_capacityAllocations :: Lens' CapacityReservation (Maybe [CapacityAllocation]) Source #
Information about instance capacity usage.
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_capacityReservationId :: Lens' CapacityReservation (Maybe Text) Source #
The ID of the Capacity Reservation.
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_ephemeralStorage :: Lens' CapacityReservation (Maybe Bool) Source #
Deprecated.
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.