Interface GuardDutyClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface GuardDutyClient extends AwsClient
Service client for accessing Amazon GuardDuty. This can be created using the staticbuilder()method.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
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default AcceptAdministratorInvitationResponseacceptAdministratorInvitation(Consumer<AcceptAdministratorInvitationRequest.Builder> acceptAdministratorInvitationRequest)Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.default AcceptAdministratorInvitationResponseacceptAdministratorInvitation(AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest)Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.default AcceptInvitationResponseacceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest)Deprecated.This operation is deprecated, use AcceptAdministratorInvitation insteaddefault AcceptInvitationResponseacceptInvitation(AcceptInvitationRequest acceptInvitationRequest)Deprecated.This operation is deprecated, use AcceptAdministratorInvitation insteaddefault ArchiveFindingsResponsearchiveFindings(Consumer<ArchiveFindingsRequest.Builder> archiveFindingsRequest)Archives GuardDuty findings that are specified by the list of finding IDs.default ArchiveFindingsResponsearchiveFindings(ArchiveFindingsRequest archiveFindingsRequest)Archives GuardDuty findings that are specified by the list of finding IDs.static GuardDutyClientBuilderbuilder()Create a builder that can be used to configure and create aGuardDutyClient.static GuardDutyClientcreate()Create aGuardDutyClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateDetectorResponsecreateDetector(Consumer<CreateDetectorRequest.Builder> createDetectorRequest)Creates a single Amazon GuardDuty detector.default CreateDetectorResponsecreateDetector(CreateDetectorRequest createDetectorRequest)Creates a single Amazon GuardDuty detector.default CreateFilterResponsecreateFilter(Consumer<CreateFilterRequest.Builder> createFilterRequest)Creates a filter using the specified finding criteria.default CreateFilterResponsecreateFilter(CreateFilterRequest createFilterRequest)Creates a filter using the specified finding criteria.default CreateIpSetResponsecreateIPSet(Consumer<CreateIpSetRequest.Builder> createIpSetRequest)Creates a new IPSet, which is called a trusted IP list in the console user interface.default CreateIpSetResponsecreateIPSet(CreateIpSetRequest createIpSetRequest)Creates a new IPSet, which is called a trusted IP list in the console user interface.default CreateMembersResponsecreateMembers(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 CreateMembersResponsecreateMembers(CreateMembersRequest createMembersRequest)Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs.default CreatePublishingDestinationResponsecreatePublishingDestination(Consumer<CreatePublishingDestinationRequest.Builder> createPublishingDestinationRequest)Creates a publishing destination to export findings to.default CreatePublishingDestinationResponsecreatePublishingDestination(CreatePublishingDestinationRequest createPublishingDestinationRequest)Creates a publishing destination to export findings to.default CreateSampleFindingsResponsecreateSampleFindings(Consumer<CreateSampleFindingsRequest.Builder> createSampleFindingsRequest)Generates sample findings of types specified by the list of finding types.default CreateSampleFindingsResponsecreateSampleFindings(CreateSampleFindingsRequest createSampleFindingsRequest)Generates sample findings of types specified by the list of finding types.default CreateThreatIntelSetResponsecreateThreatIntelSet(Consumer<CreateThreatIntelSetRequest.Builder> createThreatIntelSetRequest)Creates a new ThreatIntelSet.default CreateThreatIntelSetResponsecreateThreatIntelSet(CreateThreatIntelSetRequest createThreatIntelSetRequest)Creates a new ThreatIntelSet.default DeclineInvitationsResponsedeclineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest)Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.default DeclineInvitationsResponsedeclineInvitations(DeclineInvitationsRequest declineInvitationsRequest)Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.default DeleteDetectorResponsedeleteDetector(Consumer<DeleteDetectorRequest.Builder> deleteDetectorRequest)Deletes an Amazon GuardDuty detector that is specified by the detector ID.default DeleteDetectorResponsedeleteDetector(DeleteDetectorRequest deleteDetectorRequest)Deletes an Amazon GuardDuty detector that is specified by the detector ID.default DeleteFilterResponsedeleteFilter(Consumer<DeleteFilterRequest.Builder> deleteFilterRequest)Deletes the filter specified by the filter name.default DeleteFilterResponsedeleteFilter(DeleteFilterRequest deleteFilterRequest)Deletes the filter specified by the filter name.default DeleteInvitationsResponsedeleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest)Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.default DeleteInvitationsResponsedeleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest)Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.default DeleteIpSetResponsedeleteIPSet(Consumer<DeleteIpSetRequest.Builder> deleteIpSetRequest)Deletes the IPSet specified by theipSetId.default DeleteIpSetResponsedeleteIPSet(DeleteIpSetRequest deleteIpSetRequest)Deletes the IPSet specified by theipSetId.default DeleteMembersResponsedeleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest)Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.default DeleteMembersResponsedeleteMembers(DeleteMembersRequest deleteMembersRequest)Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.default DeletePublishingDestinationResponsedeletePublishingDestination(Consumer<DeletePublishingDestinationRequest.Builder> deletePublishingDestinationRequest)Deletes the publishing definition with the specifieddestinationId.default DeletePublishingDestinationResponsedeletePublishingDestination(DeletePublishingDestinationRequest deletePublishingDestinationRequest)Deletes the publishing definition with the specifieddestinationId.default DeleteThreatIntelSetResponsedeleteThreatIntelSet(Consumer<DeleteThreatIntelSetRequest.Builder> deleteThreatIntelSetRequest)Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.default DeleteThreatIntelSetResponsedeleteThreatIntelSet(DeleteThreatIntelSetRequest deleteThreatIntelSetRequest)Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.default DescribeMalwareScansResponsedescribeMalwareScans(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest)Returns a list of malware scans.default DescribeMalwareScansResponsedescribeMalwareScans(DescribeMalwareScansRequest describeMalwareScansRequest)Returns a list of malware scans.default DescribeMalwareScansIterabledescribeMalwareScansPaginator(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest)This is a variant ofdescribeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)operation.default DescribeMalwareScansIterabledescribeMalwareScansPaginator(DescribeMalwareScansRequest describeMalwareScansRequest)This is a variant ofdescribeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)operation.default DescribeOrganizationConfigurationResponsedescribeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)Returns information about the account selected as the delegated administrator for GuardDuty.default DescribeOrganizationConfigurationResponsedescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)Returns information about the account selected as the delegated administrator for GuardDuty.default DescribeOrganizationConfigurationIterabledescribeOrganizationConfigurationPaginator(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest)This is a variant ofdescribeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)operation.default DescribeOrganizationConfigurationIterabledescribeOrganizationConfigurationPaginator(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest)This is a variant ofdescribeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)operation.default DescribePublishingDestinationResponsedescribePublishingDestination(Consumer<DescribePublishingDestinationRequest.Builder> describePublishingDestinationRequest)Returns information about the publishing destination specified by the provideddestinationId.default DescribePublishingDestinationResponsedescribePublishingDestination(DescribePublishingDestinationRequest describePublishingDestinationRequest)Returns information about the publishing destination specified by the provideddestinationId.default DisableOrganizationAdminAccountResponsedisableOrganizationAdminAccount(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest)Removes the existing GuardDuty delegated administrator of the organization.default DisableOrganizationAdminAccountResponsedisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest)Removes the existing GuardDuty delegated administrator of the organization.default DisassociateFromAdministratorAccountResponsedisassociateFromAdministratorAccount(Consumer<DisassociateFromAdministratorAccountRequest.Builder> disassociateFromAdministratorAccountRequest)Disassociates the current GuardDuty member account from its administrator account.default DisassociateFromAdministratorAccountResponsedisassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest)Disassociates the current GuardDuty member account from its administrator account.default DisassociateFromMasterAccountResponsedisassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest)Deprecated.This operation is deprecated, use DisassociateFromAdministratorAccount insteaddefault DisassociateFromMasterAccountResponsedisassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest)Deprecated.This operation is deprecated, use DisassociateFromAdministratorAccount insteaddefault DisassociateMembersResponsedisassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest)Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.default DisassociateMembersResponsedisassociateMembers(DisassociateMembersRequest disassociateMembersRequest)Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.default EnableOrganizationAdminAccountResponseenableOrganizationAdminAccount(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest)Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator.default EnableOrganizationAdminAccountResponseenableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest)Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator.default GetAdministratorAccountResponsegetAdministratorAccount(Consumer<GetAdministratorAccountRequest.Builder> getAdministratorAccountRequest)Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.default GetAdministratorAccountResponsegetAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest)Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.default GetCoverageStatisticsResponsegetCoverageStatistics(Consumer<GetCoverageStatisticsRequest.Builder> getCoverageStatisticsRequest)Retrieves aggregated statistics for your account.default GetCoverageStatisticsResponsegetCoverageStatistics(GetCoverageStatisticsRequest getCoverageStatisticsRequest)Retrieves aggregated statistics for your account.default GetDetectorResponsegetDetector(Consumer<GetDetectorRequest.Builder> getDetectorRequest)Retrieves an Amazon GuardDuty detector specified by the detectorId.default GetDetectorResponsegetDetector(GetDetectorRequest getDetectorRequest)Retrieves an Amazon GuardDuty detector specified by the detectorId.default GetFilterResponsegetFilter(Consumer<GetFilterRequest.Builder> getFilterRequest)Returns the details of the filter specified by the filter name.default GetFilterResponsegetFilter(GetFilterRequest getFilterRequest)Returns the details of the filter specified by the filter name.default GetFindingsResponsegetFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest)Describes Amazon GuardDuty findings specified by finding IDs.default GetFindingsResponsegetFindings(GetFindingsRequest getFindingsRequest)Describes Amazon GuardDuty findings specified by finding IDs.default GetFindingsStatisticsResponsegetFindingsStatistics(Consumer<GetFindingsStatisticsRequest.Builder> getFindingsStatisticsRequest)Lists Amazon GuardDuty findings statistics for the specified detector ID.default GetFindingsStatisticsResponsegetFindingsStatistics(GetFindingsStatisticsRequest getFindingsStatisticsRequest)Lists Amazon GuardDuty findings statistics for the specified detector ID.default GetInvitationsCountResponsegetInvitationsCount()Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.default GetInvitationsCountResponsegetInvitationsCount(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.default GetInvitationsCountResponsegetInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest)Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.default GetIpSetResponsegetIPSet(Consumer<GetIpSetRequest.Builder> getIpSetRequest)Retrieves the IPSet specified by theipSetId.default GetIpSetResponsegetIPSet(GetIpSetRequest getIpSetRequest)Retrieves the IPSet specified by theipSetId.default GetMalwareScanSettingsResponsegetMalwareScanSettings(Consumer<GetMalwareScanSettingsRequest.Builder> getMalwareScanSettingsRequest)Returns the details of the malware scan settings.default GetMalwareScanSettingsResponsegetMalwareScanSettings(GetMalwareScanSettingsRequest getMalwareScanSettingsRequest)Returns the details of the malware scan settings.default GetMasterAccountResponsegetMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest)Deprecated.This operation is deprecated, use GetAdministratorAccount insteaddefault GetMasterAccountResponsegetMasterAccount(GetMasterAccountRequest getMasterAccountRequest)Deprecated.This operation is deprecated, use GetAdministratorAccount insteaddefault GetMemberDetectorsResponsegetMemberDetectors(Consumer<GetMemberDetectorsRequest.Builder> getMemberDetectorsRequest)Describes which data sources are enabled for the member account's detector.default GetMemberDetectorsResponsegetMemberDetectors(GetMemberDetectorsRequest getMemberDetectorsRequest)Describes which data sources are enabled for the member account's detector.default GetMembersResponsegetMembers(Consumer<GetMembersRequest.Builder> getMembersRequest)Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.default GetMembersResponsegetMembers(GetMembersRequest getMembersRequest)Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.default GetOrganizationStatisticsResponsegetOrganizationStatistics(Consumer<GetOrganizationStatisticsRequest.Builder> getOrganizationStatisticsRequest)Retrieves how many active member accounts in your Amazon Web Services organization have each feature enabled within GuardDuty.default GetOrganizationStatisticsResponsegetOrganizationStatistics(GetOrganizationStatisticsRequest getOrganizationStatisticsRequest)Retrieves how many active member accounts in your Amazon Web Services organization have each feature enabled within GuardDuty.default GetRemainingFreeTrialDaysResponsegetRemainingFreeTrialDays(Consumer<GetRemainingFreeTrialDaysRequest.Builder> getRemainingFreeTrialDaysRequest)Provides the number of days left for each data source used in the free trial period.default GetRemainingFreeTrialDaysResponsegetRemainingFreeTrialDays(GetRemainingFreeTrialDaysRequest getRemainingFreeTrialDaysRequest)Provides the number of days left for each data source used in the free trial period.default GetThreatIntelSetResponsegetThreatIntelSet(Consumer<GetThreatIntelSetRequest.Builder> getThreatIntelSetRequest)Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.default GetThreatIntelSetResponsegetThreatIntelSet(GetThreatIntelSetRequest getThreatIntelSetRequest)Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.default GetUsageStatisticsResponsegetUsageStatistics(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest)Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID.default GetUsageStatisticsResponsegetUsageStatistics(GetUsageStatisticsRequest getUsageStatisticsRequest)Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID.default GetUsageStatisticsIterablegetUsageStatisticsPaginator(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest)This is a variant ofgetUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)operation.default GetUsageStatisticsIterablegetUsageStatisticsPaginator(GetUsageStatisticsRequest getUsageStatisticsRequest)This is a variant ofgetUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)operation.default InviteMembersResponseinviteMembers(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 InviteMembersResponseinviteMembers(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 ListCoverageResponselistCoverage(Consumer<ListCoverageRequest.Builder> listCoverageRequest)Lists coverage details for your GuardDuty account.default ListCoverageResponselistCoverage(ListCoverageRequest listCoverageRequest)Lists coverage details for your GuardDuty account.default ListCoverageIterablelistCoveragePaginator(Consumer<ListCoverageRequest.Builder> listCoverageRequest)This is a variant oflistCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)operation.default ListCoverageIterablelistCoveragePaginator(ListCoverageRequest listCoverageRequest)This is a variant oflistCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)operation.default ListDetectorsResponselistDetectors()Lists detectorIds of all the existing Amazon GuardDuty detector resources.default ListDetectorsResponselistDetectors(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest)Lists detectorIds of all the existing Amazon GuardDuty detector resources.default ListDetectorsResponselistDetectors(ListDetectorsRequest listDetectorsRequest)Lists detectorIds of all the existing Amazon GuardDuty detector resources.default ListDetectorsIterablelistDetectorsPaginator()This is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation.default ListDetectorsIterablelistDetectorsPaginator(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest)This is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation.default ListDetectorsIterablelistDetectorsPaginator(ListDetectorsRequest listDetectorsRequest)This is a variant oflistDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation.default ListFiltersResponselistFilters(Consumer<ListFiltersRequest.Builder> listFiltersRequest)Returns a paginated list of the current filters.default ListFiltersResponselistFilters(ListFiltersRequest listFiltersRequest)Returns a paginated list of the current filters.default ListFiltersIterablelistFiltersPaginator(Consumer<ListFiltersRequest.Builder> listFiltersRequest)This is a variant oflistFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)operation.default ListFiltersIterablelistFiltersPaginator(ListFiltersRequest listFiltersRequest)This is a variant oflistFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)operation.default ListFindingsResponselistFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest)Lists GuardDuty findings for the specified detector ID.default ListFindingsResponselistFindings(ListFindingsRequest listFindingsRequest)Lists GuardDuty findings for the specified detector ID.default ListFindingsIterablelistFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest)This is a variant oflistFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)operation.default ListFindingsIterablelistFindingsPaginator(ListFindingsRequest listFindingsRequest)This is a variant oflistFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)operation.default ListInvitationsResponselistInvitations()Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.default ListInvitationsResponselistInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.default ListInvitationsResponselistInvitations(ListInvitationsRequest listInvitationsRequest)Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.default ListInvitationsIterablelistInvitationsPaginator()This is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation.default ListInvitationsIterablelistInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest)This is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation.default ListInvitationsIterablelistInvitationsPaginator(ListInvitationsRequest listInvitationsRequest)This is a variant oflistInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation.default ListIpSetsResponselistIPSets(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest)Lists the IPSets of the GuardDuty service specified by the detector ID.default ListIpSetsResponselistIPSets(ListIpSetsRequest listIpSetsRequest)Lists the IPSets of the GuardDuty service specified by the detector ID.default ListIPSetsIterablelistIPSetsPaginator(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest)This is a variant oflistIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)operation.default ListIPSetsIterablelistIPSetsPaginator(ListIpSetsRequest listIpSetsRequest)This is a variant oflistIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)operation.default ListMembersResponselistMembers(Consumer<ListMembersRequest.Builder> listMembersRequest)Lists details about all member accounts for the current GuardDuty administrator account.default ListMembersResponselistMembers(ListMembersRequest listMembersRequest)Lists details about all member accounts for the current GuardDuty administrator account.default ListMembersIterablelistMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest)This is a variant oflistMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)operation.default ListMembersIterablelistMembersPaginator(ListMembersRequest listMembersRequest)This is a variant oflistMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)operation.default ListOrganizationAdminAccountsResponselistOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)Lists the accounts designated as GuardDuty delegated administrators.default ListOrganizationAdminAccountsResponselistOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)Lists the accounts designated as GuardDuty delegated administrators.default ListOrganizationAdminAccountsIterablelistOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest)This is a variant oflistOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)operation.default ListOrganizationAdminAccountsIterablelistOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest)This is a variant oflistOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)operation.default ListPublishingDestinationsResponselistPublishingDestinations(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest)Returns a list of publishing destinations associated with the specifieddetectorId.default ListPublishingDestinationsResponselistPublishingDestinations(ListPublishingDestinationsRequest listPublishingDestinationsRequest)Returns a list of publishing destinations associated with the specifieddetectorId.default ListPublishingDestinationsIterablelistPublishingDestinationsPaginator(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest)This is a variant oflistPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)operation.default ListPublishingDestinationsIterablelistPublishingDestinationsPaginator(ListPublishingDestinationsRequest listPublishingDestinationsRequest)This is a variant oflistPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)Lists tags for a resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)Lists tags for a resource.default ListThreatIntelSetsResponselistThreatIntelSets(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest)Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID.default ListThreatIntelSetsResponselistThreatIntelSets(ListThreatIntelSetsRequest listThreatIntelSetsRequest)Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID.default ListThreatIntelSetsIterablelistThreatIntelSetsPaginator(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest)This is a variant oflistThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)operation.default ListThreatIntelSetsIterablelistThreatIntelSetsPaginator(ListThreatIntelSetsRequest listThreatIntelSetsRequest)This is a variant oflistThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)operation.default GuardDutyServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()default StartMalwareScanResponsestartMalwareScan(Consumer<StartMalwareScanRequest.Builder> startMalwareScanRequest)Initiates the malware scan.default StartMalwareScanResponsestartMalwareScan(StartMalwareScanRequest startMalwareScanRequest)Initiates the malware scan.default StartMonitoringMembersResponsestartMonitoringMembers(Consumer<StartMonitoringMembersRequest.Builder> startMonitoringMembersRequest)Turns on GuardDuty monitoring of the specified member accounts.default StartMonitoringMembersResponsestartMonitoringMembers(StartMonitoringMembersRequest startMonitoringMembersRequest)Turns on GuardDuty monitoring of the specified member accounts.default StopMonitoringMembersResponsestopMonitoringMembers(Consumer<StopMonitoringMembersRequest.Builder> stopMonitoringMembersRequest)Stops GuardDuty monitoring for the specified member accounts.default StopMonitoringMembersResponsestopMonitoringMembers(StopMonitoringMembersRequest stopMonitoringMembersRequest)Stops GuardDuty monitoring for the specified member accounts.default TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)Adds tags to a resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest)Adds tags to a resource.default UnarchiveFindingsResponseunarchiveFindings(Consumer<UnarchiveFindingsRequest.Builder> unarchiveFindingsRequest)Unarchives GuardDuty findings specified by thefindingIds.default UnarchiveFindingsResponseunarchiveFindings(UnarchiveFindingsRequest unarchiveFindingsRequest)Unarchives GuardDuty findings specified by thefindingIds.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)Removes tags from a resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest)Removes tags from a resource.default UpdateDetectorResponseupdateDetector(Consumer<UpdateDetectorRequest.Builder> updateDetectorRequest)Updates the GuardDuty detector specified by the detectorId.default UpdateDetectorResponseupdateDetector(UpdateDetectorRequest updateDetectorRequest)Updates the GuardDuty detector specified by the detectorId.default UpdateFilterResponseupdateFilter(Consumer<UpdateFilterRequest.Builder> updateFilterRequest)Updates the filter specified by the filter name.default UpdateFilterResponseupdateFilter(UpdateFilterRequest updateFilterRequest)Updates the filter specified by the filter name.default UpdateFindingsFeedbackResponseupdateFindingsFeedback(Consumer<UpdateFindingsFeedbackRequest.Builder> updateFindingsFeedbackRequest)Marks the specified GuardDuty findings as useful or not useful.default UpdateFindingsFeedbackResponseupdateFindingsFeedback(UpdateFindingsFeedbackRequest updateFindingsFeedbackRequest)Marks the specified GuardDuty findings as useful or not useful.default UpdateIpSetResponseupdateIPSet(Consumer<UpdateIpSetRequest.Builder> updateIpSetRequest)Updates the IPSet specified by the IPSet ID.default UpdateIpSetResponseupdateIPSet(UpdateIpSetRequest updateIpSetRequest)Updates the IPSet specified by the IPSet ID.default UpdateMalwareScanSettingsResponseupdateMalwareScanSettings(Consumer<UpdateMalwareScanSettingsRequest.Builder> updateMalwareScanSettingsRequest)Updates the malware scan settings.default UpdateMalwareScanSettingsResponseupdateMalwareScanSettings(UpdateMalwareScanSettingsRequest updateMalwareScanSettingsRequest)Updates the malware scan settings.default UpdateMemberDetectorsResponseupdateMemberDetectors(Consumer<UpdateMemberDetectorsRequest.Builder> updateMemberDetectorsRequest)Contains information on member accounts to be updated.default UpdateMemberDetectorsResponseupdateMemberDetectors(UpdateMemberDetectorsRequest updateMemberDetectorsRequest)Contains information on member accounts to be updated.default UpdateOrganizationConfigurationResponseupdateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest)Configures the delegated administrator account with the provided values.default UpdateOrganizationConfigurationResponseupdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest)Configures the delegated administrator account with the provided values.default UpdatePublishingDestinationResponseupdatePublishingDestination(Consumer<UpdatePublishingDestinationRequest.Builder> updatePublishingDestinationRequest)Updates information about the publishing destination specified by thedestinationId.default UpdatePublishingDestinationResponseupdatePublishingDestination(UpdatePublishingDestinationRequest updatePublishingDestinationRequest)Updates information about the publishing destination specified by thedestinationId.default UpdateThreatIntelSetResponseupdateThreatIntelSet(Consumer<UpdateThreatIntelSetRequest.Builder> updateThreatIntelSetRequest)Updates the ThreatIntelSet specified by the ThreatIntelSet ID.default UpdateThreatIntelSetResponseupdateThreatIntelSet(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 Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
acceptAdministratorInvitation
default AcceptAdministratorInvitationResponse acceptAdministratorInvitation(AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.
- Parameters:
acceptAdministratorInvitationRequest-- Returns:
- Result of the AcceptAdministratorInvitation operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
acceptAdministratorInvitation
default AcceptAdministratorInvitationResponse acceptAdministratorInvitation(Consumer<AcceptAdministratorInvitationRequest.Builder> acceptAdministratorInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.
This is a convenience which creates an instance of the
AcceptAdministratorInvitationRequest.Builderavoiding the need to create one manually viaAcceptAdministratorInvitationRequest.builder()- Parameters:
acceptAdministratorInvitationRequest- AConsumerthat will call methods onAcceptAdministratorInvitationRequest.Builderto create a request.- Returns:
- Result of the AcceptAdministratorInvitation operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
acceptInvitation
@Deprecated default AcceptInvitationResponse acceptInvitation(AcceptInvitationRequest acceptInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deprecated.This operation is deprecated, use AcceptAdministratorInvitation insteadAccepts the invitation to be monitored by a GuardDuty administrator account.
- Parameters:
acceptInvitationRequest-- Returns:
- Result of the AcceptInvitation operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
acceptInvitation
@Deprecated default AcceptInvitationResponse acceptInvitation(Consumer<AcceptInvitationRequest.Builder> acceptInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deprecated.This operation is deprecated, use AcceptAdministratorInvitation insteadAccepts the invitation to be monitored by a GuardDuty administrator account.
This is a convenience which creates an instance of the
AcceptInvitationRequest.Builderavoiding the need to create one manually viaAcceptInvitationRequest.builder()- Parameters:
acceptInvitationRequest- AConsumerthat will call methods onAcceptInvitationRequest.Builderto create a request.- Returns:
- Result of the AcceptInvitation operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
archiveFindings
default ArchiveFindingsResponse archiveFindings(ArchiveFindingsRequest archiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the ArchiveFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
archiveFindings
default ArchiveFindingsResponse archiveFindings(Consumer<ArchiveFindingsRequest.Builder> archiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Archives GuardDuty findings that are specified by the list of finding IDs.
Only the administrator account can archive findings. Member accounts don't have permission to archive findings from their accounts.
This is a convenience which creates an instance of the
ArchiveFindingsRequest.Builderavoiding the need to create one manually viaArchiveFindingsRequest.builder()- Parameters:
archiveFindingsRequest- AConsumerthat will call methods onArchiveFindingsRequest.Builderto create a request.- Returns:
- Result of the ArchiveFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createDetector
default CreateDetectorResponse createDetector(CreateDetectorRequest createDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates a single Amazon 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.
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:
- Result of the CreateDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createDetector
default CreateDetectorResponse createDetector(Consumer<CreateDetectorRequest.Builder> createDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates a single Amazon 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.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
CreateDetectorRequest.Builderavoiding the need to create one manually viaCreateDetectorRequest.builder()- Parameters:
createDetectorRequest- AConsumerthat will call methods onCreateDetectorRequest.Builderto create a request.- Returns:
- Result of the CreateDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createFilter
default CreateFilterResponse createFilter(CreateFilterRequest createFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the CreateFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createFilter
default CreateFilterResponse createFilter(Consumer<CreateFilterRequest.Builder> createFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates a filter using the specified finding criteria. The maximum number of saved filters per Amazon Web Services account per Region is 100. For more information, see Quotas for GuardDuty.
This is a convenience which creates an instance of the
CreateFilterRequest.Builderavoiding the need to create one manually viaCreateFilterRequest.builder()- Parameters:
createFilterRequest- AConsumerthat will call methods onCreateFilterRequest.Builderto create a request.- Returns:
- Result of the CreateFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createIPSet
default CreateIpSetResponse createIPSet(CreateIpSetRequest createIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the CreateIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createIPSet
default CreateIpSetResponse createIPSet(Consumer<CreateIpSetRequest.Builder> createIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP addresses that are trusted for secure communication with Amazon Web Services infrastructure and applications. GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the administrator account can use this operation.
This is a convenience which creates an instance of the
CreateIpSetRequest.Builderavoiding the need to create one manually viaCreateIpSetRequest.builder()- Parameters:
createIpSetRequest- AConsumerthat will call methods onCreateIpSetRequest.Builderto create a request.- Returns:
- Result of the CreateIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createMembers
default CreateMembersResponse createMembers(CreateMembersRequest createMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.
As a delegated administrator, using
CreateMemberswill enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration.
If you are adding accounts by invitation, before using InviteMembers, use
CreateMembersafter GuardDuty has been enabled in potential member accounts.If you disassociate a member from a GuardDuty delegated administrator, 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.
- Parameters:
createMembersRequest-- Returns:
- Result of the CreateMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createMembers
default CreateMembersResponse createMembers(Consumer<CreateMembersRequest.Builder> createMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or through an organization.
As a delegated administrator, using
CreateMemberswill enable GuardDuty in the added member accounts, with the exception of the organization delegated administrator account. A delegated administrator must enable GuardDuty prior to being added as a member.When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration.
If you are adding accounts by invitation, before using InviteMembers, use
CreateMembersafter GuardDuty has been enabled in potential member accounts.If you disassociate a member from a GuardDuty delegated administrator, 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.
This is a convenience which creates an instance of the
CreateMembersRequest.Builderavoiding the need to create one manually viaCreateMembersRequest.builder()- Parameters:
createMembersRequest- AConsumerthat will call methods onCreateMembersRequest.Builderto create a request.- Returns:
- Result of the CreateMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createPublishingDestination
default CreatePublishingDestinationResponse createPublishingDestination(CreatePublishingDestinationRequest createPublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates a publishing destination to export findings to. The resource to export findings to must exist before you use this operation.
- Parameters:
createPublishingDestinationRequest-- Returns:
- Result of the CreatePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createPublishingDestination
default CreatePublishingDestinationResponse createPublishingDestination(Consumer<CreatePublishingDestinationRequest.Builder> createPublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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.Builderavoiding the need to create one manually viaCreatePublishingDestinationRequest.builder()- Parameters:
createPublishingDestinationRequest- AConsumerthat will call methods onCreatePublishingDestinationRequest.Builderto create a request.- Returns:
- Result of the CreatePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSampleFindings
default CreateSampleFindingsResponse createSampleFindings(CreateSampleFindingsRequest createSampleFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the CreateSampleFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSampleFindings
default CreateSampleFindingsResponse createSampleFindings(Consumer<CreateSampleFindingsRequest.Builder> createSampleFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Generates sample findings of types specified by the list of finding types. If 'NULL' is specified for
findingTypes, the API generates sample findings of all supported finding types.
This is a convenience which creates an instance of the
CreateSampleFindingsRequest.Builderavoiding the need to create one manually viaCreateSampleFindingsRequest.builder()- Parameters:
createSampleFindingsRequest- AConsumerthat will call methods onCreateSampleFindingsRequest.Builderto create a request.- Returns:
- Result of the CreateSampleFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createThreatIntelSet
default CreateThreatIntelSetResponse createThreatIntelSet(CreateThreatIntelSetRequest createThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the CreateThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createThreatIntelSet
default CreateThreatIntelSetResponse createThreatIntelSet(Consumer<CreateThreatIntelSetRequest.Builder> createThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.
This is a convenience which creates an instance of the
CreateThreatIntelSetRequest.Builderavoiding the need to create one manually viaCreateThreatIntelSetRequest.builder()- Parameters:
createThreatIntelSetRequest- AConsumerthat will call methods onCreateThreatIntelSetRequest.Builderto create a request.- Returns:
- Result of the CreateThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
declineInvitations
default DeclineInvitationsResponse declineInvitations(DeclineInvitationsRequest declineInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.
- Parameters:
declineInvitationsRequest-- Returns:
- Result of the DeclineInvitations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
declineInvitations
default DeclineInvitationsResponse declineInvitations(Consumer<DeclineInvitationsRequest.Builder> declineInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Declines invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.
This is a convenience which creates an instance of the
DeclineInvitationsRequest.Builderavoiding the need to create one manually viaDeclineInvitationsRequest.builder()- Parameters:
declineInvitationsRequest- AConsumerthat will call methods onDeclineInvitationsRequest.Builderto create a request.- Returns:
- Result of the DeclineInvitations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDetector
default DeleteDetectorResponse deleteDetector(DeleteDetectorRequest deleteDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes an Amazon GuardDuty detector that is specified by the detector ID.
- Parameters:
deleteDetectorRequest-- Returns:
- Result of the DeleteDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDetector
default DeleteDetectorResponse deleteDetector(Consumer<DeleteDetectorRequest.Builder> deleteDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes an Amazon GuardDuty detector that is specified by the detector ID.
This is a convenience which creates an instance of the
DeleteDetectorRequest.Builderavoiding the need to create one manually viaDeleteDetectorRequest.builder()- Parameters:
deleteDetectorRequest- AConsumerthat will call methods onDeleteDetectorRequest.Builderto create a request.- Returns:
- Result of the DeleteDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteFilter
default DeleteFilterResponse deleteFilter(DeleteFilterRequest deleteFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the filter specified by the filter name.
- Parameters:
deleteFilterRequest-- Returns:
- Result of the DeleteFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteFilter
default DeleteFilterResponse deleteFilter(Consumer<DeleteFilterRequest.Builder> deleteFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the filter specified by the filter name.
This is a convenience which creates an instance of the
DeleteFilterRequest.Builderavoiding the need to create one manually viaDeleteFilterRequest.builder()- Parameters:
deleteFilterRequest- AConsumerthat will call methods onDeleteFilterRequest.Builderto create a request.- Returns:
- Result of the DeleteFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteIPSet
default DeleteIpSetResponse deleteIPSet(DeleteIpSetRequest deleteIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the IPSet specified by the
ipSetId. IPSets are called trusted IP lists in the console user interface.- Parameters:
deleteIpSetRequest-- Returns:
- Result of the DeleteIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteIPSet
default DeleteIpSetResponse deleteIPSet(Consumer<DeleteIpSetRequest.Builder> deleteIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the IPSet specified by the
ipSetId. IPSets are called trusted IP lists in the console user interface.
This is a convenience which creates an instance of the
DeleteIpSetRequest.Builderavoiding the need to create one manually viaDeleteIpSetRequest.builder()- Parameters:
deleteIpSetRequest- AConsumerthat will call methods onDeleteIpSetRequest.Builderto create a request.- Returns:
- Result of the DeleteIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteInvitations
default DeleteInvitationsResponse deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.
- Parameters:
deleteInvitationsRequest-- Returns:
- Result of the DeleteInvitations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteInvitations
default DeleteInvitationsResponse deleteInvitations(Consumer<DeleteInvitationsRequest.Builder> deleteInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account IDs.
This is a convenience which creates an instance of the
DeleteInvitationsRequest.Builderavoiding the need to create one manually viaDeleteInvitationsRequest.builder()- Parameters:
deleteInvitationsRequest- AConsumerthat will call methods onDeleteInvitationsRequest.Builderto create a request.- Returns:
- Result of the DeleteInvitations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteMembers
default DeleteMembersResponse deleteMembers(DeleteMembersRequest deleteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.
With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to disable GuardDuty for a member account in your organization.- Parameters:
deleteMembersRequest-- Returns:
- Result of the DeleteMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteMembers
default DeleteMembersResponse deleteMembers(Consumer<DeleteMembersRequest.Builder> deleteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs.
With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to disable GuardDuty for a member account in your organization.
This is a convenience which creates an instance of the
DeleteMembersRequest.Builderavoiding the need to create one manually viaDeleteMembersRequest.builder()- Parameters:
deleteMembersRequest- AConsumerthat will call methods onDeleteMembersRequest.Builderto create a request.- Returns:
- Result of the DeleteMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deletePublishingDestination
default DeletePublishingDestinationResponse deletePublishingDestination(DeletePublishingDestinationRequest deletePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the publishing definition with the specified
destinationId.- Parameters:
deletePublishingDestinationRequest-- Returns:
- Result of the DeletePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deletePublishingDestination
default DeletePublishingDestinationResponse deletePublishingDestination(Consumer<DeletePublishingDestinationRequest.Builder> deletePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the publishing definition with the specified
destinationId.
This is a convenience which creates an instance of the
DeletePublishingDestinationRequest.Builderavoiding the need to create one manually viaDeletePublishingDestinationRequest.builder()- Parameters:
deletePublishingDestinationRequest- AConsumerthat will call methods onDeletePublishingDestinationRequest.Builderto create a request.- Returns:
- Result of the DeletePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteThreatIntelSet
default DeleteThreatIntelSetResponse deleteThreatIntelSet(DeleteThreatIntelSetRequest deleteThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.
- Parameters:
deleteThreatIntelSetRequest-- Returns:
- Result of the DeleteThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteThreatIntelSet
default DeleteThreatIntelSetResponse deleteThreatIntelSet(Consumer<DeleteThreatIntelSetRequest.Builder> deleteThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deletes the ThreatIntelSet specified by the ThreatIntelSet ID.
This is a convenience which creates an instance of the
DeleteThreatIntelSetRequest.Builderavoiding the need to create one manually viaDeleteThreatIntelSetRequest.builder()- Parameters:
deleteThreatIntelSetRequest- AConsumerthat will call methods onDeleteThreatIntelSetRequest.Builderto create a request.- Returns:
- Result of the DeleteThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMalwareScans
default DescribeMalwareScansResponse describeMalwareScans(DescribeMalwareScansRequest describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the DescribeMalwareScans operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMalwareScans
default DescribeMalwareScansResponse describeMalwareScans(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns a list of malware scans. Each member account can view the malware scans for their own accounts. An administrator can view the malware scans for all the member accounts.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
DescribeMalwareScansRequest.Builderavoiding the need to create one manually viaDescribeMalwareScansRequest.builder()- Parameters:
describeMalwareScansRequest- AConsumerthat will call methods onDescribeMalwareScansRequest.Builderto create a request.- Returns:
- Result of the DescribeMalwareScans operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMalwareScansPaginator
default DescribeMalwareScansIterable describeMalwareScansPaginator(DescribeMalwareScansRequest describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client .describeMalwareScansPaginator(request); for (software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeMalwareScansPaginator
default DescribeMalwareScansIterable describeMalwareScansPaginator(Consumer<DescribeMalwareScansRequest.Builder> describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client .describeMalwareScansPaginator(request); for (software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)operation.
This is a convenience which creates an instance of the
DescribeMalwareScansRequest.Builderavoiding the need to create one manually viaDescribeMalwareScansRequest.builder()- Parameters:
describeMalwareScansRequest- AConsumerthat will call methods onDescribeMalwareScansRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeOrganizationConfiguration
default DescribeOrganizationConfigurationResponse describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the DescribeOrganizationConfiguration operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeOrganizationConfiguration
default DescribeOrganizationConfigurationResponse describeOrganizationConfiguration(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns information about the account selected as the delegated administrator for GuardDuty.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
DescribeOrganizationConfigurationRequest.Builderavoiding the need to create one manually viaDescribeOrganizationConfigurationRequest.builder()- Parameters:
describeOrganizationConfigurationRequest- AConsumerthat will call methods onDescribeOrganizationConfigurationRequest.Builderto create a request.- Returns:
- Result of the DescribeOrganizationConfiguration operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeOrganizationConfigurationPaginator
default DescribeOrganizationConfigurationIterable describeOrganizationConfigurationPaginator(DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client .describeOrganizationConfigurationPaginator(request); for (software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeOrganizationConfigurationPaginator
default DescribeOrganizationConfigurationIterable describeOrganizationConfigurationPaginator(Consumer<DescribeOrganizationConfigurationRequest.Builder> describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client .describeOrganizationConfigurationPaginator(request); for (software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)operation.
This is a convenience which creates an instance of the
DescribeOrganizationConfigurationRequest.Builderavoiding the need to create one manually viaDescribeOrganizationConfigurationRequest.builder()- Parameters:
describeOrganizationConfigurationRequest- AConsumerthat will call methods onDescribeOrganizationConfigurationRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describePublishingDestination
default DescribePublishingDestinationResponse describePublishingDestination(DescribePublishingDestinationRequest describePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns information about the publishing destination specified by the provided
destinationId.- Parameters:
describePublishingDestinationRequest-- Returns:
- Result of the DescribePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describePublishingDestination
default DescribePublishingDestinationResponse describePublishingDestination(Consumer<DescribePublishingDestinationRequest.Builder> describePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns information about the publishing destination specified by the provided
destinationId.
This is a convenience which creates an instance of the
DescribePublishingDestinationRequest.Builderavoiding the need to create one manually viaDescribePublishingDestinationRequest.builder()- Parameters:
describePublishingDestinationRequest- AConsumerthat will call methods onDescribePublishingDestinationRequest.Builderto create a request.- Returns:
- Result of the DescribePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disableOrganizationAdminAccount
default DisableOrganizationAdminAccountResponse disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Removes the existing GuardDuty delegated administrator of the organization. Only the organization's management account can run this API operation.
- Parameters:
disableOrganizationAdminAccountRequest-- Returns:
- Result of the DisableOrganizationAdminAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disableOrganizationAdminAccount
default DisableOrganizationAdminAccountResponse disableOrganizationAdminAccount(Consumer<DisableOrganizationAdminAccountRequest.Builder> disableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Removes the existing GuardDuty delegated administrator of the organization. Only the organization's management account can run this API operation.
This is a convenience which creates an instance of the
DisableOrganizationAdminAccountRequest.Builderavoiding the need to create one manually viaDisableOrganizationAdminAccountRequest.builder()- Parameters:
disableOrganizationAdminAccountRequest- AConsumerthat will call methods onDisableOrganizationAdminAccountRequest.Builderto create a request.- Returns:
- Result of the DisableOrganizationAdminAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateFromAdministratorAccount
default DisassociateFromAdministratorAccountResponse disassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Disassociates the current GuardDuty member account from its administrator account.
When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.
With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to disable GuardDuty in a member account.- Parameters:
disassociateFromAdministratorAccountRequest-- Returns:
- Result of the DisassociateFromAdministratorAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateFromAdministratorAccount
default DisassociateFromAdministratorAccountResponse disassociateFromAdministratorAccount(Consumer<DisassociateFromAdministratorAccountRequest.Builder> disassociateFromAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Disassociates the current GuardDuty member account from its administrator account.
When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.
With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to disable GuardDuty in a member account.
This is a convenience which creates an instance of the
DisassociateFromAdministratorAccountRequest.Builderavoiding the need to create one manually viaDisassociateFromAdministratorAccountRequest.builder()- Parameters:
disassociateFromAdministratorAccountRequest- AConsumerthat will call methods onDisassociateFromAdministratorAccountRequest.Builderto create a request.- Returns:
- Result of the DisassociateFromAdministratorAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateFromMasterAccount
@Deprecated default DisassociateFromMasterAccountResponse disassociateFromMasterAccount(DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the DisassociateFromMasterAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateFromMasterAccount
@Deprecated default DisassociateFromMasterAccountResponse disassociateFromMasterAccount(Consumer<DisassociateFromMasterAccountRequest.Builder> disassociateFromMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deprecated.This operation is deprecated, use DisassociateFromAdministratorAccount insteadDisassociates the current GuardDuty member account from its administrator account.
When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.
This is a convenience which creates an instance of the
DisassociateFromMasterAccountRequest.Builderavoiding the need to create one manually viaDisassociateFromMasterAccountRequest.builder()- Parameters:
disassociateFromMasterAccountRequest- AConsumerthat will call methods onDisassociateFromMasterAccountRequest.Builderto create a request.- Returns:
- Result of the DisassociateFromMasterAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateMembers
default DisassociateMembersResponse disassociateMembers(DisassociateMembersRequest disassociateMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.
When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.
With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to disassociate a member account before removing them from your organization.- Parameters:
disassociateMembersRequest-- Returns:
- Result of the DisassociateMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateMembers
default DisassociateMembersResponse disassociateMembers(Consumer<DisassociateMembersRequest.Builder> disassociateMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs.
When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the CreateMembers API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the InviteMembers API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the DeleteMembers API.
With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to disassociate a member account before removing them from your organization.
This is a convenience which creates an instance of the
DisassociateMembersRequest.Builderavoiding the need to create one manually viaDisassociateMembersRequest.builder()- Parameters:
disassociateMembersRequest- AConsumerthat will call methods onDisassociateMembersRequest.Builderto create a request.- Returns:
- Result of the DisassociateMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
enableOrganizationAdminAccount
default EnableOrganizationAdminAccountResponse enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the EnableOrganizationAdminAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
enableOrganizationAdminAccount
default EnableOrganizationAdminAccountResponse enableOrganizationAdminAccount(Consumer<EnableOrganizationAdminAccountRequest.Builder> enableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator. Only the organization's management account can run this API operation.
This is a convenience which creates an instance of the
EnableOrganizationAdminAccountRequest.Builderavoiding the need to create one manually viaEnableOrganizationAdminAccountRequest.builder()- Parameters:
enableOrganizationAdminAccountRequest- AConsumerthat will call methods onEnableOrganizationAdminAccountRequest.Builderto create a request.- Returns:
- Result of the EnableOrganizationAdminAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAdministratorAccount
default GetAdministratorAccountResponse getAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetAdministratorAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getAdministratorAccount
default GetAdministratorAccountResponse getAdministratorAccount(Consumer<GetAdministratorAccountRequest.Builder> getAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account.
If the organization's management account or a delegated administrator runs this API, it will return success (
HTTP 200) but no content.
This is a convenience which creates an instance of the
GetAdministratorAccountRequest.Builderavoiding the need to create one manually viaGetAdministratorAccountRequest.builder()- Parameters:
getAdministratorAccountRequest- AConsumerthat will call methods onGetAdministratorAccountRequest.Builderto create a request.- Returns:
- Result of the GetAdministratorAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getCoverageStatistics
default GetCoverageStatisticsResponse getCoverageStatistics(GetCoverageStatisticsRequest getCoverageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetCoverageStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getCoverageStatistics
default GetCoverageStatisticsResponse getCoverageStatistics(Consumer<GetCoverageStatisticsRequest.Builder> getCoverageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the statistics for all the resources associated with the active member accounts in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running on their resources.
This is a convenience which creates an instance of the
GetCoverageStatisticsRequest.Builderavoiding the need to create one manually viaGetCoverageStatisticsRequest.builder()- Parameters:
getCoverageStatisticsRequest- AConsumerthat will call methods onGetCoverageStatisticsRequest.Builderto create a request.- Returns:
- Result of the GetCoverageStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDetector
default GetDetectorResponse getDetector(GetDetectorRequest getDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDetector
default GetDetectorResponse getDetector(Consumer<GetDetectorRequest.Builder> getDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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.Builderavoiding the need to create one manually viaGetDetectorRequest.builder()- Parameters:
getDetectorRequest- AConsumerthat will call methods onGetDetectorRequest.Builderto create a request.- Returns:
- Result of the GetDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFilter
default GetFilterResponse getFilter(GetFilterRequest getFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns the details of the filter specified by the filter name.
- Parameters:
getFilterRequest-- Returns:
- Result of the GetFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFilter
default GetFilterResponse getFilter(Consumer<GetFilterRequest.Builder> getFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns the details of the filter specified by the filter name.
This is a convenience which creates an instance of the
GetFilterRequest.Builderavoiding the need to create one manually viaGetFilterRequest.builder()- Parameters:
getFilterRequest- AConsumerthat will call methods onGetFilterRequest.Builderto create a request.- Returns:
- Result of the GetFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindings
default GetFindingsResponse getFindings(GetFindingsRequest getFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Describes Amazon GuardDuty findings specified by finding IDs.
- Parameters:
getFindingsRequest-- Returns:
- Result of the GetFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindings
default GetFindingsResponse getFindings(Consumer<GetFindingsRequest.Builder> getFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Describes Amazon GuardDuty findings specified by finding IDs.
This is a convenience which creates an instance of the
GetFindingsRequest.Builderavoiding the need to create one manually viaGetFindingsRequest.builder()- Parameters:
getFindingsRequest- AConsumerthat will call methods onGetFindingsRequest.Builderto create a request.- Returns:
- Result of the GetFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindingsStatistics
default GetFindingsStatisticsResponse getFindingsStatistics(GetFindingsStatisticsRequest getFindingsStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetFindingsStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getFindingsStatistics
default GetFindingsStatisticsResponse getFindingsStatistics(Consumer<GetFindingsStatisticsRequest.Builder> getFindingsStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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.Builderavoiding the need to create one manually viaGetFindingsStatisticsRequest.builder()- Parameters:
getFindingsStatisticsRequest- AConsumerthat will call methods onGetFindingsStatisticsRequest.Builderto create a request.- Returns:
- Result of the GetFindingsStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getIPSet
default GetIpSetResponse getIPSet(GetIpSetRequest getIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves the IPSet specified by the
ipSetId.- Parameters:
getIpSetRequest-- Returns:
- Result of the GetIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getIPSet
default GetIpSetResponse getIPSet(Consumer<GetIpSetRequest.Builder> getIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves the IPSet specified by the
ipSetId.
This is a convenience which creates an instance of the
GetIpSetRequest.Builderavoiding the need to create one manually viaGetIpSetRequest.builder()- Parameters:
getIpSetRequest- AConsumerthat will call methods onGetIpSetRequest.Builderto create a request.- Returns:
- Result of the GetIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getInvitationsCount
default GetInvitationsCountResponse getInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.
- Parameters:
getInvitationsCountRequest-- Returns:
- Result of the GetInvitationsCount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getInvitationsCount
default GetInvitationsCountResponse getInvitationsCount(Consumer<GetInvitationsCountRequest.Builder> getInvitationsCountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.
This is a convenience which creates an instance of the
GetInvitationsCountRequest.Builderavoiding the need to create one manually viaGetInvitationsCountRequest.builder()- Parameters:
getInvitationsCountRequest- AConsumerthat will call methods onGetInvitationsCountRequest.Builderto create a request.- Returns:
- Result of the GetInvitationsCount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getInvitationsCount
default GetInvitationsCountResponse getInvitationsCount() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.
- Returns:
- Result of the GetInvitationsCount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
getInvitationsCount(GetInvitationsCountRequest), AWS API Documentation
-
getMalwareScanSettings
default GetMalwareScanSettingsResponse getMalwareScanSettings(GetMalwareScanSettingsRequest getMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetMalwareScanSettings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getMalwareScanSettings
default GetMalwareScanSettingsResponse getMalwareScanSettings(Consumer<GetMalwareScanSettingsRequest.Builder> getMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns the details of the malware scan settings.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
GetMalwareScanSettingsRequest.Builderavoiding the need to create one manually viaGetMalwareScanSettingsRequest.builder()- Parameters:
getMalwareScanSettingsRequest- AConsumerthat will call methods onGetMalwareScanSettingsRequest.Builderto create a request.- Returns:
- Result of the GetMalwareScanSettings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getMasterAccount
@Deprecated default GetMasterAccountResponse getMasterAccount(GetMasterAccountRequest getMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetMasterAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getMasterAccount
@Deprecated default GetMasterAccountResponse getMasterAccount(Consumer<GetMasterAccountRequest.Builder> getMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Deprecated.This operation is deprecated, use GetAdministratorAccount insteadProvides the details for the GuardDuty administrator account associated with the current GuardDuty member account.
This is a convenience which creates an instance of the
GetMasterAccountRequest.Builderavoiding the need to create one manually viaGetMasterAccountRequest.builder()- Parameters:
getMasterAccountRequest- AConsumerthat will call methods onGetMasterAccountRequest.Builderto create a request.- Returns:
- Result of the GetMasterAccount operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getMemberDetectors
default GetMemberDetectorsResponse getMemberDetectors(GetMemberDetectorsRequest getMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetMemberDetectors operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getMemberDetectors
default GetMemberDetectorsResponse getMemberDetectors(Consumer<GetMemberDetectorsRequest.Builder> getMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Describes which data sources are enabled for the member account's detector.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
GetMemberDetectorsRequest.Builderavoiding the need to create one manually viaGetMemberDetectorsRequest.builder()- Parameters:
getMemberDetectorsRequest- AConsumerthat will call methods onGetMemberDetectorsRequest.Builderto create a request.- Returns:
- Result of the GetMemberDetectors operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getMembers
default GetMembersResponse getMembers(GetMembersRequest getMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.
- Parameters:
getMembersRequest-- Returns:
- Result of the GetMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getMembers
default GetMembersResponse getMembers(Consumer<GetMembersRequest.Builder> getMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account IDs.
This is a convenience which creates an instance of the
GetMembersRequest.Builderavoiding the need to create one manually viaGetMembersRequest.builder()- Parameters:
getMembersRequest- AConsumerthat will call methods onGetMembersRequest.Builderto create a request.- Returns:
- Result of the GetMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getOrganizationStatistics
default GetOrganizationStatisticsResponse getOrganizationStatistics(GetOrganizationStatisticsRequest getOrganizationStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves how many active member accounts in your Amazon Web Services organization have each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API.
When you create a new Amazon Web Services organization, it might take up to 24 hours to generate the statistics for the entire organization.
- Parameters:
getOrganizationStatisticsRequest-- Returns:
- Result of the GetOrganizationStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getOrganizationStatistics
default GetOrganizationStatisticsResponse getOrganizationStatistics(Consumer<GetOrganizationStatisticsRequest.Builder> getOrganizationStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves how many active member accounts in your Amazon Web Services organization have each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API.
When you create a new Amazon Web Services organization, it might take up to 24 hours to generate the statistics for the entire organization.
This is a convenience which creates an instance of the
GetOrganizationStatisticsRequest.Builderavoiding the need to create one manually viaGetOrganizationStatisticsRequest.builder()- Parameters:
getOrganizationStatisticsRequest- AConsumerthat will call methods onGetOrganizationStatisticsRequest.Builderto create a request.- Returns:
- Result of the GetOrganizationStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRemainingFreeTrialDays
default GetRemainingFreeTrialDaysResponse getRemainingFreeTrialDays(GetRemainingFreeTrialDaysRequest getRemainingFreeTrialDaysRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Provides the number of days left for each data source used in the free trial period.
- Parameters:
getRemainingFreeTrialDaysRequest-- Returns:
- Result of the GetRemainingFreeTrialDays operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getRemainingFreeTrialDays
default GetRemainingFreeTrialDaysResponse getRemainingFreeTrialDays(Consumer<GetRemainingFreeTrialDaysRequest.Builder> getRemainingFreeTrialDaysRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Provides the number of days left for each data source used in the free trial period.
This is a convenience which creates an instance of the
GetRemainingFreeTrialDaysRequest.Builderavoiding the need to create one manually viaGetRemainingFreeTrialDaysRequest.builder()- Parameters:
getRemainingFreeTrialDaysRequest- AConsumerthat will call methods onGetRemainingFreeTrialDaysRequest.Builderto create a request.- Returns:
- Result of the GetRemainingFreeTrialDays operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getThreatIntelSet
default GetThreatIntelSetResponse getThreatIntelSet(GetThreatIntelSetRequest getThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.
- Parameters:
getThreatIntelSetRequest-- Returns:
- Result of the GetThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getThreatIntelSet
default GetThreatIntelSetResponse getThreatIntelSet(Consumer<GetThreatIntelSetRequest.Builder> getThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.
This is a convenience which creates an instance of the
GetThreatIntelSetRequest.Builderavoiding the need to create one manually viaGetThreatIntelSetRequest.builder()- Parameters:
getThreatIntelSetRequest- AConsumerthat will call methods onGetThreatIntelSetRequest.Builderto create a request.- Returns:
- Result of the GetThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getUsageStatistics
default GetUsageStatisticsResponse getUsageStatistics(GetUsageStatisticsRequest getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the GetUsageStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getUsageStatistics
default GetUsageStatisticsResponse getUsageStatistics(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ from the cost metrics in the console, which project usage over 30 days to provide a monthly cost estimate. For more information, see Understanding How Usage Costs are Calculated.
This is a convenience which creates an instance of the
GetUsageStatisticsRequest.Builderavoiding the need to create one manually viaGetUsageStatisticsRequest.builder()- Parameters:
getUsageStatisticsRequest- AConsumerthat will call methods onGetUsageStatisticsRequest.Builderto create a request.- Returns:
- Result of the GetUsageStatistics operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getUsageStatisticsPaginator
default GetUsageStatisticsIterable getUsageStatisticsPaginator(GetUsageStatisticsRequest getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client .getUsageStatisticsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getUsageStatisticsPaginator
default GetUsageStatisticsIterable getUsageStatisticsPaginator(Consumer<GetUsageStatisticsRequest.Builder> getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client .getUsageStatisticsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)operation.
This is a convenience which creates an instance of the
GetUsageStatisticsRequest.Builderavoiding the need to create one manually viaGetUsageStatisticsRequest.builder()- Parameters:
getUsageStatisticsRequest- AConsumerthat will call methods onGetUsageStatisticsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
inviteMembers
default InviteMembersResponse inviteMembers(InviteMembersRequest inviteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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.
- Parameters:
inviteMembersRequest-- Returns:
- Result of the InviteMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
inviteMembers
default InviteMembersResponse inviteMembers(Consumer<InviteMembersRequest.Builder> inviteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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.
This is a convenience which creates an instance of the
InviteMembersRequest.Builderavoiding the need to create one manually viaInviteMembersRequest.builder()- Parameters:
inviteMembersRequest- AConsumerthat will call methods onInviteMembersRequest.Builderto create a request.- Returns:
- Result of the InviteMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCoverage
default ListCoverageResponse listCoverage(ListCoverageRequest listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the ListCoverage operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCoverage
default ListCoverageResponse listCoverage(Consumer<ListCoverageRequest.Builder> listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all resources associated with the active member accounts in your organization.
Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on their resources.
This is a convenience which creates an instance of the
ListCoverageRequest.Builderavoiding the need to create one manually viaListCoverageRequest.builder()- Parameters:
listCoverageRequest- AConsumerthat will call methods onListCoverageRequest.Builderto create a request.- Returns:
- Result of the ListCoverage operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCoveragePaginator
default ListCoverageIterable listCoveragePaginator(ListCoverageRequest listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListCoverageResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listCoveragePaginator
default ListCoverageIterable listCoveragePaginator(Consumer<ListCoverageRequest.Builder> listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListCoverageResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)operation.
This is a convenience which creates an instance of the
ListCoverageRequest.Builderavoiding the need to create one manually viaListCoverageRequest.builder()- Parameters:
listCoverageRequest- AConsumerthat will call methods onListCoverageRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDetectors
default ListDetectorsResponse listDetectors(ListDetectorsRequest listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists detectorIds of all the existing Amazon GuardDuty detector resources.
- Parameters:
listDetectorsRequest-- Returns:
- Result of the ListDetectors operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDetectors
default ListDetectorsResponse listDetectors(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists detectorIds of all the existing Amazon GuardDuty detector resources.
This is a convenience which creates an instance of the
ListDetectorsRequest.Builderavoiding the need to create one manually viaListDetectorsRequest.builder()- Parameters:
listDetectorsRequest- AConsumerthat will call methods onListDetectorsRequest.Builderto create a request.- Returns:
- Result of the ListDetectors operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDetectors
default ListDetectorsResponse listDetectors() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists detectorIds of all the existing Amazon GuardDuty detector resources.
- Returns:
- Result of the ListDetectors operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listDetectors(ListDetectorsRequest), AWS API Documentation
-
listDetectorsPaginator
default ListDetectorsIterable listDetectorsPaginator() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listDetectorsPaginator(ListDetectorsRequest), AWS API Documentation
-
listDetectorsPaginator
default ListDetectorsIterable listDetectorsPaginator(ListDetectorsRequest listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDetectorsPaginator
default ListDetectorsIterable listDetectorsPaginator(Consumer<ListDetectorsRequest.Builder> listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)operation.
This is a convenience which creates an instance of the
ListDetectorsRequest.Builderavoiding the need to create one manually viaListDetectorsRequest.builder()- Parameters:
listDetectorsRequest- AConsumerthat will call methods onListDetectorsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFilters
default ListFiltersResponse listFilters(ListFiltersRequest listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns a paginated list of the current filters.
- Parameters:
listFiltersRequest-- Returns:
- Result of the ListFilters operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFilters
default ListFiltersResponse listFilters(Consumer<ListFiltersRequest.Builder> listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns a paginated list of the current filters.
This is a convenience which creates an instance of the
ListFiltersRequest.Builderavoiding the need to create one manually viaListFiltersRequest.builder()- Parameters:
listFiltersRequest- AConsumerthat will call methods onListFiltersRequest.Builderto create a request.- Returns:
- Result of the ListFilters operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFiltersPaginator
default ListFiltersIterable listFiltersPaginator(ListFiltersRequest listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListFiltersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFiltersPaginator
default ListFiltersIterable listFiltersPaginator(Consumer<ListFiltersRequest.Builder> listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListFiltersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)operation.
This is a convenience which creates an instance of the
ListFiltersRequest.Builderavoiding the need to create one manually viaListFiltersRequest.builder()- Parameters:
listFiltersRequest- AConsumerthat will call methods onListFiltersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindings
default ListFindingsResponse listFindings(ListFindingsRequest listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the ListFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindings
default ListFindingsResponse listFindings(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists GuardDuty findings for the specified detector ID.
There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
ListFindingsRequest.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto create a request.- Returns:
- Result of the ListFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(ListFindingsRequest listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listFindingsPaginator
default ListFindingsIterable listFindingsPaginator(Consumer<ListFindingsRequest.Builder> listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListFindingsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)operation.
This is a convenience which creates an instance of the
ListFindingsRequest.Builderavoiding the need to create one manually viaListFindingsRequest.builder()- Parameters:
listFindingsRequest- AConsumerthat will call methods onListFindingsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listIPSets
default ListIpSetsResponse listIPSets(ListIpSetsRequest listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the ListIPSets operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listIPSets
default ListIpSetsResponse listIPSets(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists the IPSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the IPSets returned are the IPSets from the associated administrator account.
This is a convenience which creates an instance of the
ListIpSetsRequest.Builderavoiding the need to create one manually viaListIpSetsRequest.builder()- Parameters:
listIpSetsRequest- AConsumerthat will call methods onListIpSetsRequest.Builderto create a request.- Returns:
- Result of the ListIPSets operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listIPSetsPaginator
default ListIPSetsIterable listIPSetsPaginator(ListIpSetsRequest listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listIPSetsPaginator
default ListIPSetsIterable listIPSetsPaginator(Consumer<ListIpSetsRequest.Builder> listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)operation.
This is a convenience which creates an instance of the
ListIpSetsRequest.Builderavoiding the need to create one manually viaListIpSetsRequest.builder()- Parameters:
listIpSetsRequest- AConsumerthat will call methods onListIpSetsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listInvitations
default ListInvitationsResponse listInvitations(ListInvitationsRequest listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.
- Parameters:
listInvitationsRequest-- Returns:
- Result of the ListInvitations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listInvitations
default ListInvitationsResponse listInvitations(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.
This is a convenience which creates an instance of the
ListInvitationsRequest.Builderavoiding the need to create one manually viaListInvitationsRequest.builder()- Parameters:
listInvitationsRequest- AConsumerthat will call methods onListInvitationsRequest.Builderto create a request.- Returns:
- Result of the ListInvitations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listInvitations
default ListInvitationsResponse listInvitations() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account.
- Returns:
- Result of the ListInvitations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listInvitations(ListInvitationsRequest), AWS API Documentation
-
listInvitationsPaginator
default ListInvitationsIterable listInvitationsPaginator() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client .listInvitationsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
listInvitationsPaginator(ListInvitationsRequest), AWS API Documentation
-
listInvitationsPaginator
default ListInvitationsIterable listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client .listInvitationsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listInvitationsPaginator
default ListInvitationsIterable listInvitationsPaginator(Consumer<ListInvitationsRequest.Builder> listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client .listInvitationsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)operation.
This is a convenience which creates an instance of the
ListInvitationsRequest.Builderavoiding the need to create one manually viaListInvitationsRequest.builder()- Parameters:
listInvitationsRequest- AConsumerthat will call methods onListInvitationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listMembers
default ListMembersResponse listMembers(ListMembersRequest listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists details about all member accounts for the current GuardDuty administrator account.
- Parameters:
listMembersRequest-- Returns:
- Result of the ListMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listMembers
default ListMembersResponse listMembers(Consumer<ListMembersRequest.Builder> listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists details about all member accounts for the current GuardDuty administrator account.
This is a convenience which creates an instance of the
ListMembersRequest.Builderavoiding the need to create one manually viaListMembersRequest.builder()- Parameters:
listMembersRequest- AConsumerthat will call methods onListMembersRequest.Builderto create a request.- Returns:
- Result of the ListMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listMembersPaginator
default ListMembersIterable listMembersPaginator(ListMembersRequest listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListMembersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listMembersPaginator
default ListMembersIterable listMembersPaginator(Consumer<ListMembersRequest.Builder> listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListMembersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)operation.
This is a convenience which creates an instance of the
ListMembersRequest.Builderavoiding the need to create one manually viaListMembersRequest.builder()- Parameters:
listMembersRequest- AConsumerthat will call methods onListMembersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationAdminAccounts
default ListOrganizationAdminAccountsResponse listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation.
- Parameters:
listOrganizationAdminAccountsRequest-- Returns:
- Result of the ListOrganizationAdminAccounts operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationAdminAccounts
default ListOrganizationAdminAccountsResponse listOrganizationAdminAccounts(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account can run this API operation.
This is a convenience which creates an instance of the
ListOrganizationAdminAccountsRequest.Builderavoiding the need to create one manually viaListOrganizationAdminAccountsRequest.builder()- Parameters:
listOrganizationAdminAccountsRequest- AConsumerthat will call methods onListOrganizationAdminAccountsRequest.Builderto create a request.- Returns:
- Result of the ListOrganizationAdminAccounts operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationAdminAccountsPaginator
default ListOrganizationAdminAccountsIterable listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client .listOrganizationAdminAccountsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrganizationAdminAccountsPaginator
default ListOrganizationAdminAccountsIterable listOrganizationAdminAccountsPaginator(Consumer<ListOrganizationAdminAccountsRequest.Builder> listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client .listOrganizationAdminAccountsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)operation.
This is a convenience which creates an instance of the
ListOrganizationAdminAccountsRequest.Builderavoiding the need to create one manually viaListOrganizationAdminAccountsRequest.builder()- Parameters:
listOrganizationAdminAccountsRequest- AConsumerthat will call methods onListOrganizationAdminAccountsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPublishingDestinations
default ListPublishingDestinationsResponse listPublishingDestinations(ListPublishingDestinationsRequest listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns a list of publishing destinations associated with the specified
detectorId.- Parameters:
listPublishingDestinationsRequest-- Returns:
- Result of the ListPublishingDestinations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPublishingDestinations
default ListPublishingDestinationsResponse listPublishingDestinations(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Returns a list of publishing destinations associated with the specified
detectorId.
This is a convenience which creates an instance of the
ListPublishingDestinationsRequest.Builderavoiding the need to create one manually viaListPublishingDestinationsRequest.builder()- Parameters:
listPublishingDestinationsRequest- AConsumerthat will call methods onListPublishingDestinationsRequest.Builderto create a request.- Returns:
- Result of the ListPublishingDestinations operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPublishingDestinationsPaginator
default ListPublishingDestinationsIterable listPublishingDestinationsPaginator(ListPublishingDestinationsRequest listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client .listPublishingDestinationsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listPublishingDestinationsPaginator
default ListPublishingDestinationsIterable listPublishingDestinationsPaginator(Consumer<ListPublishingDestinationsRequest.Builder> listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client .listPublishingDestinationsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)operation.
This is a convenience which creates an instance of the
ListPublishingDestinationsRequest.Builderavoiding the need to create one manually viaListPublishingDestinationsRequest.builder()- Parameters:
listPublishingDestinationsRequest- AConsumerthat will call methods onListPublishingDestinationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists tags for a resource. Tagging is currently supported for detectors, finding filters, IP sets, threat intel sets, and publishing destination, with a limit of 50 tags per resource. When invoked, this operation returns all assigned tags for a given resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listThreatIntelSets
default ListThreatIntelSetsResponse listThreatIntelSets(ListThreatIntelSetsRequest listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the ListThreatIntelSets operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listThreatIntelSets
default ListThreatIntelSetsResponse listThreatIntelSets(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a member account, the ThreatIntelSets associated with the administrator account are returned.
This is a convenience which creates an instance of the
ListThreatIntelSetsRequest.Builderavoiding the need to create one manually viaListThreatIntelSetsRequest.builder()- Parameters:
listThreatIntelSetsRequest- AConsumerthat will call methods onListThreatIntelSetsRequest.Builderto create a request.- Returns:
- Result of the ListThreatIntelSets operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listThreatIntelSetsPaginator
default ListThreatIntelSetsIterable listThreatIntelSetsPaginator(ListThreatIntelSetsRequest listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client .listThreatIntelSetsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listThreatIntelSetsPaginator
default ListThreatIntelSetsIterable listThreatIntelSetsPaginator(Consumer<ListThreatIntelSetsRequest.Builder> listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
This is a variant of
listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client .listThreatIntelSetsPaginator(request); for (software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)operation.
This is a convenience which creates an instance of the
ListThreatIntelSetsRequest.Builderavoiding the need to create one manually viaListThreatIntelSetsRequest.builder()- Parameters:
listThreatIntelSetsRequest- AConsumerthat will call methods onListThreatIntelSetsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startMalwareScan
default StartMalwareScanResponse startMalwareScan(StartMalwareScanRequest startMalwareScanRequest) throws BadRequestException, ConflictException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Initiates the malware scan. Invoking this API will automatically create the Service-linked role in the corresponding account.
- Parameters:
startMalwareScanRequest-- Returns:
- Result of the StartMalwareScan operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
startMalwareScan
default StartMalwareScanResponse startMalwareScan(Consumer<StartMalwareScanRequest.Builder> startMalwareScanRequest) throws BadRequestException, ConflictException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Initiates the malware scan. Invoking this API will automatically create the Service-linked role in the corresponding account.
This is a convenience which creates an instance of the
StartMalwareScanRequest.Builderavoiding the need to create one manually viaStartMalwareScanRequest.builder()- Parameters:
startMalwareScanRequest- AConsumerthat will call methods onStartMalwareScanRequest.Builderto create a request.- Returns:
- Result of the StartMalwareScan operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
startMonitoringMembers
default StartMonitoringMembersResponse startMonitoringMembers(StartMonitoringMembersRequest startMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the StartMonitoringMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startMonitoringMembers
default StartMonitoringMembersResponse startMonitoringMembers(Consumer<StartMonitoringMembersRequest.Builder> startMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Turns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of accounts that you stopped monitoring with the StopMonitoringMembers operation.
This is a convenience which creates an instance of the
StartMonitoringMembersRequest.Builderavoiding the need to create one manually viaStartMonitoringMembersRequest.builder()- Parameters:
startMonitoringMembersRequest- AConsumerthat will call methods onStartMonitoringMembersRequest.Builderto create a request.- Returns:
- Result of the StartMonitoringMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopMonitoringMembers
default StopMonitoringMembersResponse stopMonitoringMembers(StopMonitoringMembersRequest stopMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Stops GuardDuty monitoring for the specified member accounts. Use the
StartMonitoringMembersoperation to restart monitoring for those accounts.With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to stop monitoring the member accounts in your organization.- Parameters:
stopMonitoringMembersRequest-- Returns:
- Result of the StopMonitoringMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopMonitoringMembers
default StopMonitoringMembersResponse stopMonitoringMembers(Consumer<StopMonitoringMembersRequest.Builder> stopMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Stops GuardDuty monitoring for the specified member accounts. Use the
StartMonitoringMembersoperation to restart monitoring for those accounts.With
autoEnableOrganizationMembersconfiguration for your organization set toALL, you'll receive an error if you attempt to stop monitoring the member accounts in your organization.
This is a convenience which creates an instance of the
StopMonitoringMembersRequest.Builderavoiding the need to create one manually viaStopMonitoringMembersRequest.builder()- Parameters:
stopMonitoringMembersRequest- AConsumerthat will call methods onStopMonitoringMembersRequest.Builderto create a request.- Returns:
- Result of the StopMonitoringMembers operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Adds tags to a resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Adds tags to a resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
unarchiveFindings
default UnarchiveFindingsResponse unarchiveFindings(UnarchiveFindingsRequest unarchiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Unarchives GuardDuty findings specified by the
findingIds.- Parameters:
unarchiveFindingsRequest-- Returns:
- Result of the UnarchiveFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
unarchiveFindings
default UnarchiveFindingsResponse unarchiveFindings(Consumer<UnarchiveFindingsRequest.Builder> unarchiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Unarchives GuardDuty findings specified by the
findingIds.
This is a convenience which creates an instance of the
UnarchiveFindingsRequest.Builderavoiding the need to create one manually viaUnarchiveFindingsRequest.builder()- Parameters:
unarchiveFindingsRequest- AConsumerthat will call methods onUnarchiveFindingsRequest.Builderto create a request.- Returns:
- Result of the UnarchiveFindings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Removes tags from a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Removes tags from a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
updateDetector
default UpdateDetectorResponse updateDetector(UpdateDetectorRequest updateDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the 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:
updateDetectorRequest-- Returns:
- Result of the UpdateDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateDetector
default UpdateDetectorResponse updateDetector(Consumer<UpdateDetectorRequest.Builder> updateDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the 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
UpdateDetectorRequest.Builderavoiding the need to create one manually viaUpdateDetectorRequest.builder()- Parameters:
updateDetectorRequest- AConsumerthat will call methods onUpdateDetectorRequest.Builderto create a request.- Returns:
- Result of the UpdateDetector operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateFilter
default UpdateFilterResponse updateFilter(UpdateFilterRequest updateFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the filter specified by the filter name.
- Parameters:
updateFilterRequest-- Returns:
- Result of the UpdateFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateFilter
default UpdateFilterResponse updateFilter(Consumer<UpdateFilterRequest.Builder> updateFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the filter specified by the filter name.
This is a convenience which creates an instance of the
UpdateFilterRequest.Builderavoiding the need to create one manually viaUpdateFilterRequest.builder()- Parameters:
updateFilterRequest- AConsumerthat will call methods onUpdateFilterRequest.Builderto create a request.- Returns:
- Result of the UpdateFilter operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateFindingsFeedback
default UpdateFindingsFeedbackResponse updateFindingsFeedback(UpdateFindingsFeedbackRequest updateFindingsFeedbackRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Marks the specified GuardDuty findings as useful or not useful.
- Parameters:
updateFindingsFeedbackRequest-- Returns:
- Result of the UpdateFindingsFeedback operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateFindingsFeedback
default UpdateFindingsFeedbackResponse updateFindingsFeedback(Consumer<UpdateFindingsFeedbackRequest.Builder> updateFindingsFeedbackRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Marks the specified GuardDuty findings as useful or not useful.
This is a convenience which creates an instance of the
UpdateFindingsFeedbackRequest.Builderavoiding the need to create one manually viaUpdateFindingsFeedbackRequest.builder()- Parameters:
updateFindingsFeedbackRequest- AConsumerthat will call methods onUpdateFindingsFeedbackRequest.Builderto create a request.- Returns:
- Result of the UpdateFindingsFeedback operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateIPSet
default UpdateIpSetResponse updateIPSet(UpdateIpSetRequest updateIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the IPSet specified by the IPSet ID.
- Parameters:
updateIpSetRequest-- Returns:
- Result of the UpdateIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateIPSet
default UpdateIpSetResponse updateIPSet(Consumer<UpdateIpSetRequest.Builder> updateIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the IPSet specified by the IPSet ID.
This is a convenience which creates an instance of the
UpdateIpSetRequest.Builderavoiding the need to create one manually viaUpdateIpSetRequest.builder()- Parameters:
updateIpSetRequest- AConsumerthat will call methods onUpdateIpSetRequest.Builderto create a request.- Returns:
- Result of the UpdateIPSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateMalwareScanSettings
default UpdateMalwareScanSettingsResponse updateMalwareScanSettings(UpdateMalwareScanSettingsRequest updateMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
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:
- Result of the UpdateMalwareScanSettings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateMalwareScanSettings
default UpdateMalwareScanSettingsResponse updateMalwareScanSettings(Consumer<UpdateMalwareScanSettingsRequest.Builder> updateMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the malware scan settings.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
UpdateMalwareScanSettingsRequest.Builderavoiding the need to create one manually viaUpdateMalwareScanSettingsRequest.builder()- Parameters:
updateMalwareScanSettingsRequest- AConsumerthat will call methods onUpdateMalwareScanSettingsRequest.Builderto create a request.- Returns:
- Result of the UpdateMalwareScanSettings operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateMemberDetectors
default UpdateMemberDetectorsResponse updateMemberDetectors(UpdateMemberDetectorsRequest updateMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Contains information on member accounts to be updated.
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:
- Result of the UpdateMemberDetectors operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateMemberDetectors
default UpdateMemberDetectorsResponse updateMemberDetectors(Consumer<UpdateMemberDetectorsRequest.Builder> updateMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Contains information on member accounts to be updated.
There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
UpdateMemberDetectorsRequest.Builderavoiding the need to create one manually viaUpdateMemberDetectorsRequest.builder()- Parameters:
updateMemberDetectorsRequest- AConsumerthat will call methods onUpdateMemberDetectorsRequest.Builderto create a request.- Returns:
- Result of the UpdateMemberDetectors operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateOrganizationConfiguration
default UpdateOrganizationConfigurationResponse updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Configures the delegated administrator account with the provided values. You must provide a value for either
autoEnableOrganizationMembersorautoEnable, but not both.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:
- Result of the UpdateOrganizationConfiguration operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateOrganizationConfiguration
default UpdateOrganizationConfigurationResponse updateOrganizationConfiguration(Consumer<UpdateOrganizationConfigurationRequest.Builder> updateOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Configures the delegated administrator account with the provided values. You must provide a value for either
autoEnableOrganizationMembersorautoEnable, but not both.There might be regional differences because some data sources might not be available in all the Amazon Web Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints.
This is a convenience which creates an instance of the
UpdateOrganizationConfigurationRequest.Builderavoiding the need to create one manually viaUpdateOrganizationConfigurationRequest.builder()- Parameters:
updateOrganizationConfigurationRequest- AConsumerthat will call methods onUpdateOrganizationConfigurationRequest.Builderto create a request.- Returns:
- Result of the UpdateOrganizationConfiguration operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updatePublishingDestination
default UpdatePublishingDestinationResponse updatePublishingDestination(UpdatePublishingDestinationRequest updatePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates information about the publishing destination specified by the
destinationId.- Parameters:
updatePublishingDestinationRequest-- Returns:
- Result of the UpdatePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updatePublishingDestination
default UpdatePublishingDestinationResponse updatePublishingDestination(Consumer<UpdatePublishingDestinationRequest.Builder> updatePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates information about the publishing destination specified by the
destinationId.
This is a convenience which creates an instance of the
UpdatePublishingDestinationRequest.Builderavoiding the need to create one manually viaUpdatePublishingDestinationRequest.builder()- Parameters:
updatePublishingDestinationRequest- AConsumerthat will call methods onUpdatePublishingDestinationRequest.Builderto create a request.- Returns:
- Result of the UpdatePublishingDestination operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateThreatIntelSet
default UpdateThreatIntelSetResponse updateThreatIntelSet(UpdateThreatIntelSetRequest updateThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the ThreatIntelSet specified by the ThreatIntelSet ID.
- Parameters:
updateThreatIntelSetRequest-- Returns:
- Result of the UpdateThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateThreatIntelSet
default UpdateThreatIntelSetResponse updateThreatIntelSet(Consumer<UpdateThreatIntelSetRequest.Builder> updateThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException
Updates the ThreatIntelSet specified by the ThreatIntelSet ID.
This is a convenience which creates an instance of the
UpdateThreatIntelSetRequest.Builderavoiding the need to create one manually viaUpdateThreatIntelSetRequest.builder()- Parameters:
updateThreatIntelSetRequest- AConsumerthat will call methods onUpdateThreatIntelSetRequest.Builderto create a request.- Returns:
- Result of the UpdateThreatIntelSet operation returned by the service.
- Throws:
BadRequestException- A bad request exception object.InternalServerErrorException- An internal server error exception object.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.GuardDutyException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static GuardDutyClient create()
Create aGuardDutyClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static GuardDutyClientBuilder builder()
Create a builder that can be used to configure and create aGuardDutyClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default GuardDutyServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-