EC2 / Client / restore_managed_prefix_list_version

restore_managed_prefix_list_version#

EC2.Client.restore_managed_prefix_list_version(**kwargs)#

Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.

See also: AWS API Documentation

Request Syntax

response = client.restore_managed_prefix_list_version(
    DryRun=True|False,
    PrefixListId='string',
    PreviousVersion=123,
    CurrentVersion=123
)
Parameters:
  • DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • PrefixListId (string) –

    [REQUIRED]

    The ID of the prefix list.

  • PreviousVersion (integer) –

    [REQUIRED]

    The version to restore.

  • CurrentVersion (integer) –

    [REQUIRED]

    The current version number for the prefix list.

Return type:

dict

Returns:

Response Syntax

{
    'PrefixList': {
        'PrefixListId': 'string',
        'AddressFamily': 'string',
        'State': 'create-in-progress'|'create-complete'|'create-failed'|'modify-in-progress'|'modify-complete'|'modify-failed'|'restore-in-progress'|'restore-complete'|'restore-failed'|'delete-in-progress'|'delete-complete'|'delete-failed',
        'StateMessage': 'string',
        'PrefixListArn': 'string',
        'PrefixListName': 'string',
        'MaxEntries': 123,
        'Version': 123,
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ],
        'OwnerId': 'string'
    }
}

Response Structure

  • (dict) –

    • PrefixList (dict) –

      Information about the prefix list.

      • PrefixListId (string) –

        The ID of the prefix list.

      • AddressFamily (string) –

        The IP address version.

      • State (string) –

        The current state of the prefix list.

      • StateMessage (string) –

        The state message.

      • PrefixListArn (string) –

        The Amazon Resource Name (ARN) for the prefix list.

      • PrefixListName (string) –

        The name of the prefix list.

      • MaxEntries (integer) –

        The maximum number of entries for the prefix list.

      • Version (integer) –

        The version of the prefix list.

      • Tags (list) –

        The tags for the prefix list.

        • (dict) –

          Describes a tag.

          • Key (string) –

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) –

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

      • OwnerId (string) –

        The ID of the owner of the prefix list.