ec2_modify_instance_capacity_reservation_attributes: Modifies the Capacity Reservation settings for a stopped...

View source: R/ec2_operations.R

ec2_modify_instance_capacity_reservation_attributesR Documentation

Modifies the Capacity Reservation settings for a stopped instance

Description

Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity.

See https://www.paws-r-sdk.com/docs/ec2_modify_instance_capacity_reservation_attributes/ for full documentation.

Usage

ec2_modify_instance_capacity_reservation_attributes(
  InstanceId,
  CapacityReservationSpecification,
  DryRun = NULL
)

Arguments

InstanceId

[required] The ID of the instance to be modified.

CapacityReservationSpecification

[required] Information about the Capacity Reservation targeting option.

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.


paws.compute documentation built on Sept. 12, 2023, 1:28 a.m.