Skip to content

DetectiveClient

Index > Detective > DetectiveClient

Auto-generated documentation for Detective type annotations stubs module types-aiobotocore-detective.

DetectiveClient

Type annotations and code completion for session.client("detective") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_detective.client import DetectiveClient

session = Session()
async with session.client("detective") as client:
    client: DetectiveClient

Exceptions

aioboto3 client exceptions are generated in runtime. This class provides code completion for session.client("detective").exceptions structure.

Usage example
async with session.client("detective") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.ConflictException,
        client.InternalServerException,
        client.ResourceNotFoundException,
        client.ServiceQuotaExceededException,
        client.TooManyRequestsException,
        client.ValidationException,
    ) as e:
        print(e)
Type checking example
from types_aiobotocore_detective.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods

accept_invitation

Accepts an invitation for the member account to contribute data to a behavior graph.

Type annotations and code completion for session.client("detective").accept_invitation method. boto3 documentation

Method definition
await def accept_invitation(
    self,
    *,
    GraphArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: AcceptInvitationRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.accept_invitation(**kwargs)
  1. See AcceptInvitationRequestRequestTypeDef

batch_get_graph_member_datasources

Gets data source package information for the behavior graph.

Type annotations and code completion for session.client("detective").batch_get_graph_member_datasources method. boto3 documentation

Method definition
await def batch_get_graph_member_datasources(
    self,
    *,
    GraphArn: str,
    AccountIds: Sequence[str],
) -> BatchGetGraphMemberDatasourcesResponseTypeDef:  # (1)
    ...
  1. See BatchGetGraphMemberDatasourcesResponseTypeDef
Usage example with kwargs
kwargs: BatchGetGraphMemberDatasourcesRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
    "AccountIds": ...,
}

parent.batch_get_graph_member_datasources(**kwargs)
  1. See BatchGetGraphMemberDatasourcesRequestRequestTypeDef

batch_get_membership_datasources

Gets information on the data source package history for an account.

Type annotations and code completion for session.client("detective").batch_get_membership_datasources method. boto3 documentation

Method definition
await def batch_get_membership_datasources(
    self,
    *,
    GraphArns: Sequence[str],
) -> BatchGetMembershipDatasourcesResponseTypeDef:  # (1)
    ...
  1. See BatchGetMembershipDatasourcesResponseTypeDef
Usage example with kwargs
kwargs: BatchGetMembershipDatasourcesRequestRequestTypeDef = {  # (1)
    "GraphArns": ...,
}

parent.batch_get_membership_datasources(**kwargs)
  1. See BatchGetMembershipDatasourcesRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for session.client("detective").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for session.client("detective").close method. boto3 documentation

Method definition
await def close(
    self,
) -> None:
    ...

create_graph

Creates a new behavior graph for the calling account, and sets that account as the administrator account.

Type annotations and code completion for session.client("detective").create_graph method. boto3 documentation

Method definition
await def create_graph(
    self,
    *,
    Tags: Mapping[str, str] = ...,
) -> CreateGraphResponseTypeDef:  # (1)
    ...
  1. See CreateGraphResponseTypeDef
Usage example with kwargs
kwargs: CreateGraphRequestRequestTypeDef = {  # (1)
    "Tags": ...,
}

parent.create_graph(**kwargs)
  1. See CreateGraphRequestRequestTypeDef

create_members

CreateMembers is used to send invitations to accounts.

Type annotations and code completion for session.client("detective").create_members method. boto3 documentation

Method definition
await def create_members(
    self,
    *,
    GraphArn: str,
    Accounts: Sequence[AccountTypeDef],  # (1)
    Message: str = ...,
    DisableEmailNotification: bool = ...,
) -> CreateMembersResponseTypeDef:  # (2)
    ...
  1. See AccountTypeDef
  2. See CreateMembersResponseTypeDef
Usage example with kwargs
kwargs: CreateMembersRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
    "Accounts": ...,
}

parent.create_members(**kwargs)
  1. See CreateMembersRequestRequestTypeDef

delete_graph

Disables the specified behavior graph and queues it to be deleted.

Type annotations and code completion for session.client("detective").delete_graph method. boto3 documentation

Method definition
await def delete_graph(
    self,
    *,
    GraphArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteGraphRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.delete_graph(**kwargs)
  1. See DeleteGraphRequestRequestTypeDef

delete_members

Removes the specified member accounts from the behavior graph.

Type annotations and code completion for session.client("detective").delete_members method. boto3 documentation

Method definition
await def delete_members(
    self,
    *,
    GraphArn: str,
    AccountIds: Sequence[str],
) -> DeleteMembersResponseTypeDef:  # (1)
    ...
  1. See DeleteMembersResponseTypeDef
Usage example with kwargs
kwargs: DeleteMembersRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
    "AccountIds": ...,
}

parent.delete_members(**kwargs)
  1. See DeleteMembersRequestRequestTypeDef

describe_organization_configuration

Returns information about the configuration for the organization behavior graph.

Type annotations and code completion for session.client("detective").describe_organization_configuration method. boto3 documentation

Method definition
await def describe_organization_configuration(
    self,
    *,
    GraphArn: str,
) -> DescribeOrganizationConfigurationResponseTypeDef:  # (1)
    ...
  1. See DescribeOrganizationConfigurationResponseTypeDef
Usage example with kwargs
kwargs: DescribeOrganizationConfigurationRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.describe_organization_configuration(**kwargs)
  1. See DescribeOrganizationConfigurationRequestRequestTypeDef

disable_organization_admin_account

Removes the Detective administrator account in the current Region.

Type annotations and code completion for session.client("detective").disable_organization_admin_account method. boto3 documentation

Method definition
await def disable_organization_admin_account(
    self,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef

disassociate_membership

Removes the member account from the specified behavior graph.

Type annotations and code completion for session.client("detective").disassociate_membership method. boto3 documentation

Method definition
await def disassociate_membership(
    self,
    *,
    GraphArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DisassociateMembershipRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.disassociate_membership(**kwargs)
  1. See DisassociateMembershipRequestRequestTypeDef

enable_organization_admin_account

Designates the Detective administrator account for the organization in the current Region.

Type annotations and code completion for session.client("detective").enable_organization_admin_account method. boto3 documentation

Method definition
await def enable_organization_admin_account(
    self,
    *,
    AccountId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: EnableOrganizationAdminAccountRequestRequestTypeDef = {  # (1)
    "AccountId": ...,
}

parent.enable_organization_admin_account(**kwargs)
  1. See EnableOrganizationAdminAccountRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for session.client("detective").generate_presigned_url method. boto3 documentation

Method definition
await def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_members

Returns the membership details for specified member accounts for a behavior graph.

Type annotations and code completion for session.client("detective").get_members method. boto3 documentation

Method definition
await def get_members(
    self,
    *,
    GraphArn: str,
    AccountIds: Sequence[str],
) -> GetMembersResponseTypeDef:  # (1)
    ...
  1. See GetMembersResponseTypeDef
Usage example with kwargs
kwargs: GetMembersRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
    "AccountIds": ...,
}

parent.get_members(**kwargs)
  1. See GetMembersRequestRequestTypeDef

list_datasource_packages

Lists data source packages in the behavior graph.

Type annotations and code completion for session.client("detective").list_datasource_packages method. boto3 documentation

Method definition
await def list_datasource_packages(
    self,
    *,
    GraphArn: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListDatasourcePackagesResponseTypeDef:  # (1)
    ...
  1. See ListDatasourcePackagesResponseTypeDef
Usage example with kwargs
kwargs: ListDatasourcePackagesRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.list_datasource_packages(**kwargs)
  1. See ListDatasourcePackagesRequestRequestTypeDef

list_graphs

Returns the list of behavior graphs that the calling account is an administrator account of.

Type annotations and code completion for session.client("detective").list_graphs method. boto3 documentation

Method definition
await def list_graphs(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListGraphsResponseTypeDef:  # (1)
    ...
  1. See ListGraphsResponseTypeDef
Usage example with kwargs
kwargs: ListGraphsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_graphs(**kwargs)
  1. See ListGraphsRequestRequestTypeDef

list_invitations

Retrieves the list of open and accepted behavior graph invitations for the member account.

Type annotations and code completion for session.client("detective").list_invitations method. boto3 documentation

Method definition
await def list_invitations(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListInvitationsResponseTypeDef:  # (1)
    ...
  1. See ListInvitationsResponseTypeDef
Usage example with kwargs
kwargs: ListInvitationsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_invitations(**kwargs)
  1. See ListInvitationsRequestRequestTypeDef

list_members

Retrieves the list of member accounts for a behavior graph.

Type annotations and code completion for session.client("detective").list_members method. boto3 documentation

Method definition
await def list_members(
    self,
    *,
    GraphArn: str,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListMembersResponseTypeDef:  # (1)
    ...
  1. See ListMembersResponseTypeDef
Usage example with kwargs
kwargs: ListMembersRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.list_members(**kwargs)
  1. See ListMembersRequestRequestTypeDef

list_organization_admin_accounts

Returns information about the Detective administrator account for an organization.

Type annotations and code completion for session.client("detective").list_organization_admin_accounts method. boto3 documentation

Method definition
await def list_organization_admin_accounts(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListOrganizationAdminAccountsResponseTypeDef:  # (1)
    ...
  1. See ListOrganizationAdminAccountsResponseTypeDef
Usage example with kwargs
kwargs: ListOrganizationAdminAccountsRequestRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_organization_admin_accounts(**kwargs)
  1. See ListOrganizationAdminAccountsRequestRequestTypeDef

list_tags_for_resource

Returns the tag values that are assigned to a behavior graph.

Type annotations and code completion for session.client("detective").list_tags_for_resource method. boto3 documentation

Method definition
await def list_tags_for_resource(
    self,
    *,
    ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResponseTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

reject_invitation

Rejects an invitation to contribute the account data to a behavior graph.

Type annotations and code completion for session.client("detective").reject_invitation method. boto3 documentation

Method definition
await def reject_invitation(
    self,
    *,
    GraphArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: RejectInvitationRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.reject_invitation(**kwargs)
  1. See RejectInvitationRequestRequestTypeDef

start_monitoring_member

Sends a request to enable data ingest for a member account that has a status of ACCEPTED_BUT_DISABLED .

Type annotations and code completion for session.client("detective").start_monitoring_member method. boto3 documentation

Method definition
await def start_monitoring_member(
    self,
    *,
    GraphArn: str,
    AccountId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: StartMonitoringMemberRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
    "AccountId": ...,
}

parent.start_monitoring_member(**kwargs)
  1. See StartMonitoringMemberRequestRequestTypeDef

tag_resource

Applies tag values to a behavior graph.

Type annotations and code completion for session.client("detective").tag_resource method. boto3 documentation

Method definition
await def tag_resource(
    self,
    *,
    ResourceArn: str,
    Tags: Mapping[str, str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "Tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource

Removes tags from a behavior graph.

Type annotations and code completion for session.client("detective").untag_resource method. boto3 documentation

Method definition
await def untag_resource(
    self,
    *,
    ResourceArn: str,
    TagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "ResourceArn": ...,
    "TagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_datasource_packages

Starts a data source packages for the behavior graph.

Type annotations and code completion for session.client("detective").update_datasource_packages method. boto3 documentation

Method definition
await def update_datasource_packages(
    self,
    *,
    GraphArn: str,
    DatasourcePackages: Sequence[DatasourcePackageType],  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See DatasourcePackageType
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: UpdateDatasourcePackagesRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
    "DatasourcePackages": ...,
}

parent.update_datasource_packages(**kwargs)
  1. See UpdateDatasourcePackagesRequestRequestTypeDef

update_organization_configuration

Updates the configuration for the Organizations integration in the current Region.

Type annotations and code completion for session.client("detective").update_organization_configuration method. boto3 documentation

Method definition
await def update_organization_configuration(
    self,
    *,
    GraphArn: str,
    AutoEnable: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: UpdateOrganizationConfigurationRequestRequestTypeDef = {  # (1)
    "GraphArn": ...,
}

parent.update_organization_configuration(**kwargs)
  1. See UpdateOrganizationConfigurationRequestRequestTypeDef

__aenter__

Type annotations and code completion for session.client("detective").__aenter__ method. boto3 documentation

Method definition
await def __aenter__(
    self,
) -> DetectiveClient:
    ...

__aexit__

Type annotations and code completion for session.client("detective").__aexit__ method. boto3 documentation

Method definition
await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...