# MCPServerSigV4AuthorizationConfigProperty

SigV4 authorization configuration for MCP server.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `customHeaders`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Custom headers for the SigV4 MCP server.

- `mcpRoleArn`: string — IAM role ARN to assume for SigV4 signing.

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

- `region`: string (required) — AWS region for SigV4 signing.

  Use '*' for SigV4a multi-region signing.

- `roleArn`: 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).

- `service`: string (required) — AWS service name for SigV4 signing.
