Interface SecurityHubPolicy.Builder

  • Method Details

    • serviceEnabled

      SecurityHubPolicy.Builder serviceEnabled(Boolean serviceEnabled)

      Indicates whether Security Hub is enabled in the policy.

      Parameters:
      serviceEnabled - Indicates whether Security Hub is enabled in the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledStandardIdentifiers

      SecurityHubPolicy.Builder enabledStandardIdentifiers(Collection<String> enabledStandardIdentifiers)

      A list that defines which security standards are enabled in the configuration policy.

      Parameters:
      enabledStandardIdentifiers - A list that defines which security standards are enabled in the configuration policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • enabledStandardIdentifiers

      SecurityHubPolicy.Builder enabledStandardIdentifiers(String... enabledStandardIdentifiers)

      A list that defines which security standards are enabled in the configuration policy.

      Parameters:
      enabledStandardIdentifiers - A list that defines which security standards are enabled in the configuration policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityControlsConfiguration

      SecurityHubPolicy.Builder securityControlsConfiguration(SecurityControlsConfiguration securityControlsConfiguration)

      An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.

      Parameters:
      securityControlsConfiguration - An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • securityControlsConfiguration

      default SecurityHubPolicy.Builder securityControlsConfiguration(Consumer<SecurityControlsConfiguration.Builder> securityControlsConfiguration)

      An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.

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

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

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