---
title: "Edit AWS Data Source"
method: PATCH
path: "/v1/dataSources/aws/{awsDataSourceId}"
tags: ["Cloud"]
---

# Edit AWS Data Source

`PATCH /v1/dataSources/aws/{awsDataSourceId}`

Edit the metadata of an AWS data source. Metadata refers to any property of the data source that is not related to the data source's cloud data itself.

## Path parameters

- `awsDataSourceId` string, required — AWS data source ID

## Request body

- EditAwsDataSourceRequest
  - `name` string — The new display name to give to the AWS data source

## Response `200`

OK. Returns the edited AWS data source.

- AwsDataSourceObject
  - `dataSourceId` string, required — AWS data source ID
  - `type` 'aws', required
  - `params` object, required
    - `name` string, required
    - `importType` 'crossAccount' | 'cliJson', required
    - `awsAccountId` string — The ID of the linked AWS account (only for crossAccount import types)
    - `regions` string[] — List of AWS regions selected for the data source (only for crossAccount import types)
    - `resourceSelection` string[] — List of AWS resources included in the data source (only for crossAccount import types)

## Other responses

- `403` — Forbidden. Occurs when the data source does not exist or the user does not have access to it.

---

[API](https://skmtc.net/lucid/apis/lucid-rest-api.md) · [All operations](https://skmtc.net/lucid/apis/lucid-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lucid/lucid-rest-api/revisions/6a32cb9e1aa7/schema)
