Skip to main content

blocking_instances_for_capacity_tasks

Creates, updates, deletes, gets or lists a blocking_instances_for_capacity_tasks resource.

Overview

Nameblocking_instances_for_capacity_tasks
TypeResource
Idaws.outposts.blocking_instances_for_capacity_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe ID of the Amazon Web Services account. (pattern: <code>\d{12}</code>)
aws_service_namestringThe Amazon Web Services service name that owns the specified blocking instance. (AWS, EC2, EKS, ELASTICACHE, ELB, RDS, ROUTE53)
instance_idstringThe ID of the blocking instance. (pattern: <code>^i-[0-9a-z]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_blocking_instances_for_capacity_taskselectoutpost_id, capacity_task_id, regionMaxResults, NextTokenA list of Amazon EC2 instances running on the Outpost and belonging to the account that initiated the capacity task. Use this list to specify the instances you cannot stop to free up capacity to run the capacity task.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
capacity_task_idstringThe ID of the capacity task.
outpost_idstringThe ID or ARN of the Outpost associated with the specified capacity task.
regionstringAWS region (default: us-east-1)
MaxResultsinteger
NextTokenstring

SELECT examples

A list of Amazon EC2 instances running on the Outpost and belonging to the account that initiated the capacity task. Use this list to specify the instances you cannot stop to free up capacity to run the capacity task.

SELECT
account_id,
aws_service_name,
instance_id
FROM aws.outposts.blocking_instances_for_capacity_tasks
WHERE outpost_id = '{{ outpost_id }}' -- required
AND capacity_task_id = '{{ capacity_task_id }}' -- required
AND region = '{{ region }}' -- required
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;