Inspector2 / Client / list_code_security_scan_configuration_associations
list_code_security_scan_configuration_associations¶
- Inspector2.Client.list_code_security_scan_configuration_associations(**kwargs)¶
Lists the associations between code repositories and Amazon Inspector code security scan configurations.
See also: AWS API Documentation
Request Syntax
response = client.list_code_security_scan_configuration_associations( maxResults=123, nextToken='string', scanConfigurationArn='string' )
- Parameters:
maxResults (integer) – The maximum number of results to return in the response. If your request would return more than the maximum the response will return a
nextToken
value, use this value when you call the action again to get the remaining results.nextToken (string) – A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextToken
value returned from the previous request to continue listing results after the first page.scanConfigurationArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the scan configuration to list associations for.
- Return type:
dict
- Returns:
Response Syntax
{ 'associations': [ { 'resource': { 'projectId': 'string' } }, ], 'nextToken': 'string' }
Response Structure
(dict) –
associations (list) –
A list of associations between code repositories and scan configurations.
(dict) –
A summary of an association between a code repository and a scan configuration.
resource (dict) –
Identifies a specific resource in a code repository that will be scanned.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
projectId
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
projectId (string) –
The unique identifier of the project in the code repository.
nextToken (string) –
A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the
NextToken
value returned from the previous request to continue listing results after the first page.
Exceptions
Inspector2.Client.exceptions.AccessDeniedException
Inspector2.Client.exceptions.ValidationException
Inspector2.Client.exceptions.ResourceNotFoundException
Inspector2.Client.exceptions.ThrottlingException
Inspector2.Client.exceptions.InternalServerException