MacieClient
Auto-generated documentation for Macie type annotations stubs module types-aiobotocore-macie.
MacieClient
Type annotations and code completion for session.client("macie")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_macie.client import MacieClient
session = Session()
async with session.client("macie") as client:
client: MacieClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("macie").exceptions
structure.
async with session.client("macie") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.InternalException,
client.InvalidInputException,
client.LimitExceededException,
) as e:
print(e)
from types_aiobotocore_macie.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
associate_member_account
(Discontinued) Associates a specified Amazon Web Services account with Amazon Macie Classic as a member account.
Type annotations and code completion for session.client("macie").associate_member_account
method.
boto3 documentation
await def associate_member_account(
self,
*,
memberAccountId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: AssociateMemberAccountRequestRequestTypeDef = { # (1)
"memberAccountId": ...,
}
parent.associate_member_account(**kwargs)
associate_s3_resources
(Discontinued) Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification.
Type annotations and code completion for session.client("macie").associate_s3_resources
method.
boto3 documentation
await def associate_s3_resources(
self,
*,
s3Resources: Sequence[S3ResourceClassificationTypeDef], # (1)
memberAccountId: str = ...,
) -> AssociateS3ResourcesResultTypeDef: # (2)
...
kwargs: AssociateS3ResourcesRequestRequestTypeDef = { # (1)
"s3Resources": ...,
}
parent.associate_s3_resources(**kwargs)
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("macie").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("macie").close
method.
boto3 documentation
disassociate_member_account
(Discontinued) Removes the specified member account from Amazon Macie Classic.
Type annotations and code completion for session.client("macie").disassociate_member_account
method.
boto3 documentation
await def disassociate_member_account(
self,
*,
memberAccountId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DisassociateMemberAccountRequestRequestTypeDef = { # (1)
"memberAccountId": ...,
}
parent.disassociate_member_account(**kwargs)
disassociate_s3_resources
(Discontinued) Removes specified S3 resources from being monitored by Amazon Macie Classic.
Type annotations and code completion for session.client("macie").disassociate_s3_resources
method.
boto3 documentation
await def disassociate_s3_resources(
self,
*,
associatedS3Resources: Sequence[S3ResourceTypeDef], # (1)
memberAccountId: str = ...,
) -> DisassociateS3ResourcesResultTypeDef: # (2)
...
kwargs: DisassociateS3ResourcesRequestRequestTypeDef = { # (1)
"associatedS3Resources": ...,
}
parent.disassociate_s3_resources(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("macie").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
list_member_accounts
(Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
Type annotations and code completion for session.client("macie").list_member_accounts
method.
boto3 documentation
await def list_member_accounts(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> ListMemberAccountsResultTypeDef: # (1)
...
kwargs: ListMemberAccountsRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_member_accounts(**kwargs)
list_s3_resources
(Discontinued) Lists all the S3 resources associated with Amazon Macie Classic.
Type annotations and code completion for session.client("macie").list_s3_resources
method.
boto3 documentation
await def list_s3_resources(
self,
*,
memberAccountId: str = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> ListS3ResourcesResultTypeDef: # (1)
...
kwargs: ListS3ResourcesRequestRequestTypeDef = { # (1)
"memberAccountId": ...,
}
parent.list_s3_resources(**kwargs)
update_s3_resources
(Discontinued) Updates the classification types for the specified S3 resources.
Type annotations and code completion for session.client("macie").update_s3_resources
method.
boto3 documentation
await def update_s3_resources(
self,
*,
s3ResourcesUpdate: Sequence[S3ResourceClassificationUpdateTypeDef], # (1)
memberAccountId: str = ...,
) -> UpdateS3ResourcesResultTypeDef: # (2)
...
kwargs: UpdateS3ResourcesRequestRequestTypeDef = { # (1)
"s3ResourcesUpdate": ...,
}
parent.update_s3_resources(**kwargs)
__aenter__
Type annotations and code completion for session.client("macie").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("macie").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("macie").get_paginator
method with overloads.
client.get_paginator("list_member_accounts")
-> ListMemberAccountsPaginatorclient.get_paginator("list_s3_resources")
-> ListS3ResourcesPaginator