Class CfnPolicy.PolicyOptionProperty
Contains the settings to configure a network ACL policy, a AWS Network Firewall firewall policy deployment model, or a third-party firewall policy.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.FMS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PolicyOptionProperty : Object, CfnPolicy.IPolicyOptionProperty
Syntax (vb)
Public Class PolicyOptionProperty
Inherits Object
Implements CfnPolicy.IPolicyOptionProperty
Remarks
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.FMS;
var policyOptionProperty = new PolicyOptionProperty {
NetworkAclCommonPolicy = new NetworkAclCommonPolicyProperty {
NetworkAclEntrySet = new NetworkAclEntrySetProperty {
ForceRemediateForFirstEntries = false,
ForceRemediateForLastEntries = false,
// the properties below are optional
FirstEntries = new [] { new NetworkAclEntryProperty {
Egress = false,
Protocol = "protocol",
RuleAction = "ruleAction",
// the properties below are optional
CidrBlock = "cidrBlock",
IcmpTypeCode = new IcmpTypeCodeProperty {
Code = 123,
Type = 123
},
Ipv6CidrBlock = "ipv6CidrBlock",
PortRange = new PortRangeProperty {
From = 123,
To = 123
}
} },
LastEntries = new [] { new NetworkAclEntryProperty {
Egress = false,
Protocol = "protocol",
RuleAction = "ruleAction",
// the properties below are optional
CidrBlock = "cidrBlock",
IcmpTypeCode = new IcmpTypeCodeProperty {
Code = 123,
Type = 123
},
Ipv6CidrBlock = "ipv6CidrBlock",
PortRange = new PortRangeProperty {
From = 123,
To = 123
}
} }
}
},
NetworkFirewallPolicy = new NetworkFirewallPolicyProperty {
FirewallDeploymentModel = "firewallDeploymentModel"
},
ThirdPartyFirewallPolicy = new ThirdPartyFirewallPolicyProperty {
FirewallDeploymentModel = "firewallDeploymentModel"
}
};
Synopsis
Constructors
Policy |
Properties
Network |
Defines a Firewall Manager network ACL policy. |
Network |
Defines the deployment model to use for the firewall policy. |
Third |
Defines the policy options for a third-party firewall policy. |
Constructors
PolicyOptionProperty()
public PolicyOptionProperty()
Properties
NetworkAclCommonPolicy
Defines a Firewall Manager network ACL policy.
public object NetworkAclCommonPolicy { get; set; }
Property Value
System.
Remarks
NetworkFirewallPolicy
Defines the deployment model to use for the firewall policy.
public object NetworkFirewallPolicy { get; set; }
Property Value
System.
Remarks
ThirdPartyFirewallPolicy
Defines the policy options for a third-party firewall policy.
public object ThirdPartyFirewallPolicy { get; set; }
Property Value
System.