CfnSizeConstraintSetProps Struct
Properties for defining a CfnSizeConstraintSet.
| Source |
|---|
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_waf as waf } from 'aws-cdk-lib';
const cfnSizeConstraintSetProps: waf.CfnSizeConstraintSetProps = {
name: 'name',
sizeConstraints: [{
comparisonOperator: 'comparisonOperator',
fieldToMatch: {
type: 'type',
// the properties below are optional
data: 'data',
},
size: 123,
textTransformation: 'textTransformation',
}],
};
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_waf as waf
cfn_size_constraint_set_props = waf.CfnSizeConstraintSetProps(
name="name",
size_constraints=[waf.CfnSizeConstraintSet.SizeConstraintProperty(
comparison_operator="comparisonOperator",
field_to_match=waf.CfnSizeConstraintSet.FieldToMatchProperty(
type="type",
# the properties below are optional
data="data"
),
size=123,
text_transformation="textTransformation"
)]
)
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.waf.*;
CfnSizeConstraintSetProps cfnSizeConstraintSetProps = CfnSizeConstraintSetProps.builder()
.name("name")
.sizeConstraints(List.of(SizeConstraintProperty.builder()
.comparisonOperator("comparisonOperator")
.fieldToMatch(FieldToMatchProperty.builder()
.type("type")
// the properties below are optional
.data("data")
.build())
.size(123)
.textTransformation("textTransformation")
.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.WAF;
var cfnSizeConstraintSetProps = new CfnSizeConstraintSetProps {
Name = "name",
SizeConstraints = new [] { new SizeConstraintProperty {
ComparisonOperator = "comparisonOperator",
FieldToMatch = new FieldToMatchProperty {
Type = "type",
// the properties below are optional
Data = "data"
},
Size = 123,
TextTransformation = "textTransformation"
} }
};
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"
cfnSizeConstraintSetProps := &CfnSizeConstraintSetProps{
Name: jsii.String("name"),
SizeConstraints: []interface{}{
&SizeConstraintProperty{
ComparisonOperator: jsii.String("comparisonOperator"),
FieldToMatch: &FieldToMatchProperty{
Type: jsii.String("type"),
// the properties below are optional
Data: jsii.String("data"),
},
Size: jsii.Number(123),
TextTransformation: jsii.String("textTransformation"),
},
},
}
Properties
The name, if any, of the `SizeConstraintSet` .
sizeConstraintsIResolvable | IResolvable | CfnSizeConstraintSet.size_constraintstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SizeConstraintProperty]]]sizeConstraintsIResolvableSizeConstraintsIResolvableSizeConstraintsinterface{} required #The size constraint and the part of the web request to check.