capacity_reservations
Used to retrieve a list of capacity_reservations
in a region or create a capacity_reservations
resource, use capacity_reservation
to operate on an individual resource.
Overview
Name | capacity_reservations |
Type | Resource |
Description | Resource Type definition for AWS::EC2::CapacityReservation |
Id | aws.ec2.capacity_reservations |
Fields
Name | Datatype | Description |
---|---|---|
id | string | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | data__DesiredState, region |
list_resource | SELECT | region |
SELECT
Example
SELECT
region,
id
FROM aws.ec2.capacity_reservations
WHERE region = 'us-east-1'
Permissions
To operate on the capacity_reservations
resource, the following permissions are required:
Create
ec2:CreateCapacityReservation,
ec2:DescribeCapacityReservations,
ec2:CancelCapacityReservation,
ec2:CreateTags
List
ec2:DescribeCapacityReservations