DetectiveClient#
Auto-generated documentation for Detective type annotations stubs module mypy-boto3-detective.
DetectiveClient#
Type annotations and code completion for boto3.client("detective")
.
boto3 documentation
# DetectiveClient usage example
from boto3.session import Session
from mypy_boto3_detective.client import DetectiveClient
def get_detective_client() -> DetectiveClient:
return Session().client("detective")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("detective").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("detective")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.TooManyRequestsException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_detective.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
accept_invitation#
Accepts an invitation for the member account to contribute data to a behavior graph.
Type annotations and code completion for boto3.client("detective").accept_invitation
method.
boto3 documentation
# accept_invitation method definition
def accept_invitation(
self,
*,
GraphArn: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# accept_invitation method usage example with argument unpacking
kwargs: AcceptInvitationRequestRequestTypeDef = { # (1)
"GraphArn": ...,
}
parent.accept_invitation(**kwargs)
batch_get_graph_member_datasources#
Gets data source package information for the behavior graph.
Type annotations and code completion for boto3.client("detective").batch_get_graph_member_datasources
method.
boto3 documentation
# batch_get_graph_member_datasources method definition
def batch_get_graph_member_datasources(
self,
*,
GraphArn: str,
AccountIds: Sequence[str],
) -> BatchGetGraphMemberDatasourcesResponseTypeDef: # (1)
...
# batch_get_graph_member_datasources method usage example with argument unpacking
kwargs: BatchGetGraphMemberDatasourcesRequestRequestTypeDef = { # (1)
"GraphArn": ...,
"AccountIds": ...,
}
parent.batch_get_graph_member_datasources(**kwargs)
batch_get_membership_datasources#
Gets information on the data source package history for an account.
Type annotations and code completion for boto3.client("detective").batch_get_membership_datasources
method.
boto3 documentation
# batch_get_membership_datasources method definition
def batch_get_membership_datasources(
self,
*,
GraphArns: Sequence[str],
) -> BatchGetMembershipDatasourcesResponseTypeDef: # (1)
...
# batch_get_membership_datasources method usage example with argument unpacking
kwargs: BatchGetMembershipDatasourcesRequestRequestTypeDef = { # (1)
"GraphArns": ...,
}
parent.batch_get_membership_datasources(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("detective").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("detective").close
method.
boto3 documentation
# close method definition
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 boto3.client("detective").create_graph
method.
boto3 documentation
# create_graph method definition
def create_graph(
self,
*,
Tags: Mapping[str, str] = ...,
) -> CreateGraphResponseTypeDef: # (1)
...
# create_graph method usage example with argument unpacking
kwargs: CreateGraphRequestRequestTypeDef = { # (1)
"Tags": ...,
}
parent.create_graph(**kwargs)
create_members#
CreateMembers
is used to send invitations to accounts.
Type annotations and code completion for boto3.client("detective").create_members
method.
boto3 documentation
# create_members method definition
def create_members(
self,
*,
GraphArn: str,
Accounts: Sequence[AccountTypeDef], # (1)
Message: str = ...,
DisableEmailNotification: bool = ...,
) -> CreateMembersResponseTypeDef: # (2)
...
# create_members method usage example with argument unpacking
kwargs: CreateMembersRequestRequestTypeDef = { # (1)
"GraphArn": ...,
"Accounts": ...,
}
parent.create_members(**kwargs)