Interface CfnAssociationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAssociationProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:34.182Z")
@Stability(Stable)
public interface CfnAssociationProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnAssociation.
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 resourceMetadata;
CfnAssociationProps cfnAssociationProps = CfnAssociationProps.builder()
.agentSpaceId("agentSpaceId")
.configuration(ServiceConfigurationProperty.builder()
.aws(AWSConfigurationProperty.builder()
.accountId("accountId")
.accountType("accountType")
.assumableRoleArn("assumableRoleArn")
// the properties below are optional
.resources(List.of(AWSResourceProperty.builder()
.resourceArn("resourceArn")
// the properties below are optional
.resourceMetadata(resourceMetadata)
.resourceType("resourceType")
.build()))
.tags(List.of(KeyValuePairProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.dynatrace(DynatraceConfigurationProperty.builder()
.envId("envId")
// the properties below are optional
.enableWebhookUpdates(false)
.resources(List.of("resources"))
.build())
.eventChannel(EventChannelConfigurationProperty.builder()
.enableWebhookUpdates(false)
.build())
.gitHub(GitHubConfigurationProperty.builder()
.owner("owner")
.ownerType("ownerType")
.repoId("repoId")
.repoName("repoName")
.build())
.gitLab(GitLabConfigurationProperty.builder()
.projectId("projectId")
.projectPath("projectPath")
// the properties below are optional
.enableWebhookUpdates(false)
.instanceIdentifier("instanceIdentifier")
.build())
.mcpServer(MCPServerConfigurationProperty.builder()
.endpoint("endpoint")
.name("name")
.tools(List.of("tools"))
// the properties below are optional
.description("description")
.enableWebhookUpdates(false)
.build())
.mcpServerDatadog(MCPServerDatadogConfigurationProperty.builder()
.endpoint("endpoint")
.name("name")
// the properties below are optional
.description("description")
.enableWebhookUpdates(false)
.build())
.mcpServerNewRelic(MCPServerNewRelicConfigurationProperty.builder()
.accountId("accountId")
.endpoint("endpoint")
.build())
.mcpServerSplunk(MCPServerSplunkConfigurationProperty.builder()
.endpoint("endpoint")
.name("name")
// the properties below are optional
.description("description")
.enableWebhookUpdates(false)
.build())
.serviceNow(ServiceNowConfigurationProperty.builder()
.enableWebhookUpdates(false)
.instanceId("instanceId")
.build())
.slack(SlackConfigurationProperty.builder()
.transmissionTarget(SlackTransmissionTargetProperty.builder()
.incidentResponseTarget(SlackChannelProperty.builder()
.channelId("channelId")
// the properties below are optional
.channelName("channelName")
.build())
.build())
.workspaceId("workspaceId")
.workspaceName("workspaceName")
.build())
.sourceAws(SourceAwsConfigurationProperty.builder()
.accountId("accountId")
.accountType("accountType")
.assumableRoleArn("assumableRoleArn")
// the properties below are optional
.resources(List.of(AWSResourceProperty.builder()
.resourceArn("resourceArn")
// the properties below are optional
.resourceMetadata(resourceMetadata)
.resourceType("resourceType")
.build()))
.tags(List.of(KeyValuePairProperty.builder()
.key("key")
.value("value")
.build()))
.build())
.build())
.serviceId("serviceId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAssociationPropsstatic final classAn implementation forCfnAssociationProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAssociationProps.Builderbuilder()The unique identifier of the AgentSpace.The configuration that directs how AgentSpace interacts with the given service.The identifier for the associated service.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAgentSpaceId
The unique identifier of the AgentSpace.- See Also:
-
getConfiguration
The configuration that directs how AgentSpace interacts with the given service.Returns union: either
IResolvableorCfnAssociation.ServiceConfigurationProperty- See Also:
-
getServiceId
The identifier for the associated service.For SourceAws and Aws configurations, this must be 'aws'. For all other service types, this is a UUID generated from the RegisterService command
- See Also:
-
builder
- Returns:
- a
CfnAssociationProps.BuilderofCfnAssociationProps
-