aws ec2 modify-instance-capacity-reservation-attributes
Modifies the Capacity Reservation settings for a stopped instance. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--capacity-reservation-specificationInformation about the Capacity Reservation targeting option.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--instance-idThe ID of the instance to be modified.