ResilienceHubV2 / Client / list_policies

list_policies

ResilienceHubV2.Client.list_policies(**kwargs)

Lists resilience policies.

See also: AWS API Documentation

Request Syntax

response = client.list_policies(
    maxResults=123,
    nextToken='string'
)
Parameters:
  • maxResults (integer) – Pagination page size.

  • nextToken (string) – Pagination token.

Return type:

dict

Returns:

Response Syntax

{
    'policySummaries': [
        {
            'policyArn': 'string',
            'name': 'string',
            'availabilitySlo': {
                'target': 123.0
            },
            'multiAz': {
                'rtoInMinutes': 123,
                'rpoInMinutes': 123,
                'disasterRecoveryApproach': 'ACTIVE_ACTIVE'|'HOT_STANDBY'|'WARM_STANDBY'|'PILOT_LIGHT'|'BACKUP_AND_RESTORE'
            },
            'multiRegion': {
                'rtoInMinutes': 123,
                'rpoInMinutes': 123,
                'disasterRecoveryApproach': 'ACTIVE_ACTIVE'|'HOT_STANDBY'|'WARM_STANDBY'|'PILOT_LIGHT'|'BACKUP_AND_RESTORE'
            },
            'dataRecovery': {
                'timeBetweenBackupsInMinutes': 123
            },
            'associatedServiceCount': 123,
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • policySummaries (list) –

      The list of policy summaries.

      • (dict) –

        Contains summary information about a resilience policy.

        • policyArn (string) –

          ARN identifier.

        • name (string) –

          Resource name (used in ARN — no spaces allowed).

        • availabilitySlo (dict) –

          The availability SLO defined in the policy.

          • target (float) –

            The target availability percentage, expressed as a value between 0 and 100.

        • multiAz (dict) –

          The multi-AZ disaster recovery targets defined in the policy.

          • rtoInMinutes (integer) –

            The recovery time objective (RTO) target for multi-AZ, in minutes.

          • rpoInMinutes (integer) –

            The recovery point objective (RPO) target for multi-AZ, in minutes.

          • disasterRecoveryApproach (string) –

            The disaster recovery approach for multi-AZ.

        • multiRegion (dict) –

          The multi-Region disaster recovery targets defined in the policy.

          • rtoInMinutes (integer) –

            The recovery time objective (RTO) target for multi-Region, in minutes.

          • rpoInMinutes (integer) –

            The recovery point objective (RPO) target for multi-Region, in minutes.

          • disasterRecoveryApproach (string) –

            The disaster recovery approach for multi-Region.

        • dataRecovery (dict) –

          The data recovery targets defined in the policy.

          • timeBetweenBackupsInMinutes (integer) –

            The target time between backups, in minutes.

        • associatedServiceCount (integer) –

          The number of services associated with this policy.

        • createdAt (datetime) –

          The timestamp when the policy was created.

        • updatedAt (datetime) –

          The timestamp when the policy was last updated.

    • nextToken (string) –

      Pagination token.

Exceptions

  • ResilienceHubV2.Client.exceptions.InternalServerException

  • ResilienceHubV2.Client.exceptions.ValidationException

  • ResilienceHubV2.Client.exceptions.AccessDeniedException