Class CfnMailManagerTrafficPolicy
Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied.
Inherited Members
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMailManagerTrafficPolicy : CfnResource, IInspectable, ITaggableV2
Syntax (vb)
Public Class CfnMailManagerTrafficPolicy Inherits CfnResource Implements IInspectable, ITaggableV2
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
Examples
// 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 cfnMailManagerTrafficPolicy = new CfnMailManagerTrafficPolicy(this, "MyCfnMailManagerTrafficPolicy", new CfnMailManagerTrafficPolicyProps {
DefaultAction = "defaultAction",
PolicyStatements = new [] { new PolicyStatementProperty {
Action = "action",
Conditions = new [] { new PolicyConditionProperty {
BooleanExpression = new IngressBooleanExpressionProperty {
Evaluate = new IngressBooleanToEvaluateProperty {
Analysis = new IngressAnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
IsInAddressList = new IngressIsInAddressListProperty {
AddressLists = new [] { "addressLists" },
Attribute = "attribute"
}
},
Operator = "operator"
},
IpExpression = new IngressIpv4ExpressionProperty {
Evaluate = new IngressIpToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
Ipv6Expression = new IngressIpv6ExpressionProperty {
Evaluate = new IngressIpv6ToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
StringExpression = new IngressStringExpressionProperty {
Evaluate = new IngressStringToEvaluateProperty {
Analysis = new IngressAnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
TlsExpression = new IngressTlsProtocolExpressionProperty {
Evaluate = new IngressTlsProtocolToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Value = "value"
}
} }
} },
// the properties below are optional
MaxMessageSizeBytes = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TrafficPolicyName = "trafficPolicyName"
});
Synopsis
Constructors
CfnMailManagerTrafficPolicy(Construct, string, ICfnMailManagerTrafficPolicyProps) | Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied. |
Properties
AttrTrafficPolicyArn | The Amazon Resource Name (ARN) of the traffic policy resource. |
AttrTrafficPolicyId | The identifier of the traffic policy resource. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CdkTagManager | Tag Manager which manages the tags for this resource. |
CfnProperties | Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied. |
DefaultAction | Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements. |
MaxMessageSizeBytes | The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked. |
PolicyStatements | Conditional statements for filtering email traffic. |
Tags | The tags used to organize, track, or control access for the resource. |
TrafficPolicyName | The name of the policy. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<string, object>) | Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied. |
Constructors
CfnMailManagerTrafficPolicy(Construct, string, ICfnMailManagerTrafficPolicyProps)
Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied.
public CfnMailManagerTrafficPolicy(Construct scope, string id, ICfnMailManagerTrafficPolicyProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnMailManagerTrafficPolicyProps
Resource properties.
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
Properties
AttrTrafficPolicyArn
The Amazon Resource Name (ARN) of the traffic policy resource.
public virtual string AttrTrafficPolicyArn { get; }
Property Value
Remarks
CloudformationAttribute: TrafficPolicyArn
AttrTrafficPolicyId
The identifier of the traffic policy resource.
public virtual string AttrTrafficPolicyId { get; }
Property Value
Remarks
CloudformationAttribute: TrafficPolicyId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
CdkTagManager
Tag Manager which manages the tags for this resource.
public virtual TagManager CdkTagManager { get; }
Property Value
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
CfnProperties
Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
DefaultAction
Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements.
public virtual string DefaultAction { get; set; }
Property Value
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
MaxMessageSizeBytes
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
public virtual double? MaxMessageSizeBytes { get; set; }
Property Value
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
PolicyStatements
Conditional statements for filtering email traffic.
public virtual object PolicyStatements { get; set; }
Property Value
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
Tags
The tags used to organize, track, or control access for the resource.
public virtual ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
TrafficPolicyName
The name of the policy.
public virtual string? TrafficPolicyName { get; set; }
Property Value
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Resource to create a traffic policy for a Mail Manager ingress endpoint which contains policy statements used to evaluate whether incoming emails should be allowed or denied.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::SES::MailManagerTrafficPolicy
ExampleMetadata: fixture=_generated