list_gateway_instances
async
¶
list_gateway_instances(
*,
config_overrides: Optional[AsyncMediaConnectClientConfig] = None,
filter_arn: Optional[str] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[str] = None,
) -> ListGatewayInstancesResponse
Displays a list of instances associated with the Amazon Web Services account. This request returns a paginated result. You can use the filterArn property to display only the instances associated with the selected Gateway Amazon Resource Name (ARN).
Parameters:
-
filter_arn(Optional[str], default:None) –Filter the list results to display only the instances associated with the selected Gateway ARN.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return per API request.
For example, you submit a ListInstances request with
MaxResultsset at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns aNextTokenvalue that you can use to fetch the next batch of results.)The service might return fewer results than the
MaxResultsvalue. IfMaxResultsis not included in the request, the service defaults to pagination with a maximum of 10 results per page. -
next_token(Optional[str], default:None) –The token that identifies the batch of results that you want to see.
For example, you submit a
ListInstancesrequest withMaxResultsset at 5. The service returns the first batch of results (up to 5) and aNextTokenvalue. To see the next batch of results, you can submit theListInstancesrequest a second time and specify theNextTokenvalue.
Raises:
-
BadRequestException–This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
InternalServerErrorException–The server encountered an internal error and is unable to complete the request.
-
ServiceUnavailableException–The service is currently unavailable or busy.
-
TooManyRequestsException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.