TargetFiltersProperty Struct
The TargetFilters property type specifies the target filters for the Hook.
For more information, see CloudFormation Hook target filters .
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const targetFiltersProperty: cdk.CfnGuardHook.TargetFiltersProperty = {
targets: [{
action: 'action',
invocationPoint: 'invocationPoint',
targetName: 'targetName',
}],
// the properties below are optional
actions: ['actions'],
invocationPoints: ['invocationPoints'],
targetNames: ['targetNames'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
target_filters_property = cdk.CfnGuardHook.TargetFiltersProperty(
targets=[cdk.CfnGuardHook.HookTargetProperty(
action="action",
invocation_point="invocationPoint",
target_name="targetName"
)],
# the properties below are optional
actions=["actions"],
invocation_points=["invocationPoints"],
target_names=["targetNames"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
TargetFiltersProperty targetFiltersProperty = TargetFiltersProperty.builder()
.targets(List.of(HookTargetProperty.builder()
.action("action")
.invocationPoint("invocationPoint")
.targetName("targetName")
.build()))
// the properties below are optional
.actions(List.of("actions"))
.invocationPoints(List.of("invocationPoints"))
.targetNames(List.of("targetNames"))
.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;
var targetFiltersProperty = new TargetFiltersProperty {
Targets = new [] { new HookTargetProperty {
Action = "action",
InvocationPoint = "invocationPoint",
TargetName = "targetName"
} },
// the properties below are optional
Actions = new [] { "actions" },
InvocationPoints = new [] { "invocationPoints" },
TargetNames = new [] { "targetNames" }
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"
targetFiltersProperty := &TargetFiltersProperty{
Targets: []interface{}{
&HookTargetProperty{
Action: jsii.String("action"),
InvocationPoint: jsii.String("invocationPoint"),
TargetName: jsii.String("targetName"),
},
},
// the properties below are optional
Actions: []*string{
jsii.String("actions"),
},
InvocationPoints: []*string{
jsii.String("invocationPoints"),
},
TargetNames: []*string{
jsii.String("targetNames"),
},
}
Properties
actionsoptionalstring[]actionsoptionaltyping.List[str]actionsoptionalList<String>Actionsoptionalstring[]Actionsoptional*[]*string#List of actions that the hook is going to target.
invocationPointsoptionalstring[]invocation_pointsoptionaltyping.List[str]invocationPointsoptionalList<String>InvocationPointsoptionalstring[]InvocationPointsoptional*[]*string#List of invocation points that the hook is going to target.
targetNamesoptionalstring[]target_namesoptionaltyping.List[str]targetNamesoptionalList<String>TargetNamesoptionalstring[]TargetNamesoptional*[]*string#List of type names that the hook is going to target.
targetsIResolvable | IResolvable | CfnGuardHook.HookTargetProperty[]targetstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, HookTargetProperty]]]targetsIResolvableTargetsIResolvableTargetsinterface{}required#List of hook targets.