blocking_instances_for_capacity_tasks
Creates, updates, deletes, gets or lists a blocking_instances_for_capacity_tasks resource.
Overview
| Name | blocking_instances_for_capacity_tasks |
| Type | Resource |
| Id | aws.outposts.blocking_instances_for_capacity_tasks |
Fields
The following fields are returned by SELECT queries:
- list_blocking_instances_for_capacity_task
| Name | Datatype | Description |
|---|---|---|
account_id | string | The ID of the Amazon Web Services account. (pattern: <code>\d{12}</code>) |
aws_service_name | string | The Amazon Web Services service name that owns the specified blocking instance. (AWS, EC2, EKS, ELASTICACHE, ELB, RDS, ROUTE53) |
instance_id | string | The ID of the blocking instance. (pattern: <code>^i-[0-9a-z]+$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_blocking_instances_for_capacity_task | select | outpost_id, capacity_task_id, region | MaxResults, NextToken | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
capacity_task_id | string | The ID of the capacity task. |
outpost_id | string | The ID or ARN of the Outpost associated with the specified capacity task. |
region | string | AWS region (default: us-east-1) |
MaxResults | integer | |
NextToken | string |
SELECT examples
- list_blocking_instances_for_capacity_task
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 }}'
;