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.120.0 (build 192dc88)",
date="2025-12-12T17:54:11.037Z")
@Stability(Stable)
public class CfnAssociation
extends CfnResource
implements IInspectable, IAssociationRef
Resource Type definition for AWS::DevOpsAgent::Association defining how the AgentSpace 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")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAWS association for 'monitor' account.static interfaceAWS resource definition.static final classA fluent builder forCfnAssociation.static interfaceDynatrace monitoring configuration.static interfaceEventChannelconfiguration.static interfaceGitHub repository integration configuration.static interfaceGitLab project integration configuration.static interfaceA key-value pair for tags.static interfaceMCP server configuration.static interfaceDatadog MCP server configuration.static interfaceNewRelic MCP server configuration.static interfaceSplunk MCP server configuration.static interfaceExample:static interfaceServiceNow integration configuration.static interfaceSlack channel configuration.static interfaceSlack workspace integration configuration.static interfaceTransmission targets for agent notifications.static interfaceAWS association for 'source' account.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 AgentSpace.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 AgentSpace interacts with the given service.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 AgentSpace.voidsetConfiguration(IResolvable value) The configuration that directs how AgentSpace interacts with the given service.voidThe configuration that directs how AgentSpace interacts with the given service.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 AgentSpace. -
setAgentSpaceId
The unique identifier of the AgentSpace. -
getConfiguration
The configuration that directs how AgentSpace interacts with the given service.Returns union: either
IResolvableorCfnAssociation.ServiceConfigurationProperty -
setConfiguration
The configuration that directs how AgentSpace interacts with the given service. -
setConfiguration
@Stability(Stable) public void setConfiguration(@NotNull CfnAssociation.ServiceConfigurationProperty value) The configuration that directs how AgentSpace interacts with the given service. -
getServiceId
The identifier for the associated service. -
setServiceId
The identifier for the associated service.
-