Interface GuardDutyAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface GuardDutyAsyncClient extends AwsClient
Service client for accessing Amazon GuardDuty 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.

Amazon GuardDuty is a continuous security monitoring service that analyzes and processes the following foundational data sources - VPC flow logs, Amazon Web Services CloudTrail management event logs, CloudTrail S3 data event logs, EKS audit logs, DNS logs, Amazon EBS volume data, runtime activity belonging to container workloads, such as Amazon EKS, Amazon ECS (including Amazon Web Services Fargate), and Amazon EC2 instances. It uses threat intelligence feeds, such as lists of malicious IPs and domains, and machine learning to identify unexpected, potentially unauthorized, and malicious activity within your Amazon Web Services environment. This can include issues like escalations of privileges, uses of exposed credentials, or communication with malicious IPs, domains, or presence of malware on your Amazon EC2 instances and container workloads. For example, GuardDuty can detect compromised EC2 instances and container workloads serving malware, or mining bitcoin.

GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise, such as unauthorized infrastructure deployments like EC2 instances deployed in a Region that has never been used, or unusual API calls like a password policy change to reduce password strength.

GuardDuty informs you about the status of your Amazon Web Services environment by producing security findings that you can view in the GuardDuty console or through Amazon EventBridge. For more information, see the Amazon GuardDuty User Guide .

  • Field Details

  • Method Details

    • acceptAdministratorInvitation

      default CompletableFuture<AcceptAdministratorInvitationResponse> acceptAdministratorInvitation(AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest)

      Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • acceptAdministratorInvitation

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

      Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • acceptInvitation

      @Deprecated default CompletableFuture<AcceptInvitationResponse> acceptInvitation(AcceptInvitationRequest acceptInvitationRequest)
      Deprecated.
      This operation is deprecated, use AcceptAdministratorInvitation instead

      Accepts the invitation to be monitored by a GuardDuty administrator 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • acceptInvitation

      Deprecated.
      This operation is deprecated, use AcceptAdministratorInvitation instead

      Accepts the invitation to be monitored by a GuardDuty administrator 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • archiveFindings

      default CompletableFuture<ArchiveFindingsResponse> archiveFindings(ArchiveFindingsRequest archiveFindingsRequest)

      Archives GuardDuty findings that are specified by the list of finding IDs.

      Only the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts.

      Parameters:
      archiveFindingsRequest -
      Returns:
      A Java Future containing the result of the ArchiveFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • archiveFindings

      default CompletableFuture<ArchiveFindingsResponse> archiveFindings(Consumer<ArchiveFindingsRequest.Builder> archiveFindingsRequest)

      Archives GuardDuty findings that are specified by the list of finding IDs.

      Only the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts.


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

      Parameters:
      archiveFindingsRequest - A Consumer that will call methods on ArchiveFindingsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ArchiveFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createDetector

      default CompletableFuture<CreateDetectorResponse> createDetector(CreateDetectorRequest createDetectorRequest)

      Creates a single GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one detector per account per Region. All data sources are enabled in a new detector by default.

      • When you don't specify any features, with an exception to RUNTIME_MONITORING, all the optional features are enabled by default.

      • When you specify some of the features, any feature that is not specified in the API call gets enabled by default, with an exception to RUNTIME_MONITORING.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      createDetectorRequest -
      Returns:
      A Java Future containing the result of the CreateDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createDetector

      default CompletableFuture<CreateDetectorResponse> createDetector(Consumer<CreateDetectorRequest.Builder> createDetectorRequest)

      Creates a single GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one detector per account per Region. All data sources are enabled in a new detector by default.

      • When you don't specify any features, with an exception to RUNTIME_MONITORING, all the optional features are enabled by default.

      • When you specify some of the features, any feature that is not specified in the API call gets enabled by default, with an exception to RUNTIME_MONITORING.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      createDetectorRequest - A Consumer that will call methods on CreateDetectorRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createFilter

      default CompletableFuture<CreateFilterResponse> createFilter(CreateFilterRequest createFilterRequest)

      Creates a filter using the specified finding criteria. The maximum number of saved filters per Amazon Web Services account per Region is 100. For more information, see Quotas for GuardDuty.

      Parameters:
      createFilterRequest -
      Returns:
      A Java Future containing the result of the CreateFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createFilter

      default CompletableFuture<CreateFilterResponse> createFilter(Consumer<CreateFilterRequest.Builder> createFilterRequest)

      Creates a filter using the specified finding criteria. The maximum number of saved filters per Amazon Web Services account per Region is 100. For more information, see Quotas for GuardDuty.


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

      Parameters:
      createFilterRequest - A Consumer that will call methods on CreateFilterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createIPSet

      default CompletableFuture<CreateIpSetResponse> createIPSet(CreateIpSetRequest createIpSetRequest)

      Creates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP addresses that are trusted for secure communication with Amazon Web Services infrastructure and applications. GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the administrator account can use this operation.

      Parameters:
      createIpSetRequest -
      Returns:
      A Java Future containing the result of the CreateIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createIPSet

      default CompletableFuture<CreateIpSetResponse> createIPSet(Consumer<CreateIpSetRequest.Builder> createIpSetRequest)

      Creates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP addresses that are trusted for secure communication with Amazon Web Services infrastructure and applications. GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the administrator account can use this operation.


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

      Parameters:
      createIpSetRequest - A Consumer that will call methods on CreateIpSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createMembers

      default CompletableFuture<CreateMembersResponse> createMembers(CreateMembersRequest createMembersRequest)

      Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.

      As a delegated administrator, using CreateMembers will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.

      When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration.

      If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createMembers

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

      Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.

      As a delegated administrator, using CreateMembers will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.

      When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration.

      If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPublishingDestination

      default CompletableFuture<CreatePublishingDestinationResponse> createPublishingDestination(CreatePublishingDestinationRequest createPublishingDestinationRequest)

      Creates a publishing destination to export findings to. The resource to export findings to must exist before you use this operation.

      Parameters:
      createPublishingDestinationRequest -
      Returns:
      A Java Future containing the result of the CreatePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createPublishingDestination

      default CompletableFuture<CreatePublishingDestinationResponse> createPublishingDestination(Consumer<CreatePublishingDestinationRequest.Builder> createPublishingDestinationRequest)

      Creates a publishing destination to export findings to. The resource to export findings to must exist before you use this operation.


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

      Parameters:
      createPublishingDestinationRequest - A Consumer that will call methods on CreatePublishingDestinationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreatePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSampleFindings

      default CompletableFuture<CreateSampleFindingsResponse> createSampleFindings(CreateSampleFindingsRequest createSampleFindingsRequest)

      Generates sample findings of types specified by the list of finding types. If 'NULL' is specified for findingTypes, the API generates sample findings of all supported finding types.

      Parameters:
      createSampleFindingsRequest -
      Returns:
      A Java Future containing the result of the CreateSampleFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createSampleFindings

      default CompletableFuture<CreateSampleFindingsResponse> createSampleFindings(Consumer<CreateSampleFindingsRequest.Builder> createSampleFindingsRequest)

      Generates sample findings of types specified by the list of finding types. If 'NULL' is specified for findingTypes, the API generates sample findings of all supported finding types.


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

      Parameters:
      createSampleFindingsRequest - A Consumer that will call methods on CreateSampleFindingsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateSampleFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createThreatIntelSet

      default CompletableFuture<CreateThreatIntelSetResponse> createThreatIntelSet(CreateThreatIntelSetRequest createThreatIntelSetRequest)

      Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.

      Parameters:
      createThreatIntelSetRequest -
      Returns:
      A Java Future containing the result of the CreateThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createThreatIntelSet

      default CompletableFuture<CreateThreatIntelSetResponse> createThreatIntelSet(Consumer<CreateThreatIntelSetRequest.Builder> createThreatIntelSetRequest)

      Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.


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

      Parameters:
      createThreatIntelSetRequest - A Consumer that will call methods on CreateThreatIntelSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • declineInvitations

      default CompletableFuture<DeclineInvitationsResponse> declineInvitations(DeclineInvitationsRequest declineInvitationsRequest)

      Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • declineInvitations

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

      Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteDetector

      default CompletableFuture<DeleteDetectorResponse> deleteDetector(DeleteDetectorRequest deleteDetectorRequest)

      Deletes an Amazon GuardDuty detector that is specified by the detector ID.

      Parameters:
      deleteDetectorRequest -
      Returns:
      A Java Future containing the result of the DeleteDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteDetector

      default CompletableFuture<DeleteDetectorResponse> deleteDetector(Consumer<DeleteDetectorRequest.Builder> deleteDetectorRequest)

      Deletes an Amazon GuardDuty detector that is specified by the detector ID.


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

      Parameters:
      deleteDetectorRequest - A Consumer that will call methods on DeleteDetectorRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteFilter

      default CompletableFuture<DeleteFilterResponse> deleteFilter(DeleteFilterRequest deleteFilterRequest)

      Deletes the filter specified by the filter name.

      Parameters:
      deleteFilterRequest -
      Returns:
      A Java Future containing the result of the DeleteFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteFilter

      default CompletableFuture<DeleteFilterResponse> deleteFilter(Consumer<DeleteFilterRequest.Builder> deleteFilterRequest)

      Deletes the filter specified by the filter name.


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

      Parameters:
      deleteFilterRequest - A Consumer that will call methods on DeleteFilterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteIPSet

      default CompletableFuture<DeleteIpSetResponse> deleteIPSet(DeleteIpSetRequest deleteIpSetRequest)

      Deletes the IPSet specified by the ipSetId. IPSets are called trusted IP lists in the console user interface.

      Parameters:
      deleteIpSetRequest -
      Returns:
      A Java Future containing the result of the DeleteIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteIPSet

      default CompletableFuture<DeleteIpSetResponse> deleteIPSet(Consumer<DeleteIpSetRequest.Builder> deleteIpSetRequest)

      Deletes the IPSet specified by the ipSetId. IPSets are called trusted IP lists in the console user interface.


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

      Parameters:
      deleteIpSetRequest - A Consumer that will call methods on DeleteIpSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteInvitations

      default CompletableFuture<DeleteInvitationsResponse> deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest)

      Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteInvitations

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

      Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteMembers

      default CompletableFuture<DeleteMembersResponse> deleteMembers(DeleteMembersRequest deleteMembersRequest)

      Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty for a member account in your 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteMembers

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

      Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty for a member account in your 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deletePublishingDestination

      default CompletableFuture<DeletePublishingDestinationResponse> deletePublishingDestination(DeletePublishingDestinationRequest deletePublishingDestinationRequest)

      Deletes the publishing definition with the specified destinationId.

      Parameters:
      deletePublishingDestinationRequest -
      Returns:
      A Java Future containing the result of the DeletePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deletePublishingDestination

      default CompletableFuture<DeletePublishingDestinationResponse> deletePublishingDestination(Consumer<DeletePublishingDestinationRequest.Builder> deletePublishingDestinationRequest)

      Deletes the publishing definition with the specified destinationId.


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

      Parameters:
      deletePublishingDestinationRequest - A Consumer that will call methods on DeletePublishingDestinationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeletePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteThreatIntelSet

      default CompletableFuture<DeleteThreatIntelSetResponse> deleteThreatIntelSet(DeleteThreatIntelSetRequest deleteThreatIntelSetRequest)

      Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.

      Parameters:
      deleteThreatIntelSetRequest -
      Returns:
      A Java Future containing the result of the DeleteThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteThreatIntelSet

      default CompletableFuture<DeleteThreatIntelSetResponse> deleteThreatIntelSet(Consumer<DeleteThreatIntelSetRequest.Builder> deleteThreatIntelSetRequest)

      Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.


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

      Parameters:
      deleteThreatIntelSetRequest - A Consumer that will call methods on DeleteThreatIntelSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeMalwareScans

      default CompletableFuture<DescribeMalwareScansResponse> describeMalwareScans(DescribeMalwareScansRequest describeMalwareScansRequest)

      Returns a list of malware scans. Each member account can view the malware scans for their own accounts. An administrator can view the malware scans for all the member accounts.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      describeMalwareScansRequest -
      Returns:
      A Java Future containing the result of the DescribeMalwareScans 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeMalwareScans

      default CompletableFuture<DescribeMalwareScansResponse> describeMalwareScans(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest)

      Returns a list of malware scans. Each member account can view the malware scans for their own accounts. An administrator can view the malware scans for all the member accounts.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      describeMalwareScansRequest - A Consumer that will call methods on DescribeMalwareScansRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeMalwareScans 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeMalwareScansPaginator

      default DescribeMalwareScansPublisher describeMalwareScansPaginator(DescribeMalwareScansRequest describeMalwareScansRequest)

      This is a variant of describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest) 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.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse 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 describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest) operation.

      Parameters:
      describeMalwareScansRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeMalwareScansPaginator

      default DescribeMalwareScansPublisher describeMalwareScansPaginator(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest)

      This is a variant of describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest) 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.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse 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 describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest) operation.


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

      Parameters:
      describeMalwareScansRequest - A Consumer that will call methods on DescribeMalwareScansRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeOrganizationConfiguration

      default CompletableFuture<DescribeOrganizationConfigurationResponse> describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)

      Returns information about the account selected as the delegated administrator for GuardDuty.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeOrganizationConfiguration

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

      Returns information about the account selected as the delegated administrator for GuardDuty.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeOrganizationConfigurationPaginator

      default DescribeOrganizationConfigurationPublisher describeOrganizationConfigurationPaginator(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)

      This is a variant of describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest) 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.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse 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 describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest) operation.

      Parameters:
      describeOrganizationConfigurationRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeOrganizationConfigurationPaginator

      default DescribeOrganizationConfigurationPublisher describeOrganizationConfigurationPaginator(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)

      This is a variant of describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest) 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.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse 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 describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest) 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 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describePublishingDestination

      default CompletableFuture<DescribePublishingDestinationResponse> describePublishingDestination(DescribePublishingDestinationRequest describePublishingDestinationRequest)

      Returns information about the publishing destination specified by the provided destinationId.

      Parameters:
      describePublishingDestinationRequest -
      Returns:
      A Java Future containing the result of the DescribePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describePublishingDestination

      default CompletableFuture<DescribePublishingDestinationResponse> describePublishingDestination(Consumer<DescribePublishingDestinationRequest.Builder> describePublishingDestinationRequest)

      Returns information about the publishing destination specified by the provided destinationId.


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

      Parameters:
      describePublishingDestinationRequest - A Consumer that will call methods on DescribePublishingDestinationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disableOrganizationAdminAccount

      default CompletableFuture<DisableOrganizationAdminAccountResponse> disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest)

      Removes the existing GuardDuty delegated administrator of the organization. Only the organization's management account can run this API operation.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disableOrganizationAdminAccount

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

      Removes the existing GuardDuty delegated administrator of the organization. Only the organization's management account can run this API operation.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateFromAdministratorAccount

      default CompletableFuture<DisassociateFromAdministratorAccountResponse> disassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest)

      Disassociates the current GuardDuty member account from its administrator account.

      When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty in 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateFromAdministratorAccount

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

      Disassociates the current GuardDuty member account from its administrator account.

      When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disable GuardDuty in 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateFromMasterAccount

      @Deprecated default CompletableFuture<DisassociateFromMasterAccountResponse> disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest)
      Deprecated.
      This operation is deprecated, use DisassociateFromAdministratorAccount instead

      Disassociates the current GuardDuty member account from its administrator account.

      When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateFromMasterAccount

      @Deprecated default CompletableFuture<DisassociateFromMasterAccountResponse> disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest)
      Deprecated.
      This operation is deprecated, use DisassociateFromAdministratorAccount instead

      Disassociates the current GuardDuty member account from its administrator account.

      When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateMembers

      default CompletableFuture<DisassociateMembersResponse> disassociateMembers(DisassociateMembersRequest disassociateMembersRequest)

      Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.

      When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disassociate a member account before removing them from your organization.

      If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • disassociateMembers

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

      Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.

      When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to disassociate a member account before removing them from your organization.

      If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • enableOrganizationAdminAccount

      default CompletableFuture<EnableOrganizationAdminAccountResponse> enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest)

      Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator. Only the organization's management account can run this API operation.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • enableOrganizationAdminAccount

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

      Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator. Only the organization's management account can run this API operation.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAdministratorAccount

      default CompletableFuture<GetAdministratorAccountResponse> getAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest)

      Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.

      If the organization's management account or a delegated administrator runs this API, it will return success ( HTTP 200) but no content.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getAdministratorAccount

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

      Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.

      If the organization's management account or a delegated administrator runs this API, it will return success ( HTTP 200) but no content.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCoverageStatistics

      default CompletableFuture<GetCoverageStatisticsResponse> getCoverageStatistics(GetCoverageStatisticsRequest getCoverageStatisticsRequest)

      Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running on their resources.

      Parameters:
      getCoverageStatisticsRequest -
      Returns:
      A Java Future containing the result of the GetCoverageStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getCoverageStatistics

      default CompletableFuture<GetCoverageStatisticsResponse> getCoverageStatistics(Consumer<GetCoverageStatisticsRequest.Builder> getCoverageStatisticsRequest)

      Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running on their resources.


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

      Parameters:
      getCoverageStatisticsRequest - A Consumer that will call methods on GetCoverageStatisticsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetCoverageStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getDetector

      default CompletableFuture<GetDetectorResponse> getDetector(GetDetectorRequest getDetectorRequest)

      Retrieves an Amazon GuardDuty detector specified by the detectorId.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      getDetectorRequest -
      Returns:
      A Java Future containing the result of the GetDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getDetector

      default CompletableFuture<GetDetectorResponse> getDetector(Consumer<GetDetectorRequest.Builder> getDetectorRequest)

      Retrieves an Amazon GuardDuty detector specified by the detectorId.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      getDetectorRequest - A Consumer that will call methods on GetDetectorRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFilter

      default CompletableFuture<GetFilterResponse> getFilter(GetFilterRequest getFilterRequest)

      Returns the details of the filter specified by the filter name.

      Parameters:
      getFilterRequest -
      Returns:
      A Java Future containing the result of the GetFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFilter

      default CompletableFuture<GetFilterResponse> getFilter(Consumer<GetFilterRequest.Builder> getFilterRequest)

      Returns the details of the filter specified by the filter name.


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

      Parameters:
      getFilterRequest - A Consumer that will call methods on GetFilterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindings

      default CompletableFuture<GetFindingsResponse> getFindings(GetFindingsRequest getFindingsRequest)

      Describes Amazon GuardDuty findings specified by finding IDs.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindings

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

      Describes Amazon GuardDuty findings specified by finding IDs.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsStatistics

      default CompletableFuture<GetFindingsStatisticsResponse> getFindingsStatistics(GetFindingsStatisticsRequest getFindingsStatisticsRequest)

      Lists Amazon GuardDuty findings statistics for the specified detector ID.

      There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.

      Parameters:
      getFindingsStatisticsRequest -
      Returns:
      A Java Future containing the result of the GetFindingsStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getFindingsStatistics

      default CompletableFuture<GetFindingsStatisticsResponse> getFindingsStatistics(Consumer<GetFindingsStatisticsRequest.Builder> getFindingsStatisticsRequest)

      Lists Amazon GuardDuty findings statistics for the specified detector ID.

      There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.


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

      Parameters:
      getFindingsStatisticsRequest - A Consumer that will call methods on GetFindingsStatisticsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetFindingsStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getIPSet

      default CompletableFuture<GetIpSetResponse> getIPSet(GetIpSetRequest getIpSetRequest)

      Retrieves the IPSet specified by the ipSetId.

      Parameters:
      getIpSetRequest -
      Returns:
      A Java Future containing the result of the GetIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getIPSet

      Retrieves the IPSet specified by the ipSetId.


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

      Parameters:
      getIpSetRequest - A Consumer that will call methods on GetIpSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getInvitationsCount

      default CompletableFuture<GetInvitationsCountResponse> getInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest)

      Returns the count of all GuardDuty membership invitations that were sent to the current member account except 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getInvitationsCount

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

      Returns the count of all GuardDuty membership invitations that were sent to the current member account except 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getInvitationsCount

      default CompletableFuture<GetInvitationsCountResponse> getInvitationsCount()

      Returns the count of all GuardDuty membership invitations that were sent to the current member account except 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMalwareScanSettings

      default CompletableFuture<GetMalwareScanSettingsResponse> getMalwareScanSettings(GetMalwareScanSettingsRequest getMalwareScanSettingsRequest)

      Returns the details of the malware scan settings.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      getMalwareScanSettingsRequest -
      Returns:
      A Java Future containing the result of the GetMalwareScanSettings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMalwareScanSettings

      default CompletableFuture<GetMalwareScanSettingsResponse> getMalwareScanSettings(Consumer<GetMalwareScanSettingsRequest.Builder> getMalwareScanSettingsRequest)

      Returns the details of the malware scan settings.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      getMalwareScanSettingsRequest - A Consumer that will call methods on GetMalwareScanSettingsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetMalwareScanSettings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMasterAccount

      @Deprecated default CompletableFuture<GetMasterAccountResponse> getMasterAccount(GetMasterAccountRequest getMasterAccountRequest)
      Deprecated.
      This operation is deprecated, use GetAdministratorAccount instead

      Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMasterAccount

      Deprecated.
      This operation is deprecated, use GetAdministratorAccount instead

      Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMemberDetectors

      default CompletableFuture<GetMemberDetectorsResponse> getMemberDetectors(GetMemberDetectorsRequest getMemberDetectorsRequest)

      Describes which data sources are enabled for the member account's detector.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      getMemberDetectorsRequest -
      Returns:
      A Java Future containing the result of the GetMemberDetectors 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMemberDetectors

      default CompletableFuture<GetMemberDetectorsResponse> getMemberDetectors(Consumer<GetMemberDetectorsRequest.Builder> getMemberDetectorsRequest)

      Describes which data sources are enabled for the member account's detector.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      getMemberDetectorsRequest - A Consumer that will call methods on GetMemberDetectorsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetMemberDetectors 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMembers

      default CompletableFuture<GetMembersResponse> getMembers(GetMembersRequest getMembersRequest)

      Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getMembers

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

      Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getOrganizationStatistics

      default CompletableFuture<GetOrganizationStatisticsResponse> getOrganizationStatistics(GetOrganizationStatisticsRequest getOrganizationStatisticsRequest)

      Retrieves how many active member accounts have each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API.

      When you create a new organization, it might take up to 24 hours to generate the statistics for the entire organization.

      Parameters:
      getOrganizationStatisticsRequest -
      Returns:
      A Java Future containing the result of the GetOrganizationStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getOrganizationStatistics

      default CompletableFuture<GetOrganizationStatisticsResponse> getOrganizationStatistics(Consumer<GetOrganizationStatisticsRequest.Builder> getOrganizationStatisticsRequest)

      Retrieves how many active member accounts have each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API.

      When you create a new organization, it might take up to 24 hours to generate the statistics for the entire organization.


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

      Parameters:
      getOrganizationStatisticsRequest - A Consumer that will call methods on GetOrganizationStatisticsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetOrganizationStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRemainingFreeTrialDays

      default CompletableFuture<GetRemainingFreeTrialDaysResponse> getRemainingFreeTrialDays(GetRemainingFreeTrialDaysRequest getRemainingFreeTrialDaysRequest)

      Provides the number of days left for each data source used in the free trial period.

      Parameters:
      getRemainingFreeTrialDaysRequest -
      Returns:
      A Java Future containing the result of the GetRemainingFreeTrialDays 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getRemainingFreeTrialDays

      default CompletableFuture<GetRemainingFreeTrialDaysResponse> getRemainingFreeTrialDays(Consumer<GetRemainingFreeTrialDaysRequest.Builder> getRemainingFreeTrialDaysRequest)

      Provides the number of days left for each data source used in the free trial period.


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

      Parameters:
      getRemainingFreeTrialDaysRequest - A Consumer that will call methods on GetRemainingFreeTrialDaysRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetRemainingFreeTrialDays 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getThreatIntelSet

      default CompletableFuture<GetThreatIntelSetResponse> getThreatIntelSet(GetThreatIntelSetRequest getThreatIntelSetRequest)

      Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.

      Parameters:
      getThreatIntelSetRequest -
      Returns:
      A Java Future containing the result of the GetThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getThreatIntelSet

      default CompletableFuture<GetThreatIntelSetResponse> getThreatIntelSet(Consumer<GetThreatIntelSetRequest.Builder> getThreatIntelSetRequest)

      Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.


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

      Parameters:
      getThreatIntelSetRequest - A Consumer that will call methods on GetThreatIntelSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getUsageStatistics

      default CompletableFuture<GetUsageStatisticsResponse> getUsageStatistics(GetUsageStatisticsRequest getUsageStatisticsRequest)

      Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ from the cost metrics in the console, which project usage over 30 days to provide a monthly cost estimate. For more information, see Understanding How Usage Costs are Calculated.

      Parameters:
      getUsageStatisticsRequest -
      Returns:
      A Java Future containing the result of the GetUsageStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getUsageStatistics

      default CompletableFuture<GetUsageStatisticsResponse> getUsageStatistics(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest)

      Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ from the cost metrics in the console, which project usage over 30 days to provide a monthly cost estimate. For more information, see Understanding How Usage Costs are Calculated.


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

      Parameters:
      getUsageStatisticsRequest - A Consumer that will call methods on GetUsageStatisticsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetUsageStatistics 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getUsageStatisticsPaginator

      default GetUsageStatisticsPublisher getUsageStatisticsPaginator(GetUsageStatisticsRequest getUsageStatisticsRequest)

      This is a variant of getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest) 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.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse 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 getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest) operation.

      Parameters:
      getUsageStatisticsRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getUsageStatisticsPaginator

      default GetUsageStatisticsPublisher getUsageStatisticsPaginator(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest)

      This is a variant of getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest) 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.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse 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 getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest) operation.


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

      Parameters:
      getUsageStatisticsRequest - A Consumer that will call methods on GetUsageStatisticsRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • inviteMembers

      default CompletableFuture<InviteMembersResponse> inviteMembers(InviteMembersRequest inviteMembersRequest)

      Invites Amazon Web Services accounts to become members of an organization administered by the Amazon Web Services account that invokes this API. If you are using Amazon Web Services Organizations to manage your GuardDuty environment, this step is not needed. For more information, see Managing accounts with organizations.

      To invite Amazon Web Services accounts, the first step is to ensure that GuardDuty has been enabled in the potential member accounts. You can now invoke this API to add accounts by invitation. The invited accounts can either accept or decline the invitation from their GuardDuty accounts. Each invited Amazon Web Services account can choose to accept the invitation from only one Amazon Web Services account. For more information, see Managing GuardDuty accounts by invitation.

      After the invite has been accepted and you choose to disassociate a member account (by using DisassociateMembers) from your account, the details of the member account obtained by invoking CreateMembers, including the associated email addresses, will be retained. This is done so that you can invoke InviteMembers without the need to invoke CreateMembers again. To remove the details associated with a member account, you must also invoke DeleteMembers.

      If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • inviteMembers

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

      Invites Amazon Web Services accounts to become members of an organization administered by the Amazon Web Services account that invokes this API. If you are using Amazon Web Services Organizations to manage your GuardDuty environment, this step is not needed. For more information, see Managing accounts with organizations.

      To invite Amazon Web Services accounts, the first step is to ensure that GuardDuty has been enabled in the potential member accounts. You can now invoke this API to add accounts by invitation. The invited accounts can either accept or decline the invitation from their GuardDuty accounts. Each invited Amazon Web Services account can choose to accept the invitation from only one Amazon Web Services account. For more information, see Managing GuardDuty accounts by invitation.

      After the invite has been accepted and you choose to disassociate a member account (by using DisassociateMembers) from your account, the details of the member account obtained by invoking CreateMembers, including the associated email addresses, will be retained. This is done so that you can invoke InviteMembers without the need to invoke CreateMembers again. To remove the details associated with a member account, you must also invoke DeleteMembers.

      If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.

      When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverage

      default CompletableFuture<ListCoverageResponse> listCoverage(ListCoverageRequest listCoverageRequest)

      Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all resources associated with the active member accounts in your organization.

      Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on their resources.

      Parameters:
      listCoverageRequest -
      Returns:
      A Java Future containing the result of the ListCoverage 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoverage

      default CompletableFuture<ListCoverageResponse> listCoverage(Consumer<ListCoverageRequest.Builder> listCoverageRequest)

      Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all resources associated with the active member accounts in your organization.

      Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on their resources.


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

      Parameters:
      listCoverageRequest - A Consumer that will call methods on ListCoverageRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCoverage 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoveragePaginator

      default ListCoveragePublisher listCoveragePaginator(ListCoverageRequest listCoverageRequest)

      This is a variant of listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest) 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.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListCoverageResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListCoverageResponse 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 listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest) operation.

      Parameters:
      listCoverageRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCoveragePaginator

      default ListCoveragePublisher listCoveragePaginator(Consumer<ListCoverageRequest.Builder> listCoverageRequest)

      This is a variant of listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest) 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.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListCoverageResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListCoverageResponse 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 listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest) operation.


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

      Parameters:
      listCoverageRequest - A Consumer that will call methods on ListCoverageRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDetectors

      default CompletableFuture<ListDetectorsResponse> listDetectors(ListDetectorsRequest listDetectorsRequest)

      Lists detectorIds of all the existing Amazon GuardDuty detector resources.

      Parameters:
      listDetectorsRequest -
      Returns:
      A Java Future containing the result of the ListDetectors 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDetectors

      default CompletableFuture<ListDetectorsResponse> listDetectors(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest)

      Lists detectorIds of all the existing Amazon GuardDuty detector resources.


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

      Parameters:
      listDetectorsRequest - A Consumer that will call methods on ListDetectorsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListDetectors 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDetectors

      default CompletableFuture<ListDetectorsResponse> listDetectors()

      Lists detectorIds of all the existing Amazon GuardDuty detector resources.

      Returns:
      A Java Future containing the result of the ListDetectors 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDetectorsPaginator

      default ListDetectorsPublisher listDetectorsPaginator()

      This is a variant of listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest) 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.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse 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 listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest) 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDetectorsPaginator

      default ListDetectorsPublisher listDetectorsPaginator(ListDetectorsRequest listDetectorsRequest)

      This is a variant of listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest) 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.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse 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 listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest) operation.

      Parameters:
      listDetectorsRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listDetectorsPaginator

      default ListDetectorsPublisher listDetectorsPaginator(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest)

      This is a variant of listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest) 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.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse 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 listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest) operation.


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

      Parameters:
      listDetectorsRequest - A Consumer that will call methods on ListDetectorsRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFilters

      default CompletableFuture<ListFiltersResponse> listFilters(ListFiltersRequest listFiltersRequest)

      Returns a paginated list of the current filters.

      Parameters:
      listFiltersRequest -
      Returns:
      A Java Future containing the result of the ListFilters 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFilters

      default CompletableFuture<ListFiltersResponse> listFilters(Consumer<ListFiltersRequest.Builder> listFiltersRequest)

      Returns a paginated list of the current filters.


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

      Parameters:
      listFiltersRequest - A Consumer that will call methods on ListFiltersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListFilters 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFiltersPaginator

      default ListFiltersPublisher listFiltersPaginator(ListFiltersRequest listFiltersRequest)

      This is a variant of listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest) 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.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListFiltersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListFiltersResponse 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 listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest) operation.

      Parameters:
      listFiltersRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFiltersPaginator

      default ListFiltersPublisher listFiltersPaginator(Consumer<ListFiltersRequest.Builder> listFiltersRequest)

      This is a variant of listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest) 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.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListFiltersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListFiltersResponse 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 listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest) operation.


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

      Parameters:
      listFiltersRequest - A Consumer that will call methods on ListFiltersRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindings

      default CompletableFuture<ListFindingsResponse> listFindings(ListFindingsRequest listFindingsRequest)

      Lists GuardDuty findings for the specified detector ID.

      There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.

      Parameters:
      listFindingsRequest -
      Returns:
      A Java Future containing the result of the ListFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindings

      default CompletableFuture<ListFindingsResponse> listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)

      Lists GuardDuty findings for the specified detector ID.

      There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.


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

      Parameters:
      listFindingsRequest - A Consumer that will call methods on ListFindingsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsPaginator

      default ListFindingsPublisher listFindingsPaginator(ListFindingsRequest listFindingsRequest)

      This is a variant of listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest) 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.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListFindingsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListFindingsResponse 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 listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest) operation.

      Parameters:
      listFindingsRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFindingsPaginator

      default ListFindingsPublisher listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)

      This is a variant of listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest) 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.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListFindingsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListFindingsResponse 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 listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest) operation.


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

      Parameters:
      listFindingsRequest - A Consumer that will call methods on ListFindingsRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIPSets

      default CompletableFuture<ListIpSetsResponse> listIPSets(ListIpSetsRequest listIpSetsRequest)

      Lists the IPSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the IPSets returned are the IPSets from the associated administrator account.

      Parameters:
      listIpSetsRequest -
      Returns:
      A Java Future containing the result of the ListIPSets 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIPSets

      default CompletableFuture<ListIpSetsResponse> listIPSets(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest)

      Lists the IPSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the IPSets returned are the IPSets from the associated administrator account.


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

      Parameters:
      listIpSetsRequest - A Consumer that will call methods on ListIpSetsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListIPSets 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIPSetsPaginator

      default ListIPSetsPublisher listIPSetsPaginator(ListIpSetsRequest listIpSetsRequest)

      This is a variant of listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest) 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.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse 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 listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest) operation.

      Parameters:
      listIpSetsRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listIPSetsPaginator

      default ListIPSetsPublisher listIPSetsPaginator(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest)

      This is a variant of listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest) 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.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse 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 listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest) operation.


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

      Parameters:
      listIpSetsRequest - A Consumer that will call methods on ListIpSetsRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listInvitations

      default CompletableFuture<ListInvitationsResponse> listInvitations(ListInvitationsRequest listInvitationsRequest)

      Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listInvitations

      default CompletableFuture<ListInvitationsResponse> listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)

      Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listInvitations

      default CompletableFuture<ListInvitationsResponse> listInvitations()

      Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listInvitationsPaginator

      default ListInvitationsPublisher listInvitationsPaginator()

      This is a variant of listInvitations(software.amazon.awssdk.services.guardduty.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.guardduty.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.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.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.guardduty.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listInvitationsPaginator

      default ListInvitationsPublisher listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest)

      This is a variant of listInvitations(software.amazon.awssdk.services.guardduty.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.guardduty.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.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.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.guardduty.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listInvitationsPaginator

      default ListInvitationsPublisher listInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)

      This is a variant of listInvitations(software.amazon.awssdk.services.guardduty.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.guardduty.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.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.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.guardduty.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembers

      default CompletableFuture<ListMembersResponse> listMembers(ListMembersRequest listMembersRequest)

      Lists details about all member accounts for the current GuardDuty administrator account.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembers

      default CompletableFuture<ListMembersResponse> listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest)

      Lists details about all member accounts for the current GuardDuty administrator account.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembersPaginator

      default ListMembersPublisher listMembersPaginator(ListMembersRequest listMembersRequest)

      This is a variant of listMembers(software.amazon.awssdk.services.guardduty.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.guardduty.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.guardduty.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListMembersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.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.guardduty.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listMembersPaginator

      default ListMembersPublisher listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest)

      This is a variant of listMembers(software.amazon.awssdk.services.guardduty.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.guardduty.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.guardduty.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListMembersResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.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.guardduty.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOrganizationAdminAccounts

      default CompletableFuture<ListOrganizationAdminAccountsResponse> listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)

      Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOrganizationAdminAccounts

      default CompletableFuture<ListOrganizationAdminAccountsResponse> listOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)

      Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API 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 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOrganizationAdminAccountsPaginator

      default ListOrganizationAdminAccountsPublisher listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)

      This is a variant of listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.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.guardduty.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.guardduty.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.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.guardduty.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listOrganizationAdminAccountsPaginator

      default ListOrganizationAdminAccountsPublisher listOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)

      This is a variant of listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.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.guardduty.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.guardduty.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.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.guardduty.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPublishingDestinations

      default CompletableFuture<ListPublishingDestinationsResponse> listPublishingDestinations(ListPublishingDestinationsRequest listPublishingDestinationsRequest)

      Returns a list of publishing destinations associated with the specified detectorId.

      Parameters:
      listPublishingDestinationsRequest -
      Returns:
      A Java Future containing the result of the ListPublishingDestinations 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPublishingDestinations

      default CompletableFuture<ListPublishingDestinationsResponse> listPublishingDestinations(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest)

      Returns a list of publishing destinations associated with the specified detectorId.


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

      Parameters:
      listPublishingDestinationsRequest - A Consumer that will call methods on ListPublishingDestinationsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListPublishingDestinations 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPublishingDestinationsPaginator

      default ListPublishingDestinationsPublisher listPublishingDestinationsPaginator(ListPublishingDestinationsRequest listPublishingDestinationsRequest)

      This is a variant of listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest) 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.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse 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 listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest) operation.

      Parameters:
      listPublishingDestinationsRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listPublishingDestinationsPaginator

      default ListPublishingDestinationsPublisher listPublishingDestinationsPaginator(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest)

      This is a variant of listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest) 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.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse 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 listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest) operation.


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

      Parameters:
      listPublishingDestinationsRequest - A Consumer that will call methods on ListPublishingDestinationsRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)

      Lists tags for a resource. Tagging is currently supported for detectors, finding filters, IP sets, threat intel sets, and publishing destination, with a limit of 50 tags per resource. When invoked, this operation returns all assigned tags for a given 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.
      • BadRequestException A bad request exception object.
      • AccessDeniedException An access denied exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listTagsForResource

      default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)

      Lists tags for a resource. Tagging is currently supported for detectors, finding filters, IP sets, threat intel sets, and publishing destination, with a limit of 50 tags per resource. When invoked, this operation returns all assigned tags for a given 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.
      • BadRequestException A bad request exception object.
      • AccessDeniedException An access denied exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listThreatIntelSets

      default CompletableFuture<ListThreatIntelSetsResponse> listThreatIntelSets(ListThreatIntelSetsRequest listThreatIntelSetsRequest)

      Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the ThreatIntelSets associated with the administrator account are returned.

      Parameters:
      listThreatIntelSetsRequest -
      Returns:
      A Java Future containing the result of the ListThreatIntelSets 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listThreatIntelSets

      default CompletableFuture<ListThreatIntelSetsResponse> listThreatIntelSets(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest)

      Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the ThreatIntelSets associated with the administrator account are returned.


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

      Parameters:
      listThreatIntelSetsRequest - A Consumer that will call methods on ListThreatIntelSetsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListThreatIntelSets 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listThreatIntelSetsPaginator

      default ListThreatIntelSetsPublisher listThreatIntelSetsPaginator(ListThreatIntelSetsRequest listThreatIntelSetsRequest)

      This is a variant of listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest) 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.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse 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 listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest) operation.

      Parameters:
      listThreatIntelSetsRequest -
      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listThreatIntelSetsPaginator

      default ListThreatIntelSetsPublisher listThreatIntelSetsPaginator(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest)

      This is a variant of listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest) 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.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse 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 listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest) operation.


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

      Parameters:
      listThreatIntelSetsRequest - A Consumer that will call methods on ListThreatIntelSetsRequest.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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startMalwareScan

      default CompletableFuture<StartMalwareScanResponse> startMalwareScan(StartMalwareScanRequest startMalwareScanRequest)

      Initiates the malware scan. Invoking this API will automatically create the Service-linked role in the corresponding account.

      When the malware scan starts, you can use the associated scan ID to track the status of the scan. For more information, see DescribeMalwareScans.

      Parameters:
      startMalwareScanRequest -
      Returns:
      A Java Future containing the result of the StartMalwareScan 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.
      • BadRequestException A bad request exception object.
      • ConflictException A request conflict exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startMalwareScan

      default CompletableFuture<StartMalwareScanResponse> startMalwareScan(Consumer<StartMalwareScanRequest.Builder> startMalwareScanRequest)

      Initiates the malware scan. Invoking this API will automatically create the Service-linked role in the corresponding account.

      When the malware scan starts, you can use the associated scan ID to track the status of the scan. For more information, see DescribeMalwareScans.


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

      Parameters:
      startMalwareScanRequest - A Consumer that will call methods on StartMalwareScanRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartMalwareScan 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.
      • BadRequestException A bad request exception object.
      • ConflictException A request conflict exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startMonitoringMembers

      default CompletableFuture<StartMonitoringMembersResponse> startMonitoringMembers(StartMonitoringMembersRequest startMonitoringMembersRequest)

      Turns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of accounts that you stopped monitoring with the StopMonitoringMembers operation.

      Parameters:
      startMonitoringMembersRequest -
      Returns:
      A Java Future containing the result of the StartMonitoringMembers 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startMonitoringMembers

      default CompletableFuture<StartMonitoringMembersResponse> startMonitoringMembers(Consumer<StartMonitoringMembersRequest.Builder> startMonitoringMembersRequest)

      Turns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of accounts that you stopped monitoring with the StopMonitoringMembers operation.


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

      Parameters:
      startMonitoringMembersRequest - A Consumer that will call methods on StartMonitoringMembersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartMonitoringMembers 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopMonitoringMembers

      default CompletableFuture<StopMonitoringMembersResponse> stopMonitoringMembers(StopMonitoringMembersRequest stopMonitoringMembersRequest)

      Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers operation to restart monitoring for those accounts.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to stop monitoring the member accounts in your organization.

      Parameters:
      stopMonitoringMembersRequest -
      Returns:
      A Java Future containing the result of the StopMonitoringMembers 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopMonitoringMembers

      default CompletableFuture<StopMonitoringMembersResponse> stopMonitoringMembers(Consumer<StopMonitoringMembersRequest.Builder> stopMonitoringMembersRequest)

      Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers operation to restart monitoring for those accounts.

      With autoEnableOrganizationMembers configuration for your organization set to ALL, you'll receive an error if you attempt to stop monitoring the member accounts in your organization.


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

      Parameters:
      stopMonitoringMembersRequest - A Consumer that will call methods on StopMonitoringMembersRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StopMonitoringMembers 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)

      Adds 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.
      • BadRequestException A bad request exception object.
      • AccessDeniedException An access denied exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • tagResource

      default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)

      Adds 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.
      • BadRequestException A bad request exception object.
      • AccessDeniedException An access denied exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • unarchiveFindings

      default CompletableFuture<UnarchiveFindingsResponse> unarchiveFindings(UnarchiveFindingsRequest unarchiveFindingsRequest)

      Unarchives GuardDuty findings specified by the findingIds.

      Parameters:
      unarchiveFindingsRequest -
      Returns:
      A Java Future containing the result of the UnarchiveFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • unarchiveFindings

      default CompletableFuture<UnarchiveFindingsResponse> unarchiveFindings(Consumer<UnarchiveFindingsRequest.Builder> unarchiveFindingsRequest)

      Unarchives GuardDuty findings specified by the findingIds.


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

      Parameters:
      unarchiveFindingsRequest - A Consumer that will call methods on UnarchiveFindingsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UnarchiveFindings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)

      Removes 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.
      • BadRequestException A bad request exception object.
      • AccessDeniedException An access denied exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • untagResource

      default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)

      Removes 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.
      • BadRequestException A bad request exception object.
      • AccessDeniedException An access denied exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateDetector

      default CompletableFuture<UpdateDetectorResponse> updateDetector(UpdateDetectorRequest updateDetectorRequest)

      Updates the GuardDuty detector specified by the detector ID.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      updateDetectorRequest -
      Returns:
      A Java Future containing the result of the UpdateDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateDetector

      default CompletableFuture<UpdateDetectorResponse> updateDetector(Consumer<UpdateDetectorRequest.Builder> updateDetectorRequest)

      Updates the GuardDuty detector specified by the detector ID.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      updateDetectorRequest - A Consumer that will call methods on UpdateDetectorRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateDetector 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFilter

      default CompletableFuture<UpdateFilterResponse> updateFilter(UpdateFilterRequest updateFilterRequest)

      Updates the filter specified by the filter name.

      Parameters:
      updateFilterRequest -
      Returns:
      A Java Future containing the result of the UpdateFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFilter

      default CompletableFuture<UpdateFilterResponse> updateFilter(Consumer<UpdateFilterRequest.Builder> updateFilterRequest)

      Updates the filter specified by the filter name.


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

      Parameters:
      updateFilterRequest - A Consumer that will call methods on UpdateFilterRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateFilter 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFindingsFeedback

      default CompletableFuture<UpdateFindingsFeedbackResponse> updateFindingsFeedback(UpdateFindingsFeedbackRequest updateFindingsFeedbackRequest)

      Marks the specified GuardDuty findings as useful or not useful.

      Parameters:
      updateFindingsFeedbackRequest -
      Returns:
      A Java Future containing the result of the UpdateFindingsFeedback 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFindingsFeedback

      default CompletableFuture<UpdateFindingsFeedbackResponse> updateFindingsFeedback(Consumer<UpdateFindingsFeedbackRequest.Builder> updateFindingsFeedbackRequest)

      Marks the specified GuardDuty findings as useful or not useful.


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

      Parameters:
      updateFindingsFeedbackRequest - A Consumer that will call methods on UpdateFindingsFeedbackRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateFindingsFeedback 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateIPSet

      default CompletableFuture<UpdateIpSetResponse> updateIPSet(UpdateIpSetRequest updateIpSetRequest)

      Updates the IPSet specified by the IPSet ID.

      Parameters:
      updateIpSetRequest -
      Returns:
      A Java Future containing the result of the UpdateIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateIPSet

      default CompletableFuture<UpdateIpSetResponse> updateIPSet(Consumer<UpdateIpSetRequest.Builder> updateIpSetRequest)

      Updates the IPSet specified by the IPSet ID.


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

      Parameters:
      updateIpSetRequest - A Consumer that will call methods on UpdateIpSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateIPSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateMalwareScanSettings

      default CompletableFuture<UpdateMalwareScanSettingsResponse> updateMalwareScanSettings(UpdateMalwareScanSettingsRequest updateMalwareScanSettingsRequest)

      Updates the malware scan settings.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      updateMalwareScanSettingsRequest -
      Returns:
      A Java Future containing the result of the UpdateMalwareScanSettings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateMalwareScanSettings

      default CompletableFuture<UpdateMalwareScanSettingsResponse> updateMalwareScanSettings(Consumer<UpdateMalwareScanSettingsRequest.Builder> updateMalwareScanSettingsRequest)

      Updates the malware scan settings.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      updateMalwareScanSettingsRequest - A Consumer that will call methods on UpdateMalwareScanSettingsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateMalwareScanSettings 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateMemberDetectors

      default CompletableFuture<UpdateMemberDetectorsResponse> updateMemberDetectors(UpdateMemberDetectorsRequest updateMemberDetectorsRequest)

      Contains information on member accounts to be updated.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      Parameters:
      updateMemberDetectorsRequest -
      Returns:
      A Java Future containing the result of the UpdateMemberDetectors 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateMemberDetectors

      default CompletableFuture<UpdateMemberDetectorsResponse> updateMemberDetectors(Consumer<UpdateMemberDetectorsRequest.Builder> updateMemberDetectorsRequest)

      Contains information on member accounts to be updated.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


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

      Parameters:
      updateMemberDetectorsRequest - A Consumer that will call methods on UpdateMemberDetectorsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateMemberDetectors 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateOrganizationConfiguration

      default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest)

      Configures the delegated administrator account with the provided values. You must provide a value for either autoEnableOrganizationMembers or autoEnable, but not both.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.

      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateOrganizationConfiguration

      default CompletableFuture<UpdateOrganizationConfigurationResponse> updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest)

      Configures the delegated administrator account with the provided values. You must provide a value for either autoEnableOrganizationMembers or autoEnable, but not both.

      Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.

      There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.


      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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updatePublishingDestination

      default CompletableFuture<UpdatePublishingDestinationResponse> updatePublishingDestination(UpdatePublishingDestinationRequest updatePublishingDestinationRequest)

      Updates information about the publishing destination specified by the destinationId.

      Parameters:
      updatePublishingDestinationRequest -
      Returns:
      A Java Future containing the result of the UpdatePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updatePublishingDestination

      default CompletableFuture<UpdatePublishingDestinationResponse> updatePublishingDestination(Consumer<UpdatePublishingDestinationRequest.Builder> updatePublishingDestinationRequest)

      Updates information about the publishing destination specified by the destinationId.


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

      Parameters:
      updatePublishingDestinationRequest - A Consumer that will call methods on UpdatePublishingDestinationRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdatePublishingDestination 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateThreatIntelSet

      default CompletableFuture<UpdateThreatIntelSetResponse> updateThreatIntelSet(UpdateThreatIntelSetRequest updateThreatIntelSetRequest)

      Updates the ThreatIntelSet specified by the ThreatIntelSet ID.

      Parameters:
      updateThreatIntelSetRequest -
      Returns:
      A Java Future containing the result of the UpdateThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateThreatIntelSet

      default CompletableFuture<UpdateThreatIntelSetResponse> updateThreatIntelSet(Consumer<UpdateThreatIntelSetRequest.Builder> updateThreatIntelSetRequest)

      Updates the ThreatIntelSet specified by the ThreatIntelSet ID.


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

      Parameters:
      updateThreatIntelSetRequest - A Consumer that will call methods on UpdateThreatIntelSetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateThreatIntelSet 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.
      • BadRequestException A bad request exception object.
      • InternalServerErrorException An internal server error exception object.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • GuardDutyException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • serviceClientConfiguration

      default GuardDutyServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static GuardDutyAsyncClient create()
      Create a GuardDutyAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      static GuardDutyAsyncClientBuilder builder()
      Create a builder that can be used to configure and create a GuardDutyAsyncClient.