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
Modifier and TypeFieldDescriptionstatic final String
Value 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 GuardDutyAsyncClientBuilder
builder()
Create a builder that can be used to configure and create aGuardDutyAsyncClient
.static GuardDutyAsyncClient
create()
Create aGuardDutyAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and 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.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 to export findings to.createPublishingDestination
(CreatePublishingDestinationRequest createPublishingDestinationRequest) Creates a publishing destination to export findings to.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
.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 DescribeMalwareScansPublisher
describeMalwareScansPaginator
(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest) This is a variant ofdescribeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)
operation.default DescribeMalwareScansPublisher
describeMalwareScansPaginator
(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 an Amazon GuardDuty detector specified by the detectorId.default CompletableFuture
<GetDetectorResponse> getDetector
(GetDetectorRequest getDetectorRequest) Retrieves an Amazon 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 Amazon GuardDuty findings statistics for the specified detector ID.getFindingsStatistics
(GetFindingsStatisticsRequest getFindingsStatisticsRequest) Lists Amazon 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
.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 GetUsageStatisticsPublisher
getUsageStatisticsPaginator
(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest) This is a variant ofgetUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)
operation.default GetUsageStatisticsPublisher
getUsageStatisticsPaginator
(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 ListCoveragePublisher
listCoveragePaginator
(Consumer<ListCoverageRequest.Builder> listCoverageRequest) This is a variant oflistCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)
operation.default ListCoveragePublisher
listCoveragePaginator
(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 ListDetectorsPublisher
This is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)
operation.default ListDetectorsPublisher
listDetectorsPaginator
(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest) This is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)
operation.default ListDetectorsPublisher
listDetectorsPaginator
(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 ListFiltersPublisher
listFiltersPaginator
(Consumer<ListFiltersRequest.Builder> listFiltersRequest) This is a variant oflistFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)
operation.default ListFiltersPublisher
listFiltersPaginator
(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 ListFindingsPublisher
listFindingsPaginator
(Consumer<ListFindingsRequest.Builder> listFindingsRequest) This is a variant oflistFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)
operation.default ListFindingsPublisher
listFindingsPaginator
(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 ListInvitationsPublisher
This is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)
operation.default ListInvitationsPublisher
listInvitationsPaginator
(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) This is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)
operation.default ListInvitationsPublisher
listInvitationsPaginator
(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 ListIPSetsPublisher
listIPSetsPaginator
(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest) This is a variant oflistIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)
operation.default ListIPSetsPublisher
listIPSetsPaginator
(ListIpSetsRequest listIpSetsRequest) This is a variant oflistIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)
operation.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 ListMembersPublisher
listMembersPaginator
(Consumer<ListMembersRequest.Builder> listMembersRequest) This is a variant oflistMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)
operation.default ListMembersPublisher
listMembersPaginator
(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 ListThreatIntelSetsPublisher
listThreatIntelSetsPaginator
(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest) This is a variant oflistThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)
operation.default ListThreatIntelSetsPublisher
listThreatIntelSetsPaginator
(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.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
close
Methods 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.Builder
avoiding the need to create one manually viaAcceptAdministratorInvitationRequest.builder()
- Parameters:
acceptAdministratorInvitationRequest
- AConsumer
that will call methods onAcceptAdministratorInvitationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AcceptAdministratorInvitation operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaAcceptInvitationRequest.builder()
- Parameters:
acceptInvitationRequest
- AConsumer
that will call methods onAcceptInvitationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AcceptInvitation operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaArchiveFindingsRequest.builder()
- Parameters:
archiveFindingsRequest
- AConsumer
that will call methods onArchiveFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ArchiveFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaCreateDetectorRequest.builder()
- Parameters:
createDetectorRequest
- AConsumer
that will call methods onCreateDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaCreateFilterRequest.builder()
- Parameters:
createFilterRequest
- AConsumer
that will call methods onCreateFilterRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateFilter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaCreateIpSetRequest.builder()
- Parameters:
createIpSetRequest
- AConsumer
that will call methods onCreateIpSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateIPSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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(CreateMembersRequest createMembersRequest) Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.
As a delegated administrator, using
CreateMembers
will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration.
If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.
When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.
- Parameters:
createMembersRequest
-- Returns:
- A Java Future containing the result of the CreateMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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
CreateMembers
will enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration.
If you disassociate a member account that was added by invitation, the member account details obtained from this API, including the associated email addresses, will be retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.
When the member accounts added through Organizations are later disassociated, you (administrator) can't invite them by calling the InviteMembers API. You can create an association with these member accounts again only by calling the CreateMembers API.
This is a convenience which creates an instance of the
CreateMembersRequest.Builder
avoiding the need to create one manually viaCreateMembersRequest.builder()
- Parameters:
createMembersRequest
- AConsumer
that will call methods onCreateMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 to export findings to. The resource to export findings to must exist before you use this operation.
- Parameters:
createPublishingDestinationRequest
-- Returns:
- A Java Future containing the result of the CreatePublishingDestination operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 to export findings to. The resource to export findings to must exist before you use this operation.
This is a convenience which creates an instance of the
CreatePublishingDestinationRequest.Builder
avoiding the need to create one manually viaCreatePublishingDestinationRequest.builder()
- Parameters:
createPublishingDestinationRequest
- AConsumer
that will call methods onCreatePublishingDestinationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreatePublishingDestination operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaCreateSampleFindingsRequest.builder()
- Parameters:
createSampleFindingsRequest
- AConsumer
that will call methods onCreateSampleFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateSampleFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaCreateThreatIntelSetRequest.builder()
- Parameters:
createThreatIntelSetRequest
- AConsumer
that will call methods onCreateThreatIntelSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateThreatIntelSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDeclineInvitationsRequest.builder()
- Parameters:
declineInvitationsRequest
- AConsumer
that will call methods onDeclineInvitationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeclineInvitations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDeleteDetectorRequest.builder()
- Parameters:
deleteDetectorRequest
- AConsumer
that will call methods onDeleteDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDeleteFilterRequest.builder()
- Parameters:
deleteFilterRequest
- AConsumer
that will call methods onDeleteFilterRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteFilter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDeleteIpSetRequest.builder()
- Parameters:
deleteIpSetRequest
- AConsumer
that will call methods onDeleteIpSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteIPSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDeleteInvitationsRequest.builder()
- Parameters:
deleteInvitationsRequest
- AConsumer
that will call methods onDeleteInvitationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteInvitations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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(DeleteMembersRequest deleteMembersRequest) Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.
With
autoEnableOrganizationMembers
configuration 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
autoEnableOrganizationMembers
configuration 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.Builder
avoiding the need to create one manually viaDeleteMembersRequest.builder()
- Parameters:
deleteMembersRequest
- AConsumer
that will call methods onDeleteMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDeletePublishingDestinationRequest.builder()
- Parameters:
deletePublishingDestinationRequest
- AConsumer
that will call methods onDeletePublishingDestinationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeletePublishingDestination operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDeleteThreatIntelSetRequest.builder()
- Parameters:
deleteThreatIntelSetRequest
- AConsumer
that will call methods onDeleteThreatIntelSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteThreatIntelSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDescribeMalwareScansRequest.builder()
- Parameters:
describeMalwareScansRequest
- AConsumer
that will call methods onDescribeMalwareScansRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeMalwareScans operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansPublisher publisher = client.describeMalwareScansPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaDescribeMalwareScansRequest.builder()
- Parameters:
describeMalwareScansRequest
- AConsumer
that will call methods onDescribeMalwareScansRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDescribeOrganizationConfigurationRequest.builder()
- Parameters:
describeOrganizationConfigurationRequest
- AConsumer
that will call methods onDescribeOrganizationConfigurationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeOrganizationConfiguration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationPublisher publisher = client.describeOrganizationConfigurationPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaDescribeOrganizationConfigurationRequest.builder()
- Parameters:
describeOrganizationConfigurationRequest
- AConsumer
that will call methods onDescribeOrganizationConfigurationRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDescribePublishingDestinationRequest.builder()
- Parameters:
describePublishingDestinationRequest
- AConsumer
that will call methods onDescribePublishingDestinationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribePublishingDestination operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDisableOrganizationAdminAccountRequest.builder()
- Parameters:
disableOrganizationAdminAccountRequest
- AConsumer
that will call methods onDisableOrganizationAdminAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisableOrganizationAdminAccount operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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
autoEnableOrganizationMembers
configuration 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
autoEnableOrganizationMembers
configuration 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.Builder
avoiding the need to create one manually viaDisassociateFromAdministratorAccountRequest.builder()
- Parameters:
disassociateFromAdministratorAccountRequest
- AConsumer
that will call methods onDisassociateFromAdministratorAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateFromAdministratorAccount operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaDisassociateFromMasterAccountRequest.builder()
- Parameters:
disassociateFromMasterAccountRequest
- AConsumer
that will call methods onDisassociateFromMasterAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateFromMasterAccount operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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
autoEnableOrganizationMembers
configuration 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
autoEnableOrganizationMembers
configuration 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.Builder
avoiding the need to create one manually viaDisassociateMembersRequest.builder()
- Parameters:
disassociateMembersRequest
- AConsumer
that will call methods onDisassociateMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaEnableOrganizationAdminAccountRequest.builder()
- Parameters:
enableOrganizationAdminAccountRequest
- AConsumer
that will call methods onEnableOrganizationAdminAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the EnableOrganizationAdminAccount operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetAdministratorAccountRequest.builder()
- Parameters:
getAdministratorAccountRequest
- AConsumer
that will call methods onGetAdministratorAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetAdministratorAccount operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetCoverageStatisticsRequest.builder()
- Parameters:
getCoverageStatisticsRequest
- AConsumer
that will call methods onGetCoverageStatisticsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetCoverageStatistics operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 an Amazon GuardDuty detector specified by the detectorId.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
- Parameters:
getDetectorRequest
-- Returns:
- A Java Future containing the result of the GetDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 an Amazon GuardDuty detector specified by the detectorId.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
GetDetectorRequest.Builder
avoiding the need to create one manually viaGetDetectorRequest.builder()
- Parameters:
getDetectorRequest
- AConsumer
that will call methods onGetDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetFilterRequest.builder()
- Parameters:
getFilterRequest
- AConsumer
that will call methods onGetFilterRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetFilter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetFindingsRequest.builder()
- Parameters:
getFindingsRequest
- AConsumer
that will call methods onGetFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 Amazon GuardDuty findings statistics for the specified detector ID.
There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.
- Parameters:
getFindingsStatisticsRequest
-- Returns:
- A Java Future containing the result of the GetFindingsStatistics operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 Amazon GuardDuty findings statistics for the specified detector ID.
There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
GetFindingsStatisticsRequest.Builder
avoiding the need to create one manually viaGetFindingsStatisticsRequest.builder()
- Parameters:
getFindingsStatisticsRequest
- AConsumer
that will call methods onGetFindingsStatisticsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetFindingsStatistics operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetIpSetRequest.builder()
- Parameters:
getIpSetRequest
- AConsumer
that will call methods onGetIpSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetIPSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetInvitationsCountRequest.builder()
- Parameters:
getInvitationsCountRequest
- AConsumer
that will call methods onGetInvitationsCountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetInvitationsCount operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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:
-
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.Builder
avoiding the need to create one manually viaGetMalwareScanSettingsRequest.builder()
- Parameters:
getMalwareScanSettingsRequest
- AConsumer
that will call methods onGetMalwareScanSettingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetMalwareScanSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetMasterAccountRequest.builder()
- Parameters:
getMasterAccountRequest
- AConsumer
that will call methods onGetMasterAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetMasterAccount operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetMemberDetectorsRequest.builder()
- Parameters:
getMemberDetectorsRequest
- AConsumer
that will call methods onGetMemberDetectorsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetMemberDetectors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetMembersRequest.builder()
- Parameters:
getMembersRequest
- AConsumer
that will call methods onGetMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetOrganizationStatisticsRequest.builder()
- Parameters:
getOrganizationStatisticsRequest
- AConsumer
that will call methods onGetOrganizationStatisticsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetOrganizationStatistics operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetRemainingFreeTrialDaysRequest.builder()
- Parameters:
getRemainingFreeTrialDaysRequest
- AConsumer
that will call methods onGetRemainingFreeTrialDaysRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetRemainingFreeTrialDays operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetThreatIntelSetRequest.builder()
- Parameters:
getThreatIntelSetRequest
- AConsumer
that will call methods onGetThreatIntelSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetThreatIntelSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaGetUsageStatisticsRequest.builder()
- Parameters:
getUsageStatisticsRequest
- AConsumer
that will call methods onGetUsageStatisticsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetUsageStatistics operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsPublisher publisher = client.getUsageStatisticsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaGetUsageStatisticsRequest.builder()
- Parameters:
getUsageStatisticsRequest
- AConsumer
that will call methods onGetUsageStatisticsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaInviteMembersRequest.builder()
- Parameters:
inviteMembersRequest
- AConsumer
that will call methods onInviteMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the InviteMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListCoverageRequest.builder()
- Parameters:
listCoverageRequest
- AConsumer
that will call methods onListCoverageRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListCoverage operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListCoveragePublisher publisher = client.listCoveragePaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListCoverageRequest.builder()
- Parameters:
listCoverageRequest
- AConsumer
that will call methods onListCoverageRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListDetectorsRequest.builder()
- Parameters:
listDetectorsRequest
- AConsumer
that will call methods onListDetectorsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListDetectors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsPublisher publisher = client.listDetectorsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListDetectorsRequest.builder()
- Parameters:
listDetectorsRequest
- AConsumer
that will call methods onListDetectorsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListFiltersRequest.builder()
- Parameters:
listFiltersRequest
- AConsumer
that will call methods onListFiltersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListFilters operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersPublisher publisher = client.listFiltersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListFiltersRequest.builder()
- Parameters:
listFiltersRequest
- AConsumer
that will call methods onListFiltersRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListFindingsRequest.builder()
- Parameters:
listFindingsRequest
- AConsumer
that will call methods onListFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsPublisher publisher = client.listFindingsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListFindingsRequest.builder()
- Parameters:
listFindingsRequest
- AConsumer
that will call methods onListFindingsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListIpSetsRequest.builder()
- Parameters:
listIpSetsRequest
- AConsumer
that will call methods onListIpSetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListIPSets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsPublisher publisher = client.listIPSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListIpSetsRequest.builder()
- Parameters:
listIpSetsRequest
- AConsumer
that will call methods onListIpSetsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListInvitationsRequest.builder()
- Parameters:
listInvitationsRequest
- AConsumer
that will call methods onListInvitationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListInvitations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsPublisher publisher = client.listInvitationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListInvitationsRequest.builder()
- Parameters:
listInvitationsRequest
- AConsumer
that will call methods onListInvitationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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
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.Builder
avoiding the need to create one manually viaListMembersRequest.builder()
- Parameters:
listMembersRequest
- AConsumer
that will call methods onListMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListMembersPublisher publisher = client.listMembersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListMembersRequest.builder()
- Parameters:
listMembersRequest
- AConsumer
that will call methods onListMembersRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListOrganizationAdminAccountsRequest.builder()
- Parameters:
listOrganizationAdminAccountsRequest
- AConsumer
that will call methods onListOrganizationAdminAccountsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListOrganizationAdminAccounts operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsPublisher publisher = client.listOrganizationAdminAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListOrganizationAdminAccountsRequest.builder()
- Parameters:
listOrganizationAdminAccountsRequest
- AConsumer
that will call methods onListOrganizationAdminAccountsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListPublishingDestinationsRequest.builder()
- Parameters:
listPublishingDestinationsRequest
- AConsumer
that will call methods onListPublishingDestinationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListPublishingDestinations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsPublisher publisher = client.listPublishingDestinationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListPublishingDestinationsRequest.builder()
- Parameters:
listPublishingDestinationsRequest
- AConsumer
that will call methods onListPublishingDestinationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaListThreatIntelSetsRequest.builder()
- Parameters:
listThreatIntelSetsRequest
- AConsumer
that will call methods onListThreatIntelSetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListThreatIntelSets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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 newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsPublisher publisher = client.listThreatIntelSetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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.Builder
avoiding the need to create one manually viaListThreatIntelSetsRequest.builder()
- Parameters:
listThreatIntelSetsRequest
- AConsumer
that will call methods onListThreatIntelSetsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaStartMalwareScanRequest.builder()
- Parameters:
startMalwareScanRequest
- AConsumer
that will call methods onStartMalwareScanRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartMalwareScan operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaStartMonitoringMembersRequest.builder()
- Parameters:
startMonitoringMembersRequest
- AConsumer
that will call methods onStartMonitoringMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartMonitoringMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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
StartMonitoringMembers
operation to restart monitoring for those accounts.With
autoEnableOrganizationMembers
configuration 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
StartMonitoringMembers
operation to restart monitoring for those accounts.With
autoEnableOrganizationMembers
configuration 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.Builder
avoiding the need to create one manually viaStopMonitoringMembersRequest.builder()
- Parameters:
stopMonitoringMembersRequest
- AConsumer
that will call methods onStopMonitoringMembersRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopMonitoringMembers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUnarchiveFindingsRequest.builder()
- Parameters:
unarchiveFindingsRequest
- AConsumer
that will call methods onUnarchiveFindingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UnarchiveFindings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUpdateDetectorRequest.builder()
- Parameters:
updateDetectorRequest
- AConsumer
that will call methods onUpdateDetectorRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateDetector operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUpdateFilterRequest.builder()
- Parameters:
updateFilterRequest
- AConsumer
that will call methods onUpdateFilterRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateFilter operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUpdateFindingsFeedbackRequest.builder()
- Parameters:
updateFindingsFeedbackRequest
- AConsumer
that will call methods onUpdateFindingsFeedbackRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateFindingsFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUpdateIpSetRequest.builder()
- Parameters:
updateIpSetRequest
- AConsumer
that will call methods onUpdateIpSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateIPSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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(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.Builder
avoiding the need to create one manually viaUpdateMalwareScanSettingsRequest.builder()
- Parameters:
updateMalwareScanSettingsRequest
- AConsumer
that will call methods onUpdateMalwareScanSettingsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateMalwareScanSettings operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUpdateMemberDetectorsRequest.builder()
- Parameters:
updateMemberDetectorsRequest
- AConsumer
that will call methods onUpdateMemberDetectorsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateMemberDetectors operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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
autoEnableOrganizationMembers
orautoEnable
, 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
autoEnableOrganizationMembers
orautoEnable
, but not both.Specifying both EKS Runtime Monitoring (
EKS_RUNTIME_MONITORING
) and Runtime Monitoring (RUNTIME_MONITORING
) will cause an error. You can add only one of these two features because Runtime Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring.There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
UpdateOrganizationConfigurationRequest.Builder
avoiding the need to create one manually viaUpdateOrganizationConfigurationRequest.builder()
- Parameters:
updateOrganizationConfigurationRequest
- AConsumer
that will call methods onUpdateOrganizationConfigurationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateOrganizationConfiguration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUpdatePublishingDestinationRequest.builder()
- Parameters:
updatePublishingDestinationRequest
- AConsumer
that will call methods onUpdatePublishingDestinationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdatePublishingDestination operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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.Builder
avoiding the need to create one manually viaUpdateThreatIntelSetRequest.builder()
- Parameters:
updateThreatIntelSetRequest
- AConsumer
that will call methods onUpdateThreatIntelSetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateThreatIntelSet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to 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:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aGuardDutyAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aGuardDutyAsyncClient
.
-