Interface GuardDutyAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionacceptAdministratorInvitation(Consumer<AcceptAdministratorInvitationRequest.Builder> acceptAdministratorInvitationRequest) Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.acceptAdministratorInvitation(AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest) Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest) Deprecated.This operation is deprecated, use AcceptAdministratorInvitation insteadacceptInvitation(AcceptInvitationRequest acceptInvitationRequest) Deprecated.This operation is deprecated, use AcceptAdministratorInvitation insteaddefault CompletableFuture<ArchiveFindingsResponse> archiveFindings(Consumer<ArchiveFindingsRequest.Builder> archiveFindingsRequest) Archives GuardDuty findings that are specified by the list of finding IDs.default CompletableFuture<ArchiveFindingsResponse> archiveFindings(ArchiveFindingsRequest archiveFindingsRequest) Archives GuardDuty findings that are specified by the list of finding IDs.static GuardDutyAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aGuardDutyAsyncClient.static GuardDutyAsyncClientcreate()Create aGuardDutyAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateDetectorResponse> createDetector(Consumer<CreateDetectorRequest.Builder> createDetectorRequest) Creates a single GuardDuty detector.default CompletableFuture<CreateDetectorResponse> createDetector(CreateDetectorRequest createDetectorRequest) Creates a single GuardDuty detector.default CompletableFuture<CreateFilterResponse> createFilter(Consumer<CreateFilterRequest.Builder> createFilterRequest) Creates a filter using the specified finding criteria.default CompletableFuture<CreateFilterResponse> createFilter(CreateFilterRequest createFilterRequest) Creates a filter using the specified finding criteria.default CompletableFuture<CreateIpSetResponse> createIPSet(Consumer<CreateIpSetRequest.Builder> createIpSetRequest) Creates a new IPSet, which is called a trusted IP list in the console user interface.default CompletableFuture<CreateIpSetResponse> createIPSet(CreateIpSetRequest createIpSetRequest) Creates a new IPSet, which is called a trusted IP list in the console user interface.createMalwareProtectionPlan(Consumer<CreateMalwareProtectionPlanRequest.Builder> createMalwareProtectionPlanRequest) Creates a new Malware Protection plan for the protected resource.createMalwareProtectionPlan(CreateMalwareProtectionPlanRequest createMalwareProtectionPlanRequest) Creates a new Malware Protection plan for the protected resource.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.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.createPublishingDestination(Consumer<CreatePublishingDestinationRequest.Builder> createPublishingDestinationRequest) Creates a publishing destination where you can export your GuardDuty findings.createPublishingDestination(CreatePublishingDestinationRequest createPublishingDestinationRequest) Creates a publishing destination where you can export your GuardDuty findings.createSampleFindings(Consumer<CreateSampleFindingsRequest.Builder> createSampleFindingsRequest) Generates sample findings of types specified by the list of finding types.createSampleFindings(CreateSampleFindingsRequest createSampleFindingsRequest) Generates sample findings of types specified by the list of finding types.createThreatIntelSet(Consumer<CreateThreatIntelSetRequest.Builder> createThreatIntelSetRequest) Creates a new ThreatIntelSet.createThreatIntelSet(CreateThreatIntelSetRequest createThreatIntelSetRequest) Creates a new ThreatIntelSet.declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest) Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.declineInvitations(DeclineInvitationsRequest declineInvitationsRequest) Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.default CompletableFuture<DeleteDetectorResponse> deleteDetector(Consumer<DeleteDetectorRequest.Builder> deleteDetectorRequest) Deletes an Amazon GuardDuty detector that is specified by the detector ID.default CompletableFuture<DeleteDetectorResponse> deleteDetector(DeleteDetectorRequest deleteDetectorRequest) Deletes an Amazon GuardDuty detector that is specified by the detector ID.default CompletableFuture<DeleteFilterResponse> deleteFilter(Consumer<DeleteFilterRequest.Builder> deleteFilterRequest) Deletes the filter specified by the filter name.default CompletableFuture<DeleteFilterResponse> deleteFilter(DeleteFilterRequest deleteFilterRequest) Deletes the filter specified by the filter name.deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest) Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest) Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.default CompletableFuture<DeleteIpSetResponse> deleteIPSet(Consumer<DeleteIpSetRequest.Builder> deleteIpSetRequest) Deletes the IPSet specified by theipSetId.default CompletableFuture<DeleteIpSetResponse> deleteIPSet(DeleteIpSetRequest deleteIpSetRequest) Deletes the IPSet specified by theipSetId.deleteMalwareProtectionPlan(Consumer<DeleteMalwareProtectionPlanRequest.Builder> deleteMalwareProtectionPlanRequest) Deletes the Malware Protection plan ID associated with the Malware Protection plan resource.deleteMalwareProtectionPlan(DeleteMalwareProtectionPlanRequest deleteMalwareProtectionPlanRequest) Deletes the Malware Protection plan ID associated with the Malware Protection plan resource.default CompletableFuture<DeleteMembersResponse> deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest) Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.default CompletableFuture<DeleteMembersResponse> deleteMembers(DeleteMembersRequest deleteMembersRequest) Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.deletePublishingDestination(Consumer<DeletePublishingDestinationRequest.Builder> deletePublishingDestinationRequest) Deletes the publishing definition with the specifieddestinationId.deletePublishingDestination(DeletePublishingDestinationRequest deletePublishingDestinationRequest) Deletes the publishing definition with the specifieddestinationId.deleteThreatIntelSet(Consumer<DeleteThreatIntelSetRequest.Builder> deleteThreatIntelSetRequest) Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.deleteThreatIntelSet(DeleteThreatIntelSetRequest deleteThreatIntelSetRequest) Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.describeMalwareScans(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest) Returns a list of malware scans.describeMalwareScans(DescribeMalwareScansRequest describeMalwareScansRequest) Returns a list of malware scans.default DescribeMalwareScansPublisherdescribeMalwareScansPaginator(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest) This is a variant ofdescribeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)operation.default DescribeMalwareScansPublisherdescribeMalwareScansPaginator(DescribeMalwareScansRequest describeMalwareScansRequest) This is a variant ofdescribeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)operation.describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest) Returns information about the account selected as the delegated administrator for GuardDuty.describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) Returns information about the account selected as the delegated administrator for GuardDuty.describeOrganizationConfigurationPaginator(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest) This is a variant ofdescribeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)operation.describeOrganizationConfigurationPaginator(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) This is a variant ofdescribeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)operation.describePublishingDestination(Consumer<DescribePublishingDestinationRequest.Builder> describePublishingDestinationRequest) Returns information about the publishing destination specified by the provideddestinationId.describePublishingDestination(DescribePublishingDestinationRequest describePublishingDestinationRequest) Returns information about the publishing destination specified by the provideddestinationId.disableOrganizationAdminAccount(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest) Removes the existing GuardDuty delegated administrator of the organization.disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest) Removes the existing GuardDuty delegated administrator of the organization.disassociateFromAdministratorAccount(Consumer<DisassociateFromAdministratorAccountRequest.Builder> disassociateFromAdministratorAccountRequest) Disassociates the current GuardDuty member account from its administrator account.disassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest) Disassociates the current GuardDuty member account from its administrator account.disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest) Deprecated.This operation is deprecated, use DisassociateFromAdministratorAccount insteaddisassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest) Deprecated.This operation is deprecated, use DisassociateFromAdministratorAccount insteaddisassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest) Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.disassociateMembers(DisassociateMembersRequest disassociateMembersRequest) Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.enableOrganizationAdminAccount(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest) Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator.enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest) Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator.getAdministratorAccount(Consumer<GetAdministratorAccountRequest.Builder> getAdministratorAccountRequest) Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.getAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest) Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.getCoverageStatistics(Consumer<GetCoverageStatisticsRequest.Builder> getCoverageStatisticsRequest) Retrieves aggregated statistics for your account.getCoverageStatistics(GetCoverageStatisticsRequest getCoverageStatisticsRequest) Retrieves aggregated statistics for your account.default CompletableFuture<GetDetectorResponse> getDetector(Consumer<GetDetectorRequest.Builder> getDetectorRequest) Retrieves a GuardDuty detector specified by the detectorId.default CompletableFuture<GetDetectorResponse> getDetector(GetDetectorRequest getDetectorRequest) Retrieves a GuardDuty detector specified by the detectorId.default CompletableFuture<GetFilterResponse> getFilter(Consumer<GetFilterRequest.Builder> getFilterRequest) Returns the details of the filter specified by the filter name.default CompletableFuture<GetFilterResponse> getFilter(GetFilterRequest getFilterRequest) Returns the details of the filter specified by the filter name.default CompletableFuture<GetFindingsResponse> getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest) Describes Amazon GuardDuty findings specified by finding IDs.default CompletableFuture<GetFindingsResponse> getFindings(GetFindingsRequest getFindingsRequest) Describes Amazon GuardDuty findings specified by finding IDs.getFindingsStatistics(Consumer<GetFindingsStatisticsRequest.Builder> getFindingsStatisticsRequest) Lists GuardDuty findings statistics for the specified detector ID.getFindingsStatistics(GetFindingsStatisticsRequest getFindingsStatisticsRequest) Lists GuardDuty findings statistics for the specified detector ID.Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.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.getInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest) Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.default CompletableFuture<GetIpSetResponse> getIPSet(Consumer<GetIpSetRequest.Builder> getIpSetRequest) Retrieves the IPSet specified by theipSetId.default CompletableFuture<GetIpSetResponse> getIPSet(GetIpSetRequest getIpSetRequest) Retrieves the IPSet specified by theipSetId.getMalwareProtectionPlan(Consumer<GetMalwareProtectionPlanRequest.Builder> getMalwareProtectionPlanRequest) Retrieves the Malware Protection plan details associated with a Malware Protection plan ID.getMalwareProtectionPlan(GetMalwareProtectionPlanRequest getMalwareProtectionPlanRequest) Retrieves the Malware Protection plan details associated with a Malware Protection plan ID.getMalwareScanSettings(Consumer<GetMalwareScanSettingsRequest.Builder> getMalwareScanSettingsRequest) Returns the details of the malware scan settings.getMalwareScanSettings(GetMalwareScanSettingsRequest getMalwareScanSettingsRequest) Returns the details of the malware scan settings.getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest) Deprecated.This operation is deprecated, use GetAdministratorAccount insteadgetMasterAccount(GetMasterAccountRequest getMasterAccountRequest) Deprecated.This operation is deprecated, use GetAdministratorAccount insteadgetMemberDetectors(Consumer<GetMemberDetectorsRequest.Builder> getMemberDetectorsRequest) Describes which data sources are enabled for the member account's detector.getMemberDetectors(GetMemberDetectorsRequest getMemberDetectorsRequest) Describes which data sources are enabled for the member account's detector.default CompletableFuture<GetMembersResponse> getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest) Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.default CompletableFuture<GetMembersResponse> getMembers(GetMembersRequest getMembersRequest) Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.getOrganizationStatistics(Consumer<GetOrganizationStatisticsRequest.Builder> getOrganizationStatisticsRequest) Retrieves how many active member accounts have each feature enabled within GuardDuty.getOrganizationStatistics(GetOrganizationStatisticsRequest getOrganizationStatisticsRequest) Retrieves how many active member accounts have each feature enabled within GuardDuty.getRemainingFreeTrialDays(Consumer<GetRemainingFreeTrialDaysRequest.Builder> getRemainingFreeTrialDaysRequest) Provides the number of days left for each data source used in the free trial period.getRemainingFreeTrialDays(GetRemainingFreeTrialDaysRequest getRemainingFreeTrialDaysRequest) Provides the number of days left for each data source used in the free trial period.getThreatIntelSet(Consumer<GetThreatIntelSetRequest.Builder> getThreatIntelSetRequest) Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.getThreatIntelSet(GetThreatIntelSetRequest getThreatIntelSetRequest) Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.getUsageStatistics(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest) Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID.getUsageStatistics(GetUsageStatisticsRequest getUsageStatisticsRequest) Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID.default GetUsageStatisticsPublishergetUsageStatisticsPaginator(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest) This is a variant ofgetUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)operation.default GetUsageStatisticsPublishergetUsageStatisticsPaginator(GetUsageStatisticsRequest getUsageStatisticsRequest) This is a variant ofgetUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)operation.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.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.default CompletableFuture<ListCoverageResponse> listCoverage(Consumer<ListCoverageRequest.Builder> listCoverageRequest) Lists coverage details for your GuardDuty account.default CompletableFuture<ListCoverageResponse> listCoverage(ListCoverageRequest listCoverageRequest) Lists coverage details for your GuardDuty account.default ListCoveragePublisherlistCoveragePaginator(Consumer<ListCoverageRequest.Builder> listCoverageRequest) This is a variant oflistCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)operation.default ListCoveragePublisherlistCoveragePaginator(ListCoverageRequest listCoverageRequest) This is a variant oflistCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)operation.default CompletableFuture<ListDetectorsResponse> Lists detectorIds of all the existing Amazon GuardDuty detector resources.default CompletableFuture<ListDetectorsResponse> listDetectors(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest) Lists detectorIds of all the existing Amazon GuardDuty detector resources.default CompletableFuture<ListDetectorsResponse> listDetectors(ListDetectorsRequest listDetectorsRequest) Lists detectorIds of all the existing Amazon GuardDuty detector resources.default ListDetectorsPublisherThis is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation.default ListDetectorsPublisherlistDetectorsPaginator(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest) This is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation.default ListDetectorsPublisherlistDetectorsPaginator(ListDetectorsRequest listDetectorsRequest) This is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation.default CompletableFuture<ListFiltersResponse> listFilters(Consumer<ListFiltersRequest.Builder> listFiltersRequest) Returns a paginated list of the current filters.default CompletableFuture<ListFiltersResponse> listFilters(ListFiltersRequest listFiltersRequest) Returns a paginated list of the current filters.default ListFiltersPublisherlistFiltersPaginator(Consumer<ListFiltersRequest.Builder> listFiltersRequest) This is a variant oflistFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)operation.default ListFiltersPublisherlistFiltersPaginator(ListFiltersRequest listFiltersRequest) This is a variant oflistFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)operation.default CompletableFuture<ListFindingsResponse> listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest) Lists GuardDuty findings for the specified detector ID.default CompletableFuture<ListFindingsResponse> listFindings(ListFindingsRequest listFindingsRequest) Lists GuardDuty findings for the specified detector ID.default ListFindingsPublisherlistFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest) This is a variant oflistFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)operation.default ListFindingsPublisherlistFindingsPaginator(ListFindingsRequest listFindingsRequest) This is a variant oflistFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)operation.default CompletableFuture<ListInvitationsResponse> Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.default CompletableFuture<ListInvitationsResponse> listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.default CompletableFuture<ListInvitationsResponse> listInvitations(ListInvitationsRequest listInvitationsRequest) Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.default ListInvitationsPublisherThis is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation.default ListInvitationsPublisherlistInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) This is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation.default ListInvitationsPublisherlistInvitationsPaginator(ListInvitationsRequest listInvitationsRequest) This is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation.default CompletableFuture<ListIpSetsResponse> listIPSets(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest) Lists the IPSets of the GuardDuty service specified by the detector ID.default CompletableFuture<ListIpSetsResponse> listIPSets(ListIpSetsRequest listIpSetsRequest) Lists the IPSets of the GuardDuty service specified by the detector ID.default ListIPSetsPublisherlistIPSetsPaginator(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest) This is a variant oflistIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)operation.default ListIPSetsPublisherlistIPSetsPaginator(ListIpSetsRequest listIpSetsRequest) This is a variant oflistIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)operation.listMalwareProtectionPlans(Consumer<ListMalwareProtectionPlansRequest.Builder> listMalwareProtectionPlansRequest) Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account.listMalwareProtectionPlans(ListMalwareProtectionPlansRequest listMalwareProtectionPlansRequest) Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account.default CompletableFuture<ListMembersResponse> listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest) Lists details about all member accounts for the current GuardDuty administrator account.default CompletableFuture<ListMembersResponse> listMembers(ListMembersRequest listMembersRequest) Lists details about all member accounts for the current GuardDuty administrator account.default ListMembersPublisherlistMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest) This is a variant oflistMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)operation.default ListMembersPublisherlistMembersPaginator(ListMembersRequest listMembersRequest) This is a variant oflistMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)operation.listOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest) Lists the accounts designated as GuardDuty delegated administrators.listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) Lists the accounts designated as GuardDuty delegated administrators.listOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest) This is a variant oflistOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)operation.listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) This is a variant oflistOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)operation.listPublishingDestinations(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest) Returns a list of publishing destinations associated with the specifieddetectorId.listPublishingDestinations(ListPublishingDestinationsRequest listPublishingDestinationsRequest) Returns a list of publishing destinations associated with the specifieddetectorId.listPublishingDestinationsPaginator(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest) This is a variant oflistPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)operation.listPublishingDestinationsPaginator(ListPublishingDestinationsRequest listPublishingDestinationsRequest) This is a variant oflistPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Lists tags for a resource.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Lists tags for a resource.listThreatIntelSets(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest) Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID.listThreatIntelSets(ListThreatIntelSetsRequest listThreatIntelSetsRequest) Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID.default ListThreatIntelSetsPublisherlistThreatIntelSetsPaginator(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest) This is a variant oflistThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)operation.default ListThreatIntelSetsPublisherlistThreatIntelSetsPaginator(ListThreatIntelSetsRequest listThreatIntelSetsRequest) This is a variant oflistThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)operation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartMalwareScan(Consumer<StartMalwareScanRequest.Builder> startMalwareScanRequest) Initiates the malware scan.startMalwareScan(StartMalwareScanRequest startMalwareScanRequest) Initiates the malware scan.startMonitoringMembers(Consumer<StartMonitoringMembersRequest.Builder> startMonitoringMembersRequest) Turns on GuardDuty monitoring of the specified member accounts.startMonitoringMembers(StartMonitoringMembersRequest startMonitoringMembersRequest) Turns on GuardDuty monitoring of the specified member accounts.stopMonitoringMembers(Consumer<StopMonitoringMembersRequest.Builder> stopMonitoringMembersRequest) Stops GuardDuty monitoring for the specified member accounts.stopMonitoringMembers(StopMonitoringMembersRequest stopMonitoringMembersRequest) Stops GuardDuty monitoring for the specified member accounts.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to a resource.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds tags to a resource.unarchiveFindings(Consumer<UnarchiveFindingsRequest.Builder> unarchiveFindingsRequest) Unarchives GuardDuty findings specified by thefindingIds.unarchiveFindings(UnarchiveFindingsRequest unarchiveFindingsRequest) Unarchives GuardDuty findings specified by thefindingIds.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from a resource.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from a resource.default CompletableFuture<UpdateDetectorResponse> updateDetector(Consumer<UpdateDetectorRequest.Builder> updateDetectorRequest) Updates the GuardDuty detector specified by the detector ID.default CompletableFuture<UpdateDetectorResponse> updateDetector(UpdateDetectorRequest updateDetectorRequest) Updates the GuardDuty detector specified by the detector ID.default CompletableFuture<UpdateFilterResponse> updateFilter(Consumer<UpdateFilterRequest.Builder> updateFilterRequest) Updates the filter specified by the filter name.default CompletableFuture<UpdateFilterResponse> updateFilter(UpdateFilterRequest updateFilterRequest) Updates the filter specified by the filter name.updateFindingsFeedback(Consumer<UpdateFindingsFeedbackRequest.Builder> updateFindingsFeedbackRequest) Marks the specified GuardDuty findings as useful or not useful.updateFindingsFeedback(UpdateFindingsFeedbackRequest updateFindingsFeedbackRequest) Marks the specified GuardDuty findings as useful or not useful.default CompletableFuture<UpdateIpSetResponse> updateIPSet(Consumer<UpdateIpSetRequest.Builder> updateIpSetRequest) Updates the IPSet specified by the IPSet ID.default CompletableFuture<UpdateIpSetResponse> updateIPSet(UpdateIpSetRequest updateIpSetRequest) Updates the IPSet specified by the IPSet ID.updateMalwareProtectionPlan(Consumer<UpdateMalwareProtectionPlanRequest.Builder> updateMalwareProtectionPlanRequest) Updates an existing Malware Protection plan resource.updateMalwareProtectionPlan(UpdateMalwareProtectionPlanRequest updateMalwareProtectionPlanRequest) Updates an existing Malware Protection plan resource.updateMalwareScanSettings(Consumer<UpdateMalwareScanSettingsRequest.Builder> updateMalwareScanSettingsRequest) Updates the malware scan settings.updateMalwareScanSettings(UpdateMalwareScanSettingsRequest updateMalwareScanSettingsRequest) Updates the malware scan settings.updateMemberDetectors(Consumer<UpdateMemberDetectorsRequest.Builder> updateMemberDetectorsRequest) Contains information on member accounts to be updated.updateMemberDetectors(UpdateMemberDetectorsRequest updateMemberDetectorsRequest) Contains information on member accounts to be updated.updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest) Configures the delegated administrator account with the provided values.updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) Configures the delegated administrator account with the provided values.updatePublishingDestination(Consumer<UpdatePublishingDestinationRequest.Builder> updatePublishingDestinationRequest) Updates information about the publishing destination specified by thedestinationId.updatePublishingDestination(UpdatePublishingDestinationRequest updatePublishingDestinationRequest) Updates information about the publishing destination specified by thedestinationId.updateThreatIntelSet(Consumer<UpdateThreatIntelSetRequest.Builder> updateThreatIntelSetRequest) Updates the ThreatIntelSet specified by the ThreatIntelSet ID.updateThreatIntelSet(UpdateThreatIntelSetRequest updateThreatIntelSetRequest) Updates the ThreatIntelSet specified by the ThreatIntelSet ID.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
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 invokeThrowable.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.Builderavoiding the need to create one manually viaAcceptAdministratorInvitationRequest.builder()- Parameters:
acceptAdministratorInvitationRequest- AConsumerthat will call methods onAcceptAdministratorInvitationRequest.Builderto 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 invokeThrowable.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 insteadAccepts 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 invokeThrowable.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(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest) Deprecated.This operation is deprecated, use AcceptAdministratorInvitation insteadAccepts the invitation to be monitored by a GuardDuty administrator account.
This is a convenience which creates an instance of the
AcceptInvitationRequest.Builderavoiding the need to create one manually viaAcceptInvitationRequest.builder()- Parameters:
acceptInvitationRequest- AConsumerthat will call methods onAcceptInvitationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaArchiveFindingsRequest.builder()- Parameters:
archiveFindingsRequest- AConsumerthat will call methods onArchiveFindingsRequest.Builderto 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 invokeThrowable.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 toRUNTIME_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 toRUNTIME_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 invokeThrowable.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 toRUNTIME_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 toRUNTIME_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.Builderavoiding the need to create one manually viaCreateDetectorRequest.builder()- Parameters:
createDetectorRequest- AConsumerthat will call methods onCreateDetectorRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaCreateFilterRequest.builder()- Parameters:
createFilterRequest- AConsumerthat will call methods onCreateFilterRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaCreateIpSetRequest.builder()- Parameters:
createIpSetRequest- AConsumerthat will call methods onCreateIpSetRequest.Builderto 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 invokeThrowable.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:
-
createMalwareProtectionPlan
default CompletableFuture<CreateMalwareProtectionPlanResponse> createMalwareProtectionPlan(CreateMalwareProtectionPlanRequest createMalwareProtectionPlanRequest) Creates a new Malware Protection plan for the protected resource.
When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more information, see Amazon Web Services service terms for GuardDuty Malware Protection.
- Parameters:
createMalwareProtectionPlanRequest-- Returns:
- A Java Future containing the result of the CreateMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- BadRequestException A bad request exception object.
- AccessDeniedException An access denied 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:
-
createMalwareProtectionPlan
default CompletableFuture<CreateMalwareProtectionPlanResponse> createMalwareProtectionPlan(Consumer<CreateMalwareProtectionPlanRequest.Builder> createMalwareProtectionPlanRequest) Creates a new Malware Protection plan for the protected resource.
When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection apply. For more information, see Amazon Web Services service terms for GuardDuty Malware Protection.
This is a convenience which creates an instance of the
CreateMalwareProtectionPlanRequest.Builderavoiding the need to create one manually viaCreateMalwareProtectionPlanRequest.builder()- Parameters:
createMalwareProtectionPlanRequest- AConsumerthat will call methods onCreateMalwareProtectionPlanRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- BadRequestException A bad request exception object.
- AccessDeniedException An access denied 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:
-
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
CreateMemberswill 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 invokeThrowable.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
CreateMemberswill 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.Builderavoiding the need to create one manually viaCreateMembersRequest.builder()- Parameters:
createMembersRequest- AConsumerthat will call methods onCreateMembersRequest.Builderto 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 invokeThrowable.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 where you can export your GuardDuty findings. Before you start exporting the findings, the destination resource must exist.
- 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 invokeThrowable.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 where you can export your GuardDuty findings. Before you start exporting the findings, the destination resource must exist.
This is a convenience which creates an instance of the
CreatePublishingDestinationRequest.Builderavoiding the need to create one manually viaCreatePublishingDestinationRequest.builder()- Parameters:
createPublishingDestinationRequest- AConsumerthat will call methods onCreatePublishingDestinationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaCreateSampleFindingsRequest.builder()- Parameters:
createSampleFindingsRequest- AConsumerthat will call methods onCreateSampleFindingsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaCreateThreatIntelSetRequest.builder()- Parameters:
createThreatIntelSetRequest- AConsumerthat will call methods onCreateThreatIntelSetRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeclineInvitationsRequest.builder()- Parameters:
declineInvitationsRequest- AConsumerthat will call methods onDeclineInvitationsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeleteDetectorRequest.builder()- Parameters:
deleteDetectorRequest- AConsumerthat will call methods onDeleteDetectorRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeleteFilterRequest.builder()- Parameters:
deleteFilterRequest- AConsumerthat will call methods onDeleteFilterRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeleteIpSetRequest.builder()- Parameters:
deleteIpSetRequest- AConsumerthat will call methods onDeleteIpSetRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeleteInvitationsRequest.builder()- Parameters:
deleteInvitationsRequest- AConsumerthat will call methods onDeleteInvitationsRequest.Builderto 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 invokeThrowable.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:
-
deleteMalwareProtectionPlan
default CompletableFuture<DeleteMalwareProtectionPlanResponse> deleteMalwareProtectionPlan(DeleteMalwareProtectionPlanRequest deleteMalwareProtectionPlanRequest) Deletes the Malware Protection plan ID associated with the Malware Protection plan resource. Use this API only when you no longer want to protect the resource associated with this Malware Protection plan ID.
- Parameters:
deleteMalwareProtectionPlanRequest-- Returns:
- A Java Future containing the result of the DeleteMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.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.
- ResourceNotFoundException The requested resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can 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:
-
deleteMalwareProtectionPlan
default CompletableFuture<DeleteMalwareProtectionPlanResponse> deleteMalwareProtectionPlan(Consumer<DeleteMalwareProtectionPlanRequest.Builder> deleteMalwareProtectionPlanRequest) Deletes the Malware Protection plan ID associated with the Malware Protection plan resource. Use this API only when you no longer want to protect the resource associated with this Malware Protection plan ID.
This is a convenience which creates an instance of the
DeleteMalwareProtectionPlanRequest.Builderavoiding the need to create one manually viaDeleteMalwareProtectionPlanRequest.builder()- Parameters:
deleteMalwareProtectionPlanRequest- AConsumerthat will call methods onDeleteMalwareProtectionPlanRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.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.
- ResourceNotFoundException The requested resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can 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
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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 invokeThrowable.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
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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.Builderavoiding the need to create one manually viaDeleteMembersRequest.builder()- Parameters:
deleteMembersRequest- AConsumerthat will call methods onDeleteMembersRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeletePublishingDestinationRequest.builder()- Parameters:
deletePublishingDestinationRequest- AConsumerthat will call methods onDeletePublishingDestinationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDeleteThreatIntelSetRequest.builder()- Parameters:
deleteThreatIntelSetRequest- AConsumerthat will call methods onDeleteThreatIntelSetRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDescribeMalwareScansRequest.builder()- Parameters:
describeMalwareScansRequest- AConsumerthat will call methods onDescribeMalwareScansRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaDescribeMalwareScansRequest.builder()- Parameters:
describeMalwareScansRequest- AConsumerthat will call methods onDescribeMalwareScansRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDescribeOrganizationConfigurationRequest.builder()- Parameters:
describeOrganizationConfigurationRequest- AConsumerthat will call methods onDescribeOrganizationConfigurationRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaDescribeOrganizationConfigurationRequest.builder()- Parameters:
describeOrganizationConfigurationRequest- AConsumerthat will call methods onDescribeOrganizationConfigurationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDescribePublishingDestinationRequest.builder()- Parameters:
describePublishingDestinationRequest- AConsumerthat will call methods onDescribePublishingDestinationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaDisableOrganizationAdminAccountRequest.builder()- Parameters:
disableOrganizationAdminAccountRequest- AConsumerthat will call methods onDisableOrganizationAdminAccountRequest.Builderto 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 invokeThrowable.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
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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 invokeThrowable.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
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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.Builderavoiding the need to create one manually viaDisassociateFromAdministratorAccountRequest.builder()- Parameters:
disassociateFromAdministratorAccountRequest- AConsumerthat will call methods onDisassociateFromAdministratorAccountRequest.Builderto 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 invokeThrowable.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 insteadDisassociates 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 invokeThrowable.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 insteadDisassociates 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.Builderavoiding the need to create one manually viaDisassociateFromMasterAccountRequest.builder()- Parameters:
disassociateFromMasterAccountRequest- AConsumerthat will call methods onDisassociateFromMasterAccountRequest.Builderto 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 invokeThrowable.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
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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 invokeThrowable.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
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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.Builderavoiding the need to create one manually viaDisassociateMembersRequest.builder()- Parameters:
disassociateMembersRequest- AConsumerthat will call methods onDisassociateMembersRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaEnableOrganizationAdminAccountRequest.builder()- Parameters:
enableOrganizationAdminAccountRequest- AConsumerthat will call methods onEnableOrganizationAdminAccountRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetAdministratorAccountRequest.builder()- Parameters:
getAdministratorAccountRequest- AConsumerthat will call methods onGetAdministratorAccountRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetCoverageStatisticsRequest.builder()- Parameters:
getCoverageStatisticsRequest- AConsumerthat will call methods onGetCoverageStatisticsRequest.Builderto 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 invokeThrowable.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
Retrieves a 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 invokeThrowable.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 a 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.Builderavoiding the need to create one manually viaGetDetectorRequest.builder()- Parameters:
getDetectorRequest- AConsumerthat will call methods onGetDetectorRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetFilterRequest.builder()- Parameters:
getFilterRequest- AConsumerthat will call methods onGetFilterRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetFindingsRequest.builder()- Parameters:
getFindingsRequest- AConsumerthat will call methods onGetFindingsRequest.Builderto 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 invokeThrowable.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 GuardDuty findings statistics for the specified detector ID.
You must provide either
findingStatisticTypesorgroupByparameter, and not both. You can use themaxResultsandorderByparameters only when usinggroupBy.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 invokeThrowable.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 GuardDuty findings statistics for the specified detector ID.
You must provide either
findingStatisticTypesorgroupByparameter, and not both. You can use themaxResultsandorderByparameters only when usinggroupBy.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.Builderavoiding the need to create one manually viaGetFindingsStatisticsRequest.builder()- Parameters:
getFindingsStatisticsRequest- AConsumerthat will call methods onGetFindingsStatisticsRequest.Builderto 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 invokeThrowable.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.- 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 invokeThrowable.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(Consumer<GetIpSetRequest.Builder> getIpSetRequest) Retrieves the IPSet specified by the
ipSetId.
This is a convenience which creates an instance of the
GetIpSetRequest.Builderavoiding the need to create one manually viaGetIpSetRequest.builder()- Parameters:
getIpSetRequest- AConsumerthat will call methods onGetIpSetRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetInvitationsCountRequest.builder()- Parameters:
getInvitationsCountRequest- AConsumerthat will call methods onGetInvitationsCountRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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:
-
getMalwareProtectionPlan
default CompletableFuture<GetMalwareProtectionPlanResponse> getMalwareProtectionPlan(GetMalwareProtectionPlanRequest getMalwareProtectionPlanRequest) Retrieves the Malware Protection plan details associated with a Malware Protection plan ID.
- Parameters:
getMalwareProtectionPlanRequest-- Returns:
- A Java Future containing the result of the GetMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.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.
- ResourceNotFoundException The requested resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can 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:
-
getMalwareProtectionPlan
default CompletableFuture<GetMalwareProtectionPlanResponse> getMalwareProtectionPlan(Consumer<GetMalwareProtectionPlanRequest.Builder> getMalwareProtectionPlanRequest) Retrieves the Malware Protection plan details associated with a Malware Protection plan ID.
This is a convenience which creates an instance of the
GetMalwareProtectionPlanRequest.Builderavoiding the need to create one manually viaGetMalwareProtectionPlanRequest.builder()- Parameters:
getMalwareProtectionPlanRequest- AConsumerthat will call methods onGetMalwareProtectionPlanRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.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.
- ResourceNotFoundException The requested resource can't be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can 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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetMalwareScanSettingsRequest.builder()- Parameters:
getMalwareScanSettingsRequest- AConsumerthat will call methods onGetMalwareScanSettingsRequest.Builderto 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 invokeThrowable.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 insteadProvides 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 invokeThrowable.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(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest) Deprecated.This operation is deprecated, use GetAdministratorAccount insteadProvides 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.Builderavoiding the need to create one manually viaGetMasterAccountRequest.builder()- Parameters:
getMasterAccountRequest- AConsumerthat will call methods onGetMasterAccountRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetMemberDetectorsRequest.builder()- Parameters:
getMemberDetectorsRequest- AConsumerthat will call methods onGetMemberDetectorsRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetMembersRequest.builder()- Parameters:
getMembersRequest- AConsumerthat will call methods onGetMembersRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetOrganizationStatisticsRequest.builder()- Parameters:
getOrganizationStatisticsRequest- AConsumerthat will call methods onGetOrganizationStatisticsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetRemainingFreeTrialDaysRequest.builder()- Parameters:
getRemainingFreeTrialDaysRequest- AConsumerthat will call methods onGetRemainingFreeTrialDaysRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetThreatIntelSetRequest.builder()- Parameters:
getThreatIntelSetRequest- AConsumerthat will call methods onGetThreatIntelSetRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaGetUsageStatisticsRequest.builder()- Parameters:
getUsageStatisticsRequest- AConsumerthat will call methods onGetUsageStatisticsRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaGetUsageStatisticsRequest.builder()- Parameters:
getUsageStatisticsRequest- AConsumerthat will call methods onGetUsageStatisticsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaInviteMembersRequest.builder()- Parameters:
inviteMembersRequest- AConsumerthat will call methods onInviteMembersRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListCoverageRequest.builder()- Parameters:
listCoverageRequest- AConsumerthat will call methods onListCoverageRequest.Builderto 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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListCoverageRequest.builder()- Parameters:
listCoverageRequest- AConsumerthat will call methods onListCoverageRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListDetectorsRequest.builder()- Parameters:
listDetectorsRequest- AConsumerthat will call methods onListDetectorsRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListDetectorsRequest.builder()- Parameters:
listDetectorsRequest- AConsumerthat will call methods onListDetectorsRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaListFiltersRequest.builder()- Parameters:
listFiltersRequest- AConsumerthat will call methods onListFiltersRequest.Builderto 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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListFiltersRequest.builder()- Parameters:
listFiltersRequest- AConsumerthat will call methods onListFiltersRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto 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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaListIpSetsRequest.builder()- Parameters:
listIpSetsRequest- AConsumerthat will call methods onListIpSetsRequest.Builderto 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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListIpSetsRequest.builder()- Parameters:
listIpSetsRequest- AConsumerthat will call methods onListIpSetsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListInvitationsRequest.builder()- Parameters:
listInvitationsRequest- AConsumerthat will call methods onListInvitationsRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListInvitationsRequest.builder()- Parameters:
listInvitationsRequest- AConsumerthat will call methods onListInvitationsRequest.Builderto 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 invokeThrowable.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:
-
listMalwareProtectionPlans
default CompletableFuture<ListMalwareProtectionPlansResponse> listMalwareProtectionPlans(ListMalwareProtectionPlansRequest listMalwareProtectionPlansRequest) Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account.
- Parameters:
listMalwareProtectionPlansRequest-- Returns:
- A Java Future containing the result of the ListMalwareProtectionPlans operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.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:
-
listMalwareProtectionPlans
default CompletableFuture<ListMalwareProtectionPlansResponse> listMalwareProtectionPlans(Consumer<ListMalwareProtectionPlansRequest.Builder> listMalwareProtectionPlansRequest) Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services account.
This is a convenience which creates an instance of the
ListMalwareProtectionPlansRequest.Builderavoiding the need to create one manually viaListMalwareProtectionPlansRequest.builder()- Parameters:
listMalwareProtectionPlansRequest- AConsumerthat will call methods onListMalwareProtectionPlansRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListMalwareProtectionPlans operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.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:
-
listMembers
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 invokeThrowable.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.Builderavoiding the need to create one manually viaListMembersRequest.builder()- Parameters:
listMembersRequest- AConsumerthat will call methods onListMembersRequest.Builderto 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 invokeThrowable.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
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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListMembersRequest.builder()- Parameters:
listMembersRequest- AConsumerthat will call methods onListMembersRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListOrganizationAdminAccountsRequest.builder()- Parameters:
listOrganizationAdminAccountsRequest- AConsumerthat will call methods onListOrganizationAdminAccountsRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListOrganizationAdminAccountsRequest.builder()- Parameters:
listOrganizationAdminAccountsRequest- AConsumerthat will call methods onListOrganizationAdminAccountsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListPublishingDestinationsRequest.builder()- Parameters:
listPublishingDestinationsRequest- AConsumerthat will call methods onListPublishingDestinationsRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListPublishingDestinationsRequest.builder()- Parameters:
listPublishingDestinationsRequest- AConsumerthat will call methods onListPublishingDestinationsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaListThreatIntelSetsRequest.builder()- Parameters:
listThreatIntelSetsRequest- AConsumerthat will call methods onListThreatIntelSetsRequest.Builderto 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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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 invokeThrowable.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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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) { //... }; });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.Builderavoiding the need to create one manually viaListThreatIntelSetsRequest.builder()- Parameters:
listThreatIntelSetsRequest- AConsumerthat will call methods onListThreatIntelSetsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaStartMalwareScanRequest.builder()- Parameters:
startMalwareScanRequest- AConsumerthat will call methods onStartMalwareScanRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaStartMonitoringMembersRequest.builder()- Parameters:
startMonitoringMembersRequest- AConsumerthat will call methods onStartMonitoringMembersRequest.Builderto 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 invokeThrowable.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
StartMonitoringMembersoperation to restart monitoring for those accounts.With
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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 invokeThrowable.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
StartMonitoringMembersoperation to restart monitoring for those accounts.With
autoEnableOrganizationMembersconfiguration for your organization set toALL, 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.Builderavoiding the need to create one manually viaStopMonitoringMembersRequest.builder()- Parameters:
stopMonitoringMembersRequest- AConsumerthat will call methods onStopMonitoringMembersRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUnarchiveFindingsRequest.builder()- Parameters:
unarchiveFindingsRequest- AConsumerthat will call methods onUnarchiveFindingsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateDetectorRequest.builder()- Parameters:
updateDetectorRequest- AConsumerthat will call methods onUpdateDetectorRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateFilterRequest.builder()- Parameters:
updateFilterRequest- AConsumerthat will call methods onUpdateFilterRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateFindingsFeedbackRequest.builder()- Parameters:
updateFindingsFeedbackRequest- AConsumerthat will call methods onUpdateFindingsFeedbackRequest.Builderto 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 invokeThrowable.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
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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateIpSetRequest.builder()- Parameters:
updateIpSetRequest- AConsumerthat will call methods onUpdateIpSetRequest.Builderto 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 invokeThrowable.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:
-
updateMalwareProtectionPlan
default CompletableFuture<UpdateMalwareProtectionPlanResponse> updateMalwareProtectionPlan(UpdateMalwareProtectionPlanRequest updateMalwareProtectionPlanRequest) Updates an existing Malware Protection plan resource.
- Parameters:
updateMalwareProtectionPlanRequest-- Returns:
- A Java Future containing the result of the UpdateMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- BadRequestException A bad request exception object.
- AccessDeniedException An access denied exception object.
- ResourceNotFoundException The requested resource can't be found.
- 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:
-
updateMalwareProtectionPlan
default CompletableFuture<UpdateMalwareProtectionPlanResponse> updateMalwareProtectionPlan(Consumer<UpdateMalwareProtectionPlanRequest.Builder> updateMalwareProtectionPlanRequest) Updates an existing Malware Protection plan resource.
This is a convenience which creates an instance of the
UpdateMalwareProtectionPlanRequest.Builderavoiding the need to create one manually viaUpdateMalwareProtectionPlanRequest.builder()- Parameters:
updateMalwareProtectionPlanRequest- AConsumerthat will call methods onUpdateMalwareProtectionPlanRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UpdateMalwareProtectionPlan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- BadRequestException A bad request exception object.
- AccessDeniedException An access denied exception object.
- ResourceNotFoundException The requested resource can't be found.
- 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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateMalwareScanSettingsRequest.builder()- Parameters:
updateMalwareScanSettingsRequest- AConsumerthat will call methods onUpdateMalwareScanSettingsRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateMemberDetectorsRequest.builder()- Parameters:
updateMemberDetectorsRequest- AConsumerthat will call methods onUpdateMemberDetectorsRequest.Builderto 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 invokeThrowable.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
autoEnableOrganizationMembersorautoEnable, 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 invokeThrowable.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
autoEnableOrganizationMembersorautoEnable, 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.Builderavoiding the need to create one manually viaUpdateOrganizationConfigurationRequest.builder()- Parameters:
updateOrganizationConfigurationRequest- AConsumerthat will call methods onUpdateOrganizationConfigurationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdatePublishingDestinationRequest.builder()- Parameters:
updatePublishingDestinationRequest- AConsumerthat will call methods onUpdatePublishingDestinationRequest.Builderto 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 invokeThrowable.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 invokeThrowable.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.Builderavoiding the need to create one manually viaUpdateThreatIntelSetRequest.builder()- Parameters:
updateThreatIntelSetRequest- AConsumerthat will call methods onUpdateThreatIntelSetRequest.Builderto 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 invokeThrowable.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
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aGuardDutyAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aGuardDutyAsyncClient.
-