Skip to main content

capacity_reservation

Gets an individual capacity_reservation resource

Overview

Namecapacity_reservation
TypeResource
Descriptioncapacity_reservation
Idawscc.ec2.capacity_reservation

Fields

NameDatatypeDescription
tenancystring
end_date_typestring
tag_specificationsarray
availability_zonestring
total_instance_countinteger
end_datestring
ebs_optimizedboolean
out_post_arnstring
instance_countinteger
placement_group_arnstring
available_instance_countinteger
instance_platformstring
idstring
instance_typestring
ephemeral_storageboolean
instance_match_criteriastring
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
tenancy,
end_date_type,
tag_specifications,
availability_zone,
total_instance_count,
end_date,
ebs_optimized,
out_post_arn,
instance_count,
placement_group_arn,
available_instance_count,
instance_platform,
id,
instance_type,
ephemeral_storage,
instance_match_criteria
FROM awscc.ec2.capacity_reservation
WHERE data__Identifier = '<Id>';

Permissions

To operate on the capacity_reservation resource, the following permissions are required:

Delete

ec2:CreateCapacityReservation,
ec2:DescribeCapacityReservations,
ec2:CancelCapacityReservation,
ec2:DeleteTags

Read

ec2:DescribeCapacityReservations

Update

ec2:ModifyCapacityReservation,
ec2:CreateCapacityReservation,
ec2:DescribeCapacityReservations,
ec2:CancelCapacityReservation,
ec2:CreateTags,
ec2:DeleteTags