Skip to content

MacieClient

Index > Macie > 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

Usage example
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.

Usage example
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)
Type checking example
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

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

parent.associate_member_account(**kwargs)
  1. See AssociateMemberAccountRequestRequestTypeDef

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

Method definition
await def associate_s3_resources(
    self,
    *,
    s3Resources: Sequence[S3ResourceClassificationTypeDef],  # (1)
    memberAccountId: str = ...,
) -> AssociateS3ResourcesResultTypeDef:  # (2)
    ...
  1. See S3ResourceClassificationTypeDef
  2. See AssociateS3ResourcesResultTypeDef
Usage example with kwargs
kwargs: AssociateS3ResourcesRequestRequestTypeDef = {  # (1)
    "s3Resources": ...,
}

parent.associate_s3_resources(**kwargs)
  1. See AssociateS3ResourcesRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for session.client("macie").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("macie").close method. boto3 documentation

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

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

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

parent.disassociate_member_account(**kwargs)
  1. See DisassociateMemberAccountRequestRequestTypeDef

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

Method definition
await def disassociate_s3_resources(
    self,
    *,
    associatedS3Resources: Sequence[S3ResourceTypeDef],  # (1)
    memberAccountId: str = ...,
) -> DisassociateS3ResourcesResultTypeDef:  # (2)
    ...
  1. See S3ResourceTypeDef
  2. See DisassociateS3ResourcesResultTypeDef
Usage example with kwargs
kwargs: DisassociateS3ResourcesRequestRequestTypeDef = {  # (1)
    "associatedS3Resources": ...,
}

parent.disassociate_s3_resources(**kwargs)
  1. See DisassociateS3ResourcesRequestRequestTypeDef

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

Method definition
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

Method definition
await def list_member_accounts(
    self,
    *,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListMemberAccountsResultTypeDef:  # (1)
    ...
  1. See ListMemberAccountsResultTypeDef
Usage example with kwargs
kwargs: ListMemberAccountsRequestRequestTypeDef = {  # (1)
    "nextToken": ...,
}

parent.list_member_accounts(**kwargs)
  1. See ListMemberAccountsRequestRequestTypeDef

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

Method definition
await def list_s3_resources(
    self,
    *,
    memberAccountId: str = ...,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListS3ResourcesResultTypeDef:  # (1)
    ...
  1. See ListS3ResourcesResultTypeDef
Usage example with kwargs
kwargs: ListS3ResourcesRequestRequestTypeDef = {  # (1)
    "memberAccountId": ...,
}

parent.list_s3_resources(**kwargs)
  1. See ListS3ResourcesRequestRequestTypeDef

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

Method definition
await def update_s3_resources(
    self,
    *,
    s3ResourcesUpdate: Sequence[S3ResourceClassificationUpdateTypeDef],  # (1)
    memberAccountId: str = ...,
) -> UpdateS3ResourcesResultTypeDef:  # (2)
    ...
  1. See S3ResourceClassificationUpdateTypeDef
  2. See UpdateS3ResourcesResultTypeDef
Usage example with kwargs
kwargs: UpdateS3ResourcesRequestRequestTypeDef = {  # (1)
    "s3ResourcesUpdate": ...,
}

parent.update_s3_resources(**kwargs)
  1. See UpdateS3ResourcesRequestRequestTypeDef

__aenter__

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

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

__aexit__

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

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

get_paginator

Type annotations and code completion for session.client("macie").get_paginator method with overloads.