Outposts / Client / list_blocking_instances_for_capacity_task
list_blocking_instances_for_capacity_task#
- Outposts.Client.list_blocking_instances_for_capacity_task(**kwargs)#
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.
See also: AWS API Documentation
Request Syntax
response = client.list_blocking_instances_for_capacity_task( OutpostIdentifier='string', CapacityTaskId='string', MaxResults=123, NextToken='string' )
- Parameters:
OutpostIdentifier (string) –
[REQUIRED]
The ID or ARN of the Outpost associated with the specified capacity task.
CapacityTaskId (string) –
[REQUIRED]
The ID of the capacity task.
MaxResults (integer) – The maximum page size.
NextToken (string) – The pagination token.
- Return type:
dict
- Returns:
Response Syntax
{ 'BlockingInstances': [ { 'InstanceId': 'string', 'AccountId': 'string', 'AwsServiceName': 'AWS'|'EC2'|'ELASTICACHE'|'ELB'|'RDS'|'ROUTE53' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
BlockingInstances (list) –
A list of all running Amazon EC2 instances on the Outpost. Stopping one or more of these instances can free up the capacity needed to run the capacity task.
(dict) –
A running Amazon EC2 instance that can be stopped to free up capacity needed to run the capacity task.
InstanceId (string) –
The ID of the blocking instance.
AccountId (string) –
The ID of the Amazon Web Services account.
AwsServiceName (string) –
The Amazon Web Services service name that owns the specified blocking instance.
NextToken (string) –
The pagination token.
Exceptions
Outposts.Client.exceptions.ValidationException
Outposts.Client.exceptions.AccessDeniedException
Outposts.Client.exceptions.NotFoundException
Outposts.Client.exceptions.InternalServerException