Interface CfnServiceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:55:02.400Z")
@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
.serviceDetails(ServiceDetailsProperty.builder()
.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())
.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())
.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())
.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())
.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())
.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 ObjectService-specific configuration details.The type of service being registered.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getServiceType
The type of service being registered.- See Also:
-
getServiceDetails
Service-specific configuration details.Returns union: either
IResolvableorCfnService.ServiceDetailsProperty- See Also:
-
builder
- Returns:
- a
CfnServiceProps.BuilderofCfnServiceProps
-