Interface CfnPolicy.PolicyOptionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicy.PolicyOptionProperty.Jsii$Proxy
- Enclosing class:
CfnPolicy
@Stability(Stable)
public static interface CfnPolicy.PolicyOptionProperty
extends software.amazon.jsii.JsiiSerializable
Contains the settings to configure a network ACL policy, a AWS Network Firewall firewall policy deployment model, or a third-party firewall policy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.fms.*;
PolicyOptionProperty policyOptionProperty = PolicyOptionProperty.builder()
.networkAclCommonPolicy(NetworkAclCommonPolicyProperty.builder()
.networkAclEntrySet(NetworkAclEntrySetProperty.builder()
.forceRemediateForFirstEntries(false)
.forceRemediateForLastEntries(false)
// the properties below are optional
.firstEntries(List.of(NetworkAclEntryProperty.builder()
.egress(false)
.protocol("protocol")
.ruleAction("ruleAction")
// the properties below are optional
.cidrBlock("cidrBlock")
.icmpTypeCode(IcmpTypeCodeProperty.builder()
.code(123)
.type(123)
.build())
.ipv6CidrBlock("ipv6CidrBlock")
.portRange(PortRangeProperty.builder()
.from(123)
.to(123)
.build())
.build()))
.lastEntries(List.of(NetworkAclEntryProperty.builder()
.egress(false)
.protocol("protocol")
.ruleAction("ruleAction")
// the properties below are optional
.cidrBlock("cidrBlock")
.icmpTypeCode(IcmpTypeCodeProperty.builder()
.code(123)
.type(123)
.build())
.ipv6CidrBlock("ipv6CidrBlock")
.portRange(PortRangeProperty.builder()
.from(123)
.to(123)
.build())
.build()))
.build())
.build())
.networkFirewallPolicy(NetworkFirewallPolicyProperty.builder()
.firewallDeploymentModel("firewallDeploymentModel")
.build())
.thirdPartyFirewallPolicy(ThirdPartyFirewallPolicyProperty.builder()
.firewallDeploymentModel("firewallDeploymentModel")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicy.PolicyOptionPropertystatic final classAn implementation forCfnPolicy.PolicyOptionProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNetworkAclCommonPolicy
Defines a Firewall Manager network ACL policy.- See Also:
-
getNetworkFirewallPolicy
Defines the deployment model to use for the firewall policy.- See Also:
-
getThirdPartyFirewallPolicy
Defines the policy options for a third-party firewall policy.- See Also:
-
builder
-