Skip to content
v2.278.0

ConditionProperty Struct ​

A single condition that can match based on WAF rule action or label name.

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.CfnOrganizationTelemetryRule.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.CfnOrganizationTelemetryRule.ConditionProperty(
    action_condition=observabilityadmin.CfnOrganizationTelemetryRule.ActionConditionProperty(
        action="action"
    ),
    label_name_condition=observabilityadmin.CfnOrganizationTelemetryRule.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 | CfnOrganizationTelemetryRule.ActionConditionPropertyaction_conditionoptionaltyping.Union[IResolvable, ActionConditionProperty]actionConditionoptionalIResolvableActionConditionoptionalIResolvableActionConditionoptionalinterface{} #
Matches log records based on the WAF rule action taken (ALLOW, BLOCK, COUNT, etc.).
labelNameConditionoptionalIResolvable | CfnOrganizationTelemetryRule.LabelNameConditionPropertylabel_name_conditionoptionaltyping.Union[IResolvable, LabelNameConditionProperty]labelNameConditionoptionalIResolvableLabelNameConditionoptionalIResolvableLabelNameConditionoptionalinterface{} #
Matches log records based on WAF rule labels applied to the request.