Skip to content
v2.276.0

MCPServerGrafanaAuthorizationConfigProperty Struct ​

Grafana MCP server authorization 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';
const mCPServerGrafanaAuthorizationConfigProperty: devopsagent.CfnService.MCPServerGrafanaAuthorizationConfigProperty = {
  bearerToken: {
    tokenName: 'tokenName',
    tokenValue: 'tokenValue',

    // the properties below are optional
    authorizationHeader: 'authorizationHeader',
  },
};
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_grafana_authorization_config_property = devopsagent.CfnService.MCPServerGrafanaAuthorizationConfigProperty(
    bearer_token=devopsagent.CfnService.BearerTokenDetailsProperty(
        token_name="tokenName",
        token_value="tokenValue",

        # the properties below are optional
        authorization_header="authorizationHeader"
    )
)
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.*;

MCPServerGrafanaAuthorizationConfigProperty mCPServerGrafanaAuthorizationConfigProperty = MCPServerGrafanaAuthorizationConfigProperty.builder()
        .bearerToken(BearerTokenDetailsProperty.builder()
                .tokenName("tokenName")
                .tokenValue("tokenValue")

                // the properties below are optional
                .authorizationHeader("authorizationHeader")
                .build())
        .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 mCPServerGrafanaAuthorizationConfigProperty = new MCPServerGrafanaAuthorizationConfigProperty {
    BearerToken = new BearerTokenDetailsProperty {
        TokenName = "tokenName",
        TokenValue = "tokenValue",

        // the properties below are optional
        AuthorizationHeader = "authorizationHeader"
    }
};
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"

mCPServerGrafanaAuthorizationConfigProperty := &MCPServerGrafanaAuthorizationConfigProperty{
	BearerToken: &BearerTokenDetailsProperty{
		TokenName: jsii.String("tokenName"),
		TokenValue: jsii.String("tokenValue"),

		// the properties below are optional
		AuthorizationHeader: jsii.String("authorizationHeader"),
	},
}

Properties ​

bearerTokenIResolvable | CfnService.BearerTokenDetailsPropertybearer_tokentyping.Union[IResolvable, BearerTokenDetailsProperty]bearerTokenIResolvableBearerTokenIResolvableBearerTokeninterface{}required#
Bearer token authentication details.