batch_get_repository_scanning_configuration

batch_get_repository_scanning_configuration(**kwargs)

Gets the scanning configuration for one or more repositories.

See also: AWS API Documentation

Request Syntax

response = client.batch_get_repository_scanning_configuration(
    repositoryNames=[
        'string',
    ]
)
Parameters
repositoryNames (list) --

[REQUIRED]

One or more repository names to get the scanning configuration for.

  • (string) --
Return type
dict
Returns
Response Syntax
{
    'scanningConfigurations': [
        {
            'repositoryArn': 'string',
            'repositoryName': 'string',
            'scanOnPush': True|False,
            'scanFrequency': 'SCAN_ON_PUSH'|'CONTINUOUS_SCAN'|'MANUAL',
            'appliedScanFilters': [
                {
                    'filter': 'string',
                    'filterType': 'WILDCARD'
                },
            ]
        },
    ],
    'failures': [
        {
            'repositoryName': 'string',
            'failureCode': 'REPOSITORY_NOT_FOUND',
            'failureReason': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • scanningConfigurations (list) --

      The scanning configuration for the requested repositories.

      • (dict) --

        The details of the scanning configuration for a repository.

        • repositoryArn (string) --

          The ARN of the repository.

        • repositoryName (string) --

          The name of the repository.

        • scanOnPush (boolean) --

          Whether or not scan on push is configured for the repository.

        • scanFrequency (string) --

          The scan frequency for the repository.

        • appliedScanFilters (list) --

          The scan filters applied to the repository.

          • (dict) --

            The details of a scanning repository filter. For more information on how to use filters, see Using filters in the Amazon Elastic Container Registry User Guide .

            • filter (string) --

              The filter to use when scanning.

            • filterType (string) --

              The type associated with the filter.

    • failures (list) --

      Any failures associated with the call.

      • (dict) --

        The details about any failures associated with the scanning configuration of a repository.

        • repositoryName (string) --

          The name of the repository.

        • failureCode (string) --

          The failure code.

        • failureReason (string) --

          The reason for the failure.

Exceptions

  • ECR.Client.exceptions.ServerException
  • ECR.Client.exceptions.InvalidParameterException
  • ECR.Client.exceptions.RepositoryNotFoundException
  • ECR.Client.exceptions.ValidationException