ResilienceHubV2 / Client / list_resolved_test_run_target_resources

list_resolved_test_run_target_resources

ResilienceHubV2.Client.list_resolved_test_run_target_resources(**kwargs)

Lists the AWS resources that AWS Fault Injection Service (AWS FIS) resolved as targets for a test run.

See also: AWS API Documentation

Request Syntax

response = client.list_resolved_test_run_target_resources(
    testRunId='string',
    serviceArn='string',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • testRunId (string) –

    [REQUIRED]

    The identifier of the test run to list resolved target resources for.

  • serviceArn (string) –

    [REQUIRED]

    The ARN of the service the test run belongs to.

  • maxResults (integer) – Pagination page size.

  • nextToken (string) – Pagination token.

Return type:

dict

Returns:

Response Syntax

{
    'resolvedTargetResources': [
        {
            'resourceType': 'string',
            'targetName': 'string',
            'targetInformation': {
                'string': 'string'
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • resolvedTargetResources (list) –

      The list of resolved target resources.

      • (dict) –

        A single AWS resource that AWS Fault Injection Service (AWS FIS) resolved as a target during a test run.

        • resourceType (string) –

          The AWS FIS resource type the target belongs to, such as aws:ec2:instance, aws:ecs:task, or aws:eks:pod.

        • targetName (string) –

          The name of the target in the AWS FIS experiment template.

        • targetInformation (dict) –

          The raw target information map as returned by AWS FIS.

          • (string) –

            The key of a resolved target information entry.

            • (string) –

              The value of a resolved target information entry.

    • nextToken (string) –

      Pagination token.

Exceptions

  • ResilienceHubV2.Client.exceptions.InternalServerException

  • ResilienceHubV2.Client.exceptions.ResourceNotFoundException

  • ResilienceHubV2.Client.exceptions.ValidationException

  • ResilienceHubV2.Client.exceptions.AccessDeniedException