ResilienceHubV2 / Client / list_dependencies

list_dependencies

ResilienceHubV2.Client.list_dependencies(**kwargs)

Lists dependencies discovered for services.

See also: AWS API Documentation

Request Syntax

response = client.list_dependencies(
    serviceArn='string',
    queryRangeStartTime=datetime(2015, 1, 1),
    queryRangeEndTime=datetime(2015, 1, 1),
    queryRangeGranularity='HOURLY'|'DAILY',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • serviceArn (string) – ARN identifier.

  • queryRangeStartTime (datetime) – The start time for the dependency query range.

  • queryRangeEndTime (datetime) – The end time for the dependency query range.

  • queryRangeGranularity (string) – The granularity for the dependency query range.

  • maxResults (integer) – Pagination page size.

  • nextToken (string) – Pagination token.

Return type:

dict

Returns:

Response Syntax

{
    'dependencySummaries': [
        {
            'dependencyId': 'string',
            'serviceArn': 'string',
            'dependencyName': 'string',
            'dnsName': 'string',
            'location': 'string',
            'lastDetectedTime': datetime(2015, 1, 1),
            'sourceRegions': [
                'string',
            ],
            'provider': 'string',
            'queryRange': {
                'startTime': datetime(2015, 1, 1),
                'endTime': datetime(2015, 1, 1),
                'granularity': 'HOURLY'|'DAILY',
                'dataPoints': [
                    {
                        'timestamp': datetime(2015, 1, 1),
                        'queryCount': 123
                    },
                ]
            },
            'criticality': 'HARD'|'SOFT'|'UNKNOWN',
            'comment': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • dependencySummaries (list) –

      The list of dependency summaries.

      • (dict) –

        Contains summary information about a discovered dependency.

        • dependencyId (string) –

          The unique identifier of the dependency.

        • serviceArn (string) –

          ARN identifier.

        • dependencyName (string) –

          The name of the dependency.

        • dnsName (string) –

          The DNS name associated with the dependency.

        • location (string) –

          The location of the dependency.

        • lastDetectedTime (datetime) –

          The timestamp when the dependency was last detected.

        • sourceRegions (list) –

          The source Regions from which the dependency was detected.

          • (string) –

        • provider (string) –

          The provider of the dependency.

        • queryRange (dict) –

          The query range data for the dependency.

          • startTime (datetime) –

            The start time of the query range.

          • endTime (datetime) –

            The end time of the query range.

          • granularity (string) –

            The granularity of the query range data points.

          • dataPoints (list) –

            The data points within the query range.

            • (dict) –

              A data point in a dependency query range.

              • timestamp (datetime) –

                The timestamp of the data point.

              • queryCount (integer) –

                The number of queries at this data point.

        • criticality (string) –

          The criticality level of the dependency.

        • comment (string) –

          A user-provided comment about the dependency.

    • nextToken (string) –

      Pagination token.

Exceptions

  • ResilienceHubV2.Client.exceptions.InternalServerException

  • ResilienceHubV2.Client.exceptions.ResourceNotFoundException

  • ResilienceHubV2.Client.exceptions.ValidationException

  • ResilienceHubV2.Client.exceptions.AccessDeniedException