# CredentialCloud

Where an Anthropic credential reaches Claude when it isn't Anthropic's own API: Amazon Bedrock in a region, or Google Vertex AI in a project and region. Only code pipelines' Claude Code agents can run on such a credential.

**Kind:** an object, used in requests and responses. In a request it is called `CredentialCloudInput`.

## In a request

| Field | Type | Required | Description |
|---|---|---|---|
| `kind` | [`CredentialCloudKind`](https://docs.maitento.com/reference/types/credential-cloud-kind.md) |  |  |
| `awsRegion` | `string \| null` |  | The AWS region, such as `us-east-1`. Required for Bedrock. |
| `gcpProjectId` | `string \| null` |  | The Google Cloud project id. Required for Vertex. |
| `gcpRegion` | `string \| null` |  | The Vertex region, such as `us-east5` or `global`. Required for Vertex. |

```json
{
  "kind": "Bedrock",
  "awsRegion": "...",
  "gcpProjectId": "...",
  "gcpRegion": "..."
}
```

## In a response

Every field is present in a response; empty ones are `null`.

| Field | Type | Description |
|---|---|---|
| `kind` | [`CredentialCloudKind`](https://docs.maitento.com/reference/types/credential-cloud-kind.md) |  |
| `awsRegion` | `string \| null` | The AWS region, such as `us-east-1`. Required for Bedrock. |
| `gcpProjectId` | `string \| null` | The Google Cloud project id. Required for Vertex. |
| `gcpRegion` | `string \| null` | The Vertex region, such as `us-east5` or `global`. Required for Vertex. |

```json
{
  "kind": "Bedrock",
  "awsRegion": "...",
  "gcpProjectId": "...",
  "gcpRegion": "..."
}
```

## Where it's used

- Inside [`ModelCredential`](https://docs.maitento.com/reference/types/model-credential.md)
- Inside [`ModelCredentialRequest`](https://docs.maitento.com/reference/types/model-credential-request.md)
