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. Default: false.

      Parameters:
      resourcesCleanUp - Specifies whether AWS Network Security Manager automatically removes the resources it created when they are no longer needed. Default: false.
      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: