Continuum / Client / update_supply_chain_policy_exception

update_supply_chain_policy_exception

Continuum.Client.update_supply_chain_policy_exception(**kwargs)

Replaces the mutable fields of an active policy exception: the rules it suppresses, the package it applies to, the justification, and the expiry time. The name and the referenced policy can’t be changed, and an expired exception can’t be updated. The exception’s ID, ARN, and tags don’t change.

See also: AWS API Documentation

Request Syntax

response = client.update_supply_chain_policy_exception(
    id='string',
    exception={
        'name': 'string',
        'policyArn': 'string',
        'ruleIds': [
            'string',
        ],
        'package': {
            'ecosystem': 'string',
            'name': 'string',
            'version': 'string',
            'versionRange': 'string'
        },
        'justification': 'string',
        'expiresAt': datetime(2015, 1, 1)
    }
)
Parameters:
  • id (string) –

    [REQUIRED]

    The ID of the policy exception to update.

  • exception (dict) –

    [REQUIRED]

    The updated policy exception. The name and policyArn must match the existing exception.

    • name (string) – [REQUIRED]

      Customer-chosen display name.

    • policyArn (string) – [REQUIRED]

      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) – [REQUIRED]

      The IDs of the rules in that policy to suppress.

      • (string) –

        The ID of a rule within a policy.

    • package (dict) – [REQUIRED]

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

      • ecosystem (string) – [REQUIRED]

        The package ecosystem, such as npm or pypi.

      • name (string) – [REQUIRED]

        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) – [REQUIRED]

      Why the exception is needed.

    • expiresAt (datetime) – [REQUIRED]

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

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)
}

Response Structure

  • (dict) –

    Output for UpdateSupplyChainPolicyException.

    • id (string) –

      The ID of the policy exception.

    • arn (string) –

      The ARN of the policy exception.

    • exception (dict) –

      The policy exception as stored after the update.

      • 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 of this update.

Exceptions