MacieClient
Auto-generated documentation for Macie type annotations stubs module mypy-boto3-macie.
MacieClient
Type annotations and code completion for boto3.client("macie")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_macie.client import MacieClient
def get_macie_client() -> MacieClient:
return Session().client("macie")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("macie").exceptions
structure.
client = boto3.client("macie")
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.InternalException,
client.InvalidInputException,
client.LimitExceededException,
) as e:
print(e)
from mypy_boto3_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 boto3.client("macie").associate_member_account
method.
boto3 documentation
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 boto3.client("macie").associate_s3_resources
method.
boto3 documentation
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 boto3.client("macie").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.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 boto3.client("macie").disassociate_member_account
method.
boto3 documentation
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 boto3.client("macie").disassociate_s3_resources
method.
boto3 documentation
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 boto3.client("macie").generate_presigned_url
method.
boto3 documentation
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 boto3.client("macie").list_member_accounts
method.
boto3 documentation
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 boto3.client("macie").list_s3_resources
method.
boto3 documentation
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 boto3.client("macie").update_s3_resources
method.
boto3 documentation
def update_s3_resources(
self,
*,
s3ResourcesUpdate: Sequence[S3ResourceClassificationUpdateTypeDef], # (1)
memberAccountId: str = ...,
) -> UpdateS3ResourcesResultTypeDef: # (2)
...
kwargs: UpdateS3ResourcesRequestRequestTypeDef = { # (1)
"s3ResourcesUpdate": ...,
}
parent.update_s3_resources(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("macie").get_paginator
method with overloads.
client.get_paginator("list_member_accounts")
-> ListMemberAccountsPaginatorclient.get_paginator("list_s3_resources")
-> ListS3ResourcesPaginator