Interface CfnServiceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-10T17:51:42.941Z")
@Stability(Stable)
public interface CfnServiceProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnService.
Example:
// 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;
CfnServiceProps cfnServiceProps = CfnServiceProps.builder()
.serviceType("serviceType")
// the properties below are optional
.exchangeUrlPrivateConnectionName("exchangeUrlPrivateConnectionName")
.kmsKeyArn("kmsKeyArn")
.privateConnectionName("privateConnectionName")
.serviceDetails(ServiceDetailsProperty.builder()
.azureIdentity(AzureIdentityServiceDetailsProperty.builder()
.clientId("clientId")
.tenantId("tenantId")
.webIdentityRoleArn("webIdentityRoleArn")
.webIdentityTokenAudiences(List.of("webIdentityTokenAudiences"))
.build())
.dynatrace(DynatraceServiceDetailsProperty.builder()
.accountUrn("accountUrn")
// the properties below are optional
.authorizationConfig(DynatraceAuthorizationConfigProperty.builder()
.oAuthClientCredentials(OAuthClientDetailsProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.clientName("clientName")
.exchangeParameters(exchangeParameters)
.build())
.build())
.build())
.gitLab(GitLabDetailsProperty.builder()
.targetUrl("targetUrl")
.tokenType("tokenType")
.tokenValue("tokenValue")
// the properties below are optional
.groupId("groupId")
.build())
.mcpServer(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())
.mcpServerGrafana(MCPServerGrafanaDetailsProperty.builder()
.authorizationConfig(MCPServerGrafanaAuthorizationConfigProperty.builder()
.bearerToken(BearerTokenDetailsProperty.builder()
.tokenName("tokenName")
.tokenValue("tokenValue")
// the properties below are optional
.authorizationHeader("authorizationHeader")
.build())
.build())
.endpoint("endpoint")
.name("name")
// the properties below are optional
.description("description")
.build())
.mcpServerNewRelic(NewRelicServiceDetailsProperty.builder()
.authorizationConfig(NewRelicAuthorizationConfigProperty.builder()
.apiKey(NewRelicApiKeyConfigProperty.builder()
.accountId("accountId")
.apiKey("apiKey")
.region("region")
// the properties below are optional
.alertPolicyIds(List.of("alertPolicyIds"))
.applicationIds(List.of("applicationIds"))
.entityGuids(List.of("entityGuids"))
.build())
.build())
.build())
.mcpServerSigV4(MCPServerSigV4DetailsProperty.builder()
.authorizationConfig(MCPServerSigV4AuthorizationConfigProperty.builder()
.region("region")
.service("service")
// the properties below are optional
.customHeaders(Map.of(
"customHeadersKey", "customHeaders"))
.mcpRoleArn("mcpRoleArn")
.roleArn("roleArn")
.build())
.endpoint("endpoint")
.name("name")
// the properties below are optional
.description("description")
.build())
.mcpServerSplunk(MCPServerSplunkDetailsProperty.builder()
.authorizationConfig(MCPServerSplunkAuthorizationConfigProperty.builder()
.bearerToken(BearerTokenDetailsProperty.builder()
.tokenName("tokenName")
.tokenValue("tokenValue")
// the properties below are optional
.authorizationHeader("authorizationHeader")
.build())
.build())
.endpoint("endpoint")
.name("name")
// the properties below are optional
.description("description")
.build())
.pagerDuty(PagerDutyDetailsProperty.builder()
.authorizationConfig(PagerDutyAuthorizationConfigProperty.builder()
.oAuthClientCredentials(OAuthClientDetailsProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.clientName("clientName")
.exchangeParameters(exchangeParameters)
.build())
.build())
.scopes(List.of("scopes"))
.build())
.serviceNow(ServiceNowServiceDetailsProperty.builder()
.instanceUrl("instanceUrl")
// the properties below are optional
.authorizationConfig(ServiceNowAuthorizationConfigProperty.builder()
.oAuthClientCredentials(OAuthClientDetailsProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.clientName("clientName")
.exchangeParameters(exchangeParameters)
.build())
.build())
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.targetUrlPrivateConnectionName("targetUrlPrivateConnectionName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServicePropsstatic final classAn implementation forCfnServiceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnServiceProps.Builderbuilder()default StringThe name of the private connection to use for OAuth token exchange requests only.default StringThe ARN of the KMS key to use for encryption.default StringThe name of the private connection to use for VPC connectivity.default ObjectService-specific configuration details - MCPServerSigV4 supports in-place updates;The type of service being registered.getTags()An array of key-value pairs to apply to this resource.default StringThe name of the private connection to use for API calls (target URL) only.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getServiceType
The type of service being registered.- See Also:
-
getExchangeUrlPrivateConnectionName
The name of the private connection to use for OAuth token exchange requests only.Cannot be specified when PrivateConnectionName is provided.
- See Also:
-
getKmsKeyArn
The ARN of the KMS key to use for encryption.- See Also:
-
getPrivateConnectionName
The name of the private connection to use for VPC connectivity.- See Also:
-
getServiceDetails
Service-specific configuration details - MCPServerSigV4 supports in-place updates;GitLab (TokenValue), MCPServer (ApiKey or BearerToken credential rotation), MCPServerNewRelic (ApiKey rotation), and MCPServerGrafana (BearerToken rotation) support in-place credential rotation; all other service types and fields require replacement when modified
Returns union: either
IResolvableorCfnService.ServiceDetailsProperty- See Also:
-
getTags
An array of key-value pairs to apply to this resource.- See Also:
-
getTargetUrlPrivateConnectionName
The name of the private connection to use for API calls (target URL) only.Cannot be specified when PrivateConnectionName is provided.
- See Also:
-
builder
- Returns:
- a
CfnServiceProps.BuilderofCfnServiceProps
-