Skip to content
v2.276.0

MCPServerSigV4AuthorizationConfigProperty Struct ​

SigV4 authorization configuration for MCP server.

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';
const mCPServerSigV4AuthorizationConfigProperty: devopsagent.CfnService.MCPServerSigV4AuthorizationConfigProperty = {
  region: 'region',
  service: 'service',

  // the properties below are optional
  customHeaders: {
    customHeadersKey: 'customHeaders',
  },
  mcpRoleArn: 'mcpRoleArn',
  roleArn: 'roleArn',
};
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

m_cp_server_sig_v4_authorization_config_property = devopsagent.CfnService.MCPServerSigV4AuthorizationConfigProperty(
    region="region",
    service="service",

    # the properties below are optional
    custom_headers={
        "custom_headers_key": "customHeaders"
    },
    mcp_role_arn="mcpRoleArn",
    role_arn="roleArn"
)
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.*;

MCPServerSigV4AuthorizationConfigProperty mCPServerSigV4AuthorizationConfigProperty = MCPServerSigV4AuthorizationConfigProperty.builder()
        .region("region")
        .service("service")

        // the properties below are optional
        .customHeaders(Map.of(
                "customHeadersKey", "customHeaders"))
        .mcpRoleArn("mcpRoleArn")
        .roleArn("roleArn")
        .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 mCPServerSigV4AuthorizationConfigProperty = new MCPServerSigV4AuthorizationConfigProperty {
    Region = "region",
    Service = "service",

    // the properties below are optional
    CustomHeaders = new Dictionary<string, string> {
        { "customHeadersKey", "customHeaders" }
    },
    McpRoleArn = "mcpRoleArn",
    RoleArn = "roleArn"
};
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"

mCPServerSigV4AuthorizationConfigProperty := &MCPServerSigV4AuthorizationConfigProperty{
	Region: jsii.String("region"),
	Service: jsii.String("service"),

	// the properties below are optional
	CustomHeaders: map[string]*string{
		"customHeadersKey": jsii.String("customHeaders"),
	},
	McpRoleArn: jsii.String("mcpRoleArn"),
	RoleArn: jsii.String("roleArn"),
}

Properties ​

customHeadersoptionalIResolvable | { [key: string]: string }custom_headersoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]customHeadersoptionalIResolvableCustomHeadersoptionalIResolvableCustomHeadersoptionalinterface{}#
Custom headers for the SigV4 MCP server.
mcpRoleArnoptionalstringmcp_role_arnoptionalstrmcpRoleArnoptionalStringMcpRoleArnoptionalstringMcpRoleArnoptional*string#
IAM role ARN to assume for SigV4 signing.

Optional - when omitted, credentials are resolved at runtime via a monitor account association.

regionstringregionstrregionStringRegionstringRegion*stringrequired#
AWS region for SigV4 signing.

Use '*' for SigV4a multi-region signing.

roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string#
Deprecated - use McpRoleArn instead.

IAM role ARN to assume for SigV4 signing. Set to an empty string to remove a previously configured role and make the server role-less (cross-account).

servicestringservicestrserviceStringServicestringService*stringrequired#
AWS service name for SigV4 signing.