Continuum / Client / get_supply_chain_policy_exception

get_supply_chain_policy_exception

Continuum.Client.get_supply_chain_policy_exception(**kwargs)

Returns one policy exception owned by the calling account, with its status computed from expiresAt. The path identifier is the opaque ID returned by CreateSupplyChainPolicyException.

See also: AWS API Documentation

Request Syntax

response = client.get_supply_chain_policy_exception(
    id='string'
)
Parameters:

id (string) –

[REQUIRED]

The ID of the policy exception.

Return type:

dict

Returns:

Response Syntax

{
    'id': 'string',
    'arn': 'string',
    'exception': {
        'name': 'string',
        'policyArn': 'string',
        'ruleIds': [
            'string',
        ],
        'package': {
            'ecosystem': 'string',
            'name': 'string',
            'version': 'string',
            'versionRange': 'string'
        },
        'justification': 'string',
        'expiresAt': datetime(2015, 1, 1)
    },
    'status': 'ACTIVE'|'EXPIRED',
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    Output for GetSupplyChainPolicyException.

    • id (string) –

      The ID of the policy exception.

    • arn (string) –

      The ARN of the policy exception.

    • exception (dict) –

      The definition of the policy exception.

      • name (string) –

        Customer-chosen display name.

      • policyArn (string) –

        The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.

      • ruleIds (list) –

        The IDs of the rules in that policy to suppress.

        • (string) –

          The ID of a rule within a policy.

      • package (dict) –

        The package that the exception applies to. Rules are suppressed only for packages that match this identity.

        • ecosystem (string) –

          The package ecosystem, such as npm or pypi.

        • name (string) –

          The package name, as used in its ecosystem.

        • version (string) –

          Exact version. Mutually exclusive with versionRange, validated server-side.

        • versionRange (string) –

          A version range as one or more comparisons separated by commas, such as >=1.0, <2.0. Each comparison is =, >, >=, <, or <= followed by a version in the ecosystem’s own format. Ecosystem shorthands such as ^1.0 or ~=1.2 aren’t accepted. Mutually exclusive with version.

      • justification (string) –

        Why the exception is needed.

      • expiresAt (datetime) –

        Must be in the future and no later than 365 days after the exception was originally created.

    • status (string) –

      Computed from expiresAt at read time.

    • createdAt (datetime) –

      The time the policy exception was created.

    • updatedAt (datetime) –

      The time the policy exception was last updated.

    • tags (dict) –

      The tags on the policy exception.

      • (string) –

        The key of a tag.

        • (string) –

          The value of a tag.

Exceptions