MCPServerDetailsProperty Struct
MCP server configuration.
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 mCPServerDetailsProperty: devopsagent.CfnService.MCPServerDetailsProperty = {
authorizationConfig: {
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'],
},
},
endpoint: 'endpoint',
name: 'name',
// the properties below are optional
description: 'description',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devopsagent as devopsagent
# exchange_parameters: Any
m_cp_server_details_property = devopsagent.CfnService.MCPServerDetailsProperty(
authorization_config=devopsagent.CfnService.MCPServerAuthorizationConfigProperty(
api_key=devopsagent.CfnService.ApiKeyDetailsProperty(
api_key_header="apiKeyHeader",
api_key_name="apiKeyName",
api_key_value="apiKeyValue"
),
bearer_token=devopsagent.CfnService.BearerTokenDetailsProperty(
token_name="tokenName",
token_value="tokenValue",
# the properties below are optional
authorization_header="authorizationHeader"
),
o_auth_client_credentials=devopsagent.CfnService.MCPServerOAuthClientCredentialsConfigProperty(
client_id="clientId",
client_secret="clientSecret",
exchange_url="exchangeUrl",
# the properties below are optional
client_name="clientName",
exchange_parameters=exchange_parameters,
scopes=["scopes"]
)
),
endpoint="endpoint",
name="name",
# the properties below are optional
description="description"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devopsagent.*;
Object exchangeParameters;
MCPServerDetailsProperty mCPServerDetailsProperty = MCPServerDetailsProperty.builder()
.authorizationConfig(MCPServerAuthorizationConfigProperty.builder()
.apiKey(ApiKeyDetailsProperty.builder()
.apiKeyHeader("apiKeyHeader")
.apiKeyName("apiKeyName")
.apiKeyValue("apiKeyValue")
.build())
.bearerToken(BearerTokenDetailsProperty.builder()
.tokenName("tokenName")
.tokenValue("tokenValue")
// the properties below are optional
.authorizationHeader("authorizationHeader")
.build())
.oAuthClientCredentials(MCPServerOAuthClientCredentialsConfigProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
.exchangeUrl("exchangeUrl")
// the properties below are optional
.clientName("clientName")
.exchangeParameters(exchangeParameters)
.scopes(List.of("scopes"))
.build())
.build())
.endpoint("endpoint")
.name("name")
// the properties below are optional
.description("description")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DevOpsAgent;
var exchangeParameters;
var mCPServerDetailsProperty = new MCPServerDetailsProperty {
AuthorizationConfig = new MCPServerAuthorizationConfigProperty {
ApiKey = new ApiKeyDetailsProperty {
ApiKeyHeader = "apiKeyHeader",
ApiKeyName = "apiKeyName",
ApiKeyValue = "apiKeyValue"
},
BearerToken = new BearerTokenDetailsProperty {
TokenName = "tokenName",
TokenValue = "tokenValue",
// the properties below are optional
AuthorizationHeader = "authorizationHeader"
},
OAuthClientCredentials = new MCPServerOAuthClientCredentialsConfigProperty {
ClientId = "clientId",
ClientSecret = "clientSecret",
ExchangeUrl = "exchangeUrl",
// the properties below are optional
ClientName = "clientName",
ExchangeParameters = exchangeParameters,
Scopes = new [] { "scopes" }
}
},
Endpoint = "endpoint",
Name = "name",
// the properties below are optional
Description = "description"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var exchangeParameters interface{}
mCPServerDetailsProperty := &MCPServerDetailsProperty{
AuthorizationConfig: &MCPServerAuthorizationConfigProperty{
ApiKey: &ApiKeyDetailsProperty{
ApiKeyHeader: jsii.String("apiKeyHeader"),
ApiKeyName: jsii.String("apiKeyName"),
ApiKeyValue: jsii.String("apiKeyValue"),
},
BearerToken: &BearerTokenDetailsProperty{
TokenName: jsii.String("tokenName"),
TokenValue: jsii.String("tokenValue"),
// the properties below are optional
AuthorizationHeader: jsii.String("authorizationHeader"),
},
OAuthClientCredentials: &MCPServerOAuthClientCredentialsConfigProperty{
ClientId: jsii.String("clientId"),
ClientSecret: jsii.String("clientSecret"),
ExchangeUrl: jsii.String("exchangeUrl"),
// the properties below are optional
ClientName: jsii.String("clientName"),
ExchangeParameters: exchangeParameters,
Scopes: []*string{
jsii.String("scopes"),
},
},
},
Endpoint: jsii.String("endpoint"),
Name: jsii.String("name"),
// the properties below are optional
Description: jsii.String("description"),
}
Properties
authorizationConfigIResolvable | CfnService.MCPServerAuthorizationConfigPropertyauthorization_configtyping.Union[IResolvable, MCPServerAuthorizationConfigProperty]authorizationConfigIResolvableAuthorizationConfigIResolvableAuthorizationConfiginterface{}required#MCP server authorization configuration.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#Optional description for the MCP server.
MCP server endpoint URL.
MCP server name.