Class CfnAssociation
Resource Type definition for AWS::DevOpsAgent::Association defining how the AgentSpace interacts with external services like GitHub, Slack, AWS accounts, and others.
Inherited Members
Namespace: Amazon.CDK.AWS.DevOpsAgent
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAssociation : CfnResource, IInspectable, IAssociationRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnAssociation Inherits CfnResource Implements IInspectable, IAssociationRef, IConstruct, IDependable, IEnvironmentAware
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DevOpsAgent;
var resourceMetadata;
var cfnAssociation = new CfnAssociation(this, "MyCfnAssociation", new CfnAssociationProps {
AgentSpaceId = "agentSpaceId",
Configuration = new ServiceConfigurationProperty {
Aws = new AWSConfigurationProperty {
AccountId = "accountId",
AccountType = "accountType",
AssumableRoleArn = "assumableRoleArn",
// the properties below are optional
Resources = new [] { new AWSResourceProperty {
ResourceArn = "resourceArn",
// the properties below are optional
ResourceMetadata = resourceMetadata,
ResourceType = "resourceType"
} },
Tags = new [] { new KeyValuePairProperty {
Key = "key",
Value = "value"
} }
},
Dynatrace = new DynatraceConfigurationProperty {
EnvId = "envId",
// the properties below are optional
EnableWebhookUpdates = false,
Resources = new [] { "resources" }
},
EventChannel = new EventChannelConfigurationProperty {
EnableWebhookUpdates = false
},
GitHub = new GitHubConfigurationProperty {
Owner = "owner",
OwnerType = "ownerType",
RepoId = "repoId",
RepoName = "repoName"
},
GitLab = new GitLabConfigurationProperty {
ProjectId = "projectId",
ProjectPath = "projectPath",
// the properties below are optional
EnableWebhookUpdates = false,
InstanceIdentifier = "instanceIdentifier"
},
McpServer = new MCPServerConfigurationProperty {
Endpoint = "endpoint",
Name = "name",
Tools = new [] { "tools" },
// the properties below are optional
Description = "description",
EnableWebhookUpdates = false
},
McpServerDatadog = new MCPServerDatadogConfigurationProperty {
Endpoint = "endpoint",
Name = "name",
// the properties below are optional
Description = "description",
EnableWebhookUpdates = false
},
McpServerNewRelic = new MCPServerNewRelicConfigurationProperty {
AccountId = "accountId",
Endpoint = "endpoint"
},
McpServerSplunk = new MCPServerSplunkConfigurationProperty {
Endpoint = "endpoint",
Name = "name",
// the properties below are optional
Description = "description",
EnableWebhookUpdates = false
},
ServiceNow = new ServiceNowConfigurationProperty {
EnableWebhookUpdates = false,
InstanceId = "instanceId"
},
Slack = new SlackConfigurationProperty {
TransmissionTarget = new SlackTransmissionTargetProperty {
IncidentResponseTarget = new SlackChannelProperty {
ChannelId = "channelId",
// the properties below are optional
ChannelName = "channelName"
}
},
WorkspaceId = "workspaceId",
WorkspaceName = "workspaceName"
},
SourceAws = new SourceAwsConfigurationProperty {
AccountId = "accountId",
AccountType = "accountType",
AssumableRoleArn = "assumableRoleArn",
// the properties below are optional
Resources = new [] { new AWSResourceProperty {
ResourceArn = "resourceArn",
// the properties below are optional
ResourceMetadata = resourceMetadata,
ResourceType = "resourceType"
} },
Tags = new [] { new KeyValuePairProperty {
Key = "key",
Value = "value"
} }
}
},
ServiceId = "serviceId"
});
Synopsis
Constructors
| CfnAssociation(Construct, string, ICfnAssociationProps) | Create a new |
Properties
| AgentSpaceId | The unique identifier of the AgentSpace. |
| AssociationRef | A reference to a Association resource. |
| AttrAssociationId | The unique identifier of the association. |
| AttrCreatedAt | The timestamp when the association was created. |
| AttrUpdatedAt | The timestamp when the association was last updated. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | Resource Type definition for AWS::DevOpsAgent::Association defining how the AgentSpace interacts with external services like GitHub, Slack, AWS accounts, and others. |
| Configuration | The configuration that directs how AgentSpace interacts with the given service. |
| ServiceId | The identifier for the associated service. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnAssociation(object) | Checks whether the given object is a CfnAssociation. |
| RenderProperties(IDictionary<string, object>) | Resource Type definition for AWS::DevOpsAgent::Association defining how the AgentSpace interacts with external services like GitHub, Slack, AWS accounts, and others. |
Constructors
CfnAssociation(Construct, string, ICfnAssociationProps)
Create a new AWS::DevOpsAgent::Association.
public CfnAssociation(Construct scope, string id, ICfnAssociationProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnAssociationProps
Resource properties.
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
Properties
AgentSpaceId
The unique identifier of the AgentSpace.
public virtual string AgentSpaceId { get; set; }
Property Value
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
AssociationRef
A reference to a Association resource.
public virtual IAssociationReference AssociationRef { get; }
Property Value
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
AttrAssociationId
The unique identifier of the association.
public virtual string AttrAssociationId { get; }
Property Value
Remarks
CloudformationAttribute: AssociationId
AttrCreatedAt
The timestamp when the association was created.
public virtual string AttrCreatedAt { get; }
Property Value
Remarks
CloudformationAttribute: CreatedAt
AttrUpdatedAt
The timestamp when the association was last updated.
public virtual string AttrUpdatedAt { get; }
Property Value
Remarks
CloudformationAttribute: UpdatedAt
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
CfnProperties
Resource Type definition for AWS::DevOpsAgent::Association defining how the AgentSpace interacts with external services like GitHub, Slack, AWS accounts, and others.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
Configuration
The configuration that directs how AgentSpace interacts with the given service.
public virtual object Configuration { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnAssociation.IServiceConfigurationProperty
ServiceId
The identifier for the associated service.
public virtual string ServiceId { get; set; }
Property Value
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
IsCfnAssociation(object)
Checks whether the given object is a CfnAssociation.
public static bool IsCfnAssociation(object x)
Parameters
- x object
Returns
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Resource Type definition for AWS::DevOpsAgent::Association defining how the AgentSpace interacts with external services like GitHub, Slack, AWS accounts, and others.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::DevOpsAgent::Association
ExampleMetadata: fixture=_generated