CapabilityConfigurationProperty Struct Added in v2.277.0
Configuration of a single capability.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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" }
}
} }
};
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
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #Whether the capability is enabled for this association.
triggerFilterGroupsoptionalIResolvable | IResolvable | CfnAssociation.trigger_filter_groupsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TriggerFilterGroupProperty]]]triggerFilterGroupsoptionalIResolvableTriggerFilterGroupsoptionalIResolvableTriggerFilterGroupsoptionalinterface{} #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.