Class: Aws::Detective::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Detective::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-detective/client.rb
Overview
An API client for Detective. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::Detective::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#accept_invitation(params = {}) ⇒ Struct
Accepts an invitation for the member account to contribute data to a behavior graph.
-
#batch_get_graph_member_datasources(params = {}) ⇒ Types::BatchGetGraphMemberDatasourcesResponse
Gets data source package information for the behavior graph.
-
#batch_get_membership_datasources(params = {}) ⇒ Types::BatchGetMembershipDatasourcesResponse
Gets information on the data source package history for an account.
-
#create_graph(params = {}) ⇒ Types::CreateGraphResponse
Creates a new behavior graph for the calling account, and sets that account as the administrator account.
-
#create_members(params = {}) ⇒ Types::CreateMembersResponse
‘CreateMembers` is used to send invitations to accounts.
-
#delete_graph(params = {}) ⇒ Struct
Disables the specified behavior graph and queues it to be deleted.
-
#delete_members(params = {}) ⇒ Types::DeleteMembersResponse
Removes the specified member accounts from the behavior graph.
-
#describe_organization_configuration(params = {}) ⇒ Types::DescribeOrganizationConfigurationResponse
Returns information about the configuration for the organization behavior graph.
-
#disable_organization_admin_account(params = {}) ⇒ Struct
Removes the Detective administrator account in the current Region.
-
#disassociate_membership(params = {}) ⇒ Struct
Removes the member account from the specified behavior graph.
-
#enable_organization_admin_account(params = {}) ⇒ Struct
Designates the Detective administrator account for the organization in the current Region.
-
#get_investigation(params = {}) ⇒ Types::GetInvestigationResponse
Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise.
-
#get_members(params = {}) ⇒ Types::GetMembersResponse
Returns the membership details for specified member accounts for a behavior graph.
-
#list_datasource_packages(params = {}) ⇒ Types::ListDatasourcePackagesResponse
Lists data source packages in the behavior graph.
-
#list_graphs(params = {}) ⇒ Types::ListGraphsResponse
Returns the list of behavior graphs that the calling account is an administrator account of.
-
#list_indicators(params = {}) ⇒ Types::ListIndicatorsResponse
Gets the indicators from an investigation.
-
#list_investigations(params = {}) ⇒ Types::ListInvestigationsResponse
Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise.
-
#list_invitations(params = {}) ⇒ Types::ListInvitationsResponse
Retrieves the list of open and accepted behavior graph invitations for the member account.
-
#list_members(params = {}) ⇒ Types::ListMembersResponse
Retrieves the list of member accounts for a behavior graph.
-
#list_organization_admin_accounts(params = {}) ⇒ Types::ListOrganizationAdminAccountsResponse
Returns information about the Detective administrator account for an organization.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns the tag values that are assigned to a behavior graph.
-
#reject_invitation(params = {}) ⇒ Struct
Rejects an invitation to contribute the account data to a behavior graph.
-
#start_investigation(params = {}) ⇒ Types::StartInvestigationResponse
Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise.
-
#start_monitoring_member(params = {}) ⇒ Struct
Sends a request to enable data ingest for a member account that has a status of ‘ACCEPTED_BUT_DISABLED`.
-
#tag_resource(params = {}) ⇒ Struct
Applies tag values to a behavior graph.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a behavior graph.
-
#update_datasource_packages(params = {}) ⇒ Struct
Starts a data source package for the Detective behavior graph.
-
#update_investigation_state(params = {}) ⇒ Struct
Updates the state of an investigation.
-
#update_organization_configuration(params = {}) ⇒ Struct
Updates the configuration for the Organizations integration in the current Region.
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.
467 468 469 |
# File 'lib/aws-sdk-detective/client.rb', line 467 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.
1841 1842 1843 |
# File 'lib/aws-sdk-detective/client.rb', line 1841 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.
1844 1845 1846 |
# File 'lib/aws-sdk-detective/client.rb', line 1844 def errors_module Errors end |
Instance Method Details
#accept_invitation(params = {}) ⇒ Struct
Accepts an invitation for the member account to contribute data to a behavior graph. This operation can only be called by an invited member account.
The request provides the ARN of behavior graph.
The member account status in the graph must be ‘INVITED`.
499 500 501 502 |
# File 'lib/aws-sdk-detective/client.rb', line 499 def accept_invitation(params = {}, = {}) req = build_request(:accept_invitation, params) req.send_request() end |
#batch_get_graph_member_datasources(params = {}) ⇒ Types::BatchGetGraphMemberDatasourcesResponse
Gets data source package information for the behavior graph.
541 542 543 544 |
# File 'lib/aws-sdk-detective/client.rb', line 541 def batch_get_graph_member_datasources(params = {}, = {}) req = build_request(:batch_get_graph_member_datasources, params) req.send_request() end |
#batch_get_membership_datasources(params = {}) ⇒ Types::BatchGetMembershipDatasourcesResponse
Gets information on the data source package history for an account.
578 579 580 581 |
# File 'lib/aws-sdk-detective/client.rb', line 578 def batch_get_membership_datasources(params = {}, = {}) req = build_request(:batch_get_membership_datasources, 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.
1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 |
# File 'lib/aws-sdk-detective/client.rb', line 1814 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::Detective') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-detective' context[:gem_version] = '1.64.0' Seahorse::Client::Request.new(handlers, context) end |
#create_graph(params = {}) ⇒ Types::CreateGraphResponse
Creates a new behavior graph for the calling account, and sets that account as the administrator account. This operation is called by the account that is enabling Detective.
The operation also enables Detective for the calling account in the currently selected Region. It returns the ARN of the new behavior graph.
‘CreateGraph` triggers a process to create the corresponding data tables for the new behavior graph.
An account can only be the administrator account for one behavior graph within a Region. If the same account calls ‘CreateGraph` with the same administrator account, it always returns the same behavior graph ARN. It does not create a new behavior graph.
625 626 627 628 |
# File 'lib/aws-sdk-detective/client.rb', line 625 def create_graph(params = {}, = {}) req = build_request(:create_graph, params) req.send_request() end |
#create_members(params = {}) ⇒ Types::CreateMembersResponse
‘CreateMembers` is used to send invitations to accounts. For the organization behavior graph, the Detective administrator account uses `CreateMembers` to enable organization accounts as member accounts.
For invited accounts, ‘CreateMembers` sends a request to invite the specified Amazon Web Services accounts to be member accounts in the behavior graph. This operation can only be called by the administrator account for a behavior graph.
‘CreateMembers` verifies the accounts and then invites the verified accounts. The administrator can optionally specify to not send invitation emails to the member accounts. This would be used when the administrator manages their member accounts centrally.
For organization accounts in the organization behavior graph, ‘CreateMembers` attempts to enable the accounts. The organization accounts do not receive invitations.
The request provides the behavior graph ARN and the list of accounts to invite or to enable.
The response separates the requested accounts into two lists:
-
The accounts that ‘CreateMembers` was able to process. For invited accounts, includes member accounts that are being verified, that have passed verification and are to be invited, and that have failed verification. For organization accounts in the organization behavior graph, includes accounts that can be enabled and that cannot be enabled.
-
The accounts that ‘CreateMembers` was unable to process. This list includes accounts that were already invited to be member accounts in the behavior graph.
736 737 738 739 |
# File 'lib/aws-sdk-detective/client.rb', line 736 def create_members(params = {}, = {}) req = build_request(:create_members, params) req.send_request() end |
#delete_graph(params = {}) ⇒ Struct
Disables the specified behavior graph and queues it to be deleted. This operation removes the behavior graph from each member account’s list of behavior graphs.
‘DeleteGraph` can only be called by the administrator account for a behavior graph.
763 764 765 766 |
# File 'lib/aws-sdk-detective/client.rb', line 763 def delete_graph(params = {}, = {}) req = build_request(:delete_graph, params) req.send_request() end |
#delete_members(params = {}) ⇒ Types::DeleteMembersResponse
Removes the specified member accounts from the behavior graph. The removed accounts no longer contribute data to the behavior graph. This operation can only be called by the administrator account for the behavior graph.
For invited accounts, the removed accounts are deleted from the list of accounts in the behavior graph. To restore the account, the administrator account must send another invitation.
For organization accounts in the organization behavior graph, the Detective administrator account can always enable the organization account again. Organization accounts that are not enabled as member accounts are not included in the ‘ListMembers` results for the organization behavior graph.
An administrator account cannot use ‘DeleteMembers` to remove their own account from the behavior graph. To disable a behavior graph, the administrator account uses the `DeleteGraph` API method.
819 820 821 822 |
# File 'lib/aws-sdk-detective/client.rb', line 819 def delete_members(params = {}, = {}) req = build_request(:delete_members, params) req.send_request() end |
#describe_organization_configuration(params = {}) ⇒ Types::DescribeOrganizationConfigurationResponse
Returns information about the configuration for the organization behavior graph. Currently indicates whether to automatically enable new organization accounts as member accounts.
Can only be called by the Detective administrator account for the organization.
852 853 854 855 |
# File 'lib/aws-sdk-detective/client.rb', line 852 def describe_organization_configuration(params = {}, = {}) req = build_request(:describe_organization_configuration, params) req.send_request() end |
#disable_organization_admin_account(params = {}) ⇒ Struct
Removes the Detective administrator account in the current Region. Deletes the organization behavior graph.
Can only be called by the organization management account.
Removing the Detective administrator account does not affect the delegated administrator account for Detective in Organizations.
To remove the delegated administrator account in Organizations, use the Organizations API. Removing the delegated administrator account also removes the Detective administrator account in all Regions, except for Regions where the Detective administrator account is the organization management account.
877 878 879 880 |
# File 'lib/aws-sdk-detective/client.rb', line 877 def disable_organization_admin_account(params = {}, = {}) req = build_request(:disable_organization_admin_account, params) req.send_request() end |
#disassociate_membership(params = {}) ⇒ Struct
Removes the member account from the specified behavior graph. This operation can only be called by an invited member account that has the ‘ENABLED` status.
‘DisassociateMembership` cannot be called by an organization account in the organization behavior graph. For the organization behavior graph, the Detective administrator account determines which organization accounts to enable or disable as member accounts.
909 910 911 912 |
# File 'lib/aws-sdk-detective/client.rb', line 909 def disassociate_membership(params = {}, = {}) req = build_request(:disassociate_membership, params) req.send_request() end |
#enable_organization_admin_account(params = {}) ⇒ Struct
Designates the Detective administrator account for the organization in the current Region.
If the account does not have Detective enabled, then enables Detective for that account and creates a new behavior graph.
Can only be called by the organization management account.
If the organization has a delegated administrator account in Organizations, then the Detective administrator account must be either the delegated administrator account or the organization management account.
If the organization does not have a delegated administrator account in Organizations, then you can choose any account in the organization. If you choose an account other than the organization management account, Detective calls Organizations to make that account the delegated administrator account for Detective. The organization management account cannot be the delegated administrator account.
950 951 952 953 |
# File 'lib/aws-sdk-detective/client.rb', line 950 def enable_organization_admin_account(params = {}, = {}) req = build_request(:enable_organization_admin_account, params) req.send_request() end |
#get_investigation(params = {}) ⇒ Types::GetInvestigationResponse
Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. ‘GetInvestigation` returns the investigation results of an investigation for a behavior graph.
1005 1006 1007 1008 |
# File 'lib/aws-sdk-detective/client.rb', line 1005 def get_investigation(params = {}, = {}) req = build_request(:get_investigation, params) req.send_request() end |
#get_members(params = {}) ⇒ Types::GetMembersResponse
Returns the membership details for specified member accounts for a behavior graph.
1066 1067 1068 1069 |
# File 'lib/aws-sdk-detective/client.rb', line 1066 def get_members(params = {}, = {}) req = build_request(:get_members, params) req.send_request() end |
#list_datasource_packages(params = {}) ⇒ Types::ListDatasourcePackagesResponse
Lists data source packages in the behavior graph.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1111 1112 1113 1114 |
# File 'lib/aws-sdk-detective/client.rb', line 1111 def list_datasource_packages(params = {}, = {}) req = build_request(:list_datasource_packages, params) req.send_request() end |
#list_graphs(params = {}) ⇒ Types::ListGraphsResponse
Returns the list of behavior graphs that the calling account is an administrator account of. This operation can only be called by an administrator account.
Because an account can currently only be the administrator of one behavior graph within a Region, the results always contain a single behavior graph.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1159 1160 1161 1162 |
# File 'lib/aws-sdk-detective/client.rb', line 1159 def list_graphs(params = {}, = {}) req = build_request(:list_graphs, params) req.send_request() end |
#list_indicators(params = {}) ⇒ Types::ListIndicatorsResponse
Gets the indicators from an investigation. You can use the information from the indicators to determine if an IAM user and/or IAM role is involved in an unusual activity that could indicate malicious behavior and its impact.
1249 1250 1251 1252 |
# File 'lib/aws-sdk-detective/client.rb', line 1249 def list_indicators(params = {}, = {}) req = build_request(:list_indicators, params) req.send_request() end |
#list_investigations(params = {}) ⇒ Types::ListInvestigationsResponse
Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. ‘ListInvestigations` lists all active Detective investigations.
1333 1334 1335 1336 |
# File 'lib/aws-sdk-detective/client.rb', line 1333 def list_investigations(params = {}, = {}) req = build_request(:list_investigations, params) req.send_request() end |
#list_invitations(params = {}) ⇒ Types::ListInvitationsResponse
Retrieves the list of open and accepted behavior graph invitations for the member account. This operation can only be called by an invited member account.
Open invitations are invitations that the member account has not responded to.
The results do not include behavior graphs for which the member account declined the invitation. The results also do not include behavior graphs that the member account resigned from or was removed from.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1402 1403 1404 1405 |
# File 'lib/aws-sdk-detective/client.rb', line 1402 def list_invitations(params = {}, = {}) req = build_request(:list_invitations, params) req.send_request() end |
#list_members(params = {}) ⇒ Types::ListMembersResponse
Retrieves the list of member accounts for a behavior graph.
For invited accounts, the results do not include member accounts that were removed from the behavior graph.
For the organization behavior graph, the results do not include organization accounts that the Detective administrator account has not enabled as member accounts.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1473 1474 1475 1476 |
# File 'lib/aws-sdk-detective/client.rb', line 1473 def list_members(params = {}, = {}) req = build_request(:list_members, params) req.send_request() end |
#list_organization_admin_accounts(params = {}) ⇒ Types::ListOrganizationAdminAccountsResponse
Returns information about the Detective administrator account for an organization. Can only be called by the organization management account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1516 1517 1518 1519 |
# File 'lib/aws-sdk-detective/client.rb', line 1516 def list_organization_admin_accounts(params = {}, = {}) req = build_request(:list_organization_admin_accounts, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Returns the tag values that are assigned to a behavior graph.
1545 1546 1547 1548 |
# File 'lib/aws-sdk-detective/client.rb', line 1545 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#reject_invitation(params = {}) ⇒ Struct
Rejects an invitation to contribute the account data to a behavior graph. This operation must be called by an invited member account that has the ‘INVITED` status.
‘RejectInvitation` cannot be called by an organization account in the organization behavior graph. In the organization behavior graph, organization accounts do not receive an invitation.
1576 1577 1578 1579 |
# File 'lib/aws-sdk-detective/client.rb', line 1576 def reject_invitation(params = {}, = {}) req = build_request(:reject_invitation, params) req.send_request() end |
#start_investigation(params = {}) ⇒ Types::StartInvestigationResponse
Detective investigations lets you investigate IAM users and IAM roles using indicators of compromise. An indicator of compromise (IOC) is an artifact observed in or on a network, system, or environment that can (with a high level of confidence) identify malicious activity or a security incident. ‘StartInvestigation` initiates an investigation on an entity in a behavior graph.
1623 1624 1625 1626 |
# File 'lib/aws-sdk-detective/client.rb', line 1623 def start_investigation(params = {}, = {}) req = build_request(:start_investigation, params) req.send_request() end |
#start_monitoring_member(params = {}) ⇒ Struct
Sends a request to enable data ingest for a member account that has a status of ‘ACCEPTED_BUT_DISABLED`.
For valid member accounts, the status is updated as follows.
-
If Detective enabled the member account, then the new status is ‘ENABLED`.
-
If Detective cannot enable the member account, the status remains ‘ACCEPTED_BUT_DISABLED`.
1661 1662 1663 1664 |
# File 'lib/aws-sdk-detective/client.rb', line 1661 def start_monitoring_member(params = {}, = {}) req = build_request(:start_monitoring_member, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Applies tag values to a behavior graph.
1692 1693 1694 1695 |
# File 'lib/aws-sdk-detective/client.rb', line 1692 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a behavior graph.
1719 1720 1721 1722 |
# File 'lib/aws-sdk-detective/client.rb', line 1719 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_datasource_packages(params = {}) ⇒ Struct
Starts a data source package for the Detective behavior graph.
1745 1746 1747 1748 |
# File 'lib/aws-sdk-detective/client.rb', line 1745 def update_datasource_packages(params = {}, = {}) req = build_request(:update_datasource_packages, params) req.send_request() end |
#update_investigation_state(params = {}) ⇒ Struct
Updates the state of an investigation.
1776 1777 1778 1779 |
# File 'lib/aws-sdk-detective/client.rb', line 1776 def update_investigation_state(params = {}, = {}) req = build_request(:update_investigation_state, params) req.send_request() end |
#update_organization_configuration(params = {}) ⇒ Struct
Updates the configuration for the Organizations integration in the current Region. Can only be called by the Detective administrator account for the organization.
1805 1806 1807 1808 |
# File 'lib/aws-sdk-detective/client.rb', line 1805 def update_organization_configuration(params = {}, = {}) req = build_request(:update_organization_configuration, 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.
1834 1835 1836 |
# File 'lib/aws-sdk-detective/client.rb', line 1834 def waiter_names [] end |