# CapabilityConfigurationProperty

Configuration of a single capability.

- Source: Generated at build time
- Type last changed: v2.277.0 · 13 Nov 2026

## Example

TypeScript:

```ts
// 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';
const capabilityConfigurationProperty: devopsagent.CfnAssociation.CapabilityConfigurationProperty = {
  enabled: false,
  triggerFilterGroups: [{
    events: ['events'],
    targetBranches: {
      patterns: ['patterns'],
    },
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_devopsagent as devopsagent

capability_configuration_property = devopsagent.CfnAssociation.CapabilityConfigurationProperty(
    enabled=False,
    trigger_filter_groups=[devopsagent.CfnAssociation.TriggerFilterGroupProperty(
        events=["events"],
        target_branches=devopsagent.CfnAssociation.PatternFilterProperty(
            patterns=["patterns"]
        )
    )]
)
```

Java:

```java
// 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.*;

CapabilityConfigurationProperty capabilityConfigurationProperty = CapabilityConfigurationProperty.builder()
        .enabled(false)
        .triggerFilterGroups(List.of(TriggerFilterGroupProperty.builder()
                .events(List.of("events"))
                .targetBranches(PatternFilterProperty.builder()
                        .patterns(List.of("patterns"))
                        .build())
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 capabilityConfigurationProperty = new CapabilityConfigurationProperty {
    Enabled = false,
    TriggerFilterGroups = new [] { new TriggerFilterGroupProperty {
        Events = new [] { "events" },
        TargetBranches = new PatternFilterProperty {
            Patterns = new [] { "patterns" }
        }
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

capabilityConfigurationProperty := &CapabilityConfigurationProperty{
	Enabled: jsii.Boolean(false),
	TriggerFilterGroups: []interface{}{
		&TriggerFilterGroupProperty{
			Events: []*string{
				jsii.String("events"),
			},
			TargetBranches: &PatternFilterProperty{
				Patterns: []*string{
					jsii.String("patterns"),
				},
			},
		},
	},
}
```

## Properties

- `enabled`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Whether the capability is enabled for this association.

- `triggerFilterGroups`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAssociation.TriggerFilterGroupProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnAssociation.TriggerFilterGroupProperty.html)[] — Filter groups controlling when the capability triggers automatically.

  The capability triggers when any group matches. When omitted, all applicable events trigger the capability. Retained while the capability is disabled.
