get_core_network_policy

NetworkManager.Client.get_core_network_policy(**kwargs)

Returns details about a core network policy. You can get details about your current live policy or any previous policy version.

See also: AWS API Documentation

Request Syntax

response = client.get_core_network_policy(
    CoreNetworkId='string',
    PolicyVersionId=123,
    Alias='LIVE'|'LATEST'
)
Parameters
  • CoreNetworkId (string) --

    [REQUIRED]

    The ID of a core network.

  • PolicyVersionId (integer) -- The ID of a core network policy version.
  • Alias (string) -- The alias of a core network policy
Return type

dict

Returns

Response Syntax

{
    'CoreNetworkPolicy': {
        'CoreNetworkId': 'string',
        'PolicyVersionId': 123,
        'Alias': 'LIVE'|'LATEST',
        'Description': 'string',
        'CreatedAt': datetime(2015, 1, 1),
        'ChangeSetState': 'PENDING_GENERATION'|'FAILED_GENERATION'|'READY_TO_EXECUTE'|'EXECUTING'|'EXECUTION_SUCCEEDED'|'OUT_OF_DATE',
        'PolicyErrors': [
            {
                'ErrorCode': 'string',
                'Message': 'string',
                'Path': 'string'
            },
        ],
        'PolicyDocument': 'string'
    }
}

Response Structure

  • (dict) --

    • CoreNetworkPolicy (dict) --

      The details about a core network policy.

      • CoreNetworkId (string) --

        The ID of a core network.

      • PolicyVersionId (integer) --

        The ID of the policy version.

      • Alias (string) --

        Whether a core network policy is the current LIVE policy or the most recently submitted policy.

      • Description (string) --

        The description of a core network policy.

      • CreatedAt (datetime) --

        The timestamp when a core network policy was created.

      • ChangeSetState (string) --

        The state of a core network policy.

      • PolicyErrors (list) --

        Describes any errors in a core network policy.

        • (dict) --

          Provides details about an error in a core network policy.

          • ErrorCode (string) --

            The error code associated with a core network policy error.

          • Message (string) --

            The message associated with a core network policy error code.

          • Path (string) --

            The JSON path where the error was discovered in the policy document.

      • PolicyDocument (string) --

        Describes a core network policy.

Exceptions

  • NetworkManager.Client.exceptions.ValidationException
  • NetworkManager.Client.exceptions.AccessDeniedException
  • NetworkManager.Client.exceptions.ResourceNotFoundException
  • NetworkManager.Client.exceptions.ThrottlingException
  • NetworkManager.Client.exceptions.InternalServerException