Inspector2 / Client / get_code_security_scan_configuration

get_code_security_scan_configuration

Inspector2.Client.get_code_security_scan_configuration(**kwargs)

Retrieves information about a code security scan configuration.

See also: AWS API Documentation

Request Syntax

response = client.get_code_security_scan_configuration(
    scanConfigurationArn='string'
)
Parameters:

scanConfigurationArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the scan configuration to retrieve.

Return type:

dict

Returns:

Response Syntax

{
    'configuration': {
        'continuousIntegrationScanConfiguration': {
            'supportedEvents': [
                'PULL_REQUEST'|'PUSH',
            ]
        },
        'periodicScanConfiguration': {
            'frequency': 'WEEKLY'|'MONTHLY'|'NEVER',
            'frequencyExpression': 'string'
        },
        'ruleSetCategories': [
            'SAST'|'IAC'|'SCA',
        ]
    },
    'createdAt': datetime(2015, 1, 1),
    'lastUpdatedAt': datetime(2015, 1, 1),
    'level': 'ORGANIZATION'|'ACCOUNT',
    'name': 'string',
    'scanConfigurationArn': 'string',
    'scopeSettings': {
        'projectSelectionScope': 'ALL'
    },
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • configuration (dict) –

      The configuration settings for the code security scan.

      • continuousIntegrationScanConfiguration (dict) –

        Configuration settings for continuous integration scans that run automatically when code changes are made.

        • supportedEvents (list) –

          The repository events that trigger continuous integration scans, such as pull requests or commits.

          • (string) –

      • periodicScanConfiguration (dict) –

        Configuration settings for periodic scans that run on a scheduled basis.

        • frequency (string) –

          The frequency at which periodic scans are performed (such as weekly or monthly).

          If you don’t provide the frequencyExpression Amazon Inspector chooses day for the scan to run. If you provide the frequencyExpression, the schedule must match the specified frequency.

        • frequencyExpression (string) –

          The schedule expression for periodic scans, in cron format.

      • ruleSetCategories (list) –

        The categories of security rules to be applied during the scan.

        • (string) –

    • createdAt (datetime) –

      The timestamp when the scan configuration was created.

    • lastUpdatedAt (datetime) –

      The timestamp when the scan configuration was last updated.

    • level (string) –

      The security level for the scan configuration.

    • name (string) –

      The name of the scan configuration.

    • scanConfigurationArn (string) –

      The Amazon Resource Name (ARN) of the scan configuration.

    • scopeSettings (dict) –

      The scope settings that define which repositories will be scanned. If the ScopeSetting parameter is ALL the scan configuration applies to all existing and future projects imported into Amazon Inspector.

      • projectSelectionScope (string) –

        The scope of projects to be selected for scanning within the integrated repositories. Setting the value to ALL applies the scope settings to all existing and future projects imported into Amazon Inspector.

    • tags (dict) –

      The tags associated with the scan configuration.

      • (string) –

        • (string) –

Exceptions