ec2_modify_capacity_reservation {aws.ecx} | R Documentation |
Modify Capacity Reservation
Description
Modifies a Capacity Reservation\'s capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation\'s instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.
Usage
ec2_modify_capacity_reservation(
CapacityReservationId,
InstanceCount = NULL,
EndDate = NULL,
EndDateType = NULL,
Accept = NULL,
DryRun = NULL,
simplify = TRUE,
others = list(),
print_on_error = aws_get_print_on_error(),
retry_time = aws_get_retry_time(),
network_timeout = aws_get_network_timeout(),
region = aws_get_region()
)
Arguments
CapacityReservationId |
Character. The ID of the Capacity Reservation. |
InstanceCount |
Integer. The number of instances for which to reserve capacity.[optional] |
EndDate |
Character. The date and time at which the Capacity Reservation expires.[optional] |
EndDateType |
Character. Indicates the way in which the Capacity Reservation ends.[optional] |
Accept |
Logical. Reserved. Capacity Reservations you have created are accepted by default.[optional] |
DryRun |
Logical. Checks whether you have the required permissions for the action, without actually making the request,...[optional] |
simplify |
Logical. Whether to simplify the result and handle |
others |
Named list. The parameters that are not included in the function parameters and need to be added into the request[optional] |
print_on_error |
Logical. Whether to show an error message when a network error occurs. |
retry_time |
Integer. Number of retries for a REST request when encounter the
network issue. If the request has been sent |
network_timeout |
Numeric. Number of seconds to wait for a REST response until giving up. Can not be less than 1 ms. |
region |
Character. The region of the AWS service. |
Value
A list object or a character vector
CapacityReservationId
The ID of the Capacity Reservation.
InstanceCount
The number of instances for which to reserve capacity.
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.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
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. Do not provide anEndDate
value ifEndDateType
isunlimited
. -
limited
- The Capacity Reservation expires automatically at a specified date and time. You must provide anEndDate
value ifEndDateType
islimited
.
Accept
Reserved. Capacity Reservations you have created are accepted by default.
DryRun
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
.