AWS Continuum

2026/12/01 - AWS Continuum - 19 new11 updated api methods

Changes  Adds Continuum for Software Supply Chain APIs to check open source packages against known malicious packages and your own policies, and to manage those policies and their exceptions.

GetSupplyChainPolicy (new) Link ¶

Returns one policy owned by the calling account. The path identifier is the opaque ID returned by CreateSupplyChainPolicy.

See also: AWS API Documentation

Request Syntax

client.get_supply_chain_policy(
    id='string'
)
type id:

string

param id:

[REQUIRED]

The ID of the policy.

rtype:

dict

returns:

Response Syntax

{
    'id': 'string',
    'arn': 'string',
    'policy': {
        'name': 'string',
        'description': 'string',
        'rules': [
            {
                'ruleId': 'string',
                'enforcementMode': 'AUDIT'|'ENFORCE',
                'denyWhen': {
                    'allOf': [
                        {
                            'signal': 'PACKAGE_IDENTITY'|'INSPECTOR_SEVERITY'|'KEV'|'MALICIOUS',
                            'operator': 'MATCHES'|'AT_LEAST'|'EQUALS'|'NOT_EQUALS'|'IN'|'PRESENT',
                            'value': {
                                'packageIdentity': {
                                    'ecosystem': 'string',
                                    'name': 'string',
                                    'version': 'string',
                                    'versionRange': 'string'
                                },
                                'severity': 'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'UNTRIAGED',
                                'stringValue': 'string',
                                'stringSet': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    },
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    Output for GetSupplyChainPolicy.

    • id (string) --

      The ID of the policy.

    • arn (string) --

      The ARN of the policy.

    • policy (dict) --

      The name, description, and rules of the policy.

      • name (string) --

        The display name of the policy.

      • description (string) --

        A description of the policy.

      • rules (list) --

        The deny rules of the policy, from 1 to 5.

        • (dict) --

          A single deny rule. The rule matches a package when all of its conditions are true. When several rules match, the strongest enforcement mode wins.

          • ruleId (string) --

            The identifier of the rule, unique within the policy. Policy exceptions and decision evidence refer to rules by this ID.

          • enforcementMode (string) --

            What happens when the rule matches. ENFORCE denies the package. AUDIT records the match and allows the package.

          • denyWhen (dict) --

            The conditions that must all be true for the rule to match.

            • allOf (list) --

              The conditions, from 1 to 20. All of them must be true for the rule to match.

              • (dict) --

                A single condition: a signal, an operator, and a value. The service checks that the operator and value are valid for the signal when the policy is created or updated.

                • signal (string) --

                  The package attribute that the condition tests.

                • operator (string) --

                  How the signal is compared with the value.

                • value (dict) --

                  The value to compare the signal with. Omit it for the PRESENT operator, which takes no value.

                  • packageIdentity (dict) --

                    The package to match, for the PACKAGE_IDENTITY signal.

                    • 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.

                  • severity (string) --

                    An Amazon Inspector severity, for the INSPECTOR_SEVERITY signal.

                  • stringValue (string) --

                    A single value, for the EQUALS and NOT_EQUALS operators.

                  • stringSet (list) --

                    A set of up to 20 values, for the IN operator.

                    • (string) --

                      A condition value, from 1 to 256 characters.

    • createdAt (datetime) --

      The time the policy was created.

    • updatedAt (datetime) --

      The time the policy was last updated.

    • tags (dict) --

      The tags on the policy.

      • (string) --

        The key of a tag.

        • (string) --

          The value of a tag.

ListTagsForResource (new) Link ¶

Returns the tags on a Continuum resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    resourceArn='string'
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The ARN of the resource whose tags to return.

rtype:

dict

returns:

Response Syntax

{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • tags (dict) --

      The tags on the resource, as a map of tag keys to tag values.

      • (string) --

        The key of a tag.

        • (string) --

          The value of a tag.

TagResource (new) Link ¶

Adds tags to a Continuum resource, or changes the values of tags that it already has. Tags that the request doesn't name stay as they are.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The ARN of the resource to tag.

type tags:

dict

param tags:

[REQUIRED]

The tags to add, as a map of tag keys to tag values.

  • (string) --

    The key of a tag.

    • (string) --

      The value of a tag.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteSupplyChainPolicyException (new) Link ¶

Deletes a policy exception. Subsequent decisions no longer consider this exception.

See also: AWS API Documentation

Request Syntax

client.delete_supply_chain_policy_exception(
    id='string'
)
type id:

string

param id:

[REQUIRED]

The ID of the policy exception to delete.

returns:

None

ListPackageDecisions (new) Link ¶

Lists the package decisions made for the calling account, newest first by completedAt. Decisions are retained for 45 days.

See also: AWS API Documentation

Request Syntax

client.list_package_decisions(
    completedAfter=datetime(2015, 1, 1),
    completedBefore=datetime(2015, 1, 1),
    maxResults=123,
    nextToken='string'
)
type completedAfter:

datetime

param completedAfter:

Only return decisions completed at or after this time.

type completedBefore:

datetime

param completedBefore:

Only return decisions completed before this time.

type maxResults:

integer

param maxResults:

The maximum number of decisions to return, from 1 to 100.

type nextToken:

string

param nextToken:

The token returned by a previous call, to get the next page of decisions.

rtype:

dict

returns:

Response Syntax

{
    'decisions': [
        {
            'decisionId': 'string',
            'evaluatedAt': datetime(2015, 1, 1),
            'completedAt': datetime(2015, 1, 1),
            'canonicalPurl': 'string',
            'evaluatedAction': 'ALLOW'|'DENY',
            'enforcementAction': 'ALLOW'|'DENY',
            'enforcementMode': 'NONE'|'AUDIT'|'ENFORCE',
            'reason': 'NO_DENY_MATCH'|'MALICIOUS_PACKAGE'|'POLICY_RULE_MATCHED'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Output for ListPackageDecisions.

    • decisions (list) --

      The decisions, newest first.

      • (dict) --

        A package decision returned by ListPackageDecisions.

        • decisionId (string) --

          The ID of the decision.

        • evaluatedAt (datetime) --

          The time the package was evaluated. Policy exceptions are applied based on this time.

        • completedAt (datetime) --

          The time the decision was recorded.

        • canonicalPurl (string) --

          The package URL (purl) that was evaluated, as accepted by the service.

        • evaluatedAction (string) --

          The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.

        • enforcementAction (string) --

          The action the caller was told to take. It differs from evaluatedAction only when enforcementMode is AUDIT.

        • enforcementMode (string) --

          The strongest enforcement mode among matches that a policy exception didn't suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.

        • reason (string) --

          Why the decision was made.

    • nextToken (string) --

      The token to pass in the next call to get the next page of decisions. Absent when there are no more decisions.

ListSupplyChainPolicyExceptions (new) Link ¶

Lists policy exceptions owned by the calling account in the current Region.

See also: AWS API Documentation

Request Syntax

client.list_supply_chain_policy_exceptions(
    maxResults=123,
    nextToken='string'
)
type maxResults:

integer

param maxResults:

The maximum number of policy exceptions to return, from 1 to 100.

type nextToken:

string

param nextToken:

The token returned by a previous call, to get the next page of policy exceptions.

rtype:

dict

returns:

Response Syntax

{
    'exceptions': [
        {
            'id': 'string',
            'arn': 'string',
            'name': 'string',
            'policyArn': 'string',
            'ruleIds': [
                'string',
            ],
            'status': 'ACTIVE'|'EXPIRED',
            'expiresAt': datetime(2015, 1, 1),
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Output for ListSupplyChainPolicyExceptions.

    • exceptions (list) --

      The policy exceptions.

      • (dict) --

        Metadata returned by ListSupplyChainPolicyExceptions. Use GetSupplyChainPolicyException to retrieve package scope and justification.

        • id (string) --

          The ID of the policy exception.

        • arn (string) --

          The ARN of the policy exception.

        • name (string) --

          The display name of the policy exception.

        • policyArn (string) --

          The ARN of the policy that the exception applies to.

        • ruleIds (list) --

          The IDs of the rules that the exception suppresses.

          • (string) --

            The ID of a rule within a policy.

        • status (string) --

          Computed from expiresAt at read time.

        • expiresAt (datetime) --

          The time the policy exception expires.

        • createdAt (datetime) --

          The time the policy exception was created.

        • updatedAt (datetime) --

          The time the policy exception was last updated.

    • nextToken (string) --

      The token to pass in the next call to get the next page of policy exceptions. Absent when there are no more policy exceptions.

UpdateSupplyChainPolicyException (new) Link ¶

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

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)
    }
)
type id:

string

param id:

[REQUIRED]

The ID of the policy exception to update.

type exception:

dict

param exception:

[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.

rtype:

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.

CreateSupplyChainPolicy (new) Link ¶

Creates a Supply Chain policy in the calling account and Region. A policy holds up to five deny rules, which CreatePackageDecision evaluates for every package.

See also: AWS API Documentation

Request Syntax

client.create_supply_chain_policy(
    policy={
        'name': 'string',
        'description': 'string',
        'rules': [
            {
                'ruleId': 'string',
                'enforcementMode': 'AUDIT'|'ENFORCE',
                'denyWhen': {
                    'allOf': [
                        {
                            'signal': 'PACKAGE_IDENTITY'|'INSPECTOR_SEVERITY'|'KEV'|'MALICIOUS',
                            'operator': 'MATCHES'|'AT_LEAST'|'EQUALS'|'NOT_EQUALS'|'IN'|'PRESENT',
                            'value': {
                                'packageIdentity': {
                                    'ecosystem': 'string',
                                    'name': 'string',
                                    'version': 'string',
                                    'versionRange': 'string'
                                },
                                'severity': 'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'UNTRIAGED',
                                'stringValue': 'string',
                                'stringSet': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    },
    tags={
        'string': 'string'
    },
    clientToken='string'
)
type policy:

dict

param policy:

[REQUIRED]

The policy to create: its name, description, and rules.

  • name (string) -- [REQUIRED]

    The display name of the policy.

  • description (string) --

    A description of the policy.

  • rules (list) -- [REQUIRED]

    The deny rules of the policy, from 1 to 5.

    • (dict) --

      A single deny rule. The rule matches a package when all of its conditions are true. When several rules match, the strongest enforcement mode wins.

      • ruleId (string) -- [REQUIRED]

        The identifier of the rule, unique within the policy. Policy exceptions and decision evidence refer to rules by this ID.

      • enforcementMode (string) -- [REQUIRED]

        What happens when the rule matches. ENFORCE denies the package. AUDIT records the match and allows the package.

      • denyWhen (dict) -- [REQUIRED]

        The conditions that must all be true for the rule to match.

        • allOf (list) -- [REQUIRED]

          The conditions, from 1 to 20. All of them must be true for the rule to match.

          • (dict) --

            A single condition: a signal, an operator, and a value. The service checks that the operator and value are valid for the signal when the policy is created or updated.

            • signal (string) -- [REQUIRED]

              The package attribute that the condition tests.

            • operator (string) -- [REQUIRED]

              How the signal is compared with the value.

            • value (dict) --

              The value to compare the signal with. Omit it for the PRESENT operator, which takes no value.

              • packageIdentity (dict) --

                The package to match, for the PACKAGE_IDENTITY signal.

                • 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.

              • severity (string) --

                An Amazon Inspector severity, for the INSPECTOR_SEVERITY signal.

              • stringValue (string) --

                A single value, for the EQUALS and NOT_EQUALS operators.

              • stringSet (list) --

                A set of up to 20 values, for the IN operator.

                • (string) --

                  A condition value, from 1 to 256 characters.

type tags:

dict

param tags:

Tags to add to the policy when it's created.

  • (string) --

    The key of a tag.

    • (string) --

      The value of a tag.

type clientToken:

string

param clientToken:

Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same policy returns the policy it created. The same token with a different policy, or after that policy was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the policy's tags unchanged.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'id': 'string',
    'arn': 'string',
    'policy': {
        'name': 'string',
        'description': 'string',
        'rules': [
            {
                'ruleId': 'string',
                'enforcementMode': 'AUDIT'|'ENFORCE',
                'denyWhen': {
                    'allOf': [
                        {
                            'signal': 'PACKAGE_IDENTITY'|'INSPECTOR_SEVERITY'|'KEV'|'MALICIOUS',
                            'operator': 'MATCHES'|'AT_LEAST'|'EQUALS'|'NOT_EQUALS'|'IN'|'PRESENT',
                            'value': {
                                'packageIdentity': {
                                    'ecosystem': 'string',
                                    'name': 'string',
                                    'version': 'string',
                                    'versionRange': 'string'
                                },
                                'severity': 'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'UNTRIAGED',
                                'stringValue': 'string',
                                'stringSet': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    },
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    Output for CreateSupplyChainPolicy.

    • id (string) --

      Opaque identifier generated by the service.

    • arn (string) --

      The ARN of the policy.

    • policy (dict) --

      The policy as stored.

      • name (string) --

        The display name of the policy.

      • description (string) --

        A description of the policy.

      • rules (list) --

        The deny rules of the policy, from 1 to 5.

        • (dict) --

          A single deny rule. The rule matches a package when all of its conditions are true. When several rules match, the strongest enforcement mode wins.

          • ruleId (string) --

            The identifier of the rule, unique within the policy. Policy exceptions and decision evidence refer to rules by this ID.

          • enforcementMode (string) --

            What happens when the rule matches. ENFORCE denies the package. AUDIT records the match and allows the package.

          • denyWhen (dict) --

            The conditions that must all be true for the rule to match.

            • allOf (list) --

              The conditions, from 1 to 20. All of them must be true for the rule to match.

              • (dict) --

                A single condition: a signal, an operator, and a value. The service checks that the operator and value are valid for the signal when the policy is created or updated.

                • signal (string) --

                  The package attribute that the condition tests.

                • operator (string) --

                  How the signal is compared with the value.

                • value (dict) --

                  The value to compare the signal with. Omit it for the PRESENT operator, which takes no value.

                  • packageIdentity (dict) --

                    The package to match, for the PACKAGE_IDENTITY signal.

                    • 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.

                  • severity (string) --

                    An Amazon Inspector severity, for the INSPECTOR_SEVERITY signal.

                  • stringValue (string) --

                    A single value, for the EQUALS and NOT_EQUALS operators.

                  • stringSet (list) --

                    A set of up to 20 values, for the IN operator.

                    • (string) --

                      A condition value, from 1 to 256 characters.

    • createdAt (datetime) --

      The time the policy was created.

    • updatedAt (datetime) --

      The time the policy was last updated. Equal to createdAt for a new policy.

    • tags (dict) --

      The tags on the policy.

      • (string) --

        The key of a tag.

        • (string) --

          The value of a tag.

GetSupplyChainPolicyException (new) Link ¶

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

client.get_supply_chain_policy_exception(
    id='string'
)
type id:

string

param id:

[REQUIRED]

The ID of the policy exception.

rtype:

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.

ListSupplyChainPolicies (new) Link ¶

Lists customer-managed and service-managed policies visible to the calling account in the current Region.

See also: AWS API Documentation

Request Syntax

client.list_supply_chain_policies(
    policyType='CUSTOMER_MANAGED'|'SERVICE_MANAGED',
    maxResults=123,
    nextToken='string'
)
type policyType:

string

param policyType:

Filters the response by policy ownership. When omitted, both customer-managed and service-managed policies are returned.

type maxResults:

integer

param maxResults:

The maximum number of policies to return, from 1 to 100.

type nextToken:

string

param nextToken:

The token returned by a previous call, to get the next page of policies.

rtype:

dict

returns:

Response Syntax

{
    'policies': [
        {
            'policy': {
                'id': 'string',
                'policyType': 'CUSTOMER_MANAGED'|'SERVICE_MANAGED',
                'arn': 'string',
                'name': 'string',
                'createdAt': datetime(2015, 1, 1),
                'updatedAt': datetime(2015, 1, 1)
            },
            'managedPolicy': {
                'id': 'string',
                'policyType': 'CUSTOMER_MANAGED'|'SERVICE_MANAGED',
                'arn': 'string',
                'managedBy': 'string',
                'name': 'string'
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Output for ListSupplyChainPolicies.

    • policies (list) --

      The policies, one entry per policy.

      • (dict) --

        One customer-owned or service-managed policy returned by the list operation.

        • policy (dict) --

          A customer-managed policy.

          • id (string) --

            The ID of the policy.

          • policyType (string) --

            Identifies this entry as a customer-managed policy.

          • arn (string) --

            The ARN of the policy.

          • name (string) --

            The display name of the policy.

          • createdAt (datetime) --

            The time the policy was created.

          • updatedAt (datetime) --

            The time the policy was last updated.

        • managedPolicy (dict) --

          A service-managed policy.

          • id (string) --

            The ID of the service-managed policy.

          • policyType (string) --

            Identifies this entry as a service-managed policy.

          • arn (string) --

            The ARN of the service-managed policy.

          • managedBy (string) --

            The AWS service that manages the policy, as a service principal.

          • name (string) --

            The display name of the policy.

    • nextToken (string) --

      The token to pass in the next call to get the next page of policies. Absent when there are no more policies.

GetVulnerability (new) Link ¶

Returns metadata for one vulnerability ID, such as an ID from MandatoryBaselineEvidence.vulnerabilityIds.

See also: AWS API Documentation

Request Syntax

client.get_vulnerability(
    vulnerabilityId='string'
)
type vulnerabilityId:

string

param vulnerabilityId:

[REQUIRED]

The vulnerability ID, such as CVE-2024-1234 or an ID from MandatoryBaselineEvidence.vulnerabilityIds.

rtype:

dict

returns:

Response Syntax

{
    'id': 'string',
    'malicious': True|False,
    'severity': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFO'|'NONE'|'UNKNOWN',
    'analysisState': 'RESOLVED'|'RESOLVED_WITH_PEDIGREE'|'EXPLOITABLE'|'IN_TRIAGE'|'FALSE_POSITIVE'|'NOT_AFFECTED',
    'description': 'string',
    'cwes': [
        123,
    ],
    'advisoryUrls': [
        'string',
    ]
}

Response Structure

  • (dict) --

    Output for GetVulnerability.

    • id (string) --

      The vulnerability ID.

    • malicious (boolean) --

      Whether Amazon Inspector classifies this vulnerability as malicious.

    • severity (string) --

      Amazon Inspector's severity rating.

    • analysisState (string) --

      Amazon Inspector's analysis state.

    • description (string) --

      A description of the vulnerability.

    • cwes (list) --

      The CWE numbers of the weaknesses behind the vulnerability.

      • (integer) --

        CWE number, such as 79 or 1333.

    • advisoryUrls (list) --

      URLs of advisories that describe the vulnerability.

      • (string) --

        The URL of a security advisory, up to 2,048 characters.

ListDecisionEvidence (new) Link ¶

Returns the immutable evidence recorded for one decision: which baseline, rules, and policy exceptions applied to the package. Never re-evaluates.

See also: AWS API Documentation

Request Syntax

client.list_decision_evidence(
    decisionId='string',
    maxResults=123,
    nextToken='string'
)
type decisionId:

string

param decisionId:

[REQUIRED]

The ID of the decision, as returned by CreatePackageDecision.

type maxResults:

integer

param maxResults:

The maximum number of evidence items to return, from 1 to 100.

type nextToken:

string

param nextToken:

The token returned by a previous call, to get the next page of evidence.

rtype:

dict

returns:

Response Syntax

{
    'evidence': [
        {
            'mandatoryBaseline': {
                'baselineArn': 'string',
                'vulnerabilityIds': [
                    'string',
                ]
            },
            'policyRuleMatch': {
                'policyArn': 'string',
                'ruleId': 'string',
                'enforcementMode': 'NONE'|'AUDIT'|'ENFORCE'
            },
            'policyException': {
                'exceptionArn': 'string',
                'policyArn': 'string',
                'ruleIds': [
                    'string',
                ]
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Output for ListDecisionEvidence.

    • evidence (list) --

      The evidence recorded for the decision.

      • (dict) --

        One item of evidence recorded for a decision. Exactly one member is set.

        • mandatoryBaseline (dict) --

          The service-managed malicious-package baseline matched the package.

          • baselineArn (string) --

            The ARN of the service-managed policy that matched.

          • vulnerabilityIds (list) --

            The vulnerability IDs that Amazon Inspector associated with the package at evaluation time, returned unchanged. The list doesn't say which ID caused the malicious verdict. Pass any of them to GetVulnerability.

            • (string) --

              Vulnerability identifier assigned by the vulnerability source, such as CVE-2024-1234, GHSA-xxxx-xxxx-xxxx, or IN-MAL-NPM-2026-782. Any ID in MandatoryBaselineEvidence.vulnerabilityIds is accepted. It is not generated by this service.

        • policyRuleMatch (dict) --

          A rule in one of your policies matched the package.

          • policyArn (string) --

            The ARN of the policy.

          • ruleId (string) --

            The ID of the rule that matched.

          • enforcementMode (string) --

            The enforcement mode of the rule.

        • policyException (dict) --

          A policy exception suppressed one or more matching rules.

          • exceptionArn (string) --

            The ARN of the policy exception.

          • policyArn (string) --

            The ARN of the policy that the exception applies to.

          • ruleIds (list) --

            The IDs of the rules that the exception suppressed.

            • (string) --

              The ID of a rule within a policy.

    • nextToken (string) --

      The token to pass in the next call to get the next page of evidence. Absent when there is no more evidence.

DeleteSupplyChainPolicy (new) Link ¶

Deletes a policy and every policy exception that references it.

See also: AWS API Documentation

Request Syntax

client.delete_supply_chain_policy(
    id='string'
)
type id:

string

param id:

[REQUIRED]

The ID of the policy to delete.

returns:

None

CreatePackageDecision (new) Link ¶

Evaluates one package against the service-managed malicious-package baseline and the calling account's policies, and records an immutable decision. Call it before installing a package to learn whether to allow or deny it.

See also: AWS API Documentation

Request Syntax

client.create_package_decision(
    purl='string',
    clientToken='string'
)
type purl:

string

param purl:

[REQUIRED]

The package URL (purl) of the package version to evaluate, such as pkg:npm/lodash@4.17.21.

type clientToken:

string

param clientToken:

Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same parameters returns the original decision, and the same token with different parameters returns ValidationException. Requests without a token are rejected with ValidationException.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'decisionId': 'string',
    'canonicalPurl': 'string',
    'evaluatedAction': 'ALLOW'|'DENY',
    'enforcementAction': 'ALLOW'|'DENY',
    'enforcementMode': 'NONE'|'AUDIT'|'ENFORCE',
    'reason': 'NO_DENY_MATCH'|'MALICIOUS_PACKAGE'|'POLICY_RULE_MATCHED'
}

Response Structure

  • (dict) --

    Output for CreatePackageDecision.

    • decisionId (string) --

      The ID of the decision. Use it with GetPackageDecision and ListDecisionEvidence.

    • canonicalPurl (string) --

      The package URL (purl) that was evaluated, as accepted by the service.

    • evaluatedAction (string) --

      The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.

    • enforcementAction (string) --

      The action to take. It differs from evaluatedAction only when enforcementMode is AUDIT: evaluatedAction is then DENY and enforcementAction is ALLOW.

    • enforcementMode (string) --

      The strongest enforcement mode among matches that a policy exception didn't suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.

    • reason (string) --

      Why the decision was made.

GetPackageDecision (new) Link ¶

Returns one package decision owned by the calling account. Never re-evaluates. Use ListDecisionEvidence to read the evidence recorded for the decision.

See also: AWS API Documentation

Request Syntax

client.get_package_decision(
    decisionId='string'
)
type decisionId:

string

param decisionId:

[REQUIRED]

The ID of the decision, as returned by CreatePackageDecision.

rtype:

dict

returns:

Response Syntax

{
    'decisionId': 'string',
    'evaluatedAt': datetime(2015, 1, 1),
    'completedAt': datetime(2015, 1, 1),
    'canonicalPurl': 'string',
    'evaluatedAction': 'ALLOW'|'DENY',
    'enforcementAction': 'ALLOW'|'DENY',
    'enforcementMode': 'NONE'|'AUDIT'|'ENFORCE',
    'reason': 'NO_DENY_MATCH'|'MALICIOUS_PACKAGE'|'POLICY_RULE_MATCHED'
}

Response Structure

  • (dict) --

    Output for GetPackageDecision.

    • decisionId (string) --

      The ID of the decision.

    • evaluatedAt (datetime) --

      The time the package was evaluated. Policy exceptions are applied based on this time.

    • completedAt (datetime) --

      The time the decision was recorded.

    • canonicalPurl (string) --

      The package URL (purl) that was evaluated, as accepted by the service.

    • evaluatedAction (string) --

      The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.

    • enforcementAction (string) --

      The action the caller was told to take. It differs from evaluatedAction only when enforcementMode is AUDIT.

    • enforcementMode (string) --

      The strongest enforcement mode among matches that a policy exception didn't suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.

    • reason (string) --

      Why the decision was made.

CreateSupplyChainPolicyException (new) Link ¶

Creates a policy exception that suppresses specific rules of one policy, customer-managed or service-managed, for packages that match a package identity, until the exception expires. An exception never produces an allow decision on its own.

See also: AWS API Documentation

Request Syntax

client.create_supply_chain_policy_exception(
    exception={
        'name': 'string',
        'policyArn': 'string',
        'ruleIds': [
            'string',
        ],
        'package': {
            'ecosystem': 'string',
            'name': 'string',
            'version': 'string',
            'versionRange': 'string'
        },
        'justification': 'string',
        'expiresAt': datetime(2015, 1, 1)
    },
    tags={
        'string': 'string'
    },
    clientToken='string'
)
type exception:

dict

param exception:

[REQUIRED]

The exception to create: the policy and rules it suppresses, the package it applies to, a justification, and an expiry time.

  • 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.

type tags:

dict

param tags:

Tags to add to the policy exception when it's created.

  • (string) --

    The key of a tag.

    • (string) --

      The value of a tag.

type clientToken:

string

param clientToken:

Idempotency token. Generated SDKs fill it automatically. Within one hour, the same token with the same exception returns the exception it created. The same token with a different exception, or after that exception was deleted, returns ConflictException. Tags are not compared, and a repeated create leaves the exception's tags unchanged.

This field is autopopulated if not provided.

rtype:

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 CreateSupplyChainPolicyException.

    • id (string) --

      Opaque identifier generated by the service.

    • arn (string) --

      The ARN of the policy exception.

    • exception (dict) --

      The policy exception as stored.

      • 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. Equal to createdAt for a new exception.

    • tags (dict) --

      The tags on the policy exception.

      • (string) --

        The key of a tag.

        • (string) --

          The value of a tag.

UntagResource (new) Link ¶

Removes tags from a Continuum resource. A key that the resource doesn't have is ignored.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The ARN of the resource to untag.

type tagKeys:

list

param tagKeys:

[REQUIRED]

The keys of the tags to remove.

  • (string) --

    The key of a tag.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

GetSupplyChainManagedPolicy (new) Link ¶

Returns one read-only policy created and managed by an AWS service, such as the malicious-package baseline. You can read a service-managed policy and create policy exceptions for it, but you can't change or delete it.

See also: AWS API Documentation

Request Syntax

client.get_supply_chain_managed_policy(
    id='string'
)
type id:

string

param id:

[REQUIRED]

The ID of the service-managed policy. ListSupplyChainPolicies returns the IDs.

rtype:

dict

returns:

Response Syntax

{
    'id': 'string',
    'arn': 'string',
    'managedBy': 'string',
    'policy': {
        'name': 'string',
        'description': 'string',
        'rules': [
            {
                'ruleId': 'string',
                'enforcementMode': 'AUDIT'|'ENFORCE',
                'denyWhen': {
                    'allOf': [
                        {
                            'signal': 'PACKAGE_IDENTITY'|'INSPECTOR_SEVERITY'|'KEV'|'MALICIOUS',
                            'operator': 'MATCHES'|'AT_LEAST'|'EQUALS'|'NOT_EQUALS'|'IN'|'PRESENT',
                            'value': {
                                'packageIdentity': {
                                    'ecosystem': 'string',
                                    'name': 'string',
                                    'version': 'string',
                                    'versionRange': 'string'
                                },
                                'severity': 'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'UNTRIAGED',
                                'stringValue': 'string',
                                'stringSet': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    }
}

Response Structure

  • (dict) --

    Output for GetSupplyChainManagedPolicy.

    • id (string) --

      The ID of the service-managed policy.

    • arn (string) --

      The ARN of the service-managed policy.

    • managedBy (string) --

      The AWS service that manages the policy, as a service principal.

    • policy (dict) --

      The name, description, and rules of the policy.

      • name (string) --

        The display name of the policy.

      • description (string) --

        A description of the policy.

      • rules (list) --

        The deny rules of the policy, from 1 to 5.

        • (dict) --

          A single deny rule. The rule matches a package when all of its conditions are true. When several rules match, the strongest enforcement mode wins.

          • ruleId (string) --

            The identifier of the rule, unique within the policy. Policy exceptions and decision evidence refer to rules by this ID.

          • enforcementMode (string) --

            What happens when the rule matches. ENFORCE denies the package. AUDIT records the match and allows the package.

          • denyWhen (dict) --

            The conditions that must all be true for the rule to match.

            • allOf (list) --

              The conditions, from 1 to 20. All of them must be true for the rule to match.

              • (dict) --

                A single condition: a signal, an operator, and a value. The service checks that the operator and value are valid for the signal when the policy is created or updated.

                • signal (string) --

                  The package attribute that the condition tests.

                • operator (string) --

                  How the signal is compared with the value.

                • value (dict) --

                  The value to compare the signal with. Omit it for the PRESENT operator, which takes no value.

                  • packageIdentity (dict) --

                    The package to match, for the PACKAGE_IDENTITY signal.

                    • 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.

                  • severity (string) --

                    An Amazon Inspector severity, for the INSPECTOR_SEVERITY signal.

                  • stringValue (string) --

                    A single value, for the EQUALS and NOT_EQUALS operators.

                  • stringSet (list) --

                    A set of up to 20 values, for the IN operator.

                    • (string) --

                      A condition value, from 1 to 256 characters.

UpdateSupplyChainPolicy (new) Link ¶

Updates an existing policy. You can change the description, add rules, and change rules that have no active policy exception. The name can't be changed, existing rules can't be removed, and rules with an active policy exception can't be changed until the exception expires or is deleted. The policy's ID, ARN, and tags don't change.

See also: AWS API Documentation

Request Syntax

client.update_supply_chain_policy(
    id='string',
    policy={
        'name': 'string',
        'description': 'string',
        'rules': [
            {
                'ruleId': 'string',
                'enforcementMode': 'AUDIT'|'ENFORCE',
                'denyWhen': {
                    'allOf': [
                        {
                            'signal': 'PACKAGE_IDENTITY'|'INSPECTOR_SEVERITY'|'KEV'|'MALICIOUS',
                            'operator': 'MATCHES'|'AT_LEAST'|'EQUALS'|'NOT_EQUALS'|'IN'|'PRESENT',
                            'value': {
                                'packageIdentity': {
                                    'ecosystem': 'string',
                                    'name': 'string',
                                    'version': 'string',
                                    'versionRange': 'string'
                                },
                                'severity': 'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'UNTRIAGED',
                                'stringValue': 'string',
                                'stringSet': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    }
)
type id:

string

param id:

[REQUIRED]

The ID of the policy to update.

type policy:

dict

param policy:

[REQUIRED]

The updated policy. The name must match the existing name, and the rules must include every existing rule ID.

  • name (string) -- [REQUIRED]

    The display name of the policy.

  • description (string) --

    A description of the policy.

  • rules (list) -- [REQUIRED]

    The deny rules of the policy, from 1 to 5.

    • (dict) --

      A single deny rule. The rule matches a package when all of its conditions are true. When several rules match, the strongest enforcement mode wins.

      • ruleId (string) -- [REQUIRED]

        The identifier of the rule, unique within the policy. Policy exceptions and decision evidence refer to rules by this ID.

      • enforcementMode (string) -- [REQUIRED]

        What happens when the rule matches. ENFORCE denies the package. AUDIT records the match and allows the package.

      • denyWhen (dict) -- [REQUIRED]

        The conditions that must all be true for the rule to match.

        • allOf (list) -- [REQUIRED]

          The conditions, from 1 to 20. All of them must be true for the rule to match.

          • (dict) --

            A single condition: a signal, an operator, and a value. The service checks that the operator and value are valid for the signal when the policy is created or updated.

            • signal (string) -- [REQUIRED]

              The package attribute that the condition tests.

            • operator (string) -- [REQUIRED]

              How the signal is compared with the value.

            • value (dict) --

              The value to compare the signal with. Omit it for the PRESENT operator, which takes no value.

              • packageIdentity (dict) --

                The package to match, for the PACKAGE_IDENTITY signal.

                • 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.

              • severity (string) --

                An Amazon Inspector severity, for the INSPECTOR_SEVERITY signal.

              • stringValue (string) --

                A single value, for the EQUALS and NOT_EQUALS operators.

              • stringSet (list) --

                A set of up to 20 values, for the IN operator.

                • (string) --

                  A condition value, from 1 to 256 characters.

rtype:

dict

returns:

Response Syntax

{
    'id': 'string',
    'arn': 'string',
    'policy': {
        'name': 'string',
        'description': 'string',
        'rules': [
            {
                'ruleId': 'string',
                'enforcementMode': 'AUDIT'|'ENFORCE',
                'denyWhen': {
                    'allOf': [
                        {
                            'signal': 'PACKAGE_IDENTITY'|'INSPECTOR_SEVERITY'|'KEV'|'MALICIOUS',
                            'operator': 'MATCHES'|'AT_LEAST'|'EQUALS'|'NOT_EQUALS'|'IN'|'PRESENT',
                            'value': {
                                'packageIdentity': {
                                    'ecosystem': 'string',
                                    'name': 'string',
                                    'version': 'string',
                                    'versionRange': 'string'
                                },
                                'severity': 'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'UNTRIAGED',
                                'stringValue': 'string',
                                'stringSet': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    },
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    Output for UpdateSupplyChainPolicy.

    • id (string) --

      The ID of the policy.

    • arn (string) --

      The ARN of the policy.

    • policy (dict) --

      The policy as stored after the update.

      • name (string) --

        The display name of the policy.

      • description (string) --

        A description of the policy.

      • rules (list) --

        The deny rules of the policy, from 1 to 5.

        • (dict) --

          A single deny rule. The rule matches a package when all of its conditions are true. When several rules match, the strongest enforcement mode wins.

          • ruleId (string) --

            The identifier of the rule, unique within the policy. Policy exceptions and decision evidence refer to rules by this ID.

          • enforcementMode (string) --

            What happens when the rule matches. ENFORCE denies the package. AUDIT records the match and allows the package.

          • denyWhen (dict) --

            The conditions that must all be true for the rule to match.

            • allOf (list) --

              The conditions, from 1 to 20. All of them must be true for the rule to match.

              • (dict) --

                A single condition: a signal, an operator, and a value. The service checks that the operator and value are valid for the signal when the policy is created or updated.

                • signal (string) --

                  The package attribute that the condition tests.

                • operator (string) --

                  How the signal is compared with the value.

                • value (dict) --

                  The value to compare the signal with. Omit it for the PRESENT operator, which takes no value.

                  • packageIdentity (dict) --

                    The package to match, for the PACKAGE_IDENTITY signal.

                    • 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.

                  • severity (string) --

                    An Amazon Inspector severity, for the INSPECTOR_SEVERITY signal.

                  • stringValue (string) --

                    A single value, for the EQUALS and NOT_EQUALS operators.

                  • stringSet (list) --

                    A set of up to 20 values, for the IN operator.

                    • (string) --

                      A condition value, from 1 to 256 characters.

    • createdAt (datetime) --

      The time the policy was created.

    • updatedAt (datetime) --

      The time of this update.

CreateCodeFinding (updated) Link ¶
Changes (response)
{'status': {'NOT_PURSUED'}}

Ingests a customer-supplied security finding into an environment. Continuum validates the document synchronously against the required overlay fields for the declared format; invalid documents are rejected with a ValidationException. The maximum accepted document size is 256 KB. The environment must have a source configured, and the finding must identify a code location so Continuum can tie it to a repository in the environment's build. Continuum assigns a findingId and stores the verbatim document. When no successful build yet contains the finding's repository, the finding stays SUBMITTED until the next successful build; if that build does not contain it either, the finding is DISCARDED with discardReason SOURCE_REPO_NOT_FOUND.

See also: AWS API Documentation

Request Syntax

client.create_code_finding(
    environmentId='string',
    ocsfDocument={...}|[...]|123|123.4|'string'|True|None,
    clientToken='string'
)
type environmentId:

string

param environmentId:

[REQUIRED]

The environment to ingest the finding into.

type ocsfDocument:

:ref:`document<document>`

param ocsfDocument:

[REQUIRED]

The OCSF finding document to ingest, verbatim. Must declare a class_uid Continuum supports (2002 Vulnerability Finding, or 2007 Application Security Posture Finding) and validate against the vendored OCSF JSON Schema for that class, including the Continuum overlay requirements that finding_info.uid be present and that vulnerabilities[0].affected_code[0].file identify the code location. With several repositories in the environment, the file path must begin with the repository name. Maximum size 256 KB. Stored verbatim and normalized into the typed Finding members returned by GetCodeFinding. GetCodeFinding does not return the document itself.

type clientToken:

string

param clientToken:

Caller-provided idempotency token. A retry with the same token and an identical finding document replays the original result; the same token with different content is rejected.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'findingId': 'string',
    'findingArn': 'string',
    'title': 'string',
    'status': 'SUBMITTED'|'VALIDATING'|'CONFIRMED'|'DISCARDED'|'NOT_PURSUED',
    'createdAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    Contains the identifier, ARN, title, and initial status of the newly ingested finding.

    • findingId (string) --

      The unique identifier assigned to the finding.

    • findingArn (string) --

      The ARN of the ingested finding.

    • title (string) --

      The title extracted from the submitted document. Always populated at ingestion.

    • status (string) --

      The finding's current lifecycle status -- SUBMITTED for a newly ingested finding, or the finding's present status when an idempotent retry replays an already-processed finding.

    • createdAt (datetime) --

      The timestamp when the finding was ingested.

CreateEnvironment (updated) Link ¶
Changes (request)
{'configuration': {'codeConfiguration': {'environmentConfiguration': {'focusMode': 'COMPREHENSIVE '
                                                                                   '| '
                                                                                   'FOCUSED',
                                                                      'issueBudget': {'maxIssuesPerScan': 'integer'}}}}}

Creates an environment and starts its validation and any requested provisioning. Storage provisioning and dependency checks may continue after the initial 201 response; use GetEnvironment to observe completion.

See also: AWS API Documentation

Request Syntax

client.create_environment(
    name='string',
    configuration={
        'codeConfiguration': {
            'sourceConfiguration': {
                's3Sources': [
                    {
                        'integrationId': 'string',
                        'codePrefix': 'string',
                        'contextPrefix': 'string'
                    },
                ],
                'repositorySources': [
                    {
                        'integrationId': 'string',
                        'repository': 'string',
                        'defaultBranch': 'string'
                    },
                ]
            },
            'environmentConfiguration': {
                'network': {
                    'allowedDomains': [
                        'string',
                    ]
                },
                'scanFrequency': 'string',
                'patchCreationPolicy': 'ENABLED'|'DISABLED',
                'focusMode': 'COMPREHENSIVE'|'FOCUSED',
                'issueBudget': {
                    'maxIssuesPerScan': 123
                }
            }
        }
    }
)
type name:

string

param name:

[REQUIRED]

The customer-visible name of the environment.

type configuration:

dict

param configuration:

Type-specific configuration. Omission creates a code environment with the default operating policy and no sources.

  • codeConfiguration (dict) --

    Configuration for a code-scanning environment.

    • sourceConfiguration (dict) --

      Source configuration for the environment.

      • s3Sources (list) --

        S3 sources backed by previously-created S3 integrations.

        • (dict) --

          An S3 source for one environment, backed by a previously-created S3 integration.

          • integrationId (string) -- [REQUIRED]

            Identifier of an S3 integration in the caller's account. The integration supplies the bucket, the read role, and the external ID Continuum uses to read the prefixes.

          • codePrefix (string) --

            Prefix containing source code. Defaults to code/ when omitted.

          • contextPrefix (string) --

            Prefix containing customer-authored context. Defaults to context/ when omitted.

      • repositorySources (list) --

        Explicit repository selections from previously-created integrations.

        • (dict) --

          One repository selected from a previously-created integration.

          • integrationId (string) -- [REQUIRED]

            Integration that provides the selected repository.

          • repository (string) -- [REQUIRED]

            Repository selected from that integration: owner/repository for GitHub, or the project's full (possibly nested) path for GitLab.

          • defaultBranch (string) --

            Branch used when a scan does not choose a more specific revision.

    • environmentConfiguration (dict) --

      Environment-level operating policy.

      • network (dict) --

        Network policy for agent execution.

        • allowedDomains (list) --

          Domains that an environment's agent execution may contact.

          • (string) --

            A domain name permitted for build-time dependency resolution.

      • scanFrequency (string) --

        Recurring scan interval: P1D (1 day), P2D (2 days), or P7D (7 days). PT0H disables recurring scans. Defaults to P1D when creating an environment.

      • patchCreationPolicy (string) --

        Whether Continuum creates a patch for a proposed remediation. Defaults to DISABLED.

      • focusMode (string) --

        Which findings Continuum pursues, by the severity reported when the finding is created. Defaults to COMPREHENSIVE.

      • issueBudget (dict) --

        Caps the new issues each scan may start. Absent, or maxIssuesPerScan 0, means no cap. A change takes effect at the next scan.

        • maxIssuesPerScan (integer) -- [REQUIRED]

          Maximum new issues per scan, 1 to 1000. 0 removes the cap.

rtype:

dict

returns:

Response Syntax

{
    'environmentId': 'string',
    'environmentArn': 'string',
    'status': 'ACTIVE',
    'createdAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    Contains the identifier and ARN of the newly created environment.

    • environmentId (string) --

      The unique identifier assigned to the environment.

    • environmentArn (string) --

      The ARN of the created environment.

    • status (string) --

      The initial status of the environment. Always ACTIVE on successful creation.

    • createdAt (datetime) --

      The timestamp when the environment was created.

CreateIntegration (updated) Link ¶
Changes (both)
{'kmsKeyId': 'string', 'tags': {'string': 'string'}}

Creates a Continuum Integration. The ContinuumControlPlane adapter Lambda forwards the API Gateway event (customer identity + FAS) to HoFES, which executes this operation.

See also: AWS API Documentation

Request Syntax

client.create_integration(
    clientToken='string',
    name='string',
    providerConfiguration={
        'github': {
            'authorization': {
                'authorizationCode': 'string',
                'state': 'string',
                'redirectUrl': 'string'
            },
            'organizationName': 'string'
        },
        'gitlab': {
            'instanceUrl': 'string',
            'targetType': 'GROUP'|'PROJECT',
            'targetPath': 'string',
            'accessToken': 'string'
        },
        's3': {
            'bucket': 'string',
            'roleArn': 'string',
            'externalId': 'string'
        }
    },
    kmsKeyId='string',
    tags={
        'string': 'string'
    }
)
type clientToken:

string

param clientToken:

Optional idempotency token identifying one create attempt within the caller's account, Region, and operation. The service treats requests with the same token and identical input as replays of the first attempt.

This field is autopopulated if not provided.

type name:

string

param name:

[REQUIRED]

Caller-provided name for the new integration. Unique per account.

type providerConfiguration:

dict

param providerConfiguration:

[REQUIRED]

Provider-specific configuration. Exactly one union member is set.

  • github (dict) --

    Configuration for a GitHub.com integration.

    • authorization (dict) -- [REQUIRED]

      OAuth authorization used to establish the integration. Required on create; not returned on read operations.

      • authorizationCode (string) -- [REQUIRED]

        OAuth authorization code returned by GitHub after the user authorizes the application.

      • state (string) -- [REQUIRED]

        Opaque state echoed back by GitHub in its OAuth callback. Must match the state that StartIntegrationAuthorization returned to the same AWS account; the authorization request must have sent that call's codeChallenge. The state can be redeemed once.

      • redirectUrl (string) --

        Optional redirect URL used to obtain the authorization code. Must match one of the redirect URLs registered on the GitHub App. If omitted, the App's default redirect URL is used. Not stored or returned.

    • organizationName (string) --

      Optional name of the GitHub organization to associate with the integration. If omitted, the integration is associated with the authenticated user's personal account.

  • gitlab (dict) --

    Configuration for a GitLab integration.

    • instanceUrl (string) -- [REQUIRED]

      HTTPS base URL of the GitLab instance (gitlab.com or self-managed).

    • targetType (string) -- [REQUIRED]

      Whether the integration targets a group or a single project.

    • targetPath (string) -- [REQUIRED]

      Group or project path the integration targets.

    • accessToken (string) -- [REQUIRED]

      GitLab access token. Write-only; not stored or returned after creation.

  • s3 (dict) --

    Configuration for a customer-managed S3 integration.

    • bucket (string) -- [REQUIRED]

      Customer-managed source bucket name.

    • roleArn (string) -- [REQUIRED]

      IAM role Continuum assumes to read from the source bucket.

    • externalId (string) -- [REQUIRED]

      Caller-provided external ID required by the role's trust policy. Sensitive; never returned on read operations.

type kmsKeyId:

string

param kmsKeyId:

Optional customer managed KMS key ID. If present, Continuum provisions a Miyu CMK domain on this key and binds the integration's secrets to it.

type tags:

dict

param tags:

Tags to add to the integration when it's created.

  • (string) --

    The key of a tag.

    • (string) --

      The value of a tag.

rtype:

dict

returns:

Response Syntax

{
    'integrationId': 'string',
    'integrationArn': 'string',
    'createdAt': datetime(2015, 1, 1),
    'kmsKeyId': 'string',
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    Contains the original identifier, ARN, and creation time of the new or replayed integration. A replay can refer to an integration that has since been deleted.

    • integrationId (string) --

      Unique identifier of the created integration.

    • integrationArn (string) --

      ARN of the created integration.

    • createdAt (datetime) --

      Time at which the integration was created.

    • kmsKeyId (string) --

      Identifier of the customer managed KMS key, in key ARN form, resolved from the request's kmsKeyId. As in KMS responses, the key ID is returned as the key ARN. Present only when the request supplied kmsKeyId.

    • tags (dict) --

      The tags on the integration.

      • (string) --

        The key of a tag.

        • (string) --

          The value of a tag.

GetCodeFinding (updated) Link ¶
Changes (response)
{'notPursuedReason': 'FOCUS_MODE | ISSUE_BUDGET', 'status': {'NOT_PURSUED'}}

Retrieves the current state and details of a finding.

See also: AWS API Documentation

Request Syntax

client.get_code_finding(
    environmentId='string',
    findingId='string'
)
type environmentId:

string

param environmentId:

[REQUIRED]

The environment that owns the finding.

type findingId:

string

param findingId:

[REQUIRED]

The unique identifier of the finding to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'type': 'CONTINUUM_CODE_VULN'|'CUSTOMER_CODE_VULN',
    'title': 'string',
    'severity': 'UNKNOWN'|'INFORMATIONAL'|'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'FATAL'|'OTHER',
    'summary': 'string',
    'detailedDescription': 'string',
    'category': 'string',
    'subCategory': 'string',
    'cweIds': [
        'string',
    ],
    'owaspCategory': 'string',
    'mitigation': 'string',
    'filePath': 'string',
    'lineNumber': 123,
    'cveId': 'string',
    'cvssBaseScore': 123.0,
    'affectedPackages': [
        {
            'name': 'string',
            'version': 'string',
            'fixedInVersion': 'string',
            'packageManager': 'string'
        },
    ],
    'vulnerableCode': 'string',
    'relevantInputs': [
        'string',
    ],
    'stepsToReproduce': [
        'string',
    ],
    'validation': {
        'verdict': 'TRUE_POSITIVE'|'FALSE_POSITIVE'|'BENIGN_TRUE_POSITIVE'|'NEEDS_REVIEW',
        'blockingReason': 'UNREACHABLE'|'PROTECTED'|'MISCLASSIFIED'|'EXCLUDED'|'NOT_FEASIBLE'|'RISK_MITIGATED'|'NONE',
        'confidence': 123.0,
        'rationale': 'string',
        'severityAdjustment': 'CRITICAL'|'HIGH'|'MEDIUM'|'LOW'|'INFORMATIONAL'|'UNCHANGED',
        'mitigatingControls': [
            'string',
        ],
        'preconditions': [
            'string',
        ],
        'evidence': [
            {
                'file': 'string',
                'line': 123,
                'snippet': 'string'
            },
        ]
    },
    'endLine': 123,
    'mitreTechniques': [
        'string',
    ],
    'remediationReferences': [
        'string',
    ],
    'ocsfClass': 'VULNERABILITY_FINDING'|'APPLICATION_SECURITY_POSTURE_FINDING',
    'ocsfSchemaVersion': 'string',
    'productName': 'string',
    'productVendorName': 'string',
    'productVersion': 'string',
    'sourceStatus': 'string',
    'sourceStatusId': 123,
    'firstSeenAt': datetime(2015, 1, 1),
    'findingTypes': [
        'string',
    ],
    'vulnerabilities': [
        {
            'title': 'string',
            'description': 'string',
            'cweId': 'string',
            'cweCaption': 'string',
            'additionalCweIds': [
                'string',
            ],
            'cveId': 'string',
            'cvssBaseScore': 123.0,
            'fixCoverage': 'string',
            'fixCoverageId': 123,
            'locations': [
                {
                    'filePath': 'string',
                    'startLine': 123,
                    'endLine': 123
                },
            ],
            'remediation': 'string',
            'remediationReferences': [
                'string',
            ],
            'code': 'string',
            'details': 'string',
            'affectedPackages': [
                {
                    'name': 'string',
                    'version': 'string',
                    'fixedInVersion': 'string',
                    'packageManager': 'string'
                },
            ]
        },
    ],
    'resources': [
        {
            'uid': 'string',
            'name': 'string',
            'type': 'string',
            'region': 'string'
        },
    ],
    'posture': {
        'application': 'string',
        'applicationUid': 'string',
        'applicationVersion': 'string',
        'control': 'string',
        'description': 'string',
        'standards': [
            'string',
        ],
        'requirements': [
            'string',
        ],
        'checks': [
            {
                'uid': 'string',
                'name': 'string',
                'description': 'string'
            },
        ],
        'status': 'string',
        'statusId': 123,
        'remediation': 'string',
        'remediationReferences': [
            'string',
        ]
    },
    'findingId': 'string',
    'findingArn': 'string',
    'environmentId': 'string',
    'source': 'string',
    'sourceFindingId': 'string',
    'reportedAt': datetime(2015, 1, 1),
    'status': 'SUBMITTED'|'VALIDATING'|'CONFIRMED'|'DISCARDED'|'NOT_PURSUED',
    'statusUpdatedAt': datetime(2015, 1, 1),
    'createdAt': datetime(2015, 1, 1),
    'scanRunId': 'string',
    'statusMessage': 'string',
    'discardReason': 'SCANNER_VALIDATED_FALSE_POSITIVE'|'SCANNER_NEEDS_REVIEW'|'FALSE_POSITIVE_VALIDATED_AGAINST_CONTEXT'|'DUPLICATE_OF_OPEN_ISSUE'|'DUPLICATE_OF_CLOSED_ISSUE'|'COMPENSATING_CONTROL_PRESENT'|'OUT_OF_SCOPE'|'INSUFFICIENT_EVIDENCE'|'PROCESSING_FAILED'|'SOURCE_REPO_NOT_FOUND',
    'discardReasoning': 'string',
    'duplicateOfIssueId': 'string',
    'createdIssueId': 'string',
    'completedAt': datetime(2015, 1, 1),
    'notPursuedReason': 'FOCUS_MODE'|'ISSUE_BUDGET'
}

Response Structure

  • (dict) --

    Contains the current state and details of the requested finding. Which type-specific members are populated depends on type.

    • type (string) --

      What kind of finding this is. Determines which of the type-specific members below are populated.

    • title (string) --

      The producer's title for the finding.

    • severity (string) --

      The finding's severity.

    • summary (string) --

      A one-paragraph description.

    • detailedDescription (string) --

      The full analysis.

    • category (string) --

      The producer's vulnerability category. Not a stable filter key across finding types -- see FindingCategory.

    • subCategory (string) --

      A more specific classification within category.

    • cweIds (list) --

      CWE identifiers classifying the finding.

      • (string) --

        A CWE identifier, e.g. "CWE-532".

    • owaspCategory (string) --

      The OWASP Top 10 category, when the producer supplies one.

    • mitigation (string) --

      How to fix the finding.

    • filePath (string) --

      The file the finding is about.

    • lineNumber (integer) --

      The 1-indexed line the finding is about. Bounds are enforced server-side rather than by a constraint trait: a numeric constraint generates a distinct newtype per enclosing structure, so the same concept would not share a type across the create input and the read output.

    • cveId (string) --

      The CVE this finding reports, for software-composition findings. Both code types can carry one: a customer document supplies it under vulnerabilities[].cve, and Continuum's scanner reports CVEs for dependency-manifest findings.

    • cvssBaseScore (float) --

      The CVSS base score accompanying cveId, when the producer supplies one, from 0.0 to 10.0. Not computed by Continuum. The range is enforced server-side, not by a @range trait -- the smithy-rs server SDK does not support range constraints on double shapes (smithy-rs#2007).

    • affectedPackages (list) --

      Packages implicated by the finding.

      • (dict) --

        A software package implicated by a finding.

        • name (string) --

          The package name.

        • version (string) --

          The affected version.

        • fixedInVersion (string) --

          The earliest version that resolves the issue, when one is known.

        • packageManager (string) --

          The ecosystem supplying the package.

    • vulnerableCode (string) --

      The vulnerable code fragment.

    • relevantInputs (list) --

      User-controlled inputs that reach the vulnerability.

      • (string) --

        One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

    • stepsToReproduce (list) --

      Steps to reproduce or exploit the finding.

      • (string) --

        One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

    • validation (dict) --

      The validator's assessment. Absent when no validation ran.

      • verdict (string) --

        The validator's conclusion.

      • blockingReason (string) --

        Why the validator reached that verdict.

      • confidence (float) --

        The validator's confidence, from 0.0 to 1.0 inclusive. Advisory: it does not drive Continuum's own routing decisions. The range is enforced server-side, not by a @range trait -- the smithy-rs server SDK does not support range constraints on double shapes (smithy-rs#2007).

      • rationale (string) --

        The validator's reasoning.

      • severityAdjustment (string) --

        The validator's severity conclusion.

      • mitigatingControls (list) --

        Controls the validator found that reduce exploitability.

        • (string) --

          One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

      • preconditions (list) --

        Conditions exploitation depends on, which bound the severity.

        • (string) --

          One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

      • evidence (list) --

        Code citations supporting the verdict.

        • (dict) --

          A code citation supporting a validation verdict.

          • file (string) --

            The file the evidence was found in.

          • line (integer) --

            The 1-indexed line, when known.

          • snippet (string) --

            The cited excerpt.

    • endLine (integer) --

      The last line of the affected range, from the document's affected_code[].end_line.

    • mitreTechniques (list) --

      MITRE ATT&CK technique identifiers, from the document's finding_info.attacks[].technique.uid.

      • (string) --

        One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

    • remediationReferences (list) --

      Remediation references, from the document's vulnerabilities[].remediation.references.

      • (string) --

        One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

    • ocsfClass (string) --

      The OCSF class the document declared. Determines whether posture is populated.

    • ocsfSchemaVersion (string) --

      The OCSF schema version the producer wrote against (metadata.version).

    • productName (string) --

      The producing product and vendor (metadata.product).

    • productVendorName (string) --

      A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

    • productVersion (string) --

      A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

    • sourceStatus (string) --

      The producer's own status for the finding, and the enum value behind it. Distinct from status, which is Continuum's lifecycle state -- a producer may call a finding "New" while Continuum has it SUBMITTED.

    • sourceStatusId (integer) --

      The producer's numeric enum value for sourceStatus.

    • firstSeenAt (datetime) --

      When the producer first observed the finding (finding_info.first_seen_time). The producer's own clock, not Continuum's.

    • findingTypes (list) --

      The producer's own classification of the finding (finding_info.types).

      • (string) --

        One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

    • vulnerabilities (list) --

      Every vulnerability the document reported. A document may report several; the flat cveId/ cvssBaseScore/ filePath/ lineNumber members above carry the first one's identity so a caller that only needs "what and where" does not have to walk this list.

      • (dict) --

        One vulnerability reported by a finding. A customer document may report several; each carries its own identity, locations and remediation.

        • title (string) --

          The title of a finding, from the producer's own title -- OCSF finding_info.title, or the scanner's finding title. Length matches the OCSF title constraint.

        • description (string) --

          Free-form prose about a finding (summary, detailed analysis, rationale, remediation guidance). Capped well below the finding document's own 256 KB limit, since several of these can appear on one finding.

        • cweId (string) --

          Primary CWE for this vulnerability, e.g. "CWE-89".

        • cweCaption (string) --

          The producer's human-readable caption for cweId.

        • additionalCweIds (list) --

          Further CWEs the producer attributed to this same vulnerability.

          • (string) --

            A CWE identifier, e.g. "CWE-532".

        • cveId (string) --

          A CVE identifier, e.g. "CVE-2020-8203".

        • cvssBaseScore (float) --

          The CVSS base score for cveId, when the producer supplies one, from 0.0 to 10.0.

        • fixCoverage (string) --

          The producer's description of how completely a fix is available.

        • fixCoverageId (integer) --

          The producer's enum value behind fixCoverage.

        • locations (list) --

          Every location this vulnerability was reported at.

          • (dict) --

            A code location a finding points at.

            • filePath (string) --

              Repository-relative path.

            • startLine (integer) --

              1-indexed first line of the affected range.

            • endLine (integer) --

              1-indexed last line, when the producer reported a range.

        • remediation (string) --

          Free-form prose about a finding (summary, detailed analysis, rationale, remediation guidance). Capped well below the finding document's own 256 KB limit, since several of these can appear on one finding.

        • remediationReferences (list) --

          A free-form list of strings carried verbatim from a producer.

          • (string) --

            One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

        • code (string) --

          The vulnerable fragment, when the producer supplied one.

        • details (string) --

          The producer's extended analysis for this vulnerability.

        • affectedPackages (list) --

          Software packages implicated by a finding.

          • (dict) --

            A software package implicated by a finding.

            • name (string) --

              The package name.

            • version (string) --

              The affected version.

            • fixedInVersion (string) --

              The earliest version that resolves the issue, when one is known.

            • packageManager (string) --

              The ecosystem supplying the package.

    • resources (list) --

      Resources the document named (resources[]).

      • (dict) --

        A cloud or application resource a finding concerns.

        • uid (string) --

          A resource identifier -- a cloud ARN, a context-graph node id, or whatever identifier scheme the producer uses.

        • name (string) --

          A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

        • type (string) --

          A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

        • region (string) --

          A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

    • posture (dict) --

      The compliance posture, for an Application Security Posture Finding. Absent for a vulnerability finding.

      • application (string) --

        The application the posture was assessed against.

      • applicationUid (string) --

        A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

      • applicationVersion (string) --

        A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

      • control (string) --

        The control assessed, and the producer's description of it.

      • description (string) --

        Free-form prose about a finding (summary, detailed analysis, rationale, remediation guidance). Capped well below the finding document's own 256 KB limit, since several of these can appear on one finding.

      • standards (list) --

        Standards and requirements the control maps to.

        • (string) --

          One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

      • requirements (list) --

        A free-form list of strings carried verbatim from a producer.

        • (string) --

          One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

      • checks (list) --

        The individual checks performed.

        • (dict) --

          One compliance check behind a posture finding.

          • uid (string) --

            A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

          • name (string) --

            A vulnerability-taxonomy label: the producer's category, sub-category, or OWASP category. Deliberately unconstrained beyond length -- producers do not share a taxonomy, so this is NOT a stable filter key across finding types. Use cweIds when a stable classification is needed.

          • description (string) --

            Free-form prose about a finding (summary, detailed analysis, rationale, remediation guidance). Capped well below the finding document's own 256 KB limit, since several of these can appear on one finding.

      • status (string) --

        The producer's compliance status, and the enum value behind it.

      • statusId (integer) --

        The producer's numeric enum value for status.

      • remediation (string) --

        Free-form prose about a finding (summary, detailed analysis, rationale, remediation guidance). Capped well below the finding document's own 256 KB limit, since several of these can appear on one finding.

      • remediationReferences (list) --

        A free-form list of strings carried verbatim from a producer.

        • (string) --

          One entry in a free-form list carried verbatim from a producer (relevant inputs, reproduction steps, mitigating controls, preconditions, references).

    • findingId (string) --

      The unique identifier of the finding.

    • findingArn (string) --

      The ARN of the finding.

    • environmentId (string) --

      The environment that owns the finding.

    • source (string) --

      The system that produced the finding.

    • sourceFindingId (string) --

      The producer's own identifier for the finding.

    • reportedAt (datetime) --

      When the producer reported the finding -- its own clock, which is not Continuum's ingestion time. createdAt is when Continuum accepted it; these are genuinely different instants and a reader usually wants this one.

      For CreateCodeFinding, this is the submitted OCSF document's own top-level time. For findings Continuum's scanner produces, it is the finding's own creation time.

      Continuum does not validate it for plausibility: a producer's value is echoed as given, so a timestamp here asserts the unit and format, not that the instant is genuine.

    • status (string) --

      The current lifecycle status of the finding.

    • statusUpdatedAt (datetime) --

      The timestamp when the status last transitioned.

    • createdAt (datetime) --

      The timestamp when the finding was ingested.

    • scanRunId (string) --

      The scan that produced the finding, when it came from one. For a finding Continuum's scanner produced, this is the Continuum scan run (see GetCodeScan). For a finding submitted with CreateCodeFinding, it is the OCSF document's metadata.correlation_uid, when that value is a valid ScanRunId. Absent when the finding did not come from a scan.

    • statusMessage (string) --

      Human-readable context about the current status.

    • discardReason (string) --

      Why the finding was not escalated. Present only when status is DISCARDED.

    • discardReasoning (string) --

      Customer-facing explanation accompanying discardReason.

    • duplicateOfIssueId (string) --

      The existing issue this finding duplicates. Present only for the DUPLICATE_OF_* discard reasons.

    • createdIssueId (string) --

      The issue Continuum created from this finding.

    • completedAt (datetime) --

      When processing finished, whether by creating an issue or discarding. Absent while the finding is still in flight.

    • notPursuedReason (string) --

      May be present when status is NOT_PURSUED: why Continuum did not pursue it. Only findings submitted with CreateCodeFinding are returned when not pursued, so in practice FOCUS_MODE.

GetCodeIssue (updated) Link ¶
Changes (response)
{'patchDelivery': {'failureReasons': {'GITHUB_ACCESS_LOST',
                                      'GITHUB_BRANCH_CREATION_REFUSED',
                                      'GITHUB_INSTALLATION_NOT_FOUND',
                                      'GITLAB_ACCESS_DENIED',
                                      'GITLAB_BASE_NOT_FOUND',
                                      'GITLAB_BRANCH_CONFLICT',
                                      'GITLAB_BRANCH_PROTECTED',
                                      'GITLAB_NOT_FOUND',
                                      'GITLAB_PROJECT_CHANGED',
                                      'GITLAB_PROJECT_NOT_FOUND',
                                      'GITLAB_RATE_LIMITED',
                                      'GITLAB_REQUEST_FAILED',
                                      'GITLAB_REQUEST_REJECTED',
                                      'GITLAB_RESPONSE_INVALID',
                                      'INVALID_GITLAB_PROVENANCE',
                                      'gitlab_destination_not_enabled'},
                   'skippedReasons': ['ARTIFACT_READ_FAILED | '
                                      'ARTIFACT_SOURCE_MISMATCH | '
                                      'ARTIFACT_SOURCE_MISSING | '
                                      'BUILD_NOT_FOUND | BUILD_READ_FAILED | '
                                      'BUILD_RESULT_SCOPE_MISMATCH | '
                                      'DELIVERY_NOT_CONFIGURED | '
                                      'DELIVERY_SOURCE_KIND_CHANGED | '
                                      'DUPLICATE_LOGICAL_REPOSITORY | '
                                      'DUPLICATE_OR_INVALID_REPOSITORY | '
                                      'ENVIRONMENT_DELETED | '
                                      'ENVIRONMENT_NOT_ACTIVE | '
                                      'ENVIRONMENT_NOT_FOUND | '
                                      'ENVIRONMENT_READ_FAILED | '
                                      'S3_ACCESS_DENIED | '
                                      'S3_SOURCE_PREFIX_OVERLAP | '
                                      'SOURCE_INTEGRATION_UNRESOLVED | '
                                      'SOURCE_INTEGRATION_READ_FAILED | '
                                      'SOURCE_INTEGRATION_INVALID | '
                                      'SOURCE_INTEGRATION_CHANGED | '
                                      'EXPORT_CREDENTIALS_MISSING | '
                                      'EXPORT_CREDENTIAL_EXPIRY_INVALID | '
                                      'EXPORT_DESTINATION_INVALID | '
                                      'EXPORT_EXISTING_OBJECT_MISMATCH | '
                                      'EXPORT_PUT_FAILED | '
                                      'EXPORT_RECONCILIATION_READ_FAILED | '
                                      'EXPORT_ROLE_ASSUMPTION_FAILED | '
                                      'GITHUB_ACCESS_DENIED | '
                                      'GITHUB_BASE_NOT_FOUND | '
                                      'GITHUB_BRANCH_CONFLICT | '
                                      'GITHUB_NOT_FOUND | GITHUB_RATE_LIMITED '
                                      '| GITHUB_REPOSITORY_CHANGED | '
                                      'GITHUB_REPOSITORY_NOT_FOUND | '
                                      'GITHUB_REQUEST_FAILED | '
                                      'GITHUB_REQUEST_REJECTED | '
                                      'GITHUB_RESPONSE_INVALID | '
                                      'GREEN_ATTEMPT_NOT_SUCCESSFUL | '
                                      'GREEN_COMPLETION_NOT_OBSERVED | '
                                      'PATCH_NOT_SELECTED | '
                                      'INCOMPLETE_SOURCE_REFERENCE | '
                                      'INVALID_ARCHIVE_DIGEST | '
                                      'INVALID_ARTIFACT_SOURCE | '
                                      'INVALID_COMPLETED_MANIFEST | '
                                      'INVALID_EXPORT_RECEIPT | '
                                      'INVALID_GITHUB_PROVENANCE | '
                                      'INVALID_S3_DESTINATION | '
                                      'INVALID_SERVICE_RECEIPT | '
                                      'INVALID_SOURCE_INVENTORY | '
                                      'INVALID_SOURCE_MANIFEST | '
                                      'INVALID_SOURCE_REFERENCE | '
                                      'ISSUE_INTEGRITY_FAILURE | '
                                      'ISSUE_NOT_FOUND | '
                                      'MANIFEST_INVENTORY_MISMATCH | '
                                      'MANIFEST_PROVENANCE_CHANGED | '
                                      'MANIFEST_REPOSITORY_SET_MISMATCH | '
                                      'MANIFEST_SCOPE_OR_VERSION_MISMATCH | '
                                      'MISSING_BUILD_RESULT | '
                                      'MISSING_COMPLETED_MANIFEST | '
                                      'MISSING_RESULT_DIGEST | '
                                      'MISSING_SOURCE_MANIFEST | '
                                      'MISSING_SOURCE_TARGET | '
                                      'PATCH_NOT_APPLICABLE | '
                                      'PATCH_STORAGE_IDENTITY_MISSING | '
                                      'PATCH_UNSUPPORTED | '
                                      'PUBLICATION_OUTCOME_UNKNOWN_AFTER_RETRY_LIMIT '
                                      '| PUBLISHER_DEADLINE_EXCEEDED | '
                                      'RESULT_COMPLETED_MANIFEST_MISMATCH | '
                                      'RESULT_SOURCE_BINDING_MISMATCH | '
                                      'SERVICE_COPY_DIGEST_MISMATCH | '
                                      'SERVICE_OBJECT_READ_FAILED | '
                                      'SERVICE_OBJECT_TOO_LARGE | '
                                      'SERVICE_RECEIPT_OUTSIDE_ISSUE | '
                                      'SOURCE_OBJECT_DIGEST_MISMATCH | '
                                      'SOURCE_REFERENCE_OUTSIDE_BUILD | '
                                      'SOURCE_TARGET_BUILD_MISMATCH | '
                                      'UNKNOWN_REPOSITORY | '
                                      'UNKNOWN_SOURCE_PROVIDER | '
                                      'UNSUPPORTED_ENVIRONMENT_SCHEMA | '
                                      'github_destination_not_enabled | '
                                      'patch_creation_policy_disabled | '
                                      'GITHUB_ACCESS_LOST | '
                                      'GITHUB_INSTALLATION_NOT_FOUND | '
                                      'GITLAB_ACCESS_DENIED | '
                                      'GITLAB_BASE_NOT_FOUND | '
                                      'GITLAB_BRANCH_CONFLICT | '
                                      'GITLAB_BRANCH_PROTECTED | '
                                      'GITLAB_NOT_FOUND | '
                                      'GITLAB_PROJECT_CHANGED | '
                                      'GITLAB_PROJECT_NOT_FOUND | '
                                      'GITLAB_RATE_LIMITED | '
                                      'GITLAB_REQUEST_FAILED | '
                                      'GITLAB_REQUEST_REJECTED | '
                                      'GITLAB_RESPONSE_INVALID | '
                                      'INVALID_GITLAB_PROVENANCE | '
                                      'gitlab_destination_not_enabled | '
                                      'GITHUB_BRANCH_CREATION_REFUSED']}}

Retrieves the current state and details of an issue.

See also: AWS API Documentation

Request Syntax

client.get_code_issue(
    environmentId='string',
    issueId='string'
)
type environmentId:

string

param environmentId:

[REQUIRED]

The environment that owns the issue.

type issueId:

string

param issueId:

[REQUIRED]

The unique identifier of the issue to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'issueId': 'string',
    'issueArn': 'string',
    'name': 'string',
    'synopsis': 'string',
    'severity': 'LOW'|'MEDIUM'|'HIGH'|'CRITICAL',
    'confidence': 123,
    'severityReasoning': 'string',
    'summary': 'string',
    'findingIds': [
        'string',
    ],
    'status': 'CREATED'|'IN_PROGRESS'|'COMPLETED'|'FAILED',
    'phase': 'VALIDATION'|'PRIORITIZATION'|'REMEDIATION',
    'statusReason': 'INTERNAL_ERROR'|'REMEDIATION_FAILED',
    'statusMessage': 'string',
    'statusUpdatedAt': datetime(2015, 1, 1),
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'evidenceAvailability': 'NONE'|'AVAILABLE',
    'patchDelivery': {
        'status': 'PENDING'|'SUCCEEDED'|'FAILED'|'SKIPPED',
        'patchCount': 123,
        'succeededCount': 123,
        'failedCount': 123,
        'failureReasons': [
            'ARTIFACT_READ_FAILED'|'ARTIFACT_SOURCE_MISMATCH'|'ARTIFACT_SOURCE_MISSING'|'BUILD_NOT_FOUND'|'BUILD_READ_FAILED'|'BUILD_RESULT_SCOPE_MISMATCH'|'DELIVERY_NOT_CONFIGURED'|'DELIVERY_SOURCE_KIND_CHANGED'|'DUPLICATE_LOGICAL_REPOSITORY'|'DUPLICATE_OR_INVALID_REPOSITORY'|'ENVIRONMENT_DELETED'|'ENVIRONMENT_NOT_ACTIVE'|'ENVIRONMENT_NOT_FOUND'|'ENVIRONMENT_READ_FAILED'|'S3_ACCESS_DENIED'|'S3_SOURCE_PREFIX_OVERLAP'|'SOURCE_INTEGRATION_UNRESOLVED'|'SOURCE_INTEGRATION_READ_FAILED'|'SOURCE_INTEGRATION_INVALID'|'SOURCE_INTEGRATION_CHANGED'|'EXPORT_CREDENTIALS_MISSING'|'EXPORT_CREDENTIAL_EXPIRY_INVALID'|'EXPORT_DESTINATION_INVALID'|'EXPORT_EXISTING_OBJECT_MISMATCH'|'EXPORT_PUT_FAILED'|'EXPORT_RECONCILIATION_READ_FAILED'|'EXPORT_ROLE_ASSUMPTION_FAILED'|'GITHUB_ACCESS_DENIED'|'GITHUB_BASE_NOT_FOUND'|'GITHUB_BRANCH_CONFLICT'|'GITHUB_NOT_FOUND'|'GITHUB_RATE_LIMITED'|'GITHUB_REPOSITORY_CHANGED'|'GITHUB_REPOSITORY_NOT_FOUND'|'GITHUB_REQUEST_FAILED'|'GITHUB_REQUEST_REJECTED'|'GITHUB_RESPONSE_INVALID'|'GREEN_ATTEMPT_NOT_SUCCESSFUL'|'GREEN_COMPLETION_NOT_OBSERVED'|'PATCH_NOT_SELECTED'|'INCOMPLETE_SOURCE_REFERENCE'|'INVALID_ARCHIVE_DIGEST'|'INVALID_ARTIFACT_SOURCE'|'INVALID_COMPLETED_MANIFEST'|'INVALID_EXPORT_RECEIPT'|'INVALID_GITHUB_PROVENANCE'|'INVALID_S3_DESTINATION'|'INVALID_SERVICE_RECEIPT'|'INVALID_SOURCE_INVENTORY'|'INVALID_SOURCE_MANIFEST'|'INVALID_SOURCE_REFERENCE'|'ISSUE_INTEGRITY_FAILURE'|'ISSUE_NOT_FOUND'|'MANIFEST_INVENTORY_MISMATCH'|'MANIFEST_PROVENANCE_CHANGED'|'MANIFEST_REPOSITORY_SET_MISMATCH'|'MANIFEST_SCOPE_OR_VERSION_MISMATCH'|'MISSING_BUILD_RESULT'|'MISSING_COMPLETED_MANIFEST'|'MISSING_RESULT_DIGEST'|'MISSING_SOURCE_MANIFEST'|'MISSING_SOURCE_TARGET'|'PATCH_NOT_APPLICABLE'|'PATCH_STORAGE_IDENTITY_MISSING'|'PATCH_UNSUPPORTED'|'PUBLICATION_OUTCOME_UNKNOWN_AFTER_RETRY_LIMIT'|'PUBLISHER_DEADLINE_EXCEEDED'|'RESULT_COMPLETED_MANIFEST_MISMATCH'|'RESULT_SOURCE_BINDING_MISMATCH'|'SERVICE_COPY_DIGEST_MISMATCH'|'SERVICE_OBJECT_READ_FAILED'|'SERVICE_OBJECT_TOO_LARGE'|'SERVICE_RECEIPT_OUTSIDE_ISSUE'|'SOURCE_OBJECT_DIGEST_MISMATCH'|'SOURCE_REFERENCE_OUTSIDE_BUILD'|'SOURCE_TARGET_BUILD_MISMATCH'|'UNKNOWN_REPOSITORY'|'UNKNOWN_SOURCE_PROVIDER'|'UNSUPPORTED_ENVIRONMENT_SCHEMA'|'github_destination_not_enabled'|'patch_creation_policy_disabled'|'GITHUB_ACCESS_LOST'|'GITHUB_INSTALLATION_NOT_FOUND'|'GITLAB_ACCESS_DENIED'|'GITLAB_BASE_NOT_FOUND'|'GITLAB_BRANCH_CONFLICT'|'GITLAB_BRANCH_PROTECTED'|'GITLAB_NOT_FOUND'|'GITLAB_PROJECT_CHANGED'|'GITLAB_PROJECT_NOT_FOUND'|'GITLAB_RATE_LIMITED'|'GITLAB_REQUEST_FAILED'|'GITLAB_REQUEST_REJECTED'|'GITLAB_RESPONSE_INVALID'|'INVALID_GITLAB_PROVENANCE'|'gitlab_destination_not_enabled'|'GITHUB_BRANCH_CREATION_REFUSED',
        ],
        'skippedReasons': [
            'ARTIFACT_READ_FAILED'|'ARTIFACT_SOURCE_MISMATCH'|'ARTIFACT_SOURCE_MISSING'|'BUILD_NOT_FOUND'|'BUILD_READ_FAILED'|'BUILD_RESULT_SCOPE_MISMATCH'|'DELIVERY_NOT_CONFIGURED'|'DELIVERY_SOURCE_KIND_CHANGED'|'DUPLICATE_LOGICAL_REPOSITORY'|'DUPLICATE_OR_INVALID_REPOSITORY'|'ENVIRONMENT_DELETED'|'ENVIRONMENT_NOT_ACTIVE'|'ENVIRONMENT_NOT_FOUND'|'ENVIRONMENT_READ_FAILED'|'S3_ACCESS_DENIED'|'S3_SOURCE_PREFIX_OVERLAP'|'SOURCE_INTEGRATION_UNRESOLVED'|'SOURCE_INTEGRATION_READ_FAILED'|'SOURCE_INTEGRATION_INVALID'|'SOURCE_INTEGRATION_CHANGED'|'EXPORT_CREDENTIALS_MISSING'|'EXPORT_CREDENTIAL_EXPIRY_INVALID'|'EXPORT_DESTINATION_INVALID'|'EXPORT_EXISTING_OBJECT_MISMATCH'|'EXPORT_PUT_FAILED'|'EXPORT_RECONCILIATION_READ_FAILED'|'EXPORT_ROLE_ASSUMPTION_FAILED'|'GITHUB_ACCESS_DENIED'|'GITHUB_BASE_NOT_FOUND'|'GITHUB_BRANCH_CONFLICT'|'GITHUB_NOT_FOUND'|'GITHUB_RATE_LIMITED'|'GITHUB_REPOSITORY_CHANGED'|'GITHUB_REPOSITORY_NOT_FOUND'|'GITHUB_REQUEST_FAILED'|'GITHUB_REQUEST_REJECTED'|'GITHUB_RESPONSE_INVALID'|'GREEN_ATTEMPT_NOT_SUCCESSFUL'|'GREEN_COMPLETION_NOT_OBSERVED'|'PATCH_NOT_SELECTED'|'INCOMPLETE_SOURCE_REFERENCE'|'INVALID_ARCHIVE_DIGEST'|'INVALID_ARTIFACT_SOURCE'|'INVALID_COMPLETED_MANIFEST'|'INVALID_EXPORT_RECEIPT'|'INVALID_GITHUB_PROVENANCE'|'INVALID_S3_DESTINATION'|'INVALID_SERVICE_RECEIPT'|'INVALID_SOURCE_INVENTORY'|'INVALID_SOURCE_MANIFEST'|'INVALID_SOURCE_REFERENCE'|'ISSUE_INTEGRITY_FAILURE'|'ISSUE_NOT_FOUND'|'MANIFEST_INVENTORY_MISMATCH'|'MANIFEST_PROVENANCE_CHANGED'|'MANIFEST_REPOSITORY_SET_MISMATCH'|'MANIFEST_SCOPE_OR_VERSION_MISMATCH'|'MISSING_BUILD_RESULT'|'MISSING_COMPLETED_MANIFEST'|'MISSING_RESULT_DIGEST'|'MISSING_SOURCE_MANIFEST'|'MISSING_SOURCE_TARGET'|'PATCH_NOT_APPLICABLE'|'PATCH_STORAGE_IDENTITY_MISSING'|'PATCH_UNSUPPORTED'|'PUBLICATION_OUTCOME_UNKNOWN_AFTER_RETRY_LIMIT'|'PUBLISHER_DEADLINE_EXCEEDED'|'RESULT_COMPLETED_MANIFEST_MISMATCH'|'RESULT_SOURCE_BINDING_MISMATCH'|'SERVICE_COPY_DIGEST_MISMATCH'|'SERVICE_OBJECT_READ_FAILED'|'SERVICE_OBJECT_TOO_LARGE'|'SERVICE_RECEIPT_OUTSIDE_ISSUE'|'SOURCE_OBJECT_DIGEST_MISMATCH'|'SOURCE_REFERENCE_OUTSIDE_BUILD'|'SOURCE_TARGET_BUILD_MISMATCH'|'UNKNOWN_REPOSITORY'|'UNKNOWN_SOURCE_PROVIDER'|'UNSUPPORTED_ENVIRONMENT_SCHEMA'|'github_destination_not_enabled'|'patch_creation_policy_disabled'|'GITHUB_ACCESS_LOST'|'GITHUB_INSTALLATION_NOT_FOUND'|'GITLAB_ACCESS_DENIED'|'GITLAB_BASE_NOT_FOUND'|'GITLAB_BRANCH_CONFLICT'|'GITLAB_BRANCH_PROTECTED'|'GITLAB_NOT_FOUND'|'GITLAB_PROJECT_CHANGED'|'GITLAB_PROJECT_NOT_FOUND'|'GITLAB_RATE_LIMITED'|'GITLAB_REQUEST_FAILED'|'GITLAB_REQUEST_REJECTED'|'GITLAB_RESPONSE_INVALID'|'INVALID_GITLAB_PROVENANCE'|'gitlab_destination_not_enabled'|'GITHUB_BRANCH_CREATION_REFUSED',
        ]
    }
}

Response Structure

  • (dict) --

    Contains the current state and details of the requested issue.

    • issueId (string) --

      The unique identifier of the issue.

    • issueArn (string) --

      The ARN of the issue.

    • name (string) --

      The name of the issue.

    • synopsis (string) --

      A free-form synopsis of the issue.

    • severity (string) --

      Current severity: the FindingSeverity seed at create, overwritten by the authoritative severity that prioritization assigns after validation.

    • confidence (integer) --

      The likelihood that this issue is a true positive, expressed as a percentage (0-100).

    • severityReasoning (string) --

      The justification for the current severity. Always leads with a customer-facing basis clause synthesized from how the severity was determined (e.g. "Severity from finding.", "Severity from Continuum system."); when prioritization has run, its own reasoning follows. Issues created before the basis clause was introduced return their original reasoning without it.

    • summary (string) --

      The remediation completion summary, when the green stage has run.

    • findingIds (list) --

      The findings that motivated this issue. Bare identifiers only -- a caller authorized for GetCodeIssue is not necessarily authorized to read finding detail; call GetCodeFinding for that. Every referenced finding is included regardless of origin (both CustomerUploaded and ContinuumScanner).

      • (string) --

        The unique identifier for a Finding resource.

    • status (string) --

      The current lifecycle status of the issue.

    • phase (string) --

      The part of the workflow the issue is in. Present when status is IN_PROGRESS, and when status is FAILED and the failing phase is known.

    • statusReason (string) --

      Why the issue failed. Present only when status is FAILED.

    • statusMessage (string) --

      Customer-facing explanation of statusReason. Present only when status is FAILED.

    • statusUpdatedAt (datetime) --

      The timestamp when the status or phase last changed.

    • createdAt (datetime) --

      The timestamp when the issue was created.

    • updatedAt (datetime) --

      The timestamp when any field of the issue last changed. Advances on every mutation (including score-only updates that do not transition status), so it is greater than or equal to statusUpdatedAt.

    • evidenceAvailability (string) --

      Whether the issue has any attached evidence (formerly 'artifacts': tool output, remediation proposals, patches). NONE = no evidence; AVAILABLE = at least one evidence item exists. Computed at read time.

    • patchDelivery (dict) --

      Customer delivery of the issue's patches, summarized from its PATCH artifacts at read time. Absent when no patch has a destination delivery.

      • status (string) --

        The overall result, in priority order: FAILED when any patch's destination delivery failed or exhausted its retries; otherwise PENDING while any is still in progress; otherwise SUCCEEDED when at least one was delivered; otherwise SKIPPED.

      • patchCount (integer) --

        Number of the issue's patches that have a destination delivery.

      • succeededCount (integer) --

        Number of those patches delivered to their destination.

      • failedCount (integer) --

        Number of those patches whose delivery failed or exhausted its retries.

      • failureReasons (list) --

        Distinct reasons of the failed deliveries, in ascending order. Present only when failedCount is greater than zero.

        • (string) --

          Cause of a PATCH delivery's current state. Stored on DeliveryState.reason and summarized on IssuePatchDelivery for failed and skipped deliveries. These are outcomes of one delivery lifecycle, not shared operation error enums. The two existing skip-code wire values are retained for compatibility.

      • skippedReasons (list) --

        Distinct modeled reasons of the skipped deliveries, in ascending order. Absent when no skipped delivery has a reason.

        • (string) --

          Cause of a PATCH delivery's current state. Stored on DeliveryState.reason and summarized on IssuePatchDelivery for failed and skipped deliveries. These are outcomes of one delivery lifecycle, not shared operation error enums. The two existing skip-code wire values are retained for compatibility.

GetCodeIssueArtifact (updated) Link ¶
Changes (response)
{'body': {'patch': {'delivery': {'changeRequest': {'checkedAt': 'timestamp',
                                                   'closedAt': 'timestamp',
                                                   'mergedAt': 'timestamp',
                                                   'state': 'OPEN | MERGED | '
                                                            'CLOSED'},
                                 'target': {'gitlab': {'headSha': 'string',
                                                       'mergeRequestNumber': 'long',
                                                       'mergeRequestUri': 'string',
                                                       'projectPath': 'string'}}}},
          'validationEvidence': {'executedProof': {'code': {'command': 'string',
                                                            'proofCode': {'path': 'string'},
                                                            'workingDirectory': 'string'},
                                                   'resultMaterials': [{'after': 'string',
                                                                        'before': 'string',
                                                                        'change': 'CREATED '
                                                                                  '| '
                                                                                  'MODIFIED '
                                                                                  '| '
                                                                                  'DELETED '
                                                                                  '| '
                                                                                  'UNCHANGED',
                                                                        'path': 'string'}],
                                                   'setting': {'conditions': ['string'],
                                                               'substitutions': ['string'],
                                                               'testBoundary': 'string'}},
                                 'sourceAnalysis': {'diagram': 'string',
                                                    'references': [{'endLine': 'integer',
                                                                    'excerpt': 'string',
                                                                    'nodeId': 'string',
                                                                    'path': 'string',
                                                                    'startLine': 'integer'}]}}}}

Retrieves one immutable artifact attached to an issue, including its content.

See also: AWS API Documentation

Request Syntax

client.get_code_issue_artifact(
    environmentId='string',
    issueId='string',
    artifactId='string'
)
type environmentId:

string

param environmentId:

[REQUIRED]

The environment that owns the issue.

type issueId:

string

param issueId:

[REQUIRED]

The issue the artifact is attached to.

type artifactId:

string

param artifactId:

[REQUIRED]

The unique identifier of the artifact to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'artifactId': 'string',
    'artifactType': 'EVIDENCE'|'AGENT_COMMUNICATION'|'VALIDATION_EVIDENCE'|'REMEDIATION_PROPOSAL'|'DECISION'|'PATCH',
    'mediaType': 'string',
    'body': {
        'validationEvidence': {
            'exploitable': 'EXPLOITABLE'|'NOT_EXPLOITABLE'|'UNCERTAIN',
            'terminalStatus': 'COMPLETED'|'FAILED'|'NO_SOURCE_AVAILABLE'|'PARTIAL',
            'flowVerdicts': [
                {
                    'flowId': 'string',
                    'verdict': 'CONFIRMED'|'DENIED'|'INCONCLUSIVE',
                    'confidence': 123.0,
                    'evidence': [
                        'string',
                    ]
                },
            ],
            'attackFlowsConfirmed': [
                'string',
            ],
            'exploitArtifact': {
                'payload': 'string',
                'targetUrl': 'string',
                'httpMethod': 'GET'|'HEAD'|'POST'|'PUT'|'PATCH'|'DELETE'|'OPTIONS',
                'headers': {
                    'string': 'string'
                },
                'responseStatus': 123,
                'responseSnippet': 'string',
                'effect': 'DATA_LEAKED'|'ERROR_REVEALED'|'BEHAVIOR_CHANGED'|'NO_EFFECT'
            },
            'executedProof': {
                'code': {
                    'proofCode': [
                        {
                            'content': 'string',
                            'path': 'string'
                        },
                    ],
                    'command': 'string',
                    'workingDirectory': 'string'
                },
                'output': {
                    'consoleOutput': 'string'
                },
                'observedEffect': 'DATA_LEAKED'|'ERROR_REVEALED'|'BEHAVIOR_CHANGED'|'NO_EFFECT',
                'setting': {
                    'testBoundary': 'string',
                    'conditions': [
                        'string',
                    ],
                    'substitutions': [
                        'string',
                    ]
                },
                'resultMaterials': [
                    {
                        'path': 'string',
                        'change': 'CREATED'|'MODIFIED'|'DELETED'|'UNCHANGED',
                        'before': 'string',
                        'after': 'string'
                    },
                ]
            },
            'sourceAnalysis': {
                'summary': 'string',
                'inferredEffect': 'DATA_LEAKED'|'ERROR_REVEALED'|'BEHAVIOR_CHANGED'|'NO_EFFECT',
                'diagram': 'string',
                'references': [
                    {
                        'nodeId': 'string',
                        'path': 'string',
                        'startLine': 123,
                        'endLine': 123,
                        'excerpt': 'string'
                    },
                ]
            },
            'perFindingResults': [
                {
                    'findingId': 'string',
                    'exploitable': 'EXPLOITABLE'|'NOT_EXPLOITABLE'|'UNCERTAIN',
                    'confidence': 123.0,
                    'flowVerdicts': [
                        {
                            'flowId': 'string',
                            'verdict': 'CONFIRMED'|'DENIED'|'INCONCLUSIVE',
                            'confidence': 123.0,
                            'evidence': [
                                'string',
                            ]
                        },
                    ],
                    'reasoningChain': [
                        {
                            'step': 123,
                            'claim': 'string',
                            'source': 'string',
                            'confidence': 123.0
                        },
                    ],
                    'exploitArtifact': {
                        'payload': 'string',
                        'targetUrl': 'string',
                        'httpMethod': 'GET'|'HEAD'|'POST'|'PUT'|'PATCH'|'DELETE'|'OPTIONS',
                        'headers': {
                            'string': 'string'
                        },
                        'responseStatus': 123,
                        'responseSnippet': 'string',
                        'effect': 'DATA_LEAKED'|'ERROR_REVEALED'|'BEHAVIOR_CHANGED'|'NO_EFFECT'
                    }
                },
            ]
        },
        'prevalidationSignals': {
            'producedBy': 'string',
            'signals': [
                {
                    'subjectRef': 'string',
                    'dimension': 'EXPLOITABILITY'|'BLAST_RADIUS'|'NETWORK_EXPOSURE'|'PRECONDITION'|'CODE_CONTEXT'|'LIKELIHOOD_ASSESSMENT'|'IMPACT_ASSESSMENT',
                    'signalStrength': 'NONE'|'WEAK'|'MODERATE'|'STRONG',
                    'conclusion': 'string',
                    'producerId': 'string',
                    'producerVersion': 'string',
                    'confidence': 123.0,
                    'confidenceReasoning': {
                        'summary': 'string',
                        'factors': [
                            'string',
                        ]
                    },
                    'computed': {
                        'likelihoodBand': 'VERY_LOW'|'LOW'|'MODERATE'|'HIGH',
                        'impactBand': 'VERY_LOW'|'LOW'|'MODERATE'|'HIGH',
                        'barriers': 123
                    },
                    'preconditions': {
                        'reachableFromAttacker': {
                            'value': True|False,
                            'basis': 'CODE'|'GRAPH'|'FINDING'|'INFERRED'|'NO_EVIDENCE_DEFAULT',
                            'reason': 'string',
                            'missingInfo': 'string'
                        },
                        'configurationNeeded': {
                            'value': True|False,
                            'basis': 'CODE'|'GRAPH'|'FINDING'|'INFERRED'|'NO_EVIDENCE_DEFAULT',
                            'reason': 'string',
                            'missingInfo': 'string'
                        },
                        'accessLevel': {
                            'value': 'NONE'|'ANY_AUTHENTICATED'|'PRIVILEGED',
                            'basis': 'CODE'|'GRAPH'|'FINDING'|'INFERRED'|'NO_EVIDENCE_DEFAULT',
                            'reason': 'string',
                            'missingInfo': 'string'
                        },
                        'userInteractionRequired': {
                            'value': True|False,
                            'basis': 'CODE'|'GRAPH'|'FINDING'|'INFERRED'|'NO_EVIDENCE_DEFAULT',
                            'reason': 'string',
                            'missingInfo': 'string'
                        }
                    },
                    'impactDimensions': {
                        'attackerGains': {
                            'value': 'EXECUTE'|'MODIFY_PRIVILEGED'|'MODIFY_DATA'|'MODIFY_COSMETIC'|'READ'|'NEITHER',
                            'basis': 'CODE'|'GRAPH'|'FINDING'|'INFERRED'|'NO_EVIDENCE_DEFAULT',
                            'reason': 'string',
                            'missingInfo': 'string'
                        },
                        'blastRadius': {
                            'value': 'CROSS_TENANT'|'OTHER_USERS_IN_TENANT'|'OWN_SCOPE',
                            'basis': 'CODE'|'GRAPH'|'FINDING'|'INFERRED'|'NO_EVIDENCE_DEFAULT',
                            'reason': 'string',
                            'missingInfo': 'string'
                        },
                        'targetValue': {
                            'value': 'HIGH'|'MEDIUM'|'LOW',
                            'basis': 'CODE'|'GRAPH'|'FINDING'|'INFERRED'|'NO_EVIDENCE_DEFAULT',
                            'reason': 'string',
                            'missingInfo': 'string'
                        }
                    },
                    'exploitability': {
                        'verdict': 'EXPLOITABLE'|'NOT_EXPLOITABLE'|'UNCERTAIN',
                        'reachedCrownJewels': True|False,
                        'highestLayerReached': 123,
                        'confidenceTier': 'SOURCE_READ'|'STATIC_PROVEN'|'BUILD_PROVEN'|'RUNTIME_PROVEN',
                        'scriptable': True|False,
                        'sourceValidationArtifactId': 'string'
                    }
                },
            ]
        },
        'remediationProposal': {
            'patch': 'string',
            'format': 'GIT_MAILBOX_PATCH'|'GIT_BINARY_DIFF'|'GIT_DIFF',
            'filename': 'string',
            'patchSha256': 'string'
        },
        'patch': {
            'patch': 'string',
            'format': 'GIT_MAILBOX_PATCH'|'GIT_BINARY_DIFF'|'GIT_DIFF',
            'repositoryName': 'string',
            'patchSha256': 'string',
            'sizeBytes': 123,
            'delivery': {
                'status': 'PENDING'|'SUCCEEDED'|'FAILED'|'SKIPPED'|'ABANDONED',
                'target': {
                    's3': {
                        'bucket': 'string',
                        'key': 'string',
                        'version': 'string'
                    },
                    'github': {
                        'owner': 'string',
                        'repository': 'string',
                        'pullRequestNumber': 123,
                        'headSha': 'string'
                    },
                    'gitlab': {
                        'projectPath': 'string',
                        'mergeRequestNumber': 123,
                        'mergeRequestUri': 'string',
                        'headSha': 'string'
                    }
                },
                'updatedAt': datetime(2015, 1, 1),
                'changeRequest': {
                    'state': 'OPEN'|'MERGED'|'CLOSED',
                    'mergedAt': datetime(2015, 1, 1),
                    'closedAt': datetime(2015, 1, 1),
                    'checkedAt': datetime(2015, 1, 1)
                }
            }
        },
        'raw': 'string'
    },
    'metadata': {...}|[...]|123|123.4|'string'|True|None,
    'producer': {
        'agent': 'string'
    },
    'createdAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    Contains the requested artifact and its content.

    • artifactId (string) --

      The unique identifier of the artifact.

    • artifactType (string) --

      Semantic category of the artifact.

    • mediaType (string) --

      MIME type the producer declared for its content.

    • body (dict) --

      The artifact body, projected against the shape defined for its artifactType. A type with a defined shape is returned as that structure, and anything else through IssueArtifactBody.raw.

      • validationEvidence (dict) --

        Projected VALIDATION_EVIDENCE content.

        • exploitable (string) --

          Exploitability verdict. Explicit UNCERTAIN replaces the producer's tri-state exploitable: true | false | null, so an absent verdict is never confused with a negative one.

        • terminalStatus (string) --

          How the validation run ended. Absent when the producer reported a status with no mapping yet: the rest of the body still projects, so one unmapped enum never costs a customer the whole artifact.

        • flowVerdicts (list) --

          One verdict per attack flow assessed in the bundle.

          • (dict) --

            Validation's verdict for one attack flow.

            • flowId (string) --

              Identifier of the attack flow assessed.

            • verdict (string) --

              Outcome for this flow.

            • confidence (float) --

              Confidence in this flow's verdict. Absent when out of range.

            • evidence (list) --

              Citations supporting the verdict.

              • (string) --

                A citation supporting a claim: file:line, an HTTP response, or a graph node id.

                1024 rather than 512: validation agents cite a span of reasoning rather than a single location, reaching ~930 characters, and an over-long citation drops its entire ReasoningStep — claim included — rather than just the citation.

        • attackFlowsConfirmed (list) --

          Identifiers of attack flows upgraded to Confirmed provenance.

          • (string) --

            Identifier of an attack flow within a validation bundle.

        • exploitArtifact (dict) --

          Concrete payload and its observed effect, when validation produced one by sending an HTTP request.

          Only an HTTP proof projects here. A validation agent that proves exploitability by RUNNING code against the repository projects executedProof, and one that proves it by reading the source projects sourceAnalysis. All three are mutually exclusive: at most one is present.

          • payload (string) --

            The exact payload sent.

          • targetUrl (string) --

            Target the payload was sent to.

          • httpMethod (string) --

            HTTP method the payload was sent with.

          • headers (dict) --

            Headers sent with the payload.

            • (string) --

              A citation supporting a claim: file:line, an HTTP response, or a graph node id.

              1024 rather than 512: validation agents cite a span of reasoning rather than a single location, reaching ~930 characters, and an over-long citation drops its entire ReasoningStep — claim included — rather than just the citation.

              • (string) --

                A bounded free-text field in a projected artifact body.

                8192 rather than 4096: a validation agent's reasoning claim runs to ~5.6K in practice, and a claim dropped on length takes its whole ReasoningStep with it. Deliberately NOT raised to the proof-body bound — this type is also the member of a 50-entry ReasoningSteps list and of ArtifactHeaders, so its bound multiplies into the worst-case response size.

                The product of these bounds is NOT what actually caps a response. Every projected body is read out of one IssueArtifactContent, itself bounded at 5 MiB, so no projection can exceed the size of the content it came from whatever the member bounds permit. Keeping this one modest is about not inflating a typical response, not about the ceiling.

          • responseStatus (integer) --

            HTTP status observed in the response.

          • responseSnippet (string) --

            Leading portion of the response body, bounded by the producer.

          • effect (string) --

            Effect observed from sending the payload.

        • executedProof (dict) --

          Proof the agent produced by executing code against the repository under test, with the output that execution produced.

          • code (dict) --

            The code that was run. Not a request payload: it imports the repository's own modules and drives the vulnerable code path directly.

            • proofCode (list) --

              Runtime pre-gate text of declared program files, helpers, payloads, fixtures and configuration, in declaration order with the main file first when retained. Zero-byte helpers are skipped; whitespace-only nonempty files are retained. Legacy content has one unnamed payload entry. Command present and no entry having a path means command-only: one actual command entry.

              • (dict) --

                One proof program file. Further members, such as path and purpose, can be added later as optional details.

                • content (string) --

                  Pre-gate file text, including whitespace-only files, or the actual command for command-only.

                • path (string) --

                  Where the file lived, relative to the validation workspace root, e.g. ".scanner/harness/ctxmod.py". Absent on command-only entries or when not recorded.

            • command (string) --

              Exact command the existing gate ran. Absent: invocation was not recorded.

            • workingDirectory (string) --

              Repository-relative gate directory; a single dot means root. Absent: not recorded.

          • output (dict) --

            What the execution printed, including the agent's own PASS/FAIL assertions. Absent when the run printed nothing retained.

            • consoleOutput (string) --

              What the run printed: standard output and standard error merged, as retained. The text may be empty.

          • observedEffect (string) --

            Effect the execution actually produced. observedEffect rather than effect: this one was witnessed, and the name has to stay distinguishable from ValidationSourceAnalysis.inferredEffect, which was not.

          • setting (dict) --

            Agent-declared real boundary, conditions and substitutions. Absent: not recorded.

            • testBoundary (string) --

              What was exercised for real. Plain text, including literal technical expressions.

            • conditions (list) --

              Preconditions the agent declared. Empty means none declared.

              • (string) --

            • substitutions (list) --

              Mocks or substitutes the agent declared. Empty means none declared.

              • (string) --

          • resultMaterials (list) --

            Runtime before/after states of paths declared before the gate. Empty means none declared. Absent: result materials were not recorded.

            • (dict) --

              One predeclared result path, read by the runtime around the existing gate.

              • path (string) --

                Canonical workspace-relative path or sandbox /tmp/... path.

              • change (string) --

                Computed by comparing runtime reads, never selected by the agent.

              • before (string) --

                Present iff the result existed before the gate. Empty text is a real zero-byte file. MODIFIED and DELETED require it. UNCHANGED has both contents present and equal, or both absent.

              • after (string) --

                Present iff the result existed after the gate. Empty text is a real zero-byte file. CREATED and MODIFIED require it. UNCHANGED has both contents present and equal, or both absent.

        • sourceAnalysis (dict) --

          Proof the agent produced by reading the repository's source, with nothing built or run.

          • summary (string) --

            The non-blank analysis as Markdown: the annotated entry-to-sink walk, its citations, and why the checked guards are absent or bypassed.

          • inferredEffect (string) --

            Effect the agent concluded WOULD occur. Deliberately not effect: nothing was executed, so this is reasoned from the source and must not be read as an observation. See ValidationExecutedProof.observedEffect.

          • diagram (string) --

            Mermaid flowchart of the entry-to-sink path. Absent: none produced.

          • references (list) --

            Exact source lines cited by diagram nodes. Absent: none retained.

            • (dict) --

              Source lines retained by the runtime, apart from secret redaction.

              • nodeId (string) --

                The diagram node supported by these lines.

              • path (string) --

                File relative to the validation workspace root.

              • startLine (integer) --

                First line, one-based and inclusive.

              • endLine (integer) --

                Last line, inclusive. Absent means one line.

              • excerpt (string) --

                Exact source text read by the runtime, apart from secret redaction.

        • perFindingResults (list) --

          Per-finding breakdown for a multi-finding bundle. Absent for a single-finding bundle.

          • (dict) --

            Validation's result for one finding within a multi-finding bundle.

            • findingId (string) --

              The finding assessed.

            • exploitable (string) --

              Exploitability verdict for this finding.

            • confidence (float) --

              Confidence in this finding's verdict. Absent when out of range.

            • flowVerdicts (list) --

              Per-flow verdicts recorded for this finding.

              • (dict) --

                Validation's verdict for one attack flow.

                • flowId (string) --

                  Identifier of the attack flow assessed.

                • verdict (string) --

                  Outcome for this flow.

                • confidence (float) --

                  Confidence in this flow's verdict. Absent when out of range.

                • evidence (list) --

                  Citations supporting the verdict.

                  • (string) --

                    A citation supporting a claim: file:line, an HTTP response, or a graph node id.

                    1024 rather than 512: validation agents cite a span of reasoning rather than a single location, reaching ~930 characters, and an over-long citation drops its entire ReasoningStep — claim included — rather than just the citation.

            • reasoningChain (list) --

              Reasoning chain recorded for this finding.

              • (dict) --

                One step in the validation agent's reasoning chain.

                • step (integer) --

                  Position of this step in the chain.

                • claim (string) --

                  The claim or conclusion reached at this step.

                • source (string) --

                  Citation supporting the claim.

                • confidence (float) --

                  Confidence in this individual claim, on the producer's native 0-1 scale.

            • exploitArtifact (dict) --

              Exploit artifact produced for this finding, when there was one.

              • payload (string) --

                The exact payload sent.

              • targetUrl (string) --

                Target the payload was sent to.

              • httpMethod (string) --

                HTTP method the payload was sent with.

              • headers (dict) --

                Headers sent with the payload.

                • (string) --

                  A citation supporting a claim: file:line, an HTTP response, or a graph node id.

                  1024 rather than 512: validation agents cite a span of reasoning rather than a single location, reaching ~930 characters, and an over-long citation drops its entire ReasoningStep — claim included — rather than just the citation.

                  • (string) --

                    A bounded free-text field in a projected artifact body.

                    8192 rather than 4096: a validation agent's reasoning claim runs to ~5.6K in practice, and a claim dropped on length takes its whole ReasoningStep with it. Deliberately NOT raised to the proof-body bound — this type is also the member of a 50-entry ReasoningSteps list and of ArtifactHeaders, so its bound multiplies into the worst-case response size.

                    The product of these bounds is NOT what actually caps a response. Every projected body is read out of one IssueArtifactContent, itself bounded at 5 MiB, so no projection can exceed the size of the content it came from whatever the member bounds permit. Keeping this one modest is about not inflating a typical response, not about the ceiling.

              • responseStatus (integer) --

                HTTP status observed in the response.

              • responseSnippet (string) --

                Leading portion of the response body, bounded by the producer.

              • effect (string) --

                Effect observed from sending the payload.

      • prevalidationSignals (dict) --

        Projected EVIDENCE content whose stored envelope declares artifact_kind: prevalidation_signals — the severity signals prioritization uses.

        One artifactType can select different members here: EVIDENCE also carries the prioritization markdown narrative, which is not JSON and so returns through raw. The member is therefore chosen by artifactType AND, for a type that carries more than one payload kind, the content's own discriminator.

        • producedBy (string) --

          The agent that produced this signal set.

        • signals (list) --

          The signals backing the Issue's proposed severity.

          • (dict) --

            One producer's conclusion about one subject on one scoring dimension.

            • subjectRef (string) --

              What this signal is about, such as a finding or issue reference.

            • dimension (string) --

              The axis this signal speaks to. Absent when the producer reported a dimension with no mapping yet.

            • signalStrength (string) --

              The signal's own rating. This is an input to scoring and is NOT the finding's severity.

            • conclusion (string) --

              The producer's conclusion.

            • producerId (string) --

              Stable name of the producer that emitted this signal.

            • producerVersion (string) --

              Version of that producer.

            • confidence (float) --

              The producer's confidence in this conclusion, on its native 0-1 scale. Absent when the stored value falls outside 0-1.

            • confidenceReasoning (dict) --

              Why the producer is or is not sure, kept structured rather than prose.

              • summary (string) --

                One-line rationale.

              • factors (list) --

                The individual factors behind it.

                • (string) --

                  A citation supporting a claim: file:line, an HTTP response, or a graph node id.

                  1024 rather than 512: validation agents cite a span of reasoning rather than a single location, reaching ~930 characters, and an over-long citation drops its entire ReasoningStep — claim included — rather than just the citation.

            • computed (dict) --

              The deterministic values the producer computed from its assessment.

              • likelihoodBand (string) --

                Computed likelihood band, on a likelihood signal.

              • impactBand (string) --

                Computed impact band, on an impact signal.

              • barriers (integer) --

                How many of the four exploit preconditions act as barriers (0-4).

            • preconditions (dict) --

              The four exploit preconditions a likelihood signal assessed, each with the basis the producer had for it.

              • reachableFromAttacker (dict) --

                Whether the vulnerable code path is reachable by an attacker.

                • value (boolean) --

                  The producer's determination.

                  A Boolean rather than an enum, against the Common Terms preference for enums on extensibility grounds. The question each precondition answers is closed — is the code reachable, is configuration required, must a user other than the attacker interact — and the only third state, "not determined", is already expressed by omitting this member, which the projection does whenever the stored value is not a bool. An enum would give two ways to say the same thing, while basis and missingInfo already qualify how firm the answer is.

                • basis (string) --

                  Where the producer's determination came from.

                • reason (string) --

                  The producer's explanation.

                • missingInfo (string) --

                  What the producer could not determine, when anything was missing.

              • configurationNeeded (dict) --

                Whether exploitation depends on a non-default configuration.

                • value (boolean) --

                  The producer's determination.

                  A Boolean rather than an enum, against the Common Terms preference for enums on extensibility grounds. The question each precondition answers is closed — is the code reachable, is configuration required, must a user other than the attacker interact — and the only third state, "not determined", is already expressed by omitting this member, which the projection does whenever the stored value is not a bool. An enum would give two ways to say the same thing, while basis and missingInfo already qualify how firm the answer is.

                • basis (string) --

                  Where the producer's determination came from.

                • reason (string) --

                  The producer's explanation.

                • missingInfo (string) --

                  What the producer could not determine, when anything was missing.

              • accessLevel (dict) --

                What level of access exploitation requires.

                • value (string) --

                  The level of access exploitation requires. Absent when the producer reported a level with no mapping yet.

                • basis (string) --

                  Where the producer's determination came from.

                • reason (string) --

                  The producer's explanation.

                • missingInfo (string) --

                  What the producer could not determine, when anything was missing.

              • userInteractionRequired (dict) --

                Whether exploitation requires a user other than the attacker to take part, for example by opening a link or a file (CVSS User Interaction).

                • value (boolean) --

                  The producer's determination.

                  A Boolean rather than an enum, against the Common Terms preference for enums on extensibility grounds. The question each precondition answers is closed — is the code reachable, is configuration required, must a user other than the attacker interact — and the only third state, "not determined", is already expressed by omitting this member, which the projection does whenever the stored value is not a bool. An enum would give two ways to say the same thing, while basis and missingInfo already qualify how firm the answer is.

                • basis (string) --

                  Where the producer's determination came from.

                • reason (string) --

                  The producer's explanation.

                • missingInfo (string) --

                  What the producer could not determine, when anything was missing.

            • impactDimensions (dict) --

              The three impact dimensions an impact signal assessed, each with the basis the producer had for it. These are what the computed impact band is derived from.

              • attackerGains (dict) --

                What the attacker gains from exploitation.

                • value (string) --

                  The capability exploitation grants. Absent when the producer reported a value with no mapping yet.

                • basis (string) --

                  Where the producer's determination came from.

                • reason (string) --

                  The producer's explanation.

                • missingInfo (string) --

                  What the producer could not determine, when anything was missing.

              • blastRadius (dict) --

                How far the consequences reach.

                • value (string) --

                  How far the consequences reach. Absent when the producer reported a value with no mapping yet.

                • basis (string) --

                  Where the producer's determination came from.

                • reason (string) --

                  The producer's explanation.

                • missingInfo (string) --

                  What the producer could not determine, when anything was missing.

              • targetValue (dict) --

                How valuable the target is, which can shift the band off its base value.

                • value (string) --

                  How valuable the target is. Absent when the producer reported a value with no mapping yet.

                • basis (string) --

                  Where the producer's determination came from.

                • reason (string) --

                  The producer's explanation.

                • missingInfo (string) --

                  What the producer could not determine, when anything was missing.

            • exploitability (dict) --

              What validation established about exploitability, on an exploitability signal. This summarizes the verdict the signal was derived from; the proof itself is the VALIDATION_EVIDENCE artifact it cites.

              • verdict (string) --

                Validation's verdict. UNCERTAIN covers a run that was inconclusive — out of budget, an ambiguous failure, or no decisive layer reached — and is never a refutation.

              • reachedCrownJewels (boolean) --

                Whether validation reached the high-value sink the attack path posited.

                A Boolean rather than an enum: the sink was either reached or it was not, and how far the walk got when it was not is already carried, with more precision, by highestLayerReached. An unknown is the absent member.

              • highestLayerReached (integer) --

                The highest impact layer validation reached, 1-5, as a measure of how far the attack path was walked.

              • confidenceTier (string) --

                How strong the evidence behind the verdict is.

              • scriptable (boolean) --

                Whether the proven exploit is automatable rather than one-off.

                A Boolean for the same reason as SignalPrecondition.value: validation records a bool, and an unknown is the absent member.

              • sourceValidationArtifactId (string) --

                The VALIDATION_EVIDENCE artifact on this same issue holding the proof this verdict summarizes. Fetch it with GetCodeIssueArtifact for the full reasoning chain and exploit artifact.

      • remediationProposal (dict) --

        Projected REMEDIATION_PROPOSAL content: a patch the remediation agent produced, with the descriptors needed to apply and verify it.

        REMEDIATION_PROPOSAL content that does not match this shape is returned through raw.

        • patch (string) --

          The patch exactly as the remediation agent produced it, unmodified.

        • format (string) --

          The patch's wire format, which determines how to apply it. Absent when the producer recorded a format with no mapping yet.

        • filename (string) --

          Filename the producer suggests for the patch, when it named one.

        • patchSha256 (string) --

          SHA-256 of the patch bytes in lowercase hex, as recorded by the producer.

          Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against patch without trusting this value.

      • patch (dict) --

        Projected PATCH content: the remediation patch for one repository, with the descriptors needed to verify and apply it and the state of its delivery to the customer's own bucket or repository.

        Every PATCH projects here. The descriptors come from members Control Plane computes or owns when it stores the patch, not from producer metadata, so this member is the whole PATCH contract and metadata is omitted for it.

        • patch (string) --

          The patch exactly as stored, unmodified. Control Plane accepted it only as a text unified diff, so git apply applies it.

        • format (string) --

          The patch's wire format, read from the patch itself, which determines how to apply it. Absent when the patch starts with neither a git mailbox header nor a diff --git header.

        • repositoryName (string) --

          The repository the patch applies to, as named in the source snapshot it was generated against.

        • patchSha256 (string) --

          SHA-256 of the patch's UTF-8 bytes in lowercase hex, computed by Control Plane when it stored the patch.

          Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against patch without trusting this value.

        • sizeBytes (integer) --

          Size of the patch in UTF-8 bytes, the unit the digest is computed over.

        • delivery (dict) --

          Delivery of the patch to the customer's bucket or repository. Absent when the artifact has no delivery destination.

          • status (string) --

            How far delivery to the destination has progressed.

          • target (dict) --

            Where the patch was or will be delivered. Absent while the destination is still being resolved, or when delivery was skipped before a destination was known.

            • s3 (dict) --

              The S3 object the patch is delivered to.

              • bucket (string) --

                Customer-managed S3 bucket name.

              • key (string) --

                The object key of the delivered patch.

              • version (string) --

                The S3 version ID of the delivered object, when the bucket is versioned.

            • github (dict) --

              The GitHub repository the patch is delivered to, including the pull request once it is opened.

              • owner (string) --

                The GitHub user or organization that owns the repository.

              • repository (string) --

                The repository name.

              • pullRequestNumber (integer) --

                Repository-scoped pull request number assigned by GitHub.

              • headSha (string) --

                The head commit SHA of the pull request. Absent until the pull request is opened.

            • gitlab (dict) --

              The GitLab project the patch is delivered to, including the merge request once it is opened.

              • projectPath (string) --

                The project's full path (for example group/subgroup/project) as the Build recorded it.

              • mergeRequestNumber (integer) --

                Project-scoped merge request number assigned by GitLab (the !N it shows; its API calls it the IID).

              • mergeRequestUri (string) --

                Canonical HTTPS URL returned by GitLab for the opened merge request. Absent until publication has returned a merge request.

              • headSha (string) --

                The head commit SHA of the merge request. Absent until the merge request is opened.

          • updatedAt (datetime) --

            When the delivery status last changed.

          • changeRequest (dict) --

            The pull request (GitHub) or merge request (GitLab) this patch was delivered as, as Continuum last read it from the provider. Absent until Continuum first reads it, and for deliveries that are not a pull or merge request.

            • state (string) --

              Whether the pull or merge request is still open, was merged, or was closed without being merged.

            • mergedAt (datetime) --

              When it was merged. Present only when state is MERGED and the provider reported the time.

            • closedAt (datetime) --

              When it was closed, merged or not. Absent while it is open.

            • checkedAt (datetime) --

              When Continuum last read it from the provider.

      • raw (string) --

        The producer's content verbatim, for an artifactType with no defined shape or content that failed to parse against its shape.

    • metadata (:ref:`document<document>`) --

      Producer-defined structured metadata, when the producer supplied any.

      Returned only for an artifactType whose content has no defined shape, so that the artifact stays inspectable. For an artifactType with a defined shape, body carries the content and this member is omitted.

    • producer (dict) --

      The agent that produced the artifact.

      • agent (string) --

        Stable producer name, such as ContinuumValidation.

    • createdAt (datetime) --

      The timestamp when the artifact was created.

GetEnvironment (updated) Link ¶
Changes (response)
{'configuration': {'codeConfiguration': {'environmentConfiguration': {'focusMode': 'COMPREHENSIVE '
                                                                                   '| '
                                                                                   'FOCUSED',
                                                                      'issueBudget': {'maxIssuesPerScan': 'integer'}}}}}

Retrieves the current state and configuration of an environment.

See also: AWS API Documentation

Request Syntax

client.get_environment(
    environmentId='string'
)
type environmentId:

string

param environmentId:

[REQUIRED]

The unique identifier of the environment to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'environmentId': 'string',
    'environmentArn': 'string',
    'name': 'string',
    'status': 'ACTIVE',
    'statusMessage': 'string',
    'statusUpdatedAt': datetime(2015, 1, 1),
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'configuration': {
        'codeConfiguration': {
            'collectorDetails': {
                'collectorDataAccessRoleArn': 'string'
            },
            'sourceConfiguration': {
                's3Sources': [
                    {
                        'integrationId': 'string',
                        'codePrefix': 'string',
                        'contextPrefix': 'string'
                    },
                ],
                'repositorySources': [
                    {
                        'integrationId': 'string',
                        'repository': 'string',
                        'defaultBranch': 'string'
                    },
                ]
            },
            'environmentConfiguration': {
                'network': {
                    'allowedDomains': [
                        'string',
                    ]
                },
                'scanFrequency': 'string',
                'patchCreationPolicy': 'ENABLED'|'DISABLED',
                'focusMode': 'COMPREHENSIVE'|'FOCUSED',
                'issueBudget': {
                    'maxIssuesPerScan': 123
                }
            },
            'latestScan': {
                'scanRunId': 'string',
                'status': 'SUBMITTED'|'WAITING_FOR_BUILD'|'BUILDING'|'WAITING_FOR_SCAN'|'SCANNING'|'SUCCEEDED'|'FAILED',
                'origin': 'MANUAL'|'SCHEDULED',
                'createdAt': datetime(2015, 1, 1),
                'completedAt': datetime(2015, 1, 1),
                'failureMessage': 'string',
                'failureStage': 'SUBMITTED'|'WAITING_FOR_BUILD'|'BUILDING'|'WAITING_FOR_SCAN'|'SCANNING'
            }
        }
    }
}

Response Structure

  • (dict) --

    Contains the current state and configuration of the requested environment.

    • environmentId (string) --

      The unique identifier of the environment.

    • environmentArn (string) --

      The ARN of the environment.

    • name (string) --

      The customer-visible name of the environment.

    • status (string) --

      The current operational status of the environment.

    • statusMessage (string) --

      Human-readable details about the current status. Present when the status requires additional context (e.g., failure reason).

    • statusUpdatedAt (datetime) --

      The timestamp when the status last transitioned.

    • createdAt (datetime) --

      The timestamp when the environment was created.

    • updatedAt (datetime) --

      The timestamp when the environment's properties were last updated.

    • configuration (dict) --

      Type-specific configuration and state, including code sources, operating policy, Collector details, and the latest scan.

      • codeConfiguration (dict) --

        Configuration and scan state for a code-scanning environment.

        • collectorDetails (dict) --

          Collector data access configuration. Omitted when no Collector data access role is configured.

          • collectorDataAccessRoleArn (string) --

            IAM role that Continuum assumes to authorize its access to associated Collector inventory. Required for nonempty Collector inventory resolution, in the same account or across accounts. This is independent from any S3 source role.

        • sourceConfiguration (dict) --

          Sources in the shape accepted by CreateEnvironment and UpdateEnvironment.

          • s3Sources (list) --

            S3 sources backed by previously-created S3 integrations.

            • (dict) --

              An S3 source for one environment, backed by a previously-created S3 integration.

              • integrationId (string) --

                Identifier of an S3 integration in the caller's account. The integration supplies the bucket, the read role, and the external ID Continuum uses to read the prefixes.

              • codePrefix (string) --

                Prefix containing source code. Defaults to code/ when omitted.

              • contextPrefix (string) --

                Prefix containing customer-authored context. Defaults to context/ when omitted.

          • repositorySources (list) --

            Explicit repository selections from previously-created integrations.

            • (dict) --

              One repository selected from a previously-created integration.

              • integrationId (string) --

                Integration that provides the selected repository.

              • repository (string) --

                Repository selected from that integration: owner/repository for GitHub, or the project's full (possibly nested) path for GitLab.

              • defaultBranch (string) --

                Branch used when a scan does not choose a more specific revision.

        • environmentConfiguration (dict) --

          Operating policy in the shape accepted by CreateEnvironment and UpdateEnvironment.

          • network (dict) --

            Network policy for agent execution.

            • allowedDomains (list) --

              Domains that an environment's agent execution may contact.

              • (string) --

                A domain name permitted for build-time dependency resolution.

          • scanFrequency (string) --

            Recurring scan interval: P1D (1 day), P2D (2 days), or P7D (7 days). PT0H disables recurring scans. Defaults to P1D when creating an environment.

          • patchCreationPolicy (string) --

            Whether Continuum creates a patch for a proposed remediation. Defaults to DISABLED.

          • focusMode (string) --

            Which findings Continuum pursues, by the severity reported when the finding is created. Defaults to COMPREHENSIVE.

          • issueBudget (dict) --

            Caps the new issues each scan may start. Absent, or maxIssuesPerScan 0, means no cap. A change takes effect at the next scan.

            • maxIssuesPerScan (integer) --

              Maximum new issues per scan, 1 to 1000. 0 removes the cap.

        • latestScan (dict) --

          The newest scan requested for this environment, if one exists.

          • scanRunId (string) --

            The unique scan identifier.

          • status (string) --

            Current customer-visible status.

          • origin (string) --

            Why the scan was created. Always present.

          • createdAt (datetime) --

            Time at which Continuum accepted the scan request.

          • completedAt (datetime) --

            Time at which a terminal result was recorded.

          • failureMessage (string) --

            Failure detail present for unsuccessful scans.

          • failureStage (string) --

            Phase this scan failed in. Present only when status is FAILED, and absent for a scan that failed before this field existed.

GetIntegration (updated) Link ¶
Changes (response)
{'kmsKeyId': 'string', 'tags': {'string': 'string'}}

Reads a Continuum integration owned by the forwarded customer account.

See also: AWS API Documentation

Request Syntax

client.get_integration(
    integrationId='string'
)
type integrationId:

string

param integrationId:

[REQUIRED]

The unique identifier of the integration to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'integrationId': 'string',
    'integrationArn': 'string',
    'name': 'string',
    'integrationType': 'GITHUB'|'GITLAB'|'S3',
    'providerDetails': {
        'github': {
            'organizationName': 'string'
        },
        'gitlab': {
            'instanceUrl': 'string',
            'targetType': 'GROUP'|'PROJECT',
            'targetPath': 'string',
            'tokenRotation': 'AUTOMATIC'|'NONE',
            'expiresAt': datetime(2015, 1, 1)
        },
        's3': {
            'bucket': 'string',
            'roleArn': 'string'
        }
    },
    'createdAt': datetime(2015, 1, 1),
    'updatedAt': datetime(2015, 1, 1),
    'kmsKeyId': 'string',
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    Contains metadata for the requested integration.

    • integrationId (string) --

      The unique identifier of the integration.

    • integrationArn (string) --

      The ARN of the integration.

    • name (string) --

      The name of the integration.

    • integrationType (string) --

      The immutable provider type for the integration.

    • providerDetails (dict) --

      Provider-specific details for the integration.

      • github (dict) --

        Details for a GitHub.com integration.

        • organizationName (string) --

          The name of the GitHub organization associated with the integration.

      • gitlab (dict) --

        Details for a GitLab integration.

        • instanceUrl (string) --

          The HTTPS base URL of the GitLab instance.

        • targetType (string) --

          Whether the integration targets a group or a single project.

        • targetPath (string) --

          The group or project path the integration targets.

        • tokenRotation (string) --

          How the integration's access token is rotated. AUTOMATIC only when the pasted token had the self-rotate scope and rotation was opted in at installation time.

        • expiresAt (datetime) --

          The expiry of the stored access token, for non-rotating tokens only. A rotated token's original expiry is stale, so this is omitted when tokenRotation is AUTOMATIC.

      • s3 (dict) --

        Public details for a customer-managed S3 integration.

        • bucket (string) --

          Customer-managed S3 bucket name.

        • roleArn (string) --

          IAM role Continuum assumes to read from a customer-managed S3 bucket.

    • createdAt (datetime) --

      The timestamp when the integration was created.

    • updatedAt (datetime) --

      The timestamp when the integration was last updated.

    • kmsKeyId (string) --

      Customer managed KMS key ID, if the integration was created with one.

    • tags (dict) --

      The tags on the integration.

      • (string) --

        The key of a tag.

        • (string) --

          The value of a tag.

ListCodeFindings (updated) Link ¶
Changes (response)
{'items': {'notPursuedReason': 'FOCUS_MODE | ISSUE_BUDGET',
           'status': {'NOT_PURSUED'}}}

Lists the findings in an environment in descending findingId order.

See also: AWS API Documentation

Request Syntax

client.list_code_findings(
    environmentId='string',
    maxResults=123,
    nextToken='string'
)
type environmentId:

string

param environmentId:

[REQUIRED]

The environment whose findings to list.

type maxResults:

integer

param maxResults:

The maximum number of results to return in a single call.

type nextToken:

string

param nextToken:

A pagination token returned by a previous call. Set to null for the first request; use the returned token for subsequent calls.

rtype:

dict

returns:

Response Syntax

{
    'items': [
        {
            'findingId': 'string',
            'findingArn': 'string',
            'environmentId': 'string',
            'source': 'string',
            'sourceFindingId': 'string',
            'reportedAt': datetime(2015, 1, 1),
            'status': 'SUBMITTED'|'VALIDATING'|'CONFIRMED'|'DISCARDED'|'NOT_PURSUED',
            'statusUpdatedAt': datetime(2015, 1, 1),
            'createdAt': datetime(2015, 1, 1),
            'scanRunId': 'string',
            'statusMessage': 'string',
            'discardReason': 'SCANNER_VALIDATED_FALSE_POSITIVE'|'SCANNER_NEEDS_REVIEW'|'FALSE_POSITIVE_VALIDATED_AGAINST_CONTEXT'|'DUPLICATE_OF_OPEN_ISSUE'|'DUPLICATE_OF_CLOSED_ISSUE'|'COMPENSATING_CONTROL_PRESENT'|'OUT_OF_SCOPE'|'INSUFFICIENT_EVIDENCE'|'PROCESSING_FAILED'|'SOURCE_REPO_NOT_FOUND',
            'discardReasoning': 'string',
            'duplicateOfIssueId': 'string',
            'createdIssueId': 'string',
            'completedAt': datetime(2015, 1, 1),
            'type': 'CONTINUUM_CODE_VULN'|'CUSTOMER_CODE_VULN',
            'title': 'string',
            'severity': 'UNKNOWN'|'INFORMATIONAL'|'LOW'|'MEDIUM'|'HIGH'|'CRITICAL'|'FATAL'|'OTHER',
            'category': 'string',
            'filePath': 'string',
            'notPursuedReason': 'FOCUS_MODE'|'ISSUE_BUDGET'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Contains the list of finding summaries and an optional pagination token.

    • items (list) --

      The findings in the environment, ordered by findingId descending.

      • (dict) --

        A summary of a finding returned in list responses. Shares FindingLifecycleFields with the read operations so the list and get projections cannot drift. Carries a lean content subset -- fetch the finding for its full contents.

        • findingId (string) --

          The unique identifier of the finding.

        • findingArn (string) --

          The ARN of the finding.

        • environmentId (string) --

          The environment that owns the finding.

        • source (string) --

          The system that produced the finding.

        • sourceFindingId (string) --

          The producer's own identifier for the finding.

        • reportedAt (datetime) --

          When the producer reported the finding -- its own clock, which is not Continuum's ingestion time. createdAt is when Continuum accepted it; these are genuinely different instants and a reader usually wants this one.

          For CreateCodeFinding, this is the submitted OCSF document's own top-level time. For findings Continuum's scanner produces, it is the finding's own creation time.

          Continuum does not validate it for plausibility: a producer's value is echoed as given, so a timestamp here asserts the unit and format, not that the instant is genuine.

        • status (string) --

          The current lifecycle status of the finding.

        • statusUpdatedAt (datetime) --

          The timestamp when the status last transitioned.

        • createdAt (datetime) --

          The timestamp when the finding was ingested.

        • scanRunId (string) --

          The scan that produced the finding, when it came from one. For a finding Continuum's scanner produced, this is the Continuum scan run (see GetCodeScan). For a finding submitted with CreateCodeFinding, it is the OCSF document's metadata.correlation_uid, when that value is a valid ScanRunId. Absent when the finding did not come from a scan.

        • statusMessage (string) --

          Human-readable context about the current status.

        • discardReason (string) --

          Why the finding was not escalated. Present only when status is DISCARDED.

        • discardReasoning (string) --

          Customer-facing explanation accompanying discardReason.

        • duplicateOfIssueId (string) --

          The existing issue this finding duplicates. Present only for the DUPLICATE_OF_* discard reasons.

        • createdIssueId (string) --

          The issue Continuum created from this finding.

        • completedAt (datetime) --

          When processing finished, whether by creating an issue or discarding. Absent while the finding is still in flight.

        • type (string) --

          What kind of finding this is.

        • title (string) --

          The producer's title for the finding.

        • severity (string) --

          The finding's severity.

        • category (string) --

          The producer's vulnerability category.

        • filePath (string) --

          The file the finding is about, when it has a code location.

        • notPursuedReason (string) --

          May be present when status is NOT_PURSUED: why Continuum did not pursue it. Only findings submitted with CreateCodeFinding are listed when not pursued, so in practice FOCUS_MODE.

    • nextToken (string) --

      A pagination token to retrieve the next page of results. Absent when there are no more results.

ListIntegrations (updated) Link ¶
Changes (response)
{'items': {'kmsKeyId': 'string'}}

Lists Continuum integrations owned by the forwarded customer account.

See also: AWS API Documentation

Request Syntax

client.list_integrations(
    maxResults=123,
    nextToken='string'
)
type maxResults:

integer

param maxResults:

Maximum number of integrations to return per page.

type nextToken:

string

param nextToken:

Pagination token returned by a previous call. Omit for the first request.

rtype:

dict

returns:

Response Syntax

{
    'items': [
        {
            'integrationId': 'string',
            'integrationArn': 'string',
            'name': 'string',
            'integrationType': 'GITHUB'|'GITLAB'|'S3',
            'providerDetails': {
                'github': {
                    'organizationName': 'string'
                },
                'gitlab': {
                    'instanceUrl': 'string',
                    'targetType': 'GROUP'|'PROJECT',
                    'targetPath': 'string',
                    'tokenRotation': 'AUTOMATIC'|'NONE',
                    'expiresAt': datetime(2015, 1, 1)
                },
                's3': {
                    'bucket': 'string',
                    'roleArn': 'string'
                }
            },
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'kmsKeyId': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Contains the list of integration summaries and an optional pagination token.

    • items (list) --

      The integrations in the account, ordered by integrationId descending.

      • (dict) --

        Summary of a Continuum integration returned in list responses.

        • integrationId (string) --

          The unique identifier of the integration.

        • integrationArn (string) --

          The ARN of the integration.

        • name (string) --

          The name of the integration.

        • integrationType (string) --

          The immutable provider type for the integration.

        • providerDetails (dict) --

          Provider-specific details for the integration.

          • github (dict) --

            Details for a GitHub.com integration.

            • organizationName (string) --

              The name of the GitHub organization associated with the integration.

          • gitlab (dict) --

            Details for a GitLab integration.

            • instanceUrl (string) --

              The HTTPS base URL of the GitLab instance.

            • targetType (string) --

              Whether the integration targets a group or a single project.

            • targetPath (string) --

              The group or project path the integration targets.

            • tokenRotation (string) --

              How the integration's access token is rotated. AUTOMATIC only when the pasted token had the self-rotate scope and rotation was opted in at installation time.

            • expiresAt (datetime) --

              The expiry of the stored access token, for non-rotating tokens only. A rotated token's original expiry is stale, so this is omitted when tokenRotation is AUTOMATIC.

          • s3 (dict) --

            Public details for a customer-managed S3 integration.

            • bucket (string) --

              Customer-managed S3 bucket name.

            • roleArn (string) --

              IAM role Continuum assumes to read from a customer-managed S3 bucket.

        • createdAt (datetime) --

          The timestamp when the integration was created.

        • updatedAt (datetime) --

          The timestamp when the integration was last updated.

        • kmsKeyId (string) --

          ARN of the customer managed KMS key, if the integration was created with one.

    • nextToken (string) --

      Pagination token for the next page. Absent when there are no more results.

UpdateEnvironment (updated) Link ¶
Changes (both)
{'configuration': {'codeConfiguration': {'environmentConfiguration': {'focusMode': 'COMPREHENSIVE '
                                                                                   '| '
                                                                                   'FOCUSED',
                                                                      'issueBudget': {'maxIssuesPerScan': 'integer'}}}}}

Updates the customer-controlled mutable properties of an environment. Only the name, the environment's S3 integration source and repository selections, its scan frequency, its network policy, its patch creation policy, its focus mode, and its pentest configuration can be changed.

See also: AWS API Documentation

Request Syntax

client.update_environment(
    environmentId='string',
    name='string',
    configuration={
        'codeConfiguration': {
            'sourceConfiguration': {
                's3Sources': [
                    {
                        'integrationId': 'string',
                        'codePrefix': 'string',
                        'contextPrefix': 'string'
                    },
                ],
                'repositorySources': [
                    {
                        'integrationId': 'string',
                        'repository': 'string',
                        'defaultBranch': 'string'
                    },
                ]
            },
            'environmentConfiguration': {
                'network': {
                    'allowedDomains': [
                        'string',
                    ]
                },
                'scanFrequency': 'string',
                'patchCreationPolicy': 'ENABLED'|'DISABLED',
                'focusMode': 'COMPREHENSIVE'|'FOCUSED',
                'issueBudget': {
                    'maxIssuesPerScan': 123
                }
            }
        }
    }
)
type environmentId:

string

param environmentId:

[REQUIRED]

The unique identifier of the environment to update.

type name:

string

param name:

The new customer-visible name.

type configuration:

dict

param configuration:

Type-specific configuration changes. Omission preserves the configuration.

  • codeConfiguration (dict) --

    Changes to a code-scanning environment.

    • sourceConfiguration (dict) --

      Source changes. s3Sources replaces the environment's S3 source, and repositorySources replaces its repository selections.

      • s3Sources (list) --

        S3 sources backed by previously-created S3 integrations.

        • (dict) --

          An S3 source for one environment, backed by a previously-created S3 integration.

          • integrationId (string) -- [REQUIRED]

            Identifier of an S3 integration in the caller's account. The integration supplies the bucket, the read role, and the external ID Continuum uses to read the prefixes.

          • codePrefix (string) --

            Prefix containing source code. Defaults to code/ when omitted.

          • contextPrefix (string) --

            Prefix containing customer-authored context. Defaults to context/ when omitted.

      • repositorySources (list) --

        Explicit repository selections from previously-created integrations.

        • (dict) --

          One repository selected from a previously-created integration.

          • integrationId (string) -- [REQUIRED]

            Integration that provides the selected repository.

          • repository (string) -- [REQUIRED]

            Repository selected from that integration: owner/repository for GitHub, or the project's full (possibly nested) path for GitLab.

          • defaultBranch (string) --

            Branch used when a scan does not choose a more specific revision.

    • environmentConfiguration (dict) --

      Operating-policy changes. network replaces the environment's network policy; a network without allowedDomains allows no domains. Builds accepted before the change keep the domains they were accepted with. patchCreationPolicy replaces the patch creation policy. scanFrequency updates scan cadence. focusMode replaces the focus mode and applies only to findings created after the change; findings created before it are unaffected. Omitted members preserve their stored values.

      • network (dict) --

        Network policy for agent execution.

        • allowedDomains (list) --

          Domains that an environment's agent execution may contact.

          • (string) --

            A domain name permitted for build-time dependency resolution.

      • scanFrequency (string) --

        Recurring scan interval: P1D (1 day), P2D (2 days), or P7D (7 days). PT0H disables recurring scans. Defaults to P1D when creating an environment.

      • patchCreationPolicy (string) --

        Whether Continuum creates a patch for a proposed remediation. Defaults to DISABLED.

      • focusMode (string) --

        Which findings Continuum pursues, by the severity reported when the finding is created. Defaults to COMPREHENSIVE.

      • issueBudget (dict) --

        Caps the new issues each scan may start. Absent, or maxIssuesPerScan 0, means no cap. A change takes effect at the next scan.

        • maxIssuesPerScan (integer) -- [REQUIRED]

          Maximum new issues per scan, 1 to 1000. 0 removes the cap.

rtype:

dict

returns:

Response Syntax

{
    'environmentId': 'string',
    'environmentArn': 'string',
    'name': 'string',
    'status': 'ACTIVE',
    'statusMessage': 'string',
    'statusUpdatedAt': datetime(2015, 1, 1),
    'createdAt': datetime(2015, 1, 1),
    'configuration': {
        'codeConfiguration': {
            'collectorDetails': {
                'collectorDataAccessRoleArn': 'string'
            },
            'sourceConfiguration': {
                's3Sources': [
                    {
                        'integrationId': 'string',
                        'codePrefix': 'string',
                        'contextPrefix': 'string'
                    },
                ],
                'repositorySources': [
                    {
                        'integrationId': 'string',
                        'repository': 'string',
                        'defaultBranch': 'string'
                    },
                ]
            },
            'environmentConfiguration': {
                'network': {
                    'allowedDomains': [
                        'string',
                    ]
                },
                'scanFrequency': 'string',
                'patchCreationPolicy': 'ENABLED'|'DISABLED',
                'focusMode': 'COMPREHENSIVE'|'FOCUSED',
                'issueBudget': {
                    'maxIssuesPerScan': 123
                }
            },
            'latestScan': {
                'scanRunId': 'string',
                'status': 'SUBMITTED'|'WAITING_FOR_BUILD'|'BUILDING'|'WAITING_FOR_SCAN'|'SCANNING'|'SUCCEEDED'|'FAILED',
                'origin': 'MANUAL'|'SCHEDULED',
                'createdAt': datetime(2015, 1, 1),
                'completedAt': datetime(2015, 1, 1),
                'failureMessage': 'string',
                'failureStage': 'SUBMITTED'|'WAITING_FOR_BUILD'|'BUILDING'|'WAITING_FOR_SCAN'|'SCANNING'
            }
        }
    }
}

Response Structure

  • (dict) --

    Contains the current state of the updated environment. Use GetEnvironment to read its source and environment configuration.

    • environmentId (string) --

      The unique identifier of the updated environment.

    • environmentArn (string) --

      The ARN of the updated environment.

    • name (string) --

      The current customer-visible name of the environment.

    • status (string) --

      The current operational status of the environment.

    • statusMessage (string) --

      Human-readable details about the current status.

    • statusUpdatedAt (datetime) --

      The timestamp when the status last transitioned. Uses the existing GetEnvironment/ListEnvironments ISO-8601 wire format for this field.

    • createdAt (datetime) --

      The timestamp when the environment was created. Uses the existing GetEnvironment/ListEnvironments ISO-8601 wire format for this field.

    • configuration (dict) --

      Type-specific state, including Collector details, the latest scan, and the pentest configuration. Read source and operating-policy settings through GetEnvironment.

      • codeConfiguration (dict) --

        Configuration and scan state for a code-scanning environment.

        • collectorDetails (dict) --

          Collector data access configuration. Omitted when no Collector data access role is configured.

          • collectorDataAccessRoleArn (string) --

            IAM role that Continuum assumes to authorize its access to associated Collector inventory. Required for nonempty Collector inventory resolution, in the same account or across accounts. This is independent from any S3 source role.

        • sourceConfiguration (dict) --

          Sources in the shape accepted by CreateEnvironment and UpdateEnvironment.

          • s3Sources (list) --

            S3 sources backed by previously-created S3 integrations.

            • (dict) --

              An S3 source for one environment, backed by a previously-created S3 integration.

              • integrationId (string) --

                Identifier of an S3 integration in the caller's account. The integration supplies the bucket, the read role, and the external ID Continuum uses to read the prefixes.

              • codePrefix (string) --

                Prefix containing source code. Defaults to code/ when omitted.

              • contextPrefix (string) --

                Prefix containing customer-authored context. Defaults to context/ when omitted.

          • repositorySources (list) --

            Explicit repository selections from previously-created integrations.

            • (dict) --

              One repository selected from a previously-created integration.

              • integrationId (string) --

                Integration that provides the selected repository.

              • repository (string) --

                Repository selected from that integration: owner/repository for GitHub, or the project's full (possibly nested) path for GitLab.

              • defaultBranch (string) --

                Branch used when a scan does not choose a more specific revision.

        • environmentConfiguration (dict) --

          Operating policy in the shape accepted by CreateEnvironment and UpdateEnvironment.

          • network (dict) --

            Network policy for agent execution.

            • allowedDomains (list) --

              Domains that an environment's agent execution may contact.

              • (string) --

                A domain name permitted for build-time dependency resolution.

          • scanFrequency (string) --

            Recurring scan interval: P1D (1 day), P2D (2 days), or P7D (7 days). PT0H disables recurring scans. Defaults to P1D when creating an environment.

          • patchCreationPolicy (string) --

            Whether Continuum creates a patch for a proposed remediation. Defaults to DISABLED.

          • focusMode (string) --

            Which findings Continuum pursues, by the severity reported when the finding is created. Defaults to COMPREHENSIVE.

          • issueBudget (dict) --

            Caps the new issues each scan may start. Absent, or maxIssuesPerScan 0, means no cap. A change takes effect at the next scan.

            • maxIssuesPerScan (integer) --

              Maximum new issues per scan, 1 to 1000. 0 removes the cap.

        • latestScan (dict) --

          The newest scan requested for this environment, if one exists.

          • scanRunId (string) --

            The unique scan identifier.

          • status (string) --

            Current customer-visible status.

          • origin (string) --

            Why the scan was created. Always present.

          • createdAt (datetime) --

            Time at which Continuum accepted the scan request.

          • completedAt (datetime) --

            Time at which a terminal result was recorded.

          • failureMessage (string) --

            Failure detail present for unsuccessful scans.

          • failureStage (string) --

            Phase this scan failed in. Present only when status is FAILED, and absent for a scan that failed before this field existed.