interface CfnAssociationProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DevOpsAgent.CfnAssociationProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdevopsagent#CfnAssociationProps |
Java | software.amazon.awscdk.services.devopsagent.CfnAssociationProps |
Python | aws_cdk.aws_devopsagent.CfnAssociationProps |
TypeScript | aws-cdk-lib » aws_devopsagent » CfnAssociationProps |
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 { aws_devopsagent as devopsagent } from 'aws-cdk-lib';
declare const resourceMetadata: any;
const cfnAssociationProps: devopsagent.CfnAssociationProps = {
agentSpaceId: 'agentSpaceId',
configuration: {
aws: {
accountId: 'accountId',
accountType: 'accountType',
assumableRoleArn: 'assumableRoleArn',
// the properties below are optional
resources: [{
resourceArn: 'resourceArn',
// the properties below are optional
resourceMetadata: resourceMetadata,
resourceType: 'resourceType',
}],
tags: [{
key: 'key',
value: 'value',
}],
},
dynatrace: {
envId: 'envId',
// the properties below are optional
enableWebhookUpdates: false,
resources: ['resources'],
},
eventChannel: {
enableWebhookUpdates: false,
},
gitHub: {
owner: 'owner',
ownerType: 'ownerType',
repoId: 'repoId',
repoName: 'repoName',
},
gitLab: {
projectId: 'projectId',
projectPath: 'projectPath',
// the properties below are optional
enableWebhookUpdates: false,
instanceIdentifier: 'instanceIdentifier',
},
mcpServer: {
endpoint: 'endpoint',
name: 'name',
tools: ['tools'],
// the properties below are optional
description: 'description',
enableWebhookUpdates: false,
},
mcpServerDatadog: {
endpoint: 'endpoint',
name: 'name',
// the properties below are optional
description: 'description',
enableWebhookUpdates: false,
},
mcpServerNewRelic: {
accountId: 'accountId',
endpoint: 'endpoint',
},
mcpServerSplunk: {
endpoint: 'endpoint',
name: 'name',
// the properties below are optional
description: 'description',
enableWebhookUpdates: false,
},
serviceNow: {
enableWebhookUpdates: false,
instanceId: 'instanceId',
},
slack: {
transmissionTarget: {
incidentResponseTarget: {
channelId: 'channelId',
// the properties below are optional
channelName: 'channelName',
},
},
workspaceId: 'workspaceId',
workspaceName: 'workspaceName',
},
sourceAws: {
accountId: 'accountId',
accountType: 'accountType',
assumableRoleArn: 'assumableRoleArn',
// the properties below are optional
resources: [{
resourceArn: 'resourceArn',
// the properties below are optional
resourceMetadata: resourceMetadata,
resourceType: 'resourceType',
}],
tags: [{
key: 'key',
value: 'value',
}],
},
},
serviceId: 'serviceId',
};
Properties
| Name | Type | Description |
|---|---|---|
| agent | string | The unique identifier of the AgentSpace. |
| configuration | IResolvable | Service | The configuration that directs how AgentSpace interacts with the given service. |
| service | string | The identifier for the associated service. |
agentSpaceId
Type:
string
The unique identifier of the AgentSpace.
configuration
Type:
IResolvable | Service
The configuration that directs how AgentSpace interacts with the given service.
serviceId
Type:
string
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

.NET
Go
Java
Python
TypeScript