Interface PolicyConfiguration.Builder

  • Method Details

    • remediationEnabled

      PolicyConfiguration.Builder remediationEnabled(Boolean remediationEnabled)

      Specifies whether AWS Network Security Manager automatically remediates noncompliant resources. Default: false.

      Parameters:
      remediationEnabled - Specifies whether AWS Network Security Manager automatically remediates noncompliant resources. Default: false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourcesCleanUp

      PolicyConfiguration.Builder resourcesCleanUp(Boolean resourcesCleanUp)

      Specifies whether AWS Network Security Manager automatically removes the resources it created when they are no longer needed. This member is required, and the only supported value is true.

      Parameters:
      resourcesCleanUp - Specifies whether AWS Network Security Manager automatically removes the resources it created when they are no longer needed. This member is required, and the only supported value is true.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wafConfig

      PolicyConfiguration.Builder wafConfig(WafConfig wafConfig)

      AWS WAF-specific policy settings. This is populated only for AWS WAF policies.

      Parameters:
      wafConfig - AWS WAF-specific policy settings. This is populated only for AWS WAF policies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wafConfig

      default PolicyConfiguration.Builder wafConfig(Consumer<WafConfig.Builder> wafConfig)

      AWS WAF-specific policy settings. This is populated only for AWS WAF policies.

      This is a convenience method that creates an instance of the WafConfig.Builder avoiding the need to create one manually via WafConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to wafConfig(WafConfig).

      Parameters:
      wafConfig - a consumer that will call methods on WafConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • igwFirewallConfig

      PolicyConfiguration.Builder igwFirewallConfig(IgwFirewallConfig igwFirewallConfig)

      Policy settings for Network Firewall automated internet firewall policies. Specify these settings only for this policy type.

      Parameters:
      igwFirewallConfig - Policy settings for Network Firewall automated internet firewall policies. Specify these settings only for this policy type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • igwFirewallConfig

      default PolicyConfiguration.Builder igwFirewallConfig(Consumer<IgwFirewallConfig.Builder> igwFirewallConfig)

      Policy settings for Network Firewall automated internet firewall policies. Specify these settings only for this policy type.

      This is a convenience method that creates an instance of the IgwFirewallConfig.Builder avoiding the need to create one manually via IgwFirewallConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to igwFirewallConfig(IgwFirewallConfig).

      Parameters:
      igwFirewallConfig - a consumer that will call methods on IgwFirewallConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: