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.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.FMS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPolicy.PolicyOptionProperty : CfnPolicy.IPolicyOptionProperty
Syntax (vb)
Public Class CfnPolicy.PolicyOptionProperty 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
PolicyOptionProperty() | Contains the settings to configure a network ACL policy, a AWS Network Firewall firewall policy deployment model, or a third-party firewall policy. |
Properties
NetworkAclCommonPolicy | Defines a Firewall Manager network ACL policy. |
NetworkFirewallPolicy | Defines the deployment model to use for the firewall policy. |
ThirdPartyFirewallPolicy | Defines the policy options for a third-party firewall policy. |
Constructors
PolicyOptionProperty()
Contains the settings to configure a network ACL policy, a AWS Network Firewall firewall policy deployment model, or a third-party firewall policy.
public PolicyOptionProperty()
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"
}
};
Properties
NetworkAclCommonPolicy
Defines a Firewall Manager network ACL policy.
public object? NetworkAclCommonPolicy { get; set; }
Property Value
Remarks
NetworkFirewallPolicy
Defines the deployment model to use for the firewall policy.
public object? NetworkFirewallPolicy { get; set; }
Property Value
Remarks
ThirdPartyFirewallPolicy
Defines the policy options for a third-party firewall policy.
public object? ThirdPartyFirewallPolicy { get; set; }