Class CfnAssociation
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.devopsagent.CfnAssociation
- All Implemented Interfaces:
IInspectable,IAssociationRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-03T13:58:21.027Z")
@Stability(Stable)
public class CfnAssociation
extends CfnResource
implements IInspectable, IAssociationRef
The
AWS::DevOpsAgent::Association resource specifies an association between an Agent Space and a service, defining how the Agent Space interacts with external services like GitHub, Slack, AWS accounts, and others.
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;
CfnAssociation cfnAssociation = CfnAssociation.Builder.create(this, "MyCfnAssociation")
.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")
// the properties below are optional
.linkedAssociationIds(List.of("linkedAssociationIds"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConfiguration for AWS monitor account integration.static interfaceDefines an AWS resource to be monitored, including its type, ARN, and optional metadata.static final classA fluent builder forCfnAssociation.static interfaceConfiguration for Dynatrace monitoring integration.static interfaceConfiguration for Event Channel integration.static interfaceConfiguration for GitHub repository integration.static interfaceConfiguration for GitLab project integration.static interfaceA key-value pair for tags.static interfaceConfiguration for MCP (Model Context Protocol) server integration.static interfaceConfiguration for Datadog MCP server integration.static interfaceConfiguration for New Relic MCP server integration.static interfaceConfiguration for Splunk MCP server integration.static interfaceThe configuration that directs how Agent Space interacts with the given service.static interfaceConfiguration for ServiceNow integration.static interfaceRepresents a Slack channel with its unique identifier and optional display name.static interfaceConfiguration for Slack workspace integration.static interfaceDefines the Slack channels where different types of agent notifications will be sent.static interfaceConfiguration for AWS source account integration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.devopsagent.IAssociationRef
IAssociationRef.Jsii$Default, IAssociationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAssociation(software.amazon.jsii.JsiiObjectRef objRef) CfnAssociation(software.constructs.Construct scope, String id, CfnAssociationProps props) Create a newAWS::DevOpsAgent::Association. -
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier of the Agent Space.A reference to a Association resource.The unique identifier of the association.The timestamp when the association was created.The timestamp when the association was last updated.The configuration that directs how the Agent Space interacts with the given service.Set of linked association IDs for parent-child relationships.The identifier for the associated service.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAssociation.renderProperties(Map<String, Object> props) voidsetAgentSpaceId(String value) The unique identifier of the Agent Space.voidsetConfiguration(IResolvable value) The configuration that directs how the Agent Space interacts with the given service.voidThe configuration that directs how the Agent Space interacts with the given service.voidsetLinkedAssociationIds(List<String> value) Set of linked association IDs for parent-child relationships.voidsetServiceId(String value) The identifier for the associated service.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAssociation
protected CfnAssociation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAssociation
protected CfnAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAssociation
@Stability(Stable) public CfnAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAssociationProps props) Create a newAWS::DevOpsAgent::Association.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnAssociation
Checks whether the given object is a CfnAssociation.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAssociationRef
A reference to a Association resource.- Specified by:
getAssociationRefin interfaceIAssociationRef
-
getAttrAssociationId
The unique identifier of the association. -
getAttrCreatedAt
The timestamp when the association was created. -
getAttrUpdatedAt
The timestamp when the association was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAgentSpaceId
The unique identifier of the Agent Space. -
setAgentSpaceId
The unique identifier of the Agent Space. -
getConfiguration
The configuration that directs how the Agent Space interacts with the given service.Returns union: either
IResolvableorCfnAssociation.ServiceConfigurationProperty -
setConfiguration
The configuration that directs how the Agent Space interacts with the given service. -
setConfiguration
@Stability(Stable) public void setConfiguration(@NotNull CfnAssociation.ServiceConfigurationProperty value) The configuration that directs how the Agent Space interacts with the given service. -
getServiceId
The identifier for the associated service. -
setServiceId
The identifier for the associated service. -
getLinkedAssociationIds
Set of linked association IDs for parent-child relationships. -
setLinkedAssociationIds
Set of linked association IDs for parent-child relationships.
-