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.
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()
)
Character. The ID of the Capacity Reservation.
Integer. The number of instances for which to reserve capacity.[optional]
Character. The date and time at which the Capacity Reservation expires.[optional]
Character. Indicates the way in which the Capacity Reservation ends.[optional]
Logical. Reserved. Capacity Reservations you have created are accepted by default.[optional]
Logical. Checks whether you have the required permissions for the action, without actually making the request,...[optional]
Logical. Whether to simplify the result and handle nextToken
in the response[optional]
Named list. The parameters that are not included in the function parameters and need to be added into the request[optional]
Logical. Whether to show an error message when a network error occurs.
Integer. Number of retries for a REST request when encounter the
network issue. If the request has been sent retry_time
times but still not
be able to get the response, an error will be thrown.
Numeric. Number of seconds to wait for a REST response until giving up. Can not be less than 1 ms.
Character. The region of the AWS service.
A list object or a character vector
The ID of the Capacity Reservation.
The number of instances for which to reserve capacity.
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
.
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 an EndDate
value if
EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a
specified date and time. You must provide an EndDate
value if
EndDateType
is limited
.
Reserved. Capacity Reservations you have created are accepted by default.
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
.