Class CfnServicePropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.devopsagent.CfnServicePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:58.067Z")
@Stability(Stable)
public class CfnServicePropsMixin
extends Mixin
implements software.constructs.IMixin
The AWS::DevOpsAgent::Service resource registers external services (like Dynatrace, MCP servers, GitLab) for integration with DevOpsAgent.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.devopsagent.*;
import software.amazon.awscdk.*;
Object exchangeParameters;
IMergeStrategy mergeStrategy;
CfnServicePropsMixin cfnServicePropsMixin = CfnServicePropsMixin.Builder.create(CfnServiceMixinProps.builder()
.serviceDetails(ServiceDetailsProperty.builder()
.dynatrace(DynatraceServiceDetailsProperty.builder()
.accountUrn("accountUrn")
.authorizationConfig(DynatraceAuthorizationConfigProperty.builder()
.oAuthClientCredentials(OAuthClientDetailsProperty.builder()
.clientId("clientId")
.clientName("clientName")
.clientSecret("clientSecret")
.exchangeParameters(exchangeParameters)
.build())
.build())
.build())
.gitLab(GitLabDetailsProperty.builder()
.groupId("groupId")
.targetUrl("targetUrl")
.tokenType("tokenType")
.tokenValue("tokenValue")
.build())
.mcpServer(MCPServerDetailsProperty.builder()
.authorizationConfig(MCPServerAuthorizationConfigProperty.builder()
.apiKey(ApiKeyDetailsProperty.builder()
.apiKeyHeader("apiKeyHeader")
.apiKeyName("apiKeyName")
.apiKeyValue("apiKeyValue")
.build())
.oAuthClientCredentials(MCPServerOAuthClientCredentialsConfigProperty.builder()
.clientId("clientId")
.clientName("clientName")
.clientSecret("clientSecret")
.exchangeParameters(exchangeParameters)
.exchangeUrl("exchangeUrl")
.scopes(List.of("scopes"))
.build())
.build())
.description("description")
.endpoint("endpoint")
.name("name")
.build())
.mcpServerNewRelic(NewRelicServiceDetailsProperty.builder()
.authorizationConfig(NewRelicAuthorizationConfigProperty.builder()
.apiKey(NewRelicApiKeyConfigProperty.builder()
.accountId("accountId")
.alertPolicyIds(List.of("alertPolicyIds"))
.apiKey("apiKey")
.applicationIds(List.of("applicationIds"))
.entityGuids(List.of("entityGuids"))
.region("region")
.build())
.build())
.build())
.mcpServerSplunk(MCPServerSplunkDetailsProperty.builder()
.authorizationConfig(MCPServerSplunkAuthorizationConfigProperty.builder()
.bearerToken(BearerTokenDetailsProperty.builder()
.authorizationHeader("authorizationHeader")
.tokenName("tokenName")
.tokenValue("tokenValue")
.build())
.build())
.description("description")
.endpoint("endpoint")
.name("name")
.build())
.serviceNow(ServiceNowServiceDetailsProperty.builder()
.authorizationConfig(ServiceNowAuthorizationConfigProperty.builder()
.oAuthClientCredentials(OAuthClientDetailsProperty.builder()
.clientId("clientId")
.clientName("clientName")
.clientSecret("clientSecret")
.exchangeParameters(exchangeParameters)
.build())
.build())
.instanceUrl("instanceUrl")
.build())
.build())
.serviceType("serviceType")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static interfaceAPI key authentication details.static interfaceBearer token authentication details.static final classA fluent builder forCfnServicePropsMixin.static interfaceDynatrace OAuth authorization configuration.static interfaceDynatrace service configuration.static interfaceGitLab service configuration.static interfaceExample:static interfaceMCP server configuration.static interfaceMCP server OAuth client credentials configuration.static interfaceMCP server splunk authorization configuration.static interfaceSplunk MCP server configuration.static interfaceNew Relic API key configuration.static interfaceNew Relic authorization configuration.static interfaceNew Relic service configuration.static interfaceOAuth client credentials.static interfaceDynatrace service details returned after registration.static interfaceGitLab service details returned after registration.static interfaceMCP server details returned after registration.static interfaceNew Relic service details returned after registration.static interfaceServiceNow service details returned after registration.static interfaceExample:static interfaceServiceNow OAuth authorization configuration.static interfaceServiceNow service configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::DevOpsAgent::Service.CfnServicePropsMixin(CfnServiceMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::DevOpsAgent::Service.protectedCfnServicePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnServicePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnServiceMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnServicePropsMixin
protected CfnServicePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnServicePropsMixin
protected CfnServicePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnServicePropsMixin
@Stability(Stable) public CfnServicePropsMixin(@NotNull CfnServiceMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::DevOpsAgent::Service.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnServicePropsMixin
Create a mixin to apply properties toAWS::DevOpsAgent::Service.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-