# MCPServerAuthorizationConfigProperty

- Source: Generated code
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';

declare const exchangeParameters: any;
const mCPServerAuthorizationConfigProperty: devopsagent.CfnService.MCPServerAuthorizationConfigProperty = {
  apiKey: {
    apiKeyHeader: 'apiKeyHeader',
    apiKeyName: 'apiKeyName',
    apiKeyValue: 'apiKeyValue',
  },
  bearerToken: {
    tokenName: 'tokenName',
    tokenValue: 'tokenValue',

    // the properties below are optional
    authorizationHeader: 'authorizationHeader',
  },
  oAuthClientCredentials: {
    clientId: 'clientId',
    clientSecret: 'clientSecret',
    exchangeUrl: 'exchangeUrl',

    // the properties below are optional
    clientName: 'clientName',
    exchangeParameters: exchangeParameters,
    scopes: ['scopes'],
  },
};
```

## Properties

- `apiKey`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.ApiKeyDetailsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnService.ApiKeyDetailsProperty.html) — API key authentication details.

- `bearerToken`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.BearerTokenDetailsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnService.BearerTokenDetailsProperty.html) — Bearer token authentication details.

- `oAuthClientCredentials`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.MCPServerOAuthClientCredentialsConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnService.MCPServerOAuthClientCredentialsConfigProperty.html) — MCP server OAuth client credentials configuration.
