

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::DevOpsAgent::Service MCPServerAuthorizationConfig
<a name="aws-properties-devopsagent-service-mcpserverauthorizationconfig"></a>

The authorization configuration for a custom MCP server. Specify either OAuth client credentials or an API key.

## Syntax
<a name="aws-properties-devopsagent-service-mcpserverauthorizationconfig-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-devopsagent-service-mcpserverauthorizationconfig-syntax.json"></a>

```
{
  "[ApiKey](#cfn-devopsagent-service-mcpserverauthorizationconfig-apikey)" : ApiKeyDetails,
  "[OAuthClientCredentials](#cfn-devopsagent-service-mcpserverauthorizationconfig-oauthclientcredentials)" : MCPServerOAuthClientCredentialsConfig
}
```

### YAML
<a name="aws-properties-devopsagent-service-mcpserverauthorizationconfig-syntax.yaml"></a>

```
  [ApiKey](#cfn-devopsagent-service-mcpserverauthorizationconfig-apikey): 
    ApiKeyDetails
  [OAuthClientCredentials](#cfn-devopsagent-service-mcpserverauthorizationconfig-oauthclientcredentials): 
    MCPServerOAuthClientCredentialsConfig
```

## Properties
<a name="aws-properties-devopsagent-service-mcpserverauthorizationconfig-properties"></a>

`ApiKey`  <a name="cfn-devopsagent-service-mcpserverauthorizationconfig-apikey"></a>
The API key details for authenticating with the MCP server.  
*Required*: No  
*Type*: [ApiKeyDetails](aws-properties-devopsagent-service-apikeydetails.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`OAuthClientCredentials`  <a name="cfn-devopsagent-service-mcpserverauthorizationconfig-oauthclientcredentials"></a>
The OAuth client credentials for authenticating with the MCP server.  
*Required*: No  
*Type*: [MCPServerOAuthClientCredentialsConfig](aws-properties-devopsagent-service-mcpserveroauthclientcredentialsconfig.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)