Class: Aws::GuardDuty::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::GuardDuty::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-guardduty/client.rb
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#accept_invitation(params = {}) ⇒ Struct
Accepts the invitation to be monitored by a master GuardDuty account.
-
#archive_findings(params = {}) ⇒ Struct
Archives Amazon GuardDuty findings specified by the list of finding IDs.
-
#create_detector(params = {}) ⇒ Types::CreateDetectorResponse
Creates a single Amazon GuardDuty detector.
-
#create_filter(params = {}) ⇒ Types::CreateFilterResponse
Creates a filter using the specified finding criteria.
-
#create_ip_set(params = {}) ⇒ Types::CreateIPSetResponse
Creates a new IPSet - a list of trusted IP addresses that have been whitelisted for secure communication with AWS infrastructure and applications.
-
#create_members(params = {}) ⇒ Types::CreateMembersResponse
Creates member accounts of the current AWS account by specifying a list of AWS account IDs.
-
#create_sample_findings(params = {}) ⇒ Struct
Generates example findings of types specified by the list of finding types.
-
#create_threat_intel_set(params = {}) ⇒ Types::CreateThreatIntelSetResponse
Create a new ThreatIntelSet.
-
#decline_invitations(params = {}) ⇒ Types::DeclineInvitationsResponse
Declines invitations sent to the current member account by AWS account specified by their account IDs.
-
#delete_detector(params = {}) ⇒ Struct
Deletes a Amazon GuardDuty detector specified by the detector ID.
-
#delete_filter(params = {}) ⇒ Struct
Deletes the filter specified by the filter name.
-
#delete_invitations(params = {}) ⇒ Types::DeleteInvitationsResponse
Deletes invitations sent to the current member account by AWS accounts specified by their account IDs.
-
#delete_ip_set(params = {}) ⇒ Struct
Deletes the IPSet specified by the IPSet ID.
-
#delete_members(params = {}) ⇒ Types::DeleteMembersResponse
Deletes GuardDuty member accounts (to the current GuardDuty master account) specified by the account IDs.
-
#delete_threat_intel_set(params = {}) ⇒ Struct
Deletes ThreatIntelSet specified by the ThreatIntelSet ID.
-
#disassociate_from_master_account(params = {}) ⇒ Struct
Disassociates the current GuardDuty member account from its master account.
-
#disassociate_members(params = {}) ⇒ Types::DisassociateMembersResponse
Disassociates GuardDuty member accounts (to the current GuardDuty master account) specified by the account IDs.
-
#get_detector(params = {}) ⇒ Types::GetDetectorResponse
Retrieves an Amazon GuardDuty detector specified by the detectorId.
-
#get_filter(params = {}) ⇒ Types::GetFilterResponse
Returns the details of the filter specified by the filter name.
-
#get_findings(params = {}) ⇒ Types::GetFindingsResponse
Describes Amazon GuardDuty findings specified by finding IDs.
-
#get_findings_statistics(params = {}) ⇒ Types::GetFindingsStatisticsResponse
Lists Amazon GuardDuty findings’ statistics for the specified detector ID.
-
#get_invitations_count(params = {}) ⇒ Types::GetInvitationsCountResponse
Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.
-
#get_ip_set(params = {}) ⇒ Types::GetIPSetResponse
Retrieves the IPSet specified by the IPSet ID.
-
#get_master_account(params = {}) ⇒ Types::GetMasterAccountResponse
Provides the details for the GuardDuty master account to the current GuardDuty member account.
-
#get_members(params = {}) ⇒ Types::GetMembersResponse
Retrieves GuardDuty member accounts (to the current GuardDuty master account) specified by the account IDs.
-
#get_threat_intel_set(params = {}) ⇒ Types::GetThreatIntelSetResponse
Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.
-
#invite_members(params = {}) ⇒ Types::InviteMembersResponse
Invites other AWS accounts (created as members of the current AWS account by CreateMembers) to enable GuardDuty and allow the current AWS account to view and manage these accounts’ GuardDuty findings on their behalf as the master account.
-
#list_detectors(params = {}) ⇒ Types::ListDetectorsResponse
Lists detectorIds of all the existing Amazon GuardDuty detector resources.
-
#list_filters(params = {}) ⇒ Types::ListFiltersResponse
Returns a paginated list of the current filters.
-
#list_findings(params = {}) ⇒ Types::ListFindingsResponse
Lists Amazon GuardDuty findings for the specified detector ID.
-
#list_invitations(params = {}) ⇒ Types::ListInvitationsResponse
Lists all GuardDuty membership invitations that were sent to the current AWS account.
-
#list_ip_sets(params = {}) ⇒ Types::ListIPSetsResponse
Lists the IPSets of the GuardDuty service specified by the detector ID.
-
#list_members(params = {}) ⇒ Types::ListMembersResponse
Lists details about all member accounts for the current GuardDuty master account.
-
#list_threat_intel_sets(params = {}) ⇒ Types::ListThreatIntelSetsResponse
Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID.
-
#start_monitoring_members(params = {}) ⇒ Types::StartMonitoringMembersResponse
Re-enables GuardDuty to monitor findings of the member accounts specified by the account IDs.
-
#stop_monitoring_members(params = {}) ⇒ Types::StopMonitoringMembersResponse
Disables GuardDuty from monitoring findings of the member accounts specified by the account IDs.
-
#unarchive_findings(params = {}) ⇒ Struct
Unarchives Amazon GuardDuty findings specified by the list of finding IDs.
-
#update_detector(params = {}) ⇒ Struct
Updates an Amazon GuardDuty detector specified by the detectorId.
-
#update_filter(params = {}) ⇒ Types::UpdateFilterResponse
Updates the filter specified by the filter name.
-
#update_findings_feedback(params = {}) ⇒ Struct
Marks specified Amazon GuardDuty findings as useful or not useful.
-
#update_ip_set(params = {}) ⇒ Struct
Updates the IPSet specified by the IPSet ID.
-
#update_threat_intel_set(params = {}) ⇒ Struct
Updates the ThreatIntelSet specified by ThreatIntelSet ID.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
202 203 204 |
# File 'lib/aws-sdk-guardduty/client.rb', line 202 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1918 1919 1920 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1918 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1921 1922 1923 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1921 def errors_module Errors end |
Instance Method Details
#accept_invitation(params = {}) ⇒ Struct
Accepts the invitation to be monitored by a master GuardDuty account.
234 235 236 237 |
# File 'lib/aws-sdk-guardduty/client.rb', line 234 def accept_invitation(params = {}, = {}) req = build_request(:accept_invitation, params) req.send_request() end |
#archive_findings(params = {}) ⇒ Struct
Archives Amazon GuardDuty findings specified by the list of finding IDs.
260 261 262 263 |
# File 'lib/aws-sdk-guardduty/client.rb', line 260 def archive_findings(params = {}, = {}) req = build_request(:archive_findings, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1896 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-guardduty' context[:gem_version] = '1.11.0' Seahorse::Client::Request.new(handlers, context) end |
#create_detector(params = {}) ⇒ Types::CreateDetectorResponse
Creates a single Amazon GuardDuty detector. A detector is an object that represents the GuardDuty service. A detector must be created in order for GuardDuty to become operational.
300 301 302 303 |
# File 'lib/aws-sdk-guardduty/client.rb', line 300 def create_detector(params = {}, = {}) req = build_request(:create_detector, params) req.send_request() end |
#create_filter(params = {}) ⇒ Types::CreateFilterResponse
Creates a filter using the specified finding criteria.
367 368 369 370 |
# File 'lib/aws-sdk-guardduty/client.rb', line 367 def create_filter(params = {}, = {}) req = build_request(:create_filter, params) req.send_request() end |
#create_ip_set(params = {}) ⇒ Types::CreateIPSetResponse
Creates a new IPSet - a list of trusted IP addresses that have been whitelisted for secure communication with AWS infrastructure and applications.
421 422 423 424 |
# File 'lib/aws-sdk-guardduty/client.rb', line 421 def create_ip_set(params = {}, = {}) req = build_request(:create_ip_set, params) req.send_request() end |
#create_members(params = {}) ⇒ Types::CreateMembersResponse
Creates member accounts of the current AWS account by specifying a list of AWS account IDs. The current AWS account can then invite these members to manage GuardDuty in their accounts.
462 463 464 465 |
# File 'lib/aws-sdk-guardduty/client.rb', line 462 def create_members(params = {}, = {}) req = build_request(:create_members, params) req.send_request() end |
#create_sample_findings(params = {}) ⇒ Struct
Generates example findings of types specified by the list of finding types. If ‘NULL’ is specified for findingTypes, the API generates example findings of all supported finding types.
489 490 491 492 |
# File 'lib/aws-sdk-guardduty/client.rb', line 489 def create_sample_findings(params = {}, = {}) req = build_request(:create_sample_findings, params) req.send_request() end |
#create_threat_intel_set(params = {}) ⇒ Types::CreateThreatIntelSetResponse
Create a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets.
543 544 545 546 |
# File 'lib/aws-sdk-guardduty/client.rb', line 543 def create_threat_intel_set(params = {}, = {}) req = build_request(:create_threat_intel_set, params) req.send_request() end |
#decline_invitations(params = {}) ⇒ Types::DeclineInvitationsResponse
Declines invitations sent to the current member account by AWS account specified by their account IDs.
575 576 577 578 |
# File 'lib/aws-sdk-guardduty/client.rb', line 575 def decline_invitations(params = {}, = {}) req = build_request(:decline_invitations, params) req.send_request() end |
#delete_detector(params = {}) ⇒ Struct
Deletes a Amazon GuardDuty detector specified by the detector ID.
596 597 598 599 |
# File 'lib/aws-sdk-guardduty/client.rb', line 596 def delete_detector(params = {}, = {}) req = build_request(:delete_detector, params) req.send_request() end |
#delete_filter(params = {}) ⇒ Struct
Deletes the filter specified by the filter name.
620 621 622 623 |
# File 'lib/aws-sdk-guardduty/client.rb', line 620 def delete_filter(params = {}, = {}) req = build_request(:delete_filter, params) req.send_request() end |
#delete_invitations(params = {}) ⇒ Types::DeleteInvitationsResponse
Deletes invitations sent to the current member account by AWS accounts specified by their account IDs.
676 677 678 679 |
# File 'lib/aws-sdk-guardduty/client.rb', line 676 def delete_invitations(params = {}, = {}) req = build_request(:delete_invitations, params) req.send_request() end |
#delete_ip_set(params = {}) ⇒ Struct
Deletes the IPSet specified by the IPSet ID.
644 645 646 647 |
# File 'lib/aws-sdk-guardduty/client.rb', line 644 def delete_ip_set(params = {}, = {}) req = build_request(:delete_ip_set, params) req.send_request() end |
#delete_members(params = {}) ⇒ Types::DeleteMembersResponse
Deletes GuardDuty member accounts (to the current GuardDuty master account) specified by the account IDs.
711 712 713 714 |
# File 'lib/aws-sdk-guardduty/client.rb', line 711 def delete_members(params = {}, = {}) req = build_request(:delete_members, params) req.send_request() end |
#delete_threat_intel_set(params = {}) ⇒ Struct
Deletes ThreatIntelSet specified by the ThreatIntelSet ID.
735 736 737 738 |
# File 'lib/aws-sdk-guardduty/client.rb', line 735 def delete_threat_intel_set(params = {}, = {}) req = build_request(:delete_threat_intel_set, params) req.send_request() end |
#disassociate_from_master_account(params = {}) ⇒ Struct
Disassociates the current GuardDuty member account from its master account.
757 758 759 760 |
# File 'lib/aws-sdk-guardduty/client.rb', line 757 def disassociate_from_master_account(params = {}, = {}) req = build_request(:disassociate_from_master_account, params) req.send_request() end |
#disassociate_members(params = {}) ⇒ Types::DisassociateMembersResponse
Disassociates GuardDuty member accounts (to the current GuardDuty master account) specified by the account IDs.
792 793 794 795 |
# File 'lib/aws-sdk-guardduty/client.rb', line 792 def disassociate_members(params = {}, = {}) req = build_request(:disassociate_members, params) req.send_request() end |
#get_detector(params = {}) ⇒ Types::GetDetectorResponse
Retrieves an Amazon GuardDuty detector specified by the detectorId.
827 828 829 830 |
# File 'lib/aws-sdk-guardduty/client.rb', line 827 def get_detector(params = {}, = {}) req = build_request(:get_detector, params) req.send_request() end |
#get_filter(params = {}) ⇒ Types::GetFilterResponse
Returns the details of the filter specified by the filter name.
873 874 875 876 |
# File 'lib/aws-sdk-guardduty/client.rb', line 873 def get_filter(params = {}, = {}) req = build_request(:get_filter, params) req.send_request() end |
#get_findings(params = {}) ⇒ Types::GetFindingsResponse
Describes Amazon GuardDuty findings specified by finding IDs.
1015 1016 1017 1018 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1015 def get_findings(params = {}, = {}) req = build_request(:get_findings, params) req.send_request() end |
#get_findings_statistics(params = {}) ⇒ Types::GetFindingsStatisticsResponse
Lists Amazon GuardDuty findings’ statistics for the specified detector ID.
1063 1064 1065 1066 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1063 def get_findings_statistics(params = {}, = {}) req = build_request(:get_findings_statistics, params) req.send_request() end |
#get_invitations_count(params = {}) ⇒ Types::GetInvitationsCountResponse
Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.
1120 1121 1122 1123 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1120 def get_invitations_count(params = {}, = {}) req = build_request(:get_invitations_count, params) req.send_request() end |
#get_ip_set(params = {}) ⇒ Types::GetIPSetResponse
Retrieves the IPSet specified by the IPSet ID.
1099 1100 1101 1102 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1099 def get_ip_set(params = {}, = {}) req = build_request(:get_ip_set, params) req.send_request() end |
#get_master_account(params = {}) ⇒ Types::GetMasterAccountResponse
Provides the details for the GuardDuty master account to the current GuardDuty member account.
1151 1152 1153 1154 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1151 def get_master_account(params = {}, = {}) req = build_request(:get_master_account, params) req.send_request() end |
#get_members(params = {}) ⇒ Types::GetMembersResponse
Retrieves GuardDuty member accounts (to the current GuardDuty master account) specified by the account IDs.
1195 1196 1197 1198 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1195 def get_members(params = {}, = {}) req = build_request(:get_members, params) req.send_request() end |
#get_threat_intel_set(params = {}) ⇒ Types::GetThreatIntelSetResponse
Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.
1232 1233 1234 1235 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1232 def get_threat_intel_set(params = {}, = {}) req = build_request(:get_threat_intel_set, params) req.send_request() end |
#invite_members(params = {}) ⇒ Types::InviteMembersResponse
Invites other AWS accounts (created as members of the current AWS account by CreateMembers) to enable GuardDuty and allow the current AWS account to view and manage these accounts’ GuardDuty findings on their behalf as the master account.
1280 1281 1282 1283 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1280 def invite_members(params = {}, = {}) req = build_request(:invite_members, params) req.send_request() end |
#list_detectors(params = {}) ⇒ Types::ListDetectorsResponse
Lists detectorIds of all the existing Amazon GuardDuty detector resources.
1316 1317 1318 1319 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1316 def list_detectors(params = {}, = {}) req = build_request(:list_detectors, params) req.send_request() end |
#list_filters(params = {}) ⇒ Types::ListFiltersResponse
Returns a paginated list of the current filters.
1354 1355 1356 1357 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1354 def list_filters(params = {}, = {}) req = build_request(:list_filters, params) req.send_request() end |
#list_findings(params = {}) ⇒ Types::ListFindingsResponse
Lists Amazon GuardDuty findings for the specified detector ID.
1420 1421 1422 1423 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1420 def list_findings(params = {}, = {}) req = build_request(:list_findings, params) req.send_request() end |
#list_invitations(params = {}) ⇒ Types::ListInvitationsResponse
Lists all GuardDuty membership invitations that were sent to the current AWS account.
1498 1499 1500 1501 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1498 def list_invitations(params = {}, = {}) req = build_request(:list_invitations, params) req.send_request() end |
#list_ip_sets(params = {}) ⇒ Types::ListIPSetsResponse
Lists the IPSets of the GuardDuty service specified by the detector ID.
1459 1460 1461 1462 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1459 def list_ip_sets(params = {}, = {}) req = build_request(:list_ip_sets, params) req.send_request() end |
#list_members(params = {}) ⇒ Types::ListMembersResponse
Lists details about all member accounts for the current GuardDuty master account.
1546 1547 1548 1549 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1546 def list_members(params = {}, = {}) req = build_request(:list_members, params) req.send_request() end |
#list_threat_intel_sets(params = {}) ⇒ Types::ListThreatIntelSetsResponse
Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID.
1585 1586 1587 1588 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1585 def list_threat_intel_sets(params = {}, = {}) req = build_request(:list_threat_intel_sets, params) req.send_request() end |
#start_monitoring_members(params = {}) ⇒ Types::StartMonitoringMembersResponse
Re-enables GuardDuty to monitor findings of the member accounts specified by the account IDs. A master GuardDuty account can run this command after disabling GuardDuty from monitoring these members’ findings by running StopMonitoringMembers.
1622 1623 1624 1625 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1622 def start_monitoring_members(params = {}, = {}) req = build_request(:start_monitoring_members, params) req.send_request() end |
#stop_monitoring_members(params = {}) ⇒ Types::StopMonitoringMembersResponse
Disables GuardDuty from monitoring findings of the member accounts specified by the account IDs. After running this command, a master GuardDuty account can run StartMonitoringMembers to re-enable GuardDuty to monitor these members’ findings.
1659 1660 1661 1662 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1659 def stop_monitoring_members(params = {}, = {}) req = build_request(:stop_monitoring_members, params) req.send_request() end |
#unarchive_findings(params = {}) ⇒ Struct
Unarchives Amazon GuardDuty findings specified by the list of finding IDs.
1685 1686 1687 1688 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1685 def unarchive_findings(params = {}, = {}) req = build_request(:unarchive_findings, params) req.send_request() end |
#update_detector(params = {}) ⇒ Struct
Updates an Amazon GuardDuty detector specified by the detectorId.
1716 1717 1718 1719 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1716 def update_detector(params = {}, = {}) req = build_request(:update_detector, params) req.send_request() end |
#update_filter(params = {}) ⇒ Types::UpdateFilterResponse
Updates the filter specified by the filter name.
1777 1778 1779 1780 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1777 def update_filter(params = {}, = {}) req = build_request(:update_filter, params) req.send_request() end |
#update_findings_feedback(params = {}) ⇒ Struct
Marks specified Amazon GuardDuty findings as useful or not useful.
1810 1811 1812 1813 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1810 def update_findings_feedback(params = {}, = {}) req = build_request(:update_findings_feedback, params) req.send_request() end |
#update_ip_set(params = {}) ⇒ Struct
Updates the IPSet specified by the IPSet ID.
1848 1849 1850 1851 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1848 def update_ip_set(params = {}, = {}) req = build_request(:update_ip_set, params) req.send_request() end |
#update_threat_intel_set(params = {}) ⇒ Struct
Updates the ThreatIntelSet specified by ThreatIntelSet ID.
1887 1888 1889 1890 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1887 def update_threat_intel_set(params = {}, = {}) req = build_request(:update_threat_intel_set, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1911 1912 1913 |
# File 'lib/aws-sdk-guardduty/client.rb', line 1911 def waiter_names [] end |