ConditionProperty Struct
A single condition that can match based on WAF rule action or label name.
| 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_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const conditionProperty: observabilityadmin.CfnTelemetryRule.ConditionProperty = {
actionCondition: {
action: 'action',
},
labelNameCondition: {
labelName: 'labelName',
},
};
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_observabilityadmin as observabilityadmin
condition_property = observabilityadmin.CfnTelemetryRule.ConditionProperty(
action_condition=observabilityadmin.CfnTelemetryRule.ActionConditionProperty(
action="action"
),
label_name_condition=observabilityadmin.CfnTelemetryRule.LabelNameConditionProperty(
label_name="labelName"
)
)
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.observabilityadmin.*;
ConditionProperty conditionProperty = ConditionProperty.builder()
.actionCondition(ActionConditionProperty.builder()
.action("action")
.build())
.labelNameCondition(LabelNameConditionProperty.builder()
.labelName("labelName")
.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.ObservabilityAdmin;
var conditionProperty = new ConditionProperty {
ActionCondition = new ActionConditionProperty {
Action = "action"
},
LabelNameCondition = new LabelNameConditionProperty {
LabelName = "labelName"
}
};
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"
conditionProperty := &ConditionProperty{
ActionCondition: &ActionConditionProperty{
Action: jsii.String("action"),
},
LabelNameCondition: &LabelNameConditionProperty{
LabelName: jsii.String("labelName"),
},
}
Properties
actionConditionoptionalIResolvable | CfnTelemetryRule.action_conditionoptionaltyping.Union[IResolvable, ActionConditionProperty]actionConditionoptionalIResolvableActionConditionoptionalIResolvableActionConditionoptionalinterface{} #Matches log records based on the WAF rule action taken (ALLOW, BLOCK, COUNT, etc.).
labelNameConditionoptionalIResolvable | CfnTelemetryRule.label_name_conditionoptionaltyping.Union[IResolvable, LabelNameConditionProperty]labelNameConditionoptionalIResolvableLabelNameConditionoptionalIResolvableLabelNameConditionoptionalinterface{} #Matches log records based on WAF rule labels applied to the request.