---
title: "POST /codesecurity/scan-configuration/batch/associate"
method: POST
path: "/codesecurity/scan-configuration/batch/associate"
---

# POST /codesecurity/scan-configuration/batch/associate

`POST /codesecurity/scan-configuration/batch/associate`

Associates multiple code repositories with an Amazon Inspector code security scan configuration.

## Request body

- object
  - `associateConfigurationRequests` AssociateConfigurationRequest[], required — A list of code repositories to associate with the specified scan configuration.
    - `scanConfigurationArn` string, required — The Amazon Resource Name (ARN) of the scan configuration.
    - `resource` CodeSecurityResource, required — Identifies a specific resource in a code repository that will be scanned.
      - `projectId` string — The unique identifier of the project in the code repository.

## Response `200`

Success

- BatchAssociateCodeSecurityScanConfigurationResponse
  - `failedAssociations` FailedAssociationResult[] — Details of any code repositories that failed to be associated with the scan configuration.
    - `scanConfigurationArn` string — The Amazon Resource Name (ARN) of the scan configuration that failed to be associated or disassociated.
    - `resource` CodeSecurityResource — Identifies a specific resource in a code repository that will be scanned.
      - `projectId` string — The unique identifier of the project in the code repository.
    - `statusCode` 'INTERNAL_ERROR' | 'ACCESS_DENIED' | 'SCAN_CONFIGURATION_NOT_FOUND' | 'INVALID_INPUT' | 'RESOURCE_NOT_FOUND' | 'QUOTA_EXCEEDED' — The status code indicating why the association or disassociation failed.
    - `statusMessage` string — A message explaining why the association or disassociation failed.
  - `successfulAssociations` SuccessfulAssociationResult[] — Details of code repositories that were successfully associated with the scan configuration.
    - `scanConfigurationArn` string — The Amazon Resource Name (ARN) of the scan configuration that was successfully associated or disassociated.
    - `resource` CodeSecurityResource — Identifies a specific resource in a code repository that will be scanned.
      - `projectId` string — The unique identifier of the project in the code repository.

## Other responses

- `480` — ConflictException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — ResourceNotFoundException
- `484` — ThrottlingException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/inspector2.md) · [All operations](https://skmtc.net/aws/apis/inspector2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/inspector2/versions/c51110c7cd43/schema)
