Skip to content
v2.278.0

RuleIpExpressionProperty Struct ​

An IP address expression matching certain IP addresses within a given range of IP addresses.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const ruleIpExpressionProperty: ses.CfnMailManagerRuleSet.RuleIpExpressionProperty = {
  evaluate: {
    attribute: 'attribute',
  },
  operator: 'operator',
  values: ['values'],
};
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_ses as ses

rule_ip_expression_property = ses.CfnMailManagerRuleSet.RuleIpExpressionProperty(
    evaluate=ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty(
        attribute="attribute"
    ),
    operator="operator",
    values=["values"]
)
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.ses.*;

RuleIpExpressionProperty ruleIpExpressionProperty = RuleIpExpressionProperty.builder()
        .evaluate(RuleIpToEvaluateProperty.builder()
                .attribute("attribute")
                .build())
        .operator("operator")
        .values(List.of("values"))
        .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.SES;

var ruleIpExpressionProperty = new RuleIpExpressionProperty {
    Evaluate = new RuleIpToEvaluateProperty {
        Attribute = "attribute"
    },
    Operator = "operator",
    Values = new [] { "values" }
};
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"

ruleIpExpressionProperty := &RuleIpExpressionProperty{
	Evaluate: &RuleIpToEvaluateProperty{
		Attribute: jsii.String("attribute"),
	},
	Operator: jsii.String("operator"),
	Values: []*string{
		jsii.String("values"),
	},
}

Properties ​

evaluateIResolvable | CfnMailManagerRuleSet.RuleIpToEvaluatePropertyevaluatetyping.Union[IResolvable, RuleIpToEvaluateProperty]evaluateIResolvableEvaluateIResolvableEvaluateinterface{} required #
The IP address to evaluate in this condition.
operatorstringoperatorstroperatorStringOperatorstringOperator*string required #
The operator to evaluate the IP address.
valuesstring[]valuestyping.List[str]valuesList<String>Valuesstring[]Values*[]*string required #
The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.