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

Description Usage Arguments Request syntax

View source: R/ec2_operations.R

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.

Usage

1
2
ec2_modify_instance_capacity_reservation_attributes(InstanceId,
  CapacityReservationSpecification, DryRun)

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.

Request syntax

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
svc$modify_instance_capacity_reservation_attributes(
  InstanceId = "string",
  CapacityReservationSpecification = list(
    CapacityReservationPreference = "open"|"none",
    CapacityReservationTarget = list(
      CapacityReservationId = "string",
      CapacityReservationResourceGroupArn = "string"
    )
  ),
  DryRun = TRUE|FALSE
)

paws.compute documentation built on Jan. 17, 2021, 1:06 a.m.