Interface SecurityHubAsyncClient

  • All Superinterfaces:
    AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

    @Generated("software.amazon.awssdk:codegen")
    @SdkPublicApi
    @ThreadSafe
    public interface SecurityHubAsyncClient
    extends AwsClient
    Service client for accessing AWS SecurityHub asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in some cases such as credentials retrieval and endpoint discovery as part of the async API call.

    Security Hub provides you with a comprehensive view of your security state in Amazon Web Services and helps you assess your Amazon Web Services environment against security industry standards and best practices.

    Security Hub collects security data across Amazon Web Services accounts, Amazon Web Services services, and supported third-party products and helps you analyze your security trends and identify the highest priority security issues.

    To help you manage the security state of your organization, Security Hub supports multiple security standards. These include the Amazon Web Services Foundational Security Best Practices (FSBP) standard developed by Amazon Web Services, and external compliance frameworks such as the Center for Internet Security (CIS), the Payment Card Industry Data Security Standard (PCI DSS), and the National Institute of Standards and Technology (NIST). Each standard includes several security controls, each of which represents a security best practice. Security Hub runs checks against security controls and generates control findings to help you assess your compliance against security best practices.

    In addition to generating control findings, Security Hub also receives findings from other Amazon Web Services services, such as Amazon GuardDuty and Amazon Inspector, and supported third-party products. This gives you a single pane of glass into a variety of security-related issues. You can also send Security Hub findings to other Amazon Web Services services and supported third-party products.

    Security Hub offers automation features that help you triage and remediate security issues. For example, you can use automation rules to automatically update critical findings when a security check fails. You can also leverage the integration with Amazon EventBridge to trigger automatic responses to specific findings.

    This guide, the Security Hub API Reference, provides information about the Security Hub API. This includes supported resources, HTTP methods, parameters, and schemas. If you're new to Security Hub, you might find it helpful to also review the Security Hub User Guide . The user guide explains key concepts and provides procedures that demonstrate how to use Security Hub features. It also provides information about topics such as integrating Security Hub with other Amazon Web Services services.

    In addition to interacting with Security Hub by making calls to the Security Hub API, you can use a current version of an Amazon Web Services command line tool or SDK. Amazon Web Services provides tools and SDKs that consist of libraries and sample code for various languages and platforms, such as PowerShell, Java, Go, Python, C++, and .NET. These tools and SDKs provide convenient, programmatic access to Security Hub and other Amazon Web Services services . They also handle tasks such as signing requests, managing errors, and retrying requests automatically. For information about installing and using the Amazon Web Services tools and SDKs, see Tools to Build on Amazon Web Services.

    With the exception of operations that are related to central configuration, Security Hub API requests are executed only in the Amazon Web Services Region that is currently active or in the specific Amazon Web Services Region that you specify in your request. Any configuration or settings change that results from the operation is applied only to that Region. To make the same change in other Regions, call the same API operation in each Region in which you want to apply the change. When you use central configuration, API requests for enabling Security Hub, standards, and controls are executed in the home Region and all linked Regions. For a list of central configuration operations, see the Central configuration terms and concepts section of the Security Hub User Guide.

    The following throttling limits apply to Security Hub API operations.

    • BatchEnableStandards - RateLimit of 1 request per second. BurstLimit of 1 request per second.

    • GetFindings - RateLimit of 3 requests per second. BurstLimit of 6 requests per second.

    • BatchImportFindings - RateLimit of 10 requests per second. BurstLimit of 30 requests per second.

    • BatchUpdateFindings - RateLimit of 10 requests per second. BurstLimit of 30 requests per second.

    • UpdateStandardsControl - RateLimit of 1 request per second. BurstLimit of 5 requests per second.

    • All other operations - RateLimit of 10 requests per second. BurstLimit of 30 requests per second.

    • Method Detail

      • acceptAdministratorInvitation

        default CompletableFuture<AcceptAdministratorInvitationResponse> acceptAdministratorInvitation​(AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.

        This operation is only used by member accounts that are not added through Organizations.

        When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.

        Parameters:
        acceptAdministratorInvitationRequest -
        Returns:
        A Java Future containing the result of the AcceptAdministratorInvitation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • acceptAdministratorInvitation

        default CompletableFuture<AcceptAdministratorInvitationResponse> acceptAdministratorInvitation​(Consumer<AcceptAdministratorInvitationRequest.Builder> acceptAdministratorInvitationRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.

        This operation is only used by member accounts that are not added through Organizations.

        When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.


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

        Parameters:
        acceptAdministratorInvitationRequest - A Consumer that will call methods on AcceptAdministratorInvitationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the AcceptAdministratorInvitation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • acceptInvitation

        @Deprecated
        default CompletableFuture<AcceptInvitationResponse> acceptInvitation​(AcceptInvitationRequest acceptInvitationRequest)
        Deprecated.
        This API has been deprecated, use AcceptAdministratorInvitation API instead.

        This method is deprecated. Instead, use AcceptAdministratorInvitation.

        The Security Hub console continues to use AcceptInvitation. It will eventually change to use AcceptAdministratorInvitation. Any IAM policies that specifically control access to this function must continue to use AcceptInvitation. You should also add AcceptAdministratorInvitation to your policies to ensure that the correct permissions are in place after the console begins to use AcceptAdministratorInvitation.

        Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.

        This operation is only used by member accounts that are not added through Organizations.

        When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.

        Parameters:
        acceptInvitationRequest -
        Returns:
        A Java Future containing the result of the AcceptInvitation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • acceptInvitation

        @Deprecated
        default CompletableFuture<AcceptInvitationResponse> acceptInvitation​(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest)
        Deprecated.
        This API has been deprecated, use AcceptAdministratorInvitation API instead.

        This method is deprecated. Instead, use AcceptAdministratorInvitation.

        The Security Hub console continues to use AcceptInvitation. It will eventually change to use AcceptAdministratorInvitation. Any IAM policies that specifically control access to this function must continue to use AcceptInvitation. You should also add AcceptAdministratorInvitation to your policies to ensure that the correct permissions are in place after the console begins to use AcceptAdministratorInvitation.

        Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.

        This operation is only used by member accounts that are not added through Organizations.

        When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.


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

        Parameters:
        acceptInvitationRequest - A Consumer that will call methods on AcceptInvitationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the AcceptInvitation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchDeleteAutomationRules

        default CompletableFuture<BatchDeleteAutomationRulesResponse> batchDeleteAutomationRules​(BatchDeleteAutomationRulesRequest batchDeleteAutomationRulesRequest)

        Deletes one or more automation rules.

        Parameters:
        batchDeleteAutomationRulesRequest -
        Returns:
        A Java Future containing the result of the BatchDeleteAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchDeleteAutomationRules

        default CompletableFuture<BatchDeleteAutomationRulesResponse> batchDeleteAutomationRules​(Consumer<BatchDeleteAutomationRulesRequest.Builder> batchDeleteAutomationRulesRequest)

        Deletes one or more automation rules.


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

        Parameters:
        batchDeleteAutomationRulesRequest - A Consumer that will call methods on BatchDeleteAutomationRulesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchDeleteAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchDisableStandards

        default CompletableFuture<BatchDisableStandardsResponse> batchDisableStandards​(BatchDisableStandardsRequest batchDisableStandardsRequest)

        Disables the standards specified by the provided StandardsSubscriptionArns.

        For more information, see Security Standards section of the Security Hub User Guide.

        Parameters:
        batchDisableStandardsRequest -
        Returns:
        A Java Future containing the result of the BatchDisableStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchDisableStandards

        default CompletableFuture<BatchDisableStandardsResponse> batchDisableStandards​(Consumer<BatchDisableStandardsRequest.Builder> batchDisableStandardsRequest)

        Disables the standards specified by the provided StandardsSubscriptionArns.

        For more information, see Security Standards section of the Security Hub User Guide.


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

        Parameters:
        batchDisableStandardsRequest - A Consumer that will call methods on BatchDisableStandardsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchDisableStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchEnableStandards

        default CompletableFuture<BatchEnableStandardsResponse> batchEnableStandards​(BatchEnableStandardsRequest batchEnableStandardsRequest)

        Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation.

        For more information, see the Security Standards section of the Security Hub User Guide.

        Parameters:
        batchEnableStandardsRequest -
        Returns:
        A Java Future containing the result of the BatchEnableStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchEnableStandards

        default CompletableFuture<BatchEnableStandardsResponse> batchEnableStandards​(Consumer<BatchEnableStandardsRequest.Builder> batchEnableStandardsRequest)

        Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation.

        For more information, see the Security Standards section of the Security Hub User Guide.


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

        Parameters:
        batchEnableStandardsRequest - A Consumer that will call methods on BatchEnableStandardsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchEnableStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetAutomationRules

        default CompletableFuture<BatchGetAutomationRulesResponse> batchGetAutomationRules​(BatchGetAutomationRulesRequest batchGetAutomationRulesRequest)

        Retrieves a list of details for automation rules based on rule Amazon Resource Names (ARNs).

        Parameters:
        batchGetAutomationRulesRequest -
        Returns:
        A Java Future containing the result of the BatchGetAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetAutomationRules

        default CompletableFuture<BatchGetAutomationRulesResponse> batchGetAutomationRules​(Consumer<BatchGetAutomationRulesRequest.Builder> batchGetAutomationRulesRequest)

        Retrieves a list of details for automation rules based on rule Amazon Resource Names (ARNs).


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

        Parameters:
        batchGetAutomationRulesRequest - A Consumer that will call methods on BatchGetAutomationRulesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchGetAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetConfigurationPolicyAssociations

        default CompletableFuture<BatchGetConfigurationPolicyAssociationsResponse> batchGetConfigurationPolicyAssociations​(BatchGetConfigurationPolicyAssociationsRequest batchGetConfigurationPolicyAssociationsRequest)

        Returns associations between an Security Hub configuration and a batch of target accounts, organizational units, or the root. Only the Security Hub delegated administrator can invoke this operation from the home Region. A configuration can refer to a configuration policy or to a self-managed configuration.

        Parameters:
        batchGetConfigurationPolicyAssociationsRequest -
        Returns:
        A Java Future containing the result of the BatchGetConfigurationPolicyAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetConfigurationPolicyAssociations

        default CompletableFuture<BatchGetConfigurationPolicyAssociationsResponse> batchGetConfigurationPolicyAssociations​(Consumer<BatchGetConfigurationPolicyAssociationsRequest.Builder> batchGetConfigurationPolicyAssociationsRequest)

        Returns associations between an Security Hub configuration and a batch of target accounts, organizational units, or the root. Only the Security Hub delegated administrator can invoke this operation from the home Region. A configuration can refer to a configuration policy or to a self-managed configuration.


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

        Parameters:
        batchGetConfigurationPolicyAssociationsRequest - A Consumer that will call methods on BatchGetConfigurationPolicyAssociationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchGetConfigurationPolicyAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetSecurityControls

        default CompletableFuture<BatchGetSecurityControlsResponse> batchGetSecurityControls​(BatchGetSecurityControlsRequest batchGetSecurityControlsRequest)

        Provides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.

        Parameters:
        batchGetSecurityControlsRequest -
        Returns:
        A Java Future containing the result of the BatchGetSecurityControls operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetSecurityControls

        default CompletableFuture<BatchGetSecurityControlsResponse> batchGetSecurityControls​(Consumer<BatchGetSecurityControlsRequest.Builder> batchGetSecurityControlsRequest)

        Provides details about a batch of security controls for the current Amazon Web Services account and Amazon Web Services Region.


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

        Parameters:
        batchGetSecurityControlsRequest - A Consumer that will call methods on BatchGetSecurityControlsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchGetSecurityControls operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetStandardsControlAssociations

        default CompletableFuture<BatchGetStandardsControlAssociationsResponse> batchGetStandardsControlAssociations​(BatchGetStandardsControlAssociationsRequest batchGetStandardsControlAssociationsRequest)

        For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard.

        Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the association has a NOT_READY_FOR_UPDATES value for StandardsControlsUpdatable.

        Parameters:
        batchGetStandardsControlAssociationsRequest -
        Returns:
        A Java Future containing the result of the BatchGetStandardsControlAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchGetStandardsControlAssociations

        default CompletableFuture<BatchGetStandardsControlAssociationsResponse> batchGetStandardsControlAssociations​(Consumer<BatchGetStandardsControlAssociationsRequest.Builder> batchGetStandardsControlAssociationsRequest)

        For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard.

        Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the association has a NOT_READY_FOR_UPDATES value for StandardsControlsUpdatable.


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

        Parameters:
        batchGetStandardsControlAssociationsRequest - A Consumer that will call methods on BatchGetStandardsControlAssociationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchGetStandardsControlAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchImportFindings

        default CompletableFuture<BatchImportFindingsResponse> batchImportFindings​(BatchImportFindingsRequest batchImportFindingsRequest)

        Imports security findings generated by a finding provider into Security Hub. This action is requested by the finding provider to import its findings into Security Hub.

        BatchImportFindings must be called by one of the following:

        • The Amazon Web Services account that is associated with a finding if you are using the default product ARN or are a partner sending findings from within a customer's Amazon Web Services account. In these cases, the identifier of the account that you are calling BatchImportFindings from needs to be the same as the AwsAccountId attribute for the finding.

        • An Amazon Web Services account that Security Hub has allow-listed for an official partner integration. In this case, you can call BatchImportFindings from the allow-listed account and send findings from different customer accounts in the same batch.

        The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.

        After a finding is created, BatchImportFindings cannot be used to update the following finding fields and objects, which Security Hub customers use to manage their investigation workflow.

        • Note

        • UserDefinedFields

        • VerificationState

        • Workflow

        Finding providers also should not use BatchImportFindings to update the following attributes.

        • Confidence

        • Criticality

        • RelatedFindings

        • Severity

        • Types

        Instead, finding providers use FindingProviderFields to provide values for these attributes.

        Parameters:
        batchImportFindingsRequest -
        Returns:
        A Java Future containing the result of the BatchImportFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchImportFindings

        default CompletableFuture<BatchImportFindingsResponse> batchImportFindings​(Consumer<BatchImportFindingsRequest.Builder> batchImportFindingsRequest)

        Imports security findings generated by a finding provider into Security Hub. This action is requested by the finding provider to import its findings into Security Hub.

        BatchImportFindings must be called by one of the following:

        • The Amazon Web Services account that is associated with a finding if you are using the default product ARN or are a partner sending findings from within a customer's Amazon Web Services account. In these cases, the identifier of the account that you are calling BatchImportFindings from needs to be the same as the AwsAccountId attribute for the finding.

        • An Amazon Web Services account that Security Hub has allow-listed for an official partner integration. In this case, you can call BatchImportFindings from the allow-listed account and send findings from different customer accounts in the same batch.

        The maximum allowed size for a finding is 240 Kb. An error is returned for any finding larger than 240 Kb.

        After a finding is created, BatchImportFindings cannot be used to update the following finding fields and objects, which Security Hub customers use to manage their investigation workflow.

        • Note

        • UserDefinedFields

        • VerificationState

        • Workflow

        Finding providers also should not use BatchImportFindings to update the following attributes.

        • Confidence

        • Criticality

        • RelatedFindings

        • Severity

        • Types

        Instead, finding providers use FindingProviderFields to provide values for these attributes.


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

        Parameters:
        batchImportFindingsRequest - A Consumer that will call methods on BatchImportFindingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchImportFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateAutomationRules

        default CompletableFuture<BatchUpdateAutomationRulesResponse> batchUpdateAutomationRules​(BatchUpdateAutomationRulesRequest batchUpdateAutomationRulesRequest)

        Updates one or more automation rules based on rule Amazon Resource Names (ARNs) and input parameters.

        Parameters:
        batchUpdateAutomationRulesRequest -
        Returns:
        A Java Future containing the result of the BatchUpdateAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateAutomationRules

        default CompletableFuture<BatchUpdateAutomationRulesResponse> batchUpdateAutomationRules​(Consumer<BatchUpdateAutomationRulesRequest.Builder> batchUpdateAutomationRulesRequest)

        Updates one or more automation rules based on rule Amazon Resource Names (ARNs) and input parameters.


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

        Parameters:
        batchUpdateAutomationRulesRequest - A Consumer that will call methods on BatchUpdateAutomationRulesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchUpdateAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateFindings

        default CompletableFuture<BatchUpdateFindingsResponse> batchUpdateFindings​(BatchUpdateFindingsRequest batchUpdateFindingsRequest)

        Used by Security Hub customers to update information about their investigation into one or more findings. Requested by administrator accounts or member accounts. Administrator accounts can update findings for their account and their member accounts. A member account can update findings only for their own account. Administrator and member accounts can use this operation to update the following fields and objects for one or more findings:

        • Confidence

        • Criticality

        • Note

        • RelatedFindings

        • Severity

        • Types

        • UserDefinedFields

        • VerificationState

        • Workflow

        If you use this operation to update a finding, your updates don’t affect the value for the UpdatedAt field of the finding. Also note that it can take several minutes for Security Hub to process your request and update each finding specified in the request.

        You can configure IAM policies to restrict access to fields and field values. For example, you might not want member accounts to be able to suppress findings or change the finding severity. For more information see Configuring access to BatchUpdateFindings in the Security Hub User Guide.

        Parameters:
        batchUpdateFindingsRequest -
        Returns:
        A Java Future containing the result of the BatchUpdateFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateFindings

        default CompletableFuture<BatchUpdateFindingsResponse> batchUpdateFindings​(Consumer<BatchUpdateFindingsRequest.Builder> batchUpdateFindingsRequest)

        Used by Security Hub customers to update information about their investigation into one or more findings. Requested by administrator accounts or member accounts. Administrator accounts can update findings for their account and their member accounts. A member account can update findings only for their own account. Administrator and member accounts can use this operation to update the following fields and objects for one or more findings:

        • Confidence

        • Criticality

        • Note

        • RelatedFindings

        • Severity

        • Types

        • UserDefinedFields

        • VerificationState

        • Workflow

        If you use this operation to update a finding, your updates don’t affect the value for the UpdatedAt field of the finding. Also note that it can take several minutes for Security Hub to process your request and update each finding specified in the request.

        You can configure IAM policies to restrict access to fields and field values. For example, you might not want member accounts to be able to suppress findings or change the finding severity. For more information see Configuring access to BatchUpdateFindings in the Security Hub User Guide.


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

        Parameters:
        batchUpdateFindingsRequest - A Consumer that will call methods on BatchUpdateFindingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchUpdateFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateFindingsV2

        default CompletableFuture<BatchUpdateFindingsV2Response> batchUpdateFindingsV2​(BatchUpdateFindingsV2Request batchUpdateFindingsV2Request)

        Used by customers to update information about their investigation into a finding. Requested by delegated administrator accounts or member accounts. Delegated administrator accounts can update findings for their account and their member accounts. Member accounts can update findings for their account. BatchUpdateFindings and BatchUpdateFindingV2 both use securityhub:BatchUpdateFindings in the Action element of an IAM policy statement. You must have permission to perform the securityhub:BatchUpdateFindings action. Updates from BatchUpdateFindingsV2 don't affect the value of finding_info.modified_time, finding_info.modified_time_dt, time, time_dt for a finding.

        Parameters:
        batchUpdateFindingsV2Request -
        Returns:
        A Java Future containing the result of the BatchUpdateFindingsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateFindingsV2

        default CompletableFuture<BatchUpdateFindingsV2Response> batchUpdateFindingsV2​(Consumer<BatchUpdateFindingsV2Request.Builder> batchUpdateFindingsV2Request)

        Used by customers to update information about their investigation into a finding. Requested by delegated administrator accounts or member accounts. Delegated administrator accounts can update findings for their account and their member accounts. Member accounts can update findings for their account. BatchUpdateFindings and BatchUpdateFindingV2 both use securityhub:BatchUpdateFindings in the Action element of an IAM policy statement. You must have permission to perform the securityhub:BatchUpdateFindings action. Updates from BatchUpdateFindingsV2 don't affect the value of finding_info.modified_time, finding_info.modified_time_dt, time, time_dt for a finding.


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

        Parameters:
        batchUpdateFindingsV2Request - A Consumer that will call methods on BatchUpdateFindingsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchUpdateFindingsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateStandardsControlAssociations

        default CompletableFuture<BatchUpdateStandardsControlAssociationsResponse> batchUpdateStandardsControlAssociations​(BatchUpdateStandardsControlAssociationsRequest batchUpdateStandardsControlAssociationsRequest)

        For a batch of security controls and standards, this operation updates the enablement status of a control in a standard.

        Parameters:
        batchUpdateStandardsControlAssociationsRequest -
        Returns:
        A Java Future containing the result of the BatchUpdateStandardsControlAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • batchUpdateStandardsControlAssociations

        default CompletableFuture<BatchUpdateStandardsControlAssociationsResponse> batchUpdateStandardsControlAssociations​(Consumer<BatchUpdateStandardsControlAssociationsRequest.Builder> batchUpdateStandardsControlAssociationsRequest)

        For a batch of security controls and standards, this operation updates the enablement status of a control in a standard.


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

        Parameters:
        batchUpdateStandardsControlAssociationsRequest - A Consumer that will call methods on BatchUpdateStandardsControlAssociationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the BatchUpdateStandardsControlAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createActionTarget

        default CompletableFuture<CreateActionTargetResponse> createActionTarget​(CreateActionTargetRequest createActionTargetRequest)

        Creates a custom action target in Security Hub.

        You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.

        Parameters:
        createActionTargetRequest -
        Returns:
        A Java Future containing the result of the CreateActionTarget operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createActionTarget

        default CompletableFuture<CreateActionTargetResponse> createActionTarget​(Consumer<CreateActionTargetRequest.Builder> createActionTargetRequest)

        Creates a custom action target in Security Hub.

        You can use custom actions on findings and insights in Security Hub to trigger target actions in Amazon CloudWatch Events.


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

        Parameters:
        createActionTargetRequest - A Consumer that will call methods on CreateActionTargetRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateActionTarget operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAggregatorV2

        default CompletableFuture<CreateAggregatorV2Response> createAggregatorV2​(CreateAggregatorV2Request createAggregatorV2Request)

        Enables aggregation across Amazon Web Services Regions.

        Parameters:
        createAggregatorV2Request -
        Returns:
        A Java Future containing the result of the CreateAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ServiceQuotaExceededException The request was rejected because it would exceed the service quota limit.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAggregatorV2

        default CompletableFuture<CreateAggregatorV2Response> createAggregatorV2​(Consumer<CreateAggregatorV2Request.Builder> createAggregatorV2Request)

        Enables aggregation across Amazon Web Services Regions.


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

        Parameters:
        createAggregatorV2Request - A Consumer that will call methods on CreateAggregatorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ServiceQuotaExceededException The request was rejected because it would exceed the service quota limit.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAutomationRule

        default CompletableFuture<CreateAutomationRuleResponse> createAutomationRule​(CreateAutomationRuleRequest createAutomationRuleRequest)

        Creates an automation rule based on input parameters.

        Parameters:
        createAutomationRuleRequest -
        Returns:
        A Java Future containing the result of the CreateAutomationRule operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAutomationRule

        default CompletableFuture<CreateAutomationRuleResponse> createAutomationRule​(Consumer<CreateAutomationRuleRequest.Builder> createAutomationRuleRequest)

        Creates an automation rule based on input parameters.


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

        Parameters:
        createAutomationRuleRequest - A Consumer that will call methods on CreateAutomationRuleRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateAutomationRule operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAutomationRuleV2

        default CompletableFuture<CreateAutomationRuleV2Response> createAutomationRuleV2​(CreateAutomationRuleV2Request createAutomationRuleV2Request)

        Creates a V2 automation rule.

        Parameters:
        createAutomationRuleV2Request -
        Returns:
        A Java Future containing the result of the CreateAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ServiceQuotaExceededException The request was rejected because it would exceed the service quota limit.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createAutomationRuleV2

        default CompletableFuture<CreateAutomationRuleV2Response> createAutomationRuleV2​(Consumer<CreateAutomationRuleV2Request.Builder> createAutomationRuleV2Request)

        Creates a V2 automation rule.


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

        Parameters:
        createAutomationRuleV2Request - A Consumer that will call methods on CreateAutomationRuleV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ServiceQuotaExceededException The request was rejected because it would exceed the service quota limit.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createConfigurationPolicy

        default CompletableFuture<CreateConfigurationPolicyResponse> createConfigurationPolicy​(CreateConfigurationPolicyRequest createConfigurationPolicyRequest)

        Creates a configuration policy with the defined configuration. Only the Security Hub delegated administrator can invoke this operation from the home Region.

        Parameters:
        createConfigurationPolicyRequest -
        Returns:
        A Java Future containing the result of the CreateConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createConfigurationPolicy

        default CompletableFuture<CreateConfigurationPolicyResponse> createConfigurationPolicy​(Consumer<CreateConfigurationPolicyRequest.Builder> createConfigurationPolicyRequest)

        Creates a configuration policy with the defined configuration. Only the Security Hub delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        createConfigurationPolicyRequest - A Consumer that will call methods on CreateConfigurationPolicyRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createConnectorV2

        default CompletableFuture<CreateConnectorV2Response> createConnectorV2​(CreateConnectorV2Request createConnectorV2Request)

        Grants permission to create a connectorV2 based on input parameters.

        Parameters:
        createConnectorV2Request -
        Returns:
        A Java Future containing the result of the CreateConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ServiceQuotaExceededException The request was rejected because it would exceed the service quota limit.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createConnectorV2

        default CompletableFuture<CreateConnectorV2Response> createConnectorV2​(Consumer<CreateConnectorV2Request.Builder> createConnectorV2Request)

        Grants permission to create a connectorV2 based on input parameters.


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

        Parameters:
        createConnectorV2Request - A Consumer that will call methods on CreateConnectorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ServiceQuotaExceededException The request was rejected because it would exceed the service quota limit.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createFindingAggregator

        default CompletableFuture<CreateFindingAggregatorResponse> createFindingAggregator​(CreateFindingAggregatorRequest createFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Used to enable cross-Region aggregation. This operation can be invoked from the home Region only.

        For information about how cross-Region aggregation works, see Understanding cross-Region aggregation in Security Hub in the Security Hub User Guide.

        Parameters:
        createFindingAggregatorRequest -
        Returns:
        A Java Future containing the result of the CreateFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createFindingAggregator

        default CompletableFuture<CreateFindingAggregatorResponse> createFindingAggregator​(Consumer<CreateFindingAggregatorRequest.Builder> createFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Used to enable cross-Region aggregation. This operation can be invoked from the home Region only.

        For information about how cross-Region aggregation works, see Understanding cross-Region aggregation in Security Hub in the Security Hub User Guide.


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

        Parameters:
        createFindingAggregatorRequest - A Consumer that will call methods on CreateFindingAggregatorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createInsight

        default CompletableFuture<CreateInsightResponse> createInsight​(CreateInsightRequest createInsightRequest)

        Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.

        To group the related findings in the insight, use the GroupByAttribute.

        Parameters:
        createInsightRequest -
        Returns:
        A Java Future containing the result of the CreateInsight operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createInsight

        default CompletableFuture<CreateInsightResponse> createInsight​(Consumer<CreateInsightRequest.Builder> createInsightRequest)

        Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.

        To group the related findings in the insight, use the GroupByAttribute.


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

        Parameters:
        createInsightRequest - A Consumer that will call methods on CreateInsightRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateInsight operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createMembers

        default CompletableFuture<CreateMembersResponse> createMembers​(CreateMembersRequest createMembersRequest)

        Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account. If you are integrated with Organizations, then the administrator account is designated by the organization management account.

        CreateMembers is always used to add accounts that are not organization members.

        For accounts that are managed using Organizations, CreateMembers is only used in the following cases:

        • Security Hub is not configured to automatically add new organization accounts.

        • The account was disassociated or deleted in Security Hub.

        This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

        For accounts that are not organization members, you create the account association and then send an invitation to the member account. To send the invitation, you use the InviteMembers operation. If the account owner accepts the invitation, the account becomes a member account in Security Hub.

        Accounts that are managed using Organizations don't receive an invitation. They automatically become a member account in Security Hub.

        • If the organization account does not have Security Hub enabled, then Security Hub and the default standards are automatically enabled. Note that Security Hub cannot be enabled automatically for the organization management account. The organization management account must enable Security Hub before the administrator account enables it as a member account.

        • For organization accounts that already have Security Hub enabled, Security Hub does not make any other changes to those accounts. It does not change their enabled standards or controls.

        A permissions policy is added that permits the administrator account to view the findings generated in the member account.

        To remove the association between the administrator and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.

        Parameters:
        createMembersRequest -
        Returns:
        A Java Future containing the result of the CreateMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createMembers

        default CompletableFuture<CreateMembersResponse> createMembers​(Consumer<CreateMembersRequest.Builder> createMembersRequest)

        Creates a member association in Security Hub between the specified accounts and the account used to make the request, which is the administrator account. If you are integrated with Organizations, then the administrator account is designated by the organization management account.

        CreateMembers is always used to add accounts that are not organization members.

        For accounts that are managed using Organizations, CreateMembers is only used in the following cases:

        • Security Hub is not configured to automatically add new organization accounts.

        • The account was disassociated or deleted in Security Hub.

        This action can only be used by an account that has Security Hub enabled. To enable Security Hub, you can use the EnableSecurityHub operation.

        For accounts that are not organization members, you create the account association and then send an invitation to the member account. To send the invitation, you use the InviteMembers operation. If the account owner accepts the invitation, the account becomes a member account in Security Hub.

        Accounts that are managed using Organizations don't receive an invitation. They automatically become a member account in Security Hub.

        • If the organization account does not have Security Hub enabled, then Security Hub and the default standards are automatically enabled. Note that Security Hub cannot be enabled automatically for the organization management account. The organization management account must enable Security Hub before the administrator account enables it as a member account.

        • For organization accounts that already have Security Hub enabled, Security Hub does not make any other changes to those accounts. It does not change their enabled standards or controls.

        A permissions policy is added that permits the administrator account to view the findings generated in the member account.

        To remove the association between the administrator and member accounts, use the DisassociateFromMasterAccount or DisassociateMembers operation.


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

        Parameters:
        createMembersRequest - A Consumer that will call methods on CreateMembersRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createTicketV2

        default CompletableFuture<CreateTicketV2Response> createTicketV2​(CreateTicketV2Request createTicketV2Request)

        Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID.

        Parameters:
        createTicketV2Request -
        Returns:
        A Java Future containing the result of the CreateTicketV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • createTicketV2

        default CompletableFuture<CreateTicketV2Response> createTicketV2​(Consumer<CreateTicketV2Request.Builder> createTicketV2Request)

        Grants permission to create a ticket in the chosen ITSM based on finding information for the provided finding metadata UID.


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

        Parameters:
        createTicketV2Request - A Consumer that will call methods on CreateTicketV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the CreateTicketV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • declineInvitations

        default CompletableFuture<DeclineInvitationsResponse> declineInvitations​(DeclineInvitationsRequest declineInvitationsRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Declines invitations to become a Security Hub member account.

        A prospective member account uses this operation to decline an invitation to become a member.

        Only member accounts that aren't part of an Amazon Web Services organization should use this operation. Organization accounts don't receive invitations.

        Parameters:
        declineInvitationsRequest -
        Returns:
        A Java Future containing the result of the DeclineInvitations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • declineInvitations

        default CompletableFuture<DeclineInvitationsResponse> declineInvitations​(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Declines invitations to become a Security Hub member account.

        A prospective member account uses this operation to decline an invitation to become a member.

        Only member accounts that aren't part of an Amazon Web Services organization should use this operation. Organization accounts don't receive invitations.


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

        Parameters:
        declineInvitationsRequest - A Consumer that will call methods on DeclineInvitationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeclineInvitations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteActionTarget

        default CompletableFuture<DeleteActionTargetResponse> deleteActionTarget​(DeleteActionTargetRequest deleteActionTargetRequest)

        Deletes a custom action target from Security Hub.

        Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.

        Parameters:
        deleteActionTargetRequest -
        Returns:
        A Java Future containing the result of the DeleteActionTarget operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteActionTarget

        default CompletableFuture<DeleteActionTargetResponse> deleteActionTarget​(Consumer<DeleteActionTargetRequest.Builder> deleteActionTargetRequest)

        Deletes a custom action target from Security Hub.

        Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.


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

        Parameters:
        deleteActionTargetRequest - A Consumer that will call methods on DeleteActionTargetRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteActionTarget operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAggregatorV2

        default CompletableFuture<DeleteAggregatorV2Response> deleteAggregatorV2​(DeleteAggregatorV2Request deleteAggregatorV2Request)

        Deletes the Aggregator V2.

        Parameters:
        deleteAggregatorV2Request -
        Returns:
        A Java Future containing the result of the DeleteAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAggregatorV2

        default CompletableFuture<DeleteAggregatorV2Response> deleteAggregatorV2​(Consumer<DeleteAggregatorV2Request.Builder> deleteAggregatorV2Request)

        Deletes the Aggregator V2.


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

        Parameters:
        deleteAggregatorV2Request - A Consumer that will call methods on DeleteAggregatorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAutomationRuleV2

        default CompletableFuture<DeleteAutomationRuleV2Response> deleteAutomationRuleV2​(DeleteAutomationRuleV2Request deleteAutomationRuleV2Request)

        Deletes a V2 automation rule.

        Parameters:
        deleteAutomationRuleV2Request -
        Returns:
        A Java Future containing the result of the DeleteAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteAutomationRuleV2

        default CompletableFuture<DeleteAutomationRuleV2Response> deleteAutomationRuleV2​(Consumer<DeleteAutomationRuleV2Request.Builder> deleteAutomationRuleV2Request)

        Deletes a V2 automation rule.


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

        Parameters:
        deleteAutomationRuleV2Request - A Consumer that will call methods on DeleteAutomationRuleV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteConfigurationPolicy

        default CompletableFuture<DeleteConfigurationPolicyResponse> deleteConfigurationPolicy​(DeleteConfigurationPolicyRequest deleteConfigurationPolicyRequest)

        Deletes a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region. For the deletion to succeed, you must first disassociate a configuration policy from target accounts, organizational units, or the root by invoking the StartConfigurationPolicyDisassociation operation.

        Parameters:
        deleteConfigurationPolicyRequest -
        Returns:
        A Java Future containing the result of the DeleteConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteConfigurationPolicy

        default CompletableFuture<DeleteConfigurationPolicyResponse> deleteConfigurationPolicy​(Consumer<DeleteConfigurationPolicyRequest.Builder> deleteConfigurationPolicyRequest)

        Deletes a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region. For the deletion to succeed, you must first disassociate a configuration policy from target accounts, organizational units, or the root by invoking the StartConfigurationPolicyDisassociation operation.


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

        Parameters:
        deleteConfigurationPolicyRequest - A Consumer that will call methods on DeleteConfigurationPolicyRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteConnectorV2

        default CompletableFuture<DeleteConnectorV2Response> deleteConnectorV2​(DeleteConnectorV2Request deleteConnectorV2Request)

        Grants permission to delete a connectorV2.

        Parameters:
        deleteConnectorV2Request -
        Returns:
        A Java Future containing the result of the DeleteConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteConnectorV2

        default CompletableFuture<DeleteConnectorV2Response> deleteConnectorV2​(Consumer<DeleteConnectorV2Request.Builder> deleteConnectorV2Request)

        Grants permission to delete a connectorV2.


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

        Parameters:
        deleteConnectorV2Request - A Consumer that will call methods on DeleteConnectorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteFindingAggregator

        default CompletableFuture<DeleteFindingAggregatorResponse> deleteFindingAggregator​(DeleteFindingAggregatorRequest deleteFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Deletes a finding aggregator. When you delete the finding aggregator, you stop cross-Region aggregation. Finding replication stops occurring from the linked Regions to the home Region.

        When you stop cross-Region aggregation, findings that were already replicated and sent to the home Region are still visible from the home Region. However, new findings and finding updates are no longer replicated and sent to the home Region.

        Parameters:
        deleteFindingAggregatorRequest -
        Returns:
        A Java Future containing the result of the DeleteFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteFindingAggregator

        default CompletableFuture<DeleteFindingAggregatorResponse> deleteFindingAggregator​(Consumer<DeleteFindingAggregatorRequest.Builder> deleteFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Deletes a finding aggregator. When you delete the finding aggregator, you stop cross-Region aggregation. Finding replication stops occurring from the linked Regions to the home Region.

        When you stop cross-Region aggregation, findings that were already replicated and sent to the home Region are still visible from the home Region. However, new findings and finding updates are no longer replicated and sent to the home Region.


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

        Parameters:
        deleteFindingAggregatorRequest - A Consumer that will call methods on DeleteFindingAggregatorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteInsight

        default CompletableFuture<DeleteInsightResponse> deleteInsight​(DeleteInsightRequest deleteInsightRequest)

        Deletes the insight specified by the InsightArn.

        Parameters:
        deleteInsightRequest -
        Returns:
        A Java Future containing the result of the DeleteInsight operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteInsight

        default CompletableFuture<DeleteInsightResponse> deleteInsight​(Consumer<DeleteInsightRequest.Builder> deleteInsightRequest)

        Deletes the insight specified by the InsightArn.


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

        Parameters:
        deleteInsightRequest - A Consumer that will call methods on DeleteInsightRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteInsight operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteInvitations

        default CompletableFuture<DeleteInvitationsResponse> deleteInvitations​(DeleteInvitationsRequest deleteInvitationsRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Deletes invitations to become a Security Hub member account.

        A Security Hub administrator account can use this operation to delete invitations sent to one or more prospective member accounts.

        This operation is only used to delete invitations that are sent to prospective member accounts that aren't part of an Amazon Web Services organization. Organization accounts don't receive invitations.

        Parameters:
        deleteInvitationsRequest -
        Returns:
        A Java Future containing the result of the DeleteInvitations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteInvitations

        default CompletableFuture<DeleteInvitationsResponse> deleteInvitations​(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Deletes invitations to become a Security Hub member account.

        A Security Hub administrator account can use this operation to delete invitations sent to one or more prospective member accounts.

        This operation is only used to delete invitations that are sent to prospective member accounts that aren't part of an Amazon Web Services organization. Organization accounts don't receive invitations.


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

        Parameters:
        deleteInvitationsRequest - A Consumer that will call methods on DeleteInvitationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteInvitations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteMembers

        default CompletableFuture<DeleteMembersResponse> deleteMembers​(DeleteMembersRequest deleteMembersRequest)

        Deletes the specified member accounts from Security Hub.

        You can invoke this API only to delete accounts that became members through invitation. You can't invoke this API to delete accounts that belong to an Organizations organization.

        Parameters:
        deleteMembersRequest -
        Returns:
        A Java Future containing the result of the DeleteMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • deleteMembers

        default CompletableFuture<DeleteMembersResponse> deleteMembers​(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest)

        Deletes the specified member accounts from Security Hub.

        You can invoke this API only to delete accounts that became members through invitation. You can't invoke this API to delete accounts that belong to an Organizations organization.


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

        Parameters:
        deleteMembersRequest - A Consumer that will call methods on DeleteMembersRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DeleteMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeActionTargets

        default CompletableFuture<DescribeActionTargetsResponse> describeActionTargets​(DescribeActionTargetsRequest describeActionTargetsRequest)

        Returns a list of the custom action targets in Security Hub in your account.

        Parameters:
        describeActionTargetsRequest -
        Returns:
        A Java Future containing the result of the DescribeActionTargets operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeActionTargets

        default CompletableFuture<DescribeActionTargetsResponse> describeActionTargets​(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)

        Returns a list of the custom action targets in Security Hub in your account.


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

        Parameters:
        describeActionTargetsRequest - A Consumer that will call methods on DescribeActionTargetsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeActionTargets operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeActionTargetsPaginator

        default DescribeActionTargetsPublisher describeActionTargetsPaginator​(DescribeActionTargetsRequest describeActionTargetsRequest)

        This is a variant of describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest) operation.

        Parameters:
        describeActionTargetsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeActionTargetsPaginator

        default DescribeActionTargetsPublisher describeActionTargetsPaginator​(Consumer<DescribeActionTargetsRequest.Builder> describeActionTargetsRequest)

        This is a variant of describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeActionTargetsPublisher publisher = client.describeActionTargetsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeActionTargets(software.amazon.awssdk.services.securityhub.model.DescribeActionTargetsRequest) operation.


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

        Parameters:
        describeActionTargetsRequest - A Consumer that will call methods on DescribeActionTargetsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeHub

        default CompletableFuture<DescribeHubResponse> describeHub​(DescribeHubRequest describeHubRequest)

        Returns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub.

        Parameters:
        describeHubRequest -
        Returns:
        A Java Future containing the result of the DescribeHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeHub

        default CompletableFuture<DescribeHubResponse> describeHub​(Consumer<DescribeHubRequest.Builder> describeHubRequest)

        Returns details about the Hub resource in your account, including the HubArn and the time when you enabled Security Hub.


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

        Parameters:
        describeHubRequest - A Consumer that will call methods on DescribeHubRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeOrganizationConfiguration

        default CompletableFuture<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration​(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)

        Returns information about the way your organization is configured in Security Hub. Only the Security Hub administrator account can invoke this operation.

        Parameters:
        describeOrganizationConfigurationRequest -
        Returns:
        A Java Future containing the result of the DescribeOrganizationConfiguration operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeOrganizationConfiguration

        default CompletableFuture<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration​(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)

        Returns information about the way your organization is configured in Security Hub. Only the Security Hub administrator account can invoke this operation.


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

        Parameters:
        describeOrganizationConfigurationRequest - A Consumer that will call methods on DescribeOrganizationConfigurationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeOrganizationConfiguration operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProducts

        default CompletableFuture<DescribeProductsResponse> describeProducts​(DescribeProductsRequest describeProductsRequest)

        Returns information about product integrations in Security Hub.

        You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.

        If you don't provide an integration ARN, then the results include all of the available product integrations.

        Parameters:
        describeProductsRequest -
        Returns:
        A Java Future containing the result of the DescribeProducts operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProducts

        default CompletableFuture<DescribeProductsResponse> describeProducts​(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)

        Returns information about product integrations in Security Hub.

        You can optionally provide an integration ARN. If you provide an integration ARN, then the results only include that integration.

        If you don't provide an integration ARN, then the results include all of the available product integrations.


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

        Parameters:
        describeProductsRequest - A Consumer that will call methods on DescribeProductsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeProducts operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProductsPaginator

        default DescribeProductsPublisher describeProductsPaginator​(DescribeProductsRequest describeProductsRequest)

        This is a variant of describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest) operation.

        Parameters:
        describeProductsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProductsPaginator

        default DescribeProductsPublisher describeProductsPaginator​(Consumer<DescribeProductsRequest.Builder> describeProductsRequest)

        This is a variant of describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsPublisher publisher = client.describeProductsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeProductsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeProducts(software.amazon.awssdk.services.securityhub.model.DescribeProductsRequest) operation.


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

        Parameters:
        describeProductsRequest - A Consumer that will call methods on DescribeProductsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProductsV2

        default CompletableFuture<DescribeProductsV2Response> describeProductsV2​(DescribeProductsV2Request describeProductsV2Request)

        Gets information about the product integration.

        Parameters:
        describeProductsV2Request -
        Returns:
        A Java Future containing the result of the DescribeProductsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProductsV2

        default CompletableFuture<DescribeProductsV2Response> describeProductsV2​(Consumer<DescribeProductsV2Request.Builder> describeProductsV2Request)

        Gets information about the product integration.


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

        Parameters:
        describeProductsV2Request - A Consumer that will call methods on DescribeProductsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeProductsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProductsV2Paginator

        default DescribeProductsV2Publisher describeProductsV2Paginator​(DescribeProductsV2Request describeProductsV2Request)

        This is a variant of describeProductsV2(software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsV2Publisher publisher = client.describeProductsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsV2Publisher publisher = client.describeProductsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeProductsV2(software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Request) operation.

        Parameters:
        describeProductsV2Request -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeProductsV2Paginator

        default DescribeProductsV2Publisher describeProductsV2Paginator​(Consumer<DescribeProductsV2Request.Builder> describeProductsV2Request)

        This is a variant of describeProductsV2(software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsV2Publisher publisher = client.describeProductsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeProductsV2Publisher publisher = client.describeProductsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeProductsV2(software.amazon.awssdk.services.securityhub.model.DescribeProductsV2Request) operation.


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

        Parameters:
        describeProductsV2Request - A Consumer that will call methods on DescribeProductsV2Request.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeSecurityHubV2

        default CompletableFuture<DescribeSecurityHubV2Response> describeSecurityHubV2​(DescribeSecurityHubV2Request describeSecurityHubV2Request)

        Returns details about the service resource in your account.

        Parameters:
        describeSecurityHubV2Request -
        Returns:
        A Java Future containing the result of the DescribeSecurityHubV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeSecurityHubV2

        default CompletableFuture<DescribeSecurityHubV2Response> describeSecurityHubV2​(Consumer<DescribeSecurityHubV2Request.Builder> describeSecurityHubV2Request)

        Returns details about the service resource in your account.


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

        Parameters:
        describeSecurityHubV2Request - A Consumer that will call methods on DescribeSecurityHubV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeSecurityHubV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandards

        default CompletableFuture<DescribeStandardsResponse> describeStandards​(DescribeStandardsRequest describeStandardsRequest)

        Returns a list of the available standards in Security Hub.

        For each standard, the results include the standard ARN, the name, and a description.

        Parameters:
        describeStandardsRequest -
        Returns:
        A Java Future containing the result of the DescribeStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandards

        default CompletableFuture<DescribeStandardsResponse> describeStandards​(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)

        Returns a list of the available standards in Security Hub.

        For each standard, the results include the standard ARN, the name, and a description.


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

        Parameters:
        describeStandardsRequest - A Consumer that will call methods on DescribeStandardsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandardsControls

        default CompletableFuture<DescribeStandardsControlsResponse> describeStandardsControls​(DescribeStandardsControlsRequest describeStandardsControlsRequest)

        Returns a list of security standards controls.

        For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.

        This operation returns an empty list for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.

        Parameters:
        describeStandardsControlsRequest -
        Returns:
        A Java Future containing the result of the DescribeStandardsControls operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandardsControls

        default CompletableFuture<DescribeStandardsControlsResponse> describeStandardsControls​(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)

        Returns a list of security standards controls.

        For each control, the results include information about whether it is currently enabled, the severity, and a link to remediation information.

        This operation returns an empty list for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.


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

        Parameters:
        describeStandardsControlsRequest - A Consumer that will call methods on DescribeStandardsControlsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DescribeStandardsControls operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandardsControlsPaginator

        default DescribeStandardsControlsPublisher describeStandardsControlsPaginator​(DescribeStandardsControlsRequest describeStandardsControlsRequest)

        This is a variant of describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest) operation.

        Parameters:
        describeStandardsControlsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandardsControlsPaginator

        default DescribeStandardsControlsPublisher describeStandardsControlsPaginator​(Consumer<DescribeStandardsControlsRequest.Builder> describeStandardsControlsRequest)

        This is a variant of describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsControlsPublisher publisher = client.describeStandardsControlsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeStandardsControls(software.amazon.awssdk.services.securityhub.model.DescribeStandardsControlsRequest) operation.


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

        Parameters:
        describeStandardsControlsRequest - A Consumer that will call methods on DescribeStandardsControlsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandardsPaginator

        default DescribeStandardsPublisher describeStandardsPaginator​(DescribeStandardsRequest describeStandardsRequest)

        This is a variant of describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest) operation.

        Parameters:
        describeStandardsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • describeStandardsPaginator

        default DescribeStandardsPublisher describeStandardsPaginator​(Consumer<DescribeStandardsRequest.Builder> describeStandardsRequest)

        This is a variant of describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.DescribeStandardsPublisher publisher = client.describeStandardsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.DescribeStandardsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the describeStandards(software.amazon.awssdk.services.securityhub.model.DescribeStandardsRequest) operation.


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

        Parameters:
        describeStandardsRequest - A Consumer that will call methods on DescribeStandardsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableImportFindingsForProduct

        default CompletableFuture<DisableImportFindingsForProductResponse> disableImportFindingsForProduct​(DisableImportFindingsForProductRequest disableImportFindingsForProductRequest)

        Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.

        Parameters:
        disableImportFindingsForProductRequest -
        Returns:
        A Java Future containing the result of the DisableImportFindingsForProduct operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableImportFindingsForProduct

        default CompletableFuture<DisableImportFindingsForProductResponse> disableImportFindingsForProduct​(Consumer<DisableImportFindingsForProductRequest.Builder> disableImportFindingsForProductRequest)

        Disables the integration of the specified product with Security Hub. After the integration is disabled, findings from that product are no longer sent to Security Hub.


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

        Parameters:
        disableImportFindingsForProductRequest - A Consumer that will call methods on DisableImportFindingsForProductRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisableImportFindingsForProduct operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableOrganizationAdminAccount

        default CompletableFuture<DisableOrganizationAdminAccountResponse> disableOrganizationAdminAccount​(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest)

        Disables a Security Hub administrator account. Can only be called by the organization management account.

        Parameters:
        disableOrganizationAdminAccountRequest -
        Returns:
        A Java Future containing the result of the DisableOrganizationAdminAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableOrganizationAdminAccount

        default CompletableFuture<DisableOrganizationAdminAccountResponse> disableOrganizationAdminAccount​(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest)

        Disables a Security Hub administrator account. Can only be called by the organization management account.


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

        Parameters:
        disableOrganizationAdminAccountRequest - A Consumer that will call methods on DisableOrganizationAdminAccountRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisableOrganizationAdminAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableSecurityHub

        default CompletableFuture<DisableSecurityHubResponse> disableSecurityHub​(DisableSecurityHubRequest disableSecurityHubRequest)

        Disables Security Hub in your account only in the current Amazon Web Services Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.

        You can't disable Security Hub in an account that is currently the Security Hub administrator.

        When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account associations are removed.

        If you want to save your existing findings, you must export them before you disable Security Hub.

        Parameters:
        disableSecurityHubRequest -
        Returns:
        A Java Future containing the result of the DisableSecurityHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableSecurityHub

        default CompletableFuture<DisableSecurityHubResponse> disableSecurityHub​(Consumer<DisableSecurityHubRequest.Builder> disableSecurityHubRequest)

        Disables Security Hub in your account only in the current Amazon Web Services Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.

        You can't disable Security Hub in an account that is currently the Security Hub administrator.

        When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account associations are removed.

        If you want to save your existing findings, you must export them before you disable Security Hub.


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

        Parameters:
        disableSecurityHubRequest - A Consumer that will call methods on DisableSecurityHubRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisableSecurityHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableSecurityHub

        default CompletableFuture<DisableSecurityHubResponse> disableSecurityHub()

        Disables Security Hub in your account only in the current Amazon Web Services Region. To disable Security Hub in all Regions, you must submit one request per Region where you have enabled Security Hub.

        You can't disable Security Hub in an account that is currently the Security Hub administrator.

        When you disable Security Hub, your existing findings and insights and any Security Hub configuration settings are deleted after 90 days and cannot be recovered. Any standards that were enabled are disabled, and your administrator and member account associations are removed.

        If you want to save your existing findings, you must export them before you disable Security Hub.

        Returns:
        A Java Future containing the result of the DisableSecurityHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableSecurityHubV2

        default CompletableFuture<DisableSecurityHubV2Response> disableSecurityHubV2​(DisableSecurityHubV2Request disableSecurityHubV2Request)

        Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region.

        Parameters:
        disableSecurityHubV2Request -
        Returns:
        A Java Future containing the result of the DisableSecurityHubV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disableSecurityHubV2

        default CompletableFuture<DisableSecurityHubV2Response> disableSecurityHubV2​(Consumer<DisableSecurityHubV2Request.Builder> disableSecurityHubV2Request)

        Disable the service for the current Amazon Web Services Region or specified Amazon Web Services Region.


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

        Parameters:
        disableSecurityHubV2Request - A Consumer that will call methods on DisableSecurityHubV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisableSecurityHubV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateFromAdministratorAccount

        default CompletableFuture<DisassociateFromAdministratorAccountResponse> disassociateFromAdministratorAccount​(DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest)

        Disassociates the current Security Hub member account from the associated administrator account.

        This operation is only used by accounts that are not part of an organization. For organization accounts, only the administrator account can disassociate a member account.

        Parameters:
        disassociateFromAdministratorAccountRequest -
        Returns:
        A Java Future containing the result of the DisassociateFromAdministratorAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateFromAdministratorAccount

        default CompletableFuture<DisassociateFromAdministratorAccountResponse> disassociateFromAdministratorAccount​(Consumer<DisassociateFromAdministratorAccountRequest.Builder> disassociateFromAdministratorAccountRequest)

        Disassociates the current Security Hub member account from the associated administrator account.

        This operation is only used by accounts that are not part of an organization. For organization accounts, only the administrator account can disassociate a member account.


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

        Parameters:
        disassociateFromAdministratorAccountRequest - A Consumer that will call methods on DisassociateFromAdministratorAccountRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisassociateFromAdministratorAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateFromMasterAccount

        @Deprecated
        default CompletableFuture<DisassociateFromMasterAccountResponse> disassociateFromMasterAccount​(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest)
        Deprecated.
        This API has been deprecated, use DisassociateFromAdministratorAccount API instead.

        This method is deprecated. Instead, use DisassociateFromAdministratorAccount.

        The Security Hub console continues to use DisassociateFromMasterAccount. It will eventually change to use DisassociateFromAdministratorAccount. Any IAM policies that specifically control access to this function must continue to use DisassociateFromMasterAccount. You should also add DisassociateFromAdministratorAccount to your policies to ensure that the correct permissions are in place after the console begins to use DisassociateFromAdministratorAccount.

        Disassociates the current Security Hub member account from the associated administrator account.

        This operation is only used by accounts that are not part of an organization. For organization accounts, only the administrator account can disassociate a member account.

        Parameters:
        disassociateFromMasterAccountRequest -
        Returns:
        A Java Future containing the result of the DisassociateFromMasterAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateFromMasterAccount

        @Deprecated
        default CompletableFuture<DisassociateFromMasterAccountResponse> disassociateFromMasterAccount​(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest)
        Deprecated.
        This API has been deprecated, use DisassociateFromAdministratorAccount API instead.

        This method is deprecated. Instead, use DisassociateFromAdministratorAccount.

        The Security Hub console continues to use DisassociateFromMasterAccount. It will eventually change to use DisassociateFromAdministratorAccount. Any IAM policies that specifically control access to this function must continue to use DisassociateFromMasterAccount. You should also add DisassociateFromAdministratorAccount to your policies to ensure that the correct permissions are in place after the console begins to use DisassociateFromAdministratorAccount.

        Disassociates the current Security Hub member account from the associated administrator account.

        This operation is only used by accounts that are not part of an organization. For organization accounts, only the administrator account can disassociate a member account.


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

        Parameters:
        disassociateFromMasterAccountRequest - A Consumer that will call methods on DisassociateFromMasterAccountRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisassociateFromMasterAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateMembers

        default CompletableFuture<DisassociateMembersResponse> disassociateMembers​(DisassociateMembersRequest disassociateMembersRequest)

        Disassociates the specified member accounts from the associated administrator account.

        Can be used to disassociate both accounts that are managed using Organizations and accounts that were invited manually.

        Parameters:
        disassociateMembersRequest -
        Returns:
        A Java Future containing the result of the DisassociateMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • disassociateMembers

        default CompletableFuture<DisassociateMembersResponse> disassociateMembers​(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest)

        Disassociates the specified member accounts from the associated administrator account.

        Can be used to disassociate both accounts that are managed using Organizations and accounts that were invited manually.


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

        Parameters:
        disassociateMembersRequest - A Consumer that will call methods on DisassociateMembersRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the DisassociateMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableImportFindingsForProduct

        default CompletableFuture<EnableImportFindingsForProductResponse> enableImportFindingsForProduct​(EnableImportFindingsForProductRequest enableImportFindingsForProductRequest)

        Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.

        When you enable a product integration, a permissions policy that grants permission for the product to send findings to Security Hub is applied.

        Parameters:
        enableImportFindingsForProductRequest -
        Returns:
        A Java Future containing the result of the EnableImportFindingsForProduct operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableImportFindingsForProduct

        default CompletableFuture<EnableImportFindingsForProductResponse> enableImportFindingsForProduct​(Consumer<EnableImportFindingsForProductRequest.Builder> enableImportFindingsForProductRequest)

        Enables the integration of a partner product with Security Hub. Integrated products send findings to Security Hub.

        When you enable a product integration, a permissions policy that grants permission for the product to send findings to Security Hub is applied.


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

        Parameters:
        enableImportFindingsForProductRequest - A Consumer that will call methods on EnableImportFindingsForProductRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the EnableImportFindingsForProduct operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableOrganizationAdminAccount

        default CompletableFuture<EnableOrganizationAdminAccountResponse> enableOrganizationAdminAccount​(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest)

        Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.

        Parameters:
        enableOrganizationAdminAccountRequest -
        Returns:
        A Java Future containing the result of the EnableOrganizationAdminAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableOrganizationAdminAccount

        default CompletableFuture<EnableOrganizationAdminAccountResponse> enableOrganizationAdminAccount​(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest)

        Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.


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

        Parameters:
        enableOrganizationAdminAccountRequest - A Consumer that will call methods on EnableOrganizationAdminAccountRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the EnableOrganizationAdminAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableSecurityHub

        default CompletableFuture<EnableSecurityHubResponse> enableSecurityHub​(EnableSecurityHubRequest enableSecurityHubRequest)

        Enables Security Hub for your account in the current Region or the Region you specify in the request.

        When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.

        When you use the EnableSecurityHub operation to enable Security Hub, you also automatically enable the following standards:

        • Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0

        • Amazon Web Services Foundational Security Best Practices

        Other standards are not automatically enabled.

        To opt out of automatically enabled standards, set EnableDefaultStandards to false.

        After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To disable a standard, use the BatchDisableStandards operation.

        To learn more, see the setup information in the Security Hub User Guide.

        Parameters:
        enableSecurityHubRequest -
        Returns:
        A Java Future containing the result of the EnableSecurityHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableSecurityHub

        default CompletableFuture<EnableSecurityHubResponse> enableSecurityHub​(Consumer<EnableSecurityHubRequest.Builder> enableSecurityHubRequest)

        Enables Security Hub for your account in the current Region or the Region you specify in the request.

        When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.

        When you use the EnableSecurityHub operation to enable Security Hub, you also automatically enable the following standards:

        • Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0

        • Amazon Web Services Foundational Security Best Practices

        Other standards are not automatically enabled.

        To opt out of automatically enabled standards, set EnableDefaultStandards to false.

        After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To disable a standard, use the BatchDisableStandards operation.

        To learn more, see the setup information in the Security Hub User Guide.


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

        Parameters:
        enableSecurityHubRequest - A Consumer that will call methods on EnableSecurityHubRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the EnableSecurityHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableSecurityHub

        default CompletableFuture<EnableSecurityHubResponse> enableSecurityHub()

        Enables Security Hub for your account in the current Region or the Region you specify in the request.

        When you enable Security Hub, you grant to Security Hub the permissions necessary to gather findings from other services that are integrated with Security Hub.

        When you use the EnableSecurityHub operation to enable Security Hub, you also automatically enable the following standards:

        • Center for Internet Security (CIS) Amazon Web Services Foundations Benchmark v1.2.0

        • Amazon Web Services Foundational Security Best Practices

        Other standards are not automatically enabled.

        To opt out of automatically enabled standards, set EnableDefaultStandards to false.

        After you enable Security Hub, to enable a standard, use the BatchEnableStandards operation. To disable a standard, use the BatchDisableStandards operation.

        To learn more, see the setup information in the Security Hub User Guide.

        Returns:
        A Java Future containing the result of the EnableSecurityHub operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableSecurityHubV2

        default CompletableFuture<EnableSecurityHubV2Response> enableSecurityHubV2​(EnableSecurityHubV2Request enableSecurityHubV2Request)

        Enables the service in account for the current Amazon Web Services Region or specified Amazon Web Services Region.

        Parameters:
        enableSecurityHubV2Request -
        Returns:
        A Java Future containing the result of the EnableSecurityHubV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • enableSecurityHubV2

        default CompletableFuture<EnableSecurityHubV2Response> enableSecurityHubV2​(Consumer<EnableSecurityHubV2Request.Builder> enableSecurityHubV2Request)

        Enables the service in account for the current Amazon Web Services Region or specified Amazon Web Services Region.


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

        Parameters:
        enableSecurityHubV2Request - A Consumer that will call methods on EnableSecurityHubV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the EnableSecurityHubV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAdministratorAccount

        default CompletableFuture<GetAdministratorAccountResponse> getAdministratorAccount​(GetAdministratorAccountRequest getAdministratorAccountRequest)

        Provides the details for the Security Hub administrator account for the current member account.

        Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.

        Parameters:
        getAdministratorAccountRequest -
        Returns:
        A Java Future containing the result of the GetAdministratorAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAdministratorAccount

        default CompletableFuture<GetAdministratorAccountResponse> getAdministratorAccount​(Consumer<GetAdministratorAccountRequest.Builder> getAdministratorAccountRequest)

        Provides the details for the Security Hub administrator account for the current member account.

        Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.


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

        Parameters:
        getAdministratorAccountRequest - A Consumer that will call methods on GetAdministratorAccountRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetAdministratorAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAggregatorV2

        default CompletableFuture<GetAggregatorV2Response> getAggregatorV2​(GetAggregatorV2Request getAggregatorV2Request)

        Returns the configuration of the specified Aggregator V2.

        Parameters:
        getAggregatorV2Request -
        Returns:
        A Java Future containing the result of the GetAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAggregatorV2

        default CompletableFuture<GetAggregatorV2Response> getAggregatorV2​(Consumer<GetAggregatorV2Request.Builder> getAggregatorV2Request)

        Returns the configuration of the specified Aggregator V2.


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

        Parameters:
        getAggregatorV2Request - A Consumer that will call methods on GetAggregatorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAutomationRuleV2

        default CompletableFuture<GetAutomationRuleV2Response> getAutomationRuleV2​(GetAutomationRuleV2Request getAutomationRuleV2Request)

        Returns an automation rule for the V2 service.

        Parameters:
        getAutomationRuleV2Request -
        Returns:
        A Java Future containing the result of the GetAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getAutomationRuleV2

        default CompletableFuture<GetAutomationRuleV2Response> getAutomationRuleV2​(Consumer<GetAutomationRuleV2Request.Builder> getAutomationRuleV2Request)

        Returns an automation rule for the V2 service.


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

        Parameters:
        getAutomationRuleV2Request - A Consumer that will call methods on GetAutomationRuleV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getConfigurationPolicy

        default CompletableFuture<GetConfigurationPolicyResponse> getConfigurationPolicy​(GetConfigurationPolicyRequest getConfigurationPolicyRequest)

        Provides information about a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region.

        Parameters:
        getConfigurationPolicyRequest -
        Returns:
        A Java Future containing the result of the GetConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getConfigurationPolicy

        default CompletableFuture<GetConfigurationPolicyResponse> getConfigurationPolicy​(Consumer<GetConfigurationPolicyRequest.Builder> getConfigurationPolicyRequest)

        Provides information about a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        getConfigurationPolicyRequest - A Consumer that will call methods on GetConfigurationPolicyRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getConfigurationPolicyAssociation

        default CompletableFuture<GetConfigurationPolicyAssociationResponse> getConfigurationPolicyAssociation​(GetConfigurationPolicyAssociationRequest getConfigurationPolicyAssociationRequest)

        Returns the association between a configuration and a target account, organizational unit, or the root. The configuration can be a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.

        Parameters:
        getConfigurationPolicyAssociationRequest -
        Returns:
        A Java Future containing the result of the GetConfigurationPolicyAssociation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getConfigurationPolicyAssociation

        default CompletableFuture<GetConfigurationPolicyAssociationResponse> getConfigurationPolicyAssociation​(Consumer<GetConfigurationPolicyAssociationRequest.Builder> getConfigurationPolicyAssociationRequest)

        Returns the association between a configuration and a target account, organizational unit, or the root. The configuration can be a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        getConfigurationPolicyAssociationRequest - A Consumer that will call methods on GetConfigurationPolicyAssociationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetConfigurationPolicyAssociation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getConnectorV2

        default CompletableFuture<GetConnectorV2Response> getConnectorV2​(GetConnectorV2Request getConnectorV2Request)

        Grants permission to retrieve details for a connectorV2 based on connector id.

        Parameters:
        getConnectorV2Request -
        Returns:
        A Java Future containing the result of the GetConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getConnectorV2

        default CompletableFuture<GetConnectorV2Response> getConnectorV2​(Consumer<GetConnectorV2Request.Builder> getConnectorV2Request)

        Grants permission to retrieve details for a connectorV2 based on connector id.


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

        Parameters:
        getConnectorV2Request - A Consumer that will call methods on GetConnectorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getEnabledStandards

        default CompletableFuture<GetEnabledStandardsResponse> getEnabledStandards​(GetEnabledStandardsRequest getEnabledStandardsRequest)

        Returns a list of the standards that are currently enabled.

        Parameters:
        getEnabledStandardsRequest -
        Returns:
        A Java Future containing the result of the GetEnabledStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getEnabledStandards

        default CompletableFuture<GetEnabledStandardsResponse> getEnabledStandards​(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)

        Returns a list of the standards that are currently enabled.


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

        Parameters:
        getEnabledStandardsRequest - A Consumer that will call methods on GetEnabledStandardsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetEnabledStandards operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getEnabledStandardsPaginator

        default GetEnabledStandardsPublisher getEnabledStandardsPaginator​(GetEnabledStandardsRequest getEnabledStandardsRequest)

        This is a variant of getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest) operation.

        Parameters:
        getEnabledStandardsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getEnabledStandardsPaginator

        default GetEnabledStandardsPublisher getEnabledStandardsPaginator​(Consumer<GetEnabledStandardsRequest.Builder> getEnabledStandardsRequest)

        This is a variant of getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetEnabledStandardsPublisher publisher = client.getEnabledStandardsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getEnabledStandards(software.amazon.awssdk.services.securityhub.model.GetEnabledStandardsRequest) operation.


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

        Parameters:
        getEnabledStandardsRequest - A Consumer that will call methods on GetEnabledStandardsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingAggregator

        default CompletableFuture<GetFindingAggregatorResponse> getFindingAggregator​(GetFindingAggregatorRequest getFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Returns the current configuration in the calling account for cross-Region aggregation. A finding aggregator is a resource that establishes the home Region and any linked Regions.

        Parameters:
        getFindingAggregatorRequest -
        Returns:
        A Java Future containing the result of the GetFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingAggregator

        default CompletableFuture<GetFindingAggregatorResponse> getFindingAggregator​(Consumer<GetFindingAggregatorRequest.Builder> getFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Returns the current configuration in the calling account for cross-Region aggregation. A finding aggregator is a resource that establishes the home Region and any linked Regions.


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

        Parameters:
        getFindingAggregatorRequest - A Consumer that will call methods on GetFindingAggregatorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingHistory

        default CompletableFuture<GetFindingHistoryResponse> getFindingHistory​(GetFindingHistoryRequest getFindingHistoryRequest)

        Returns the history of a Security Hub finding. The history includes changes made to any fields in the Amazon Web Services Security Finding Format (ASFF) except top-level timestamp fields, such as the CreatedAt and UpdatedAt fields.

        This operation might return fewer results than the maximum number of results (MaxResults) specified in a request, even when more results are available. If this occurs, the response includes a NextToken value, which you should use to retrieve the next set of results in the response. The presence of a NextToken value in a response doesn't necessarily indicate that the results are incomplete. However, you should continue to specify a NextToken value until you receive a response that doesn't include this value.

        Parameters:
        getFindingHistoryRequest -
        Returns:
        A Java Future containing the result of the GetFindingHistory operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingHistory

        default CompletableFuture<GetFindingHistoryResponse> getFindingHistory​(Consumer<GetFindingHistoryRequest.Builder> getFindingHistoryRequest)

        Returns the history of a Security Hub finding. The history includes changes made to any fields in the Amazon Web Services Security Finding Format (ASFF) except top-level timestamp fields, such as the CreatedAt and UpdatedAt fields.

        This operation might return fewer results than the maximum number of results (MaxResults) specified in a request, even when more results are available. If this occurs, the response includes a NextToken value, which you should use to retrieve the next set of results in the response. The presence of a NextToken value in a response doesn't necessarily indicate that the results are incomplete. However, you should continue to specify a NextToken value until you receive a response that doesn't include this value.


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

        Parameters:
        getFindingHistoryRequest - A Consumer that will call methods on GetFindingHistoryRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetFindingHistory operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingHistoryPaginator

        default GetFindingHistoryPublisher getFindingHistoryPaginator​(GetFindingHistoryRequest getFindingHistoryRequest)

        This is a variant of getFindingHistory(software.amazon.awssdk.services.securityhub.model.GetFindingHistoryRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingHistoryPublisher publisher = client.getFindingHistoryPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingHistoryPublisher publisher = client.getFindingHistoryPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingHistoryResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingHistoryResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindingHistory(software.amazon.awssdk.services.securityhub.model.GetFindingHistoryRequest) operation.

        Parameters:
        getFindingHistoryRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingHistoryPaginator

        default GetFindingHistoryPublisher getFindingHistoryPaginator​(Consumer<GetFindingHistoryRequest.Builder> getFindingHistoryRequest)

        This is a variant of getFindingHistory(software.amazon.awssdk.services.securityhub.model.GetFindingHistoryRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingHistoryPublisher publisher = client.getFindingHistoryPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingHistoryPublisher publisher = client.getFindingHistoryPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingHistoryResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingHistoryResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindingHistory(software.amazon.awssdk.services.securityhub.model.GetFindingHistoryRequest) operation.


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

        Parameters:
        getFindingHistoryRequest - A Consumer that will call methods on GetFindingHistoryRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingStatisticsV2

        default CompletableFuture<GetFindingStatisticsV2Response> getFindingStatisticsV2​(GetFindingStatisticsV2Request getFindingStatisticsV2Request)

        Returns aggregated statistical data about findings. GetFindingStatisticsV2 use securityhub:GetAdhocInsightResults in the Action element of an IAM policy statement. You must have permission to perform the s action.

        Parameters:
        getFindingStatisticsV2Request -
        Returns:
        A Java Future containing the result of the GetFindingStatisticsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingStatisticsV2

        default CompletableFuture<GetFindingStatisticsV2Response> getFindingStatisticsV2​(Consumer<GetFindingStatisticsV2Request.Builder> getFindingStatisticsV2Request)

        Returns aggregated statistical data about findings. GetFindingStatisticsV2 use securityhub:GetAdhocInsightResults in the Action element of an IAM policy statement. You must have permission to perform the s action.


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

        Parameters:
        getFindingStatisticsV2Request - A Consumer that will call methods on GetFindingStatisticsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetFindingStatisticsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindings

        default CompletableFuture<GetFindingsResponse> getFindings​(GetFindingsRequest getFindingsRequest)

        Returns a list of findings that match the specified criteria.

        If cross-Region aggregation is enabled, then when you call GetFindings from the home Region, the results include all of the matching findings from both the home Region and linked Regions.

        Parameters:
        getFindingsRequest -
        Returns:
        A Java Future containing the result of the GetFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindings

        default CompletableFuture<GetFindingsResponse> getFindings​(Consumer<GetFindingsRequest.Builder> getFindingsRequest)

        Returns a list of findings that match the specified criteria.

        If cross-Region aggregation is enabled, then when you call GetFindings from the home Region, the results include all of the matching findings from both the home Region and linked Regions.


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

        Parameters:
        getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindings

        default CompletableFuture<GetFindingsResponse> getFindings()

        Returns a list of findings that match the specified criteria.

        If cross-Region aggregation is enabled, then when you call GetFindings from the home Region, the results include all of the matching findings from both the home Region and linked Regions.

        Returns:
        A Java Future containing the result of the GetFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsPaginator

        default GetFindingsPublisher getFindingsPaginator()

        This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation.

        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsPaginator

        default GetFindingsPublisher getFindingsPaginator​(GetFindingsRequest getFindingsRequest)

        This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation.

        Parameters:
        getFindingsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsPaginator

        default GetFindingsPublisher getFindingsPaginator​(Consumer<GetFindingsRequest.Builder> getFindingsRequest)

        This is a variant of getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsPublisher publisher = client.getFindingsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindings(software.amazon.awssdk.services.securityhub.model.GetFindingsRequest) operation.


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

        Parameters:
        getFindingsRequest - A Consumer that will call methods on GetFindingsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsTrendsV2

        default CompletableFuture<GetFindingsTrendsV2Response> getFindingsTrendsV2​(GetFindingsTrendsV2Request getFindingsTrendsV2Request)

        Returns findings trend data based on the specified criteria. This operation helps you analyze patterns and changes in findings over time.

        Parameters:
        getFindingsTrendsV2Request -
        Returns:
        A Java Future containing the result of the GetFindingsTrendsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsTrendsV2

        default CompletableFuture<GetFindingsTrendsV2Response> getFindingsTrendsV2​(Consumer<GetFindingsTrendsV2Request.Builder> getFindingsTrendsV2Request)

        Returns findings trend data based on the specified criteria. This operation helps you analyze patterns and changes in findings over time.


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

        Parameters:
        getFindingsTrendsV2Request - A Consumer that will call methods on GetFindingsTrendsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetFindingsTrendsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsTrendsV2Paginator

        default GetFindingsTrendsV2Publisher getFindingsTrendsV2Paginator​(GetFindingsTrendsV2Request getFindingsTrendsV2Request)

        This is a variant of getFindingsTrendsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsTrendsV2Publisher publisher = client.getFindingsTrendsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsTrendsV2Publisher publisher = client.getFindingsTrendsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindingsTrendsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Request) operation.

        Parameters:
        getFindingsTrendsV2Request -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsTrendsV2Paginator

        default GetFindingsTrendsV2Publisher getFindingsTrendsV2Paginator​(Consumer<GetFindingsTrendsV2Request.Builder> getFindingsTrendsV2Request)

        This is a variant of getFindingsTrendsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsTrendsV2Publisher publisher = client.getFindingsTrendsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsTrendsV2Publisher publisher = client.getFindingsTrendsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindingsTrendsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsTrendsV2Request) operation.


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

        Parameters:
        getFindingsTrendsV2Request - A Consumer that will call methods on GetFindingsTrendsV2Request.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsV2

        default CompletableFuture<GetFindingsV2Response> getFindingsV2​(GetFindingsV2Request getFindingsV2Request)

        Return a list of findings that match the specified criteria. GetFindings and GetFindingsV2 both use securityhub:GetFindings in the Action element of an IAM policy statement. You must have permission to perform the securityhub:GetFindings action.

        Parameters:
        getFindingsV2Request -
        Returns:
        A Java Future containing the result of the GetFindingsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsV2

        default CompletableFuture<GetFindingsV2Response> getFindingsV2​(Consumer<GetFindingsV2Request.Builder> getFindingsV2Request)

        Return a list of findings that match the specified criteria. GetFindings and GetFindingsV2 both use securityhub:GetFindings in the Action element of an IAM policy statement. You must have permission to perform the securityhub:GetFindings action.


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

        Parameters:
        getFindingsV2Request - A Consumer that will call methods on GetFindingsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetFindingsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsV2Paginator

        default GetFindingsV2Publisher getFindingsV2Paginator​(GetFindingsV2Request getFindingsV2Request)

        This is a variant of getFindingsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsV2Publisher publisher = client.getFindingsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsV2Publisher publisher = client.getFindingsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindingsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsV2Request) operation.

        Parameters:
        getFindingsV2Request -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getFindingsV2Paginator

        default GetFindingsV2Publisher getFindingsV2Paginator​(Consumer<GetFindingsV2Request.Builder> getFindingsV2Request)

        This is a variant of getFindingsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsV2Publisher publisher = client.getFindingsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetFindingsV2Publisher publisher = client.getFindingsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetFindingsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetFindingsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getFindingsV2(software.amazon.awssdk.services.securityhub.model.GetFindingsV2Request) operation.


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

        Parameters:
        getFindingsV2Request - A Consumer that will call methods on GetFindingsV2Request.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInsightResults

        default CompletableFuture<GetInsightResultsResponse> getInsightResults​(GetInsightResultsRequest getInsightResultsRequest)

        Lists the results of the Security Hub insight specified by the insight ARN.

        Parameters:
        getInsightResultsRequest -
        Returns:
        A Java Future containing the result of the GetInsightResults operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInsightResults

        default CompletableFuture<GetInsightResultsResponse> getInsightResults​(Consumer<GetInsightResultsRequest.Builder> getInsightResultsRequest)

        Lists the results of the Security Hub insight specified by the insight ARN.


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

        Parameters:
        getInsightResultsRequest - A Consumer that will call methods on GetInsightResultsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetInsightResults operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInsights

        default CompletableFuture<GetInsightsResponse> getInsights​(GetInsightsRequest getInsightsRequest)

        Lists and describes insights for the specified insight ARNs.

        Parameters:
        getInsightsRequest -
        Returns:
        A Java Future containing the result of the GetInsights operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInsights

        default CompletableFuture<GetInsightsResponse> getInsights​(Consumer<GetInsightsRequest.Builder> getInsightsRequest)

        Lists and describes insights for the specified insight ARNs.


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

        Parameters:
        getInsightsRequest - A Consumer that will call methods on GetInsightsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetInsights operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInsightsPaginator

        default GetInsightsPublisher getInsightsPaginator​(GetInsightsRequest getInsightsRequest)

        This is a variant of getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetInsightsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetInsightsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest) operation.

        Parameters:
        getInsightsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInsightsPaginator

        default GetInsightsPublisher getInsightsPaginator​(Consumer<GetInsightsRequest.Builder> getInsightsRequest)

        This is a variant of getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetInsightsPublisher publisher = client.getInsightsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetInsightsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetInsightsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getInsights(software.amazon.awssdk.services.securityhub.model.GetInsightsRequest) operation.


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

        Parameters:
        getInsightsRequest - A Consumer that will call methods on GetInsightsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInvitationsCount

        default CompletableFuture<GetInvitationsCountResponse> getInvitationsCount​(GetInvitationsCountRequest getInvitationsCountRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Returns the count of all Security Hub membership invitations that were sent to the calling member account, not including the currently accepted invitation.

        Parameters:
        getInvitationsCountRequest -
        Returns:
        A Java Future containing the result of the GetInvitationsCount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInvitationsCount

        default CompletableFuture<GetInvitationsCountResponse> getInvitationsCount​(Consumer<GetInvitationsCountRequest.Builder> getInvitationsCountRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Returns the count of all Security Hub membership invitations that were sent to the calling member account, not including the currently accepted invitation.


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

        Parameters:
        getInvitationsCountRequest - A Consumer that will call methods on GetInvitationsCountRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetInvitationsCount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getInvitationsCount

        default CompletableFuture<GetInvitationsCountResponse> getInvitationsCount()

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Returns the count of all Security Hub membership invitations that were sent to the calling member account, not including the currently accepted invitation.

        Returns:
        A Java Future containing the result of the GetInvitationsCount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getMasterAccount

        @Deprecated
        default CompletableFuture<GetMasterAccountResponse> getMasterAccount​(GetMasterAccountRequest getMasterAccountRequest)
        Deprecated.
        This API has been deprecated, use GetAdministratorAccount API instead.

        This method is deprecated. Instead, use GetAdministratorAccount.

        The Security Hub console continues to use GetMasterAccount. It will eventually change to use GetAdministratorAccount. Any IAM policies that specifically control access to this function must continue to use GetMasterAccount. You should also add GetAdministratorAccount to your policies to ensure that the correct permissions are in place after the console begins to use GetAdministratorAccount.

        Provides the details for the Security Hub administrator account for the current member account.

        Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.

        Parameters:
        getMasterAccountRequest -
        Returns:
        A Java Future containing the result of the GetMasterAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getMasterAccount

        @Deprecated
        default CompletableFuture<GetMasterAccountResponse> getMasterAccount​(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest)
        Deprecated.
        This API has been deprecated, use GetAdministratorAccount API instead.

        This method is deprecated. Instead, use GetAdministratorAccount.

        The Security Hub console continues to use GetMasterAccount. It will eventually change to use GetAdministratorAccount. Any IAM policies that specifically control access to this function must continue to use GetMasterAccount. You should also add GetAdministratorAccount to your policies to ensure that the correct permissions are in place after the console begins to use GetAdministratorAccount.

        Provides the details for the Security Hub administrator account for the current member account.

        Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.


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

        Parameters:
        getMasterAccountRequest - A Consumer that will call methods on GetMasterAccountRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetMasterAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getMasterAccount

        @Deprecated
        default CompletableFuture<GetMasterAccountResponse> getMasterAccount()
        Deprecated.
        This API has been deprecated, use GetAdministratorAccount API instead.

        This method is deprecated. Instead, use GetAdministratorAccount.

        The Security Hub console continues to use GetMasterAccount. It will eventually change to use GetAdministratorAccount. Any IAM policies that specifically control access to this function must continue to use GetMasterAccount. You should also add GetAdministratorAccount to your policies to ensure that the correct permissions are in place after the console begins to use GetAdministratorAccount.

        Provides the details for the Security Hub administrator account for the current member account.

        Can be used by both member accounts that are managed using Organizations and accounts that were invited manually.

        Returns:
        A Java Future containing the result of the GetMasterAccount operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getMembers

        default CompletableFuture<GetMembersResponse> getMembers​(GetMembersRequest getMembersRequest)

        Returns the details for the Security Hub member accounts for the specified account IDs.

        An administrator account can be either the delegated Security Hub administrator account for an organization or an administrator account that enabled Security Hub manually.

        The results include both member accounts that are managed using Organizations and accounts that were invited manually.

        Parameters:
        getMembersRequest -
        Returns:
        A Java Future containing the result of the GetMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getMembers

        default CompletableFuture<GetMembersResponse> getMembers​(Consumer<GetMembersRequest.Builder> getMembersRequest)

        Returns the details for the Security Hub member accounts for the specified account IDs.

        An administrator account can be either the delegated Security Hub administrator account for an organization or an administrator account that enabled Security Hub manually.

        The results include both member accounts that are managed using Organizations and accounts that were invited manually.


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

        Parameters:
        getMembersRequest - A Consumer that will call methods on GetMembersRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesStatisticsV2

        default CompletableFuture<GetResourcesStatisticsV2Response> getResourcesStatisticsV2​(GetResourcesStatisticsV2Request getResourcesStatisticsV2Request)

        Retrieves statistical information about Amazon Web Services resources and their associated security findings.

        Parameters:
        getResourcesStatisticsV2Request -
        Returns:
        A Java Future containing the result of the GetResourcesStatisticsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesStatisticsV2

        default CompletableFuture<GetResourcesStatisticsV2Response> getResourcesStatisticsV2​(Consumer<GetResourcesStatisticsV2Request.Builder> getResourcesStatisticsV2Request)

        Retrieves statistical information about Amazon Web Services resources and their associated security findings.


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

        Parameters:
        getResourcesStatisticsV2Request - A Consumer that will call methods on GetResourcesStatisticsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetResourcesStatisticsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesTrendsV2

        default CompletableFuture<GetResourcesTrendsV2Response> getResourcesTrendsV2​(GetResourcesTrendsV2Request getResourcesTrendsV2Request)

        Returns resource trend data based on the specified criteria. This operation helps you analyze patterns and changes in resource compliance over time.

        Parameters:
        getResourcesTrendsV2Request -
        Returns:
        A Java Future containing the result of the GetResourcesTrendsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesTrendsV2

        default CompletableFuture<GetResourcesTrendsV2Response> getResourcesTrendsV2​(Consumer<GetResourcesTrendsV2Request.Builder> getResourcesTrendsV2Request)

        Returns resource trend data based on the specified criteria. This operation helps you analyze patterns and changes in resource compliance over time.


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

        Parameters:
        getResourcesTrendsV2Request - A Consumer that will call methods on GetResourcesTrendsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetResourcesTrendsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesTrendsV2Paginator

        default GetResourcesTrendsV2Publisher getResourcesTrendsV2Paginator​(GetResourcesTrendsV2Request getResourcesTrendsV2Request)

        This is a variant of getResourcesTrendsV2(software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesTrendsV2Publisher publisher = client.getResourcesTrendsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesTrendsV2Publisher publisher = client.getResourcesTrendsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getResourcesTrendsV2(software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Request) operation.

        Parameters:
        getResourcesTrendsV2Request -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesTrendsV2Paginator

        default GetResourcesTrendsV2Publisher getResourcesTrendsV2Paginator​(Consumer<GetResourcesTrendsV2Request.Builder> getResourcesTrendsV2Request)

        This is a variant of getResourcesTrendsV2(software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesTrendsV2Publisher publisher = client.getResourcesTrendsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesTrendsV2Publisher publisher = client.getResourcesTrendsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getResourcesTrendsV2(software.amazon.awssdk.services.securityhub.model.GetResourcesTrendsV2Request) operation.


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

        Parameters:
        getResourcesTrendsV2Request - A Consumer that will call methods on GetResourcesTrendsV2Request.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesV2

        default CompletableFuture<GetResourcesV2Response> getResourcesV2​(GetResourcesV2Request getResourcesV2Request)

        Returns a list of resources.

        Parameters:
        getResourcesV2Request -
        Returns:
        A Java Future containing the result of the GetResourcesV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesV2

        default CompletableFuture<GetResourcesV2Response> getResourcesV2​(Consumer<GetResourcesV2Request.Builder> getResourcesV2Request)

        Returns a list of resources.


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

        Parameters:
        getResourcesV2Request - A Consumer that will call methods on GetResourcesV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetResourcesV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesV2Paginator

        default GetResourcesV2Publisher getResourcesV2Paginator​(GetResourcesV2Request getResourcesV2Request)

        This is a variant of getResourcesV2(software.amazon.awssdk.services.securityhub.model.GetResourcesV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesV2Publisher publisher = client.getResourcesV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesV2Publisher publisher = client.getResourcesV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetResourcesV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetResourcesV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getResourcesV2(software.amazon.awssdk.services.securityhub.model.GetResourcesV2Request) operation.

        Parameters:
        getResourcesV2Request -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getResourcesV2Paginator

        default GetResourcesV2Publisher getResourcesV2Paginator​(Consumer<GetResourcesV2Request.Builder> getResourcesV2Request)

        This is a variant of getResourcesV2(software.amazon.awssdk.services.securityhub.model.GetResourcesV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesV2Publisher publisher = client.getResourcesV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.GetResourcesV2Publisher publisher = client.getResourcesV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.GetResourcesV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.GetResourcesV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the getResourcesV2(software.amazon.awssdk.services.securityhub.model.GetResourcesV2Request) operation.


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

        Parameters:
        getResourcesV2Request - A Consumer that will call methods on GetResourcesV2Request.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getSecurityControlDefinition

        default CompletableFuture<GetSecurityControlDefinitionResponse> getSecurityControlDefinition​(GetSecurityControlDefinitionRequest getSecurityControlDefinitionRequest)

        Retrieves the definition of a security control. The definition includes the control title, description, Region availability, parameter definitions, and other details.

        Parameters:
        getSecurityControlDefinitionRequest -
        Returns:
        A Java Future containing the result of the GetSecurityControlDefinition operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • getSecurityControlDefinition

        default CompletableFuture<GetSecurityControlDefinitionResponse> getSecurityControlDefinition​(Consumer<GetSecurityControlDefinitionRequest.Builder> getSecurityControlDefinitionRequest)

        Retrieves the definition of a security control. The definition includes the control title, description, Region availability, parameter definitions, and other details.


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

        Parameters:
        getSecurityControlDefinitionRequest - A Consumer that will call methods on GetSecurityControlDefinitionRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the GetSecurityControlDefinition operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • inviteMembers

        default CompletableFuture<InviteMembersResponse> inviteMembers​(InviteMembersRequest inviteMembersRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that the invitation is sent from.

        This operation is only used to invite accounts that don't belong to an Amazon Web Services organization. Organization accounts don't receive invitations.

        Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

        When the account owner enables Security Hub and accepts the invitation to become a member account, the administrator account can view the findings generated in the member account.

        Parameters:
        inviteMembersRequest -
        Returns:
        A Java Future containing the result of the InviteMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • inviteMembers

        default CompletableFuture<InviteMembersResponse> inviteMembers​(Consumer<InviteMembersRequest.Builder> inviteMembersRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Invites other Amazon Web Services accounts to become member accounts for the Security Hub administrator account that the invitation is sent from.

        This operation is only used to invite accounts that don't belong to an Amazon Web Services organization. Organization accounts don't receive invitations.

        Before you can use this action to invite a member, you must first use the CreateMembers action to create the member account in Security Hub.

        When the account owner enables Security Hub and accepts the invitation to become a member account, the administrator account can view the findings generated in the member account.


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

        Parameters:
        inviteMembersRequest - A Consumer that will call methods on InviteMembersRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the InviteMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAggregatorsV2

        default CompletableFuture<ListAggregatorsV2Response> listAggregatorsV2​(ListAggregatorsV2Request listAggregatorsV2Request)

        Retrieves a list of V2 aggregators.

        Parameters:
        listAggregatorsV2Request -
        Returns:
        A Java Future containing the result of the ListAggregatorsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAggregatorsV2

        default CompletableFuture<ListAggregatorsV2Response> listAggregatorsV2​(Consumer<ListAggregatorsV2Request.Builder> listAggregatorsV2Request)

        Retrieves a list of V2 aggregators.


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

        Parameters:
        listAggregatorsV2Request - A Consumer that will call methods on ListAggregatorsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListAggregatorsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAggregatorsV2Paginator

        default ListAggregatorsV2Publisher listAggregatorsV2Paginator​(ListAggregatorsV2Request listAggregatorsV2Request)

        This is a variant of listAggregatorsV2(software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListAggregatorsV2Publisher publisher = client.listAggregatorsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListAggregatorsV2Publisher publisher = client.listAggregatorsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAggregatorsV2(software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Request) operation.

        Parameters:
        listAggregatorsV2Request -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAggregatorsV2Paginator

        default ListAggregatorsV2Publisher listAggregatorsV2Paginator​(Consumer<ListAggregatorsV2Request.Builder> listAggregatorsV2Request)

        This is a variant of listAggregatorsV2(software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Request) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListAggregatorsV2Publisher publisher = client.listAggregatorsV2Paginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListAggregatorsV2Publisher publisher = client.listAggregatorsV2Paginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Response>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Response response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listAggregatorsV2(software.amazon.awssdk.services.securityhub.model.ListAggregatorsV2Request) operation.


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

        Parameters:
        listAggregatorsV2Request - A Consumer that will call methods on ListAggregatorsV2Request.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAutomationRules

        default CompletableFuture<ListAutomationRulesResponse> listAutomationRules​(ListAutomationRulesRequest listAutomationRulesRequest)

        A list of automation rules and their metadata for the calling account.

        Parameters:
        listAutomationRulesRequest -
        Returns:
        A Java Future containing the result of the ListAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAutomationRules

        default CompletableFuture<ListAutomationRulesResponse> listAutomationRules​(Consumer<ListAutomationRulesRequest.Builder> listAutomationRulesRequest)

        A list of automation rules and their metadata for the calling account.


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

        Parameters:
        listAutomationRulesRequest - A Consumer that will call methods on ListAutomationRulesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListAutomationRules operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAutomationRulesV2

        default CompletableFuture<ListAutomationRulesV2Response> listAutomationRulesV2​(ListAutomationRulesV2Request listAutomationRulesV2Request)

        Returns a list of automation rules and metadata for the calling account.

        Parameters:
        listAutomationRulesV2Request -
        Returns:
        A Java Future containing the result of the ListAutomationRulesV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listAutomationRulesV2

        default CompletableFuture<ListAutomationRulesV2Response> listAutomationRulesV2​(Consumer<ListAutomationRulesV2Request.Builder> listAutomationRulesV2Request)

        Returns a list of automation rules and metadata for the calling account.


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

        Parameters:
        listAutomationRulesV2Request - A Consumer that will call methods on ListAutomationRulesV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListAutomationRulesV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPolicies

        default CompletableFuture<ListConfigurationPoliciesResponse> listConfigurationPolicies​(ListConfigurationPoliciesRequest listConfigurationPoliciesRequest)

        Lists the configuration policies that the Security Hub delegated administrator has created for your organization. Only the delegated administrator can invoke this operation from the home Region.

        Parameters:
        listConfigurationPoliciesRequest -
        Returns:
        A Java Future containing the result of the ListConfigurationPolicies operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPolicies

        default CompletableFuture<ListConfigurationPoliciesResponse> listConfigurationPolicies​(Consumer<ListConfigurationPoliciesRequest.Builder> listConfigurationPoliciesRequest)

        Lists the configuration policies that the Security Hub delegated administrator has created for your organization. Only the delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        listConfigurationPoliciesRequest - A Consumer that will call methods on ListConfigurationPoliciesRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListConfigurationPolicies operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPoliciesPaginator

        default ListConfigurationPoliciesPublisher listConfigurationPoliciesPaginator​(ListConfigurationPoliciesRequest listConfigurationPoliciesRequest)

        This is a variant of listConfigurationPolicies(software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPoliciesPublisher publisher = client.listConfigurationPoliciesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPoliciesPublisher publisher = client.listConfigurationPoliciesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listConfigurationPolicies(software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesRequest) operation.

        Parameters:
        listConfigurationPoliciesRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPoliciesPaginator

        default ListConfigurationPoliciesPublisher listConfigurationPoliciesPaginator​(Consumer<ListConfigurationPoliciesRequest.Builder> listConfigurationPoliciesRequest)

        This is a variant of listConfigurationPolicies(software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPoliciesPublisher publisher = client.listConfigurationPoliciesPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPoliciesPublisher publisher = client.listConfigurationPoliciesPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listConfigurationPolicies(software.amazon.awssdk.services.securityhub.model.ListConfigurationPoliciesRequest) operation.


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

        Parameters:
        listConfigurationPoliciesRequest - A Consumer that will call methods on ListConfigurationPoliciesRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPolicyAssociations

        default CompletableFuture<ListConfigurationPolicyAssociationsResponse> listConfigurationPolicyAssociations​(ListConfigurationPolicyAssociationsRequest listConfigurationPolicyAssociationsRequest)

        Provides information about the associations for your configuration policies and self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.

        Parameters:
        listConfigurationPolicyAssociationsRequest -
        Returns:
        A Java Future containing the result of the ListConfigurationPolicyAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPolicyAssociations

        default CompletableFuture<ListConfigurationPolicyAssociationsResponse> listConfigurationPolicyAssociations​(Consumer<ListConfigurationPolicyAssociationsRequest.Builder> listConfigurationPolicyAssociationsRequest)

        Provides information about the associations for your configuration policies and self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        listConfigurationPolicyAssociationsRequest - A Consumer that will call methods on ListConfigurationPolicyAssociationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListConfigurationPolicyAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPolicyAssociationsPaginator

        default ListConfigurationPolicyAssociationsPublisher listConfigurationPolicyAssociationsPaginator​(ListConfigurationPolicyAssociationsRequest listConfigurationPolicyAssociationsRequest)

        This is a variant of listConfigurationPolicyAssociations(software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPolicyAssociationsPublisher publisher = client.listConfigurationPolicyAssociationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPolicyAssociationsPublisher publisher = client.listConfigurationPolicyAssociationsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listConfigurationPolicyAssociations(software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsRequest) operation.

        Parameters:
        listConfigurationPolicyAssociationsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConfigurationPolicyAssociationsPaginator

        default ListConfigurationPolicyAssociationsPublisher listConfigurationPolicyAssociationsPaginator​(Consumer<ListConfigurationPolicyAssociationsRequest.Builder> listConfigurationPolicyAssociationsRequest)

        This is a variant of listConfigurationPolicyAssociations(software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPolicyAssociationsPublisher publisher = client.listConfigurationPolicyAssociationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListConfigurationPolicyAssociationsPublisher publisher = client.listConfigurationPolicyAssociationsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listConfigurationPolicyAssociations(software.amazon.awssdk.services.securityhub.model.ListConfigurationPolicyAssociationsRequest) operation.


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

        Parameters:
        listConfigurationPolicyAssociationsRequest - A Consumer that will call methods on ListConfigurationPolicyAssociationsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConnectorsV2

        default CompletableFuture<ListConnectorsV2Response> listConnectorsV2​(ListConnectorsV2Request listConnectorsV2Request)

        Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account.

        Parameters:
        listConnectorsV2Request -
        Returns:
        A Java Future containing the result of the ListConnectorsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listConnectorsV2

        default CompletableFuture<ListConnectorsV2Response> listConnectorsV2​(Consumer<ListConnectorsV2Request.Builder> listConnectorsV2Request)

        Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account.


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

        Parameters:
        listConnectorsV2Request - A Consumer that will call methods on ListConnectorsV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListConnectorsV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listEnabledProductsForImport

        default CompletableFuture<ListEnabledProductsForImportResponse> listEnabledProductsForImport​(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)

        Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.

        Parameters:
        listEnabledProductsForImportRequest -
        Returns:
        A Java Future containing the result of the ListEnabledProductsForImport operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listEnabledProductsForImport

        default CompletableFuture<ListEnabledProductsForImportResponse> listEnabledProductsForImport​(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)

        Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.


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

        Parameters:
        listEnabledProductsForImportRequest - A Consumer that will call methods on ListEnabledProductsForImportRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListEnabledProductsForImport operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listEnabledProductsForImport

        default CompletableFuture<ListEnabledProductsForImportResponse> listEnabledProductsForImport()

        Lists all findings-generating solutions (products) that you are subscribed to receive findings from in Security Hub.

        Returns:
        A Java Future containing the result of the ListEnabledProductsForImport operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listEnabledProductsForImportPaginator

        default ListEnabledProductsForImportPublisher listEnabledProductsForImportPaginator()

        This is a variant of listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest) operation.

        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listEnabledProductsForImportPaginator

        default ListEnabledProductsForImportPublisher listEnabledProductsForImportPaginator​(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest)

        This is a variant of listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest) operation.

        Parameters:
        listEnabledProductsForImportRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listEnabledProductsForImportPaginator

        default ListEnabledProductsForImportPublisher listEnabledProductsForImportPaginator​(Consumer<ListEnabledProductsForImportRequest.Builder> listEnabledProductsForImportRequest)

        This is a variant of listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListEnabledProductsForImportPublisher publisher = client.listEnabledProductsForImportPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listEnabledProductsForImport(software.amazon.awssdk.services.securityhub.model.ListEnabledProductsForImportRequest) operation.


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

        Parameters:
        listEnabledProductsForImportRequest - A Consumer that will call methods on ListEnabledProductsForImportRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingAggregators

        default CompletableFuture<ListFindingAggregatorsResponse> listFindingAggregators​(ListFindingAggregatorsRequest listFindingAggregatorsRequest)

        If cross-Region aggregation is enabled, then ListFindingAggregators returns the Amazon Resource Name (ARN) of the finding aggregator. You can run this operation from any Amazon Web Services Region.

        Parameters:
        listFindingAggregatorsRequest -
        Returns:
        A Java Future containing the result of the ListFindingAggregators operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingAggregators

        default CompletableFuture<ListFindingAggregatorsResponse> listFindingAggregators​(Consumer<ListFindingAggregatorsRequest.Builder> listFindingAggregatorsRequest)

        If cross-Region aggregation is enabled, then ListFindingAggregators returns the Amazon Resource Name (ARN) of the finding aggregator. You can run this operation from any Amazon Web Services Region.


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

        Parameters:
        listFindingAggregatorsRequest - A Consumer that will call methods on ListFindingAggregatorsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListFindingAggregators operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingAggregatorsPaginator

        default ListFindingAggregatorsPublisher listFindingAggregatorsPaginator​(ListFindingAggregatorsRequest listFindingAggregatorsRequest)

        This is a variant of listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsPublisher publisher = client.listFindingAggregatorsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsPublisher publisher = client.listFindingAggregatorsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest) operation.

        Parameters:
        listFindingAggregatorsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listFindingAggregatorsPaginator

        default ListFindingAggregatorsPublisher listFindingAggregatorsPaginator​(Consumer<ListFindingAggregatorsRequest.Builder> listFindingAggregatorsRequest)

        This is a variant of listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsPublisher publisher = client.listFindingAggregatorsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListFindingAggregatorsPublisher publisher = client.listFindingAggregatorsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listFindingAggregators(software.amazon.awssdk.services.securityhub.model.ListFindingAggregatorsRequest) operation.


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

        Parameters:
        listFindingAggregatorsRequest - A Consumer that will call methods on ListFindingAggregatorsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listInvitations

        default CompletableFuture<ListInvitationsResponse> listInvitations​(ListInvitationsRequest listInvitationsRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Lists all Security Hub membership invitations that were sent to the calling account.

        Only accounts that are managed by invitation can use this operation. Accounts that are managed using the integration with Organizations don't receive invitations.

        Parameters:
        listInvitationsRequest -
        Returns:
        A Java Future containing the result of the ListInvitations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listInvitations

        default CompletableFuture<ListInvitationsResponse> listInvitations​(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Lists all Security Hub membership invitations that were sent to the calling account.

        Only accounts that are managed by invitation can use this operation. Accounts that are managed using the integration with Organizations don't receive invitations.


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

        Parameters:
        listInvitationsRequest - A Consumer that will call methods on ListInvitationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListInvitations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listInvitations

        default CompletableFuture<ListInvitationsResponse> listInvitations()

        We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.

        Lists all Security Hub membership invitations that were sent to the calling account.

        Only accounts that are managed by invitation can use this operation. Accounts that are managed using the integration with Organizations don't receive invitations.

        Returns:
        A Java Future containing the result of the ListInvitations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listInvitationsPaginator

        default ListInvitationsPublisher listInvitationsPaginator()

        This is a variant of listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation.

        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listInvitationsPaginator

        default ListInvitationsPublisher listInvitationsPaginator​(ListInvitationsRequest listInvitationsRequest)

        This is a variant of listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation.

        Parameters:
        listInvitationsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listInvitationsPaginator

        default ListInvitationsPublisher listInvitationsPaginator​(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)

        This is a variant of listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListInvitationsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listInvitations(software.amazon.awssdk.services.securityhub.model.ListInvitationsRequest) operation.


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

        Parameters:
        listInvitationsRequest - A Consumer that will call methods on ListInvitationsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listMembers

        default CompletableFuture<ListMembersResponse> listMembers​(ListMembersRequest listMembersRequest)

        Lists details about all member accounts for the current Security Hub administrator account.

        The results include both member accounts that belong to an organization and member accounts that were invited manually.

        Parameters:
        listMembersRequest -
        Returns:
        A Java Future containing the result of the ListMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listMembers

        default CompletableFuture<ListMembersResponse> listMembers​(Consumer<ListMembersRequest.Builder> listMembersRequest)

        Lists details about all member accounts for the current Security Hub administrator account.

        The results include both member accounts that belong to an organization and member accounts that were invited manually.


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

        Parameters:
        listMembersRequest - A Consumer that will call methods on ListMembersRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listMembers

        default CompletableFuture<ListMembersResponse> listMembers()

        Lists details about all member accounts for the current Security Hub administrator account.

        The results include both member accounts that belong to an organization and member accounts that were invited manually.

        Returns:
        A Java Future containing the result of the ListMembers operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listMembersPaginator

        default ListMembersPublisher listMembersPaginator()

        This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListMembersResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListMembersResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation.

        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listMembersPaginator

        default ListMembersPublisher listMembersPaginator​(ListMembersRequest listMembersRequest)

        This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListMembersResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListMembersResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation.

        Parameters:
        listMembersRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listMembersPaginator

        default ListMembersPublisher listMembersPaginator​(Consumer<ListMembersRequest.Builder> listMembersRequest)

        This is a variant of listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListMembersResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListMembersResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listMembers(software.amazon.awssdk.services.securityhub.model.ListMembersRequest) operation.


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

        Parameters:
        listMembersRequest - A Consumer that will call methods on ListMembersRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listOrganizationAdminAccounts

        default CompletableFuture<ListOrganizationAdminAccountsResponse> listOrganizationAdminAccounts​(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)

        Lists the Security Hub administrator accounts. Can only be called by the organization management account.

        Parameters:
        listOrganizationAdminAccountsRequest -
        Returns:
        A Java Future containing the result of the ListOrganizationAdminAccounts operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listOrganizationAdminAccounts

        default CompletableFuture<ListOrganizationAdminAccountsResponse> listOrganizationAdminAccounts​(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)

        Lists the Security Hub administrator accounts. Can only be called by the organization management account.


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

        Parameters:
        listOrganizationAdminAccountsRequest - A Consumer that will call methods on ListOrganizationAdminAccountsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListOrganizationAdminAccounts operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listOrganizationAdminAccountsPaginator

        default ListOrganizationAdminAccountsPublisher listOrganizationAdminAccountsPaginator​(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)

        This is a variant of listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest) operation.

        Parameters:
        listOrganizationAdminAccountsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listOrganizationAdminAccountsPaginator

        default ListOrganizationAdminAccountsPublisher listOrganizationAdminAccountsPaginator​(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)

        This is a variant of listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listOrganizationAdminAccounts(software.amazon.awssdk.services.securityhub.model.ListOrganizationAdminAccountsRequest) operation.


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

        Parameters:
        listOrganizationAdminAccountsRequest - A Consumer that will call methods on ListOrganizationAdminAccountsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSecurityControlDefinitions

        default CompletableFuture<ListSecurityControlDefinitionsResponse> listSecurityControlDefinitions​(ListSecurityControlDefinitionsRequest listSecurityControlDefinitionsRequest)

        Lists all of the security controls that apply to a specified standard.

        Parameters:
        listSecurityControlDefinitionsRequest -
        Returns:
        A Java Future containing the result of the ListSecurityControlDefinitions operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSecurityControlDefinitions

        default CompletableFuture<ListSecurityControlDefinitionsResponse> listSecurityControlDefinitions​(Consumer<ListSecurityControlDefinitionsRequest.Builder> listSecurityControlDefinitionsRequest)

        Lists all of the security controls that apply to a specified standard.


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

        Parameters:
        listSecurityControlDefinitionsRequest - A Consumer that will call methods on ListSecurityControlDefinitionsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListSecurityControlDefinitions operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSecurityControlDefinitionsPaginator

        default ListSecurityControlDefinitionsPublisher listSecurityControlDefinitionsPaginator​(ListSecurityControlDefinitionsRequest listSecurityControlDefinitionsRequest)

        This is a variant of listSecurityControlDefinitions(software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListSecurityControlDefinitionsPublisher publisher = client.listSecurityControlDefinitionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListSecurityControlDefinitionsPublisher publisher = client.listSecurityControlDefinitionsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSecurityControlDefinitions(software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsRequest) operation.

        Parameters:
        listSecurityControlDefinitionsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listSecurityControlDefinitionsPaginator

        default ListSecurityControlDefinitionsPublisher listSecurityControlDefinitionsPaginator​(Consumer<ListSecurityControlDefinitionsRequest.Builder> listSecurityControlDefinitionsRequest)

        This is a variant of listSecurityControlDefinitions(software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListSecurityControlDefinitionsPublisher publisher = client.listSecurityControlDefinitionsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListSecurityControlDefinitionsPublisher publisher = client.listSecurityControlDefinitionsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listSecurityControlDefinitions(software.amazon.awssdk.services.securityhub.model.ListSecurityControlDefinitionsRequest) operation.


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

        Parameters:
        listSecurityControlDefinitionsRequest - A Consumer that will call methods on ListSecurityControlDefinitionsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listStandardsControlAssociations

        default CompletableFuture<ListStandardsControlAssociationsResponse> listStandardsControlAssociations​(ListStandardsControlAssociationsRequest listStandardsControlAssociationsRequest)

        Specifies whether a control is currently enabled or disabled in each enabled standard in the calling account.

        This operation omits standards control associations for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.

        Parameters:
        listStandardsControlAssociationsRequest -
        Returns:
        A Java Future containing the result of the ListStandardsControlAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listStandardsControlAssociations

        default CompletableFuture<ListStandardsControlAssociationsResponse> listStandardsControlAssociations​(Consumer<ListStandardsControlAssociationsRequest.Builder> listStandardsControlAssociationsRequest)

        Specifies whether a control is currently enabled or disabled in each enabled standard in the calling account.

        This operation omits standards control associations for standard subscriptions where StandardsControlsUpdatable has value NOT_READY_FOR_UPDATES.


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

        Parameters:
        listStandardsControlAssociationsRequest - A Consumer that will call methods on ListStandardsControlAssociationsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListStandardsControlAssociations operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listStandardsControlAssociationsPaginator

        default ListStandardsControlAssociationsPublisher listStandardsControlAssociationsPaginator​(ListStandardsControlAssociationsRequest listStandardsControlAssociationsRequest)

        This is a variant of listStandardsControlAssociations(software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListStandardsControlAssociationsPublisher publisher = client.listStandardsControlAssociationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListStandardsControlAssociationsPublisher publisher = client.listStandardsControlAssociationsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listStandardsControlAssociations(software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsRequest) operation.

        Parameters:
        listStandardsControlAssociationsRequest -
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listStandardsControlAssociationsPaginator

        default ListStandardsControlAssociationsPublisher listStandardsControlAssociationsPaginator​(Consumer<ListStandardsControlAssociationsRequest.Builder> listStandardsControlAssociationsRequest)

        This is a variant of listStandardsControlAssociations(software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsRequest) operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.

        When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a new Subscription i.e., a new contract to stream data from the starting request.

        The following are few ways to use the response class:

        1) Using the subscribe helper method
         
         software.amazon.awssdk.services.securityhub.paginators.ListStandardsControlAssociationsPublisher publisher = client.listStandardsControlAssociationsPaginator(request);
         CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
         future.get();
         
         
        2) Using a custom subscriber
         
         software.amazon.awssdk.services.securityhub.paginators.ListStandardsControlAssociationsPublisher publisher = client.listStandardsControlAssociationsPaginator(request);
         publisher.subscribe(new Subscriber<software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsResponse>() {
         
         public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
         
         
         public void onNext(software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsResponse response) { //... };
         });
         
        As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

        Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

        Note: If you prefer to have control on service calls, use the listStandardsControlAssociations(software.amazon.awssdk.services.securityhub.model.ListStandardsControlAssociationsRequest) operation.


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

        Parameters:
        listStandardsControlAssociationsRequest - A Consumer that will call methods on ListStandardsControlAssociationsRequest.Builder to create a request.
        Returns:
        A custom publisher that can be subscribed to request a stream of response pages.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(ListTagsForResourceRequest listTagsForResourceRequest)

        Returns a list of tags associated with a resource.

        Parameters:
        listTagsForResourceRequest -
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • listTagsForResource

        default CompletableFuture<ListTagsForResourceResponse> listTagsForResource​(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

        Returns a list of tags associated with a resource.


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

        Parameters:
        listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the ListTagsForResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • registerConnectorV2

        default CompletableFuture<RegisterConnectorV2Response> registerConnectorV2​(RegisterConnectorV2Request registerConnectorV2Request)

        Grants permission to complete the authorization based on input parameters.

        Parameters:
        registerConnectorV2Request -
        Returns:
        A Java Future containing the result of the RegisterConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • registerConnectorV2

        default CompletableFuture<RegisterConnectorV2Response> registerConnectorV2​(Consumer<RegisterConnectorV2Request.Builder> registerConnectorV2Request)

        Grants permission to complete the authorization based on input parameters.


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

        Parameters:
        registerConnectorV2Request - A Consumer that will call methods on RegisterConnectorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the RegisterConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • startConfigurationPolicyAssociation

        default CompletableFuture<StartConfigurationPolicyAssociationResponse> startConfigurationPolicyAssociation​(StartConfigurationPolicyAssociationRequest startConfigurationPolicyAssociationRequest)

        Associates a target account, organizational unit, or the root with a specified configuration. The target can be associated with a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.

        Parameters:
        startConfigurationPolicyAssociationRequest -
        Returns:
        A Java Future containing the result of the StartConfigurationPolicyAssociation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • startConfigurationPolicyAssociation

        default CompletableFuture<StartConfigurationPolicyAssociationResponse> startConfigurationPolicyAssociation​(Consumer<StartConfigurationPolicyAssociationRequest.Builder> startConfigurationPolicyAssociationRequest)

        Associates a target account, organizational unit, or the root with a specified configuration. The target can be associated with a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        startConfigurationPolicyAssociationRequest - A Consumer that will call methods on StartConfigurationPolicyAssociationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the StartConfigurationPolicyAssociation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • startConfigurationPolicyDisassociation

        default CompletableFuture<StartConfigurationPolicyDisassociationResponse> startConfigurationPolicyDisassociation​(StartConfigurationPolicyDisassociationRequest startConfigurationPolicyDisassociationRequest)

        Disassociates a target account, organizational unit, or the root from a specified configuration. When you disassociate a configuration from its target, the target inherits the configuration of the closest parent. If there’s no configuration to inherit, the target retains its settings but becomes a self-managed account. A target can be disassociated from a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.

        Parameters:
        startConfigurationPolicyDisassociationRequest -
        Returns:
        A Java Future containing the result of the StartConfigurationPolicyDisassociation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • startConfigurationPolicyDisassociation

        default CompletableFuture<StartConfigurationPolicyDisassociationResponse> startConfigurationPolicyDisassociation​(Consumer<StartConfigurationPolicyDisassociationRequest.Builder> startConfigurationPolicyDisassociationRequest)

        Disassociates a target account, organizational unit, or the root from a specified configuration. When you disassociate a configuration from its target, the target inherits the configuration of the closest parent. If there’s no configuration to inherit, the target retains its settings but becomes a self-managed account. A target can be disassociated from a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        startConfigurationPolicyDisassociationRequest - A Consumer that will call methods on StartConfigurationPolicyDisassociationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the StartConfigurationPolicyDisassociation operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(TagResourceRequest tagResourceRequest)

        Adds one or more tags to a resource.

        Parameters:
        tagResourceRequest -
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • tagResource

        default CompletableFuture<TagResourceResponse> tagResource​(Consumer<TagResourceRequest.Builder> tagResourceRequest)

        Adds one or more tags to a resource.


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

        Parameters:
        tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the TagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(UntagResourceRequest untagResourceRequest)

        Removes one or more tags from a resource.

        Parameters:
        untagResourceRequest -
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • untagResource

        default CompletableFuture<UntagResourceResponse> untagResource​(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

        Removes one or more tags from a resource.


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

        Parameters:
        untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UntagResource operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateActionTarget

        default CompletableFuture<UpdateActionTargetResponse> updateActionTarget​(UpdateActionTargetRequest updateActionTargetRequest)

        Updates the name and description of a custom action target in Security Hub.

        Parameters:
        updateActionTargetRequest -
        Returns:
        A Java Future containing the result of the UpdateActionTarget operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateActionTarget

        default CompletableFuture<UpdateActionTargetResponse> updateActionTarget​(Consumer<UpdateActionTargetRequest.Builder> updateActionTargetRequest)

        Updates the name and description of a custom action target in Security Hub.


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

        Parameters:
        updateActionTargetRequest - A Consumer that will call methods on UpdateActionTargetRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateActionTarget operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAggregatorV2

        default CompletableFuture<UpdateAggregatorV2Response> updateAggregatorV2​(UpdateAggregatorV2Request updateAggregatorV2Request)

        Udpates the configuration for the Aggregator V2.

        Parameters:
        updateAggregatorV2Request -
        Returns:
        A Java Future containing the result of the UpdateAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAggregatorV2

        default CompletableFuture<UpdateAggregatorV2Response> updateAggregatorV2​(Consumer<UpdateAggregatorV2Request.Builder> updateAggregatorV2Request)

        Udpates the configuration for the Aggregator V2.


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

        Parameters:
        updateAggregatorV2Request - A Consumer that will call methods on UpdateAggregatorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateAggregatorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAutomationRuleV2

        default CompletableFuture<UpdateAutomationRuleV2Response> updateAutomationRuleV2​(UpdateAutomationRuleV2Request updateAutomationRuleV2Request)

        Updates a V2 automation rule.

        Parameters:
        updateAutomationRuleV2Request -
        Returns:
        A Java Future containing the result of the UpdateAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateAutomationRuleV2

        default CompletableFuture<UpdateAutomationRuleV2Response> updateAutomationRuleV2​(Consumer<UpdateAutomationRuleV2Request.Builder> updateAutomationRuleV2Request)

        Updates a V2 automation rule.


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

        Parameters:
        updateAutomationRuleV2Request - A Consumer that will call methods on UpdateAutomationRuleV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateAutomationRuleV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateConfigurationPolicy

        default CompletableFuture<UpdateConfigurationPolicyResponse> updateConfigurationPolicy​(UpdateConfigurationPolicyRequest updateConfigurationPolicyRequest)

        Updates a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region.

        Parameters:
        updateConfigurationPolicyRequest -
        Returns:
        A Java Future containing the result of the UpdateConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateConfigurationPolicy

        default CompletableFuture<UpdateConfigurationPolicyResponse> updateConfigurationPolicy​(Consumer<UpdateConfigurationPolicyRequest.Builder> updateConfigurationPolicyRequest)

        Updates a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region.


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

        Parameters:
        updateConfigurationPolicyRequest - A Consumer that will call methods on UpdateConfigurationPolicyRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateConfigurationPolicy operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateConnectorV2

        default CompletableFuture<UpdateConnectorV2Response> updateConnectorV2​(UpdateConnectorV2Request updateConnectorV2Request)

        Grants permission to update a connectorV2 based on its id and input parameters.

        Parameters:
        updateConnectorV2Request -
        Returns:
        A Java Future containing the result of the UpdateConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateConnectorV2

        default CompletableFuture<UpdateConnectorV2Response> updateConnectorV2​(Consumer<UpdateConnectorV2Request.Builder> updateConnectorV2Request)

        Grants permission to update a connectorV2 based on its id and input parameters.


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

        Parameters:
        updateConnectorV2Request - A Consumer that will call methods on UpdateConnectorV2Request.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateConnectorV2 operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InternalServerException The request has failed due to an internal failure of the service.
        • ValidationException The request has failed validation because it's missing required fields or has invalid inputs.
        • ThrottlingException The limit on the number of requests per second was exceeded.
        • ConflictException The request causes conflict with the current state of the service resource.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateFindingAggregator

        default CompletableFuture<UpdateFindingAggregatorResponse> updateFindingAggregator​(UpdateFindingAggregatorRequest updateFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Updates cross-Region aggregation settings. You can use this operation to update the Region linking mode and the list of included or excluded Amazon Web Services Regions. However, you can't use this operation to change the home Region.

        You can invoke this operation from the current home Region only.

        Parameters:
        updateFindingAggregatorRequest -
        Returns:
        A Java Future containing the result of the UpdateFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateFindingAggregator

        default CompletableFuture<UpdateFindingAggregatorResponse> updateFindingAggregator​(Consumer<UpdateFindingAggregatorRequest.Builder> updateFindingAggregatorRequest)

        The aggregation Region is now called the home Region.

        Updates cross-Region aggregation settings. You can use this operation to update the Region linking mode and the list of included or excluded Amazon Web Services Regions. However, you can't use this operation to change the home Region.

        You can invoke this operation from the current home Region only.


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

        Parameters:
        updateFindingAggregatorRequest - A Consumer that will call methods on UpdateFindingAggregatorRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateFindingAggregator operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateFindings

        default CompletableFuture<UpdateFindingsResponse> updateFindings​(UpdateFindingsRequest updateFindingsRequest)

        UpdateFindings is a deprecated operation. Instead of UpdateFindings, use the BatchUpdateFindings operation.

        The UpdateFindings operation updates the Note and RecordState of the Security Hub aggregated findings that the filter attributes specify. Any member account that can view the finding can also see the update to the finding.

        Finding updates made with UpdateFindings aren't persisted if the same finding is later updated by the finding provider through the BatchImportFindings operation. In addition, Security Hub doesn't record updates made with UpdateFindings in the finding history.

        Parameters:
        updateFindingsRequest -
        Returns:
        A Java Future containing the result of the UpdateFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateFindings

        default CompletableFuture<UpdateFindingsResponse> updateFindings​(Consumer<UpdateFindingsRequest.Builder> updateFindingsRequest)

        UpdateFindings is a deprecated operation. Instead of UpdateFindings, use the BatchUpdateFindings operation.

        The UpdateFindings operation updates the Note and RecordState of the Security Hub aggregated findings that the filter attributes specify. Any member account that can view the finding can also see the update to the finding.

        Finding updates made with UpdateFindings aren't persisted if the same finding is later updated by the finding provider through the BatchImportFindings operation. In addition, Security Hub doesn't record updates made with UpdateFindings in the finding history.


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

        Parameters:
        updateFindingsRequest - A Consumer that will call methods on UpdateFindingsRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateFindings operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateInsight

        default CompletableFuture<UpdateInsightResponse> updateInsight​(UpdateInsightRequest updateInsightRequest)

        Updates the Security Hub insight identified by the specified insight ARN.

        Parameters:
        updateInsightRequest -
        Returns:
        A Java Future containing the result of the UpdateInsight operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateInsight

        default CompletableFuture<UpdateInsightResponse> updateInsight​(Consumer<UpdateInsightRequest.Builder> updateInsightRequest)

        Updates the Security Hub insight identified by the specified insight ARN.


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

        Parameters:
        updateInsightRequest - A Consumer that will call methods on UpdateInsightRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateInsight operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateOrganizationConfiguration

        default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration​(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest)

        Updates the configuration of your organization in Security Hub. Only the Security Hub administrator account can invoke this operation.

        Parameters:
        updateOrganizationConfigurationRequest -
        Returns:
        A Java Future containing the result of the UpdateOrganizationConfiguration operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateOrganizationConfiguration

        default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration​(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest)

        Updates the configuration of your organization in Security Hub. Only the Security Hub administrator account can invoke this operation.


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

        Parameters:
        updateOrganizationConfigurationRequest - A Consumer that will call methods on UpdateOrganizationConfigurationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateOrganizationConfiguration operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceConflictException The resource specified in the request conflicts with an existing resource.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateSecurityControl

        default CompletableFuture<UpdateSecurityControlResponse> updateSecurityControl​(UpdateSecurityControlRequest updateSecurityControlRequest)

        Updates the properties of a security control.

        Parameters:
        updateSecurityControlRequest -
        Returns:
        A Java Future containing the result of the UpdateSecurityControl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceInUseException The request was rejected because it conflicts with the resource's availability. For example, you tried to update a security control that's currently in the UPDATING state.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceInUseException The request was rejected because it conflicts with the resource's availability. For example, you tried to update a security control that's currently in the UPDATING state.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateSecurityControl

        default CompletableFuture<UpdateSecurityControlResponse> updateSecurityControl​(Consumer<UpdateSecurityControlRequest.Builder> updateSecurityControlRequest)

        Updates the properties of a security control.


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

        Parameters:
        updateSecurityControlRequest - A Consumer that will call methods on UpdateSecurityControlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateSecurityControl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceInUseException The request was rejected because it conflicts with the resource's availability. For example, you tried to update a security control that's currently in the UPDATING state.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • ResourceInUseException The request was rejected because it conflicts with the resource's availability. For example, you tried to update a security control that's currently in the UPDATING state.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateSecurityHubConfiguration

        default CompletableFuture<UpdateSecurityHubConfigurationResponse> updateSecurityHubConfiguration​(UpdateSecurityHubConfigurationRequest updateSecurityHubConfigurationRequest)

        Updates configuration options for Security Hub.

        Parameters:
        updateSecurityHubConfigurationRequest -
        Returns:
        A Java Future containing the result of the UpdateSecurityHubConfiguration operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateSecurityHubConfiguration

        default CompletableFuture<UpdateSecurityHubConfigurationResponse> updateSecurityHubConfiguration​(Consumer<UpdateSecurityHubConfigurationRequest.Builder> updateSecurityHubConfigurationRequest)

        Updates configuration options for Security Hub.


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

        Parameters:
        updateSecurityHubConfigurationRequest - A Consumer that will call methods on UpdateSecurityHubConfigurationRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateSecurityHubConfiguration operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • LimitExceededException The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateStandardsControl

        default CompletableFuture<UpdateStandardsControlResponse> updateStandardsControl​(UpdateStandardsControlRequest updateStandardsControlRequest)

        Used to control whether an individual security standard control is enabled or disabled.

        Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the control has StandardsControlsUpdatable value NOT_READY_FOR_UPDATES.

        Parameters:
        updateStandardsControlRequest -
        Returns:
        A Java Future containing the result of the UpdateStandardsControl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation
      • updateStandardsControl

        default CompletableFuture<UpdateStandardsControlResponse> updateStandardsControl​(Consumer<UpdateStandardsControlRequest.Builder> updateStandardsControlRequest)

        Used to control whether an individual security standard control is enabled or disabled.

        Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the control has StandardsControlsUpdatable value NOT_READY_FOR_UPDATES.


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

        Parameters:
        updateStandardsControlRequest - A Consumer that will call methods on UpdateStandardsControlRequest.Builder to create a request.
        Returns:
        A Java Future containing the result of the UpdateStandardsControl operation returned by the service.
        The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
        • InternalException Internal server error.
        • InvalidInputException The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
        • InvalidAccessException The account doesn't have permission to perform this action.
        • ResourceNotFoundException The request was rejected because we can't find the specified resource.
        • AccessDeniedException You don't have permission to perform the action specified in the request.
        • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
        • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
        • SecurityHubException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
        See Also:
        AWS API Documentation