Skip to main content

Type annotations for boto3.Macie2 1.20.0 service, generated by mypy-boto3-builder 6.1.2

Project description

mypy-boto3-macie2

PyPI - mypy-boto3-macie2 PyPI - Python Version Docs PyPI - Downloads

boto3.typed

Type annotations for boto3.Macie2 1.20.0 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.

Generated by mypy-boto3-builder 6.1.2.

More information can be found on boto3-stubs page and in mypy-boto3-macie2 docs

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

Install boto3-stubs for Macie2 service.

python -m pip install boto3-stubs[macie2]

Usage

VSCode

  • Install Python extension
  • Install Pylance extension
  • Set Pylance as your Python Language Server
  • Install boto-stubs[macie2] in your environment: python -m pip install 'boto3-stubs[macie2]'

Both type checking and auto-complete should work for Macie2 service. No explicit type annotations required, write your boto3 code as usual.

PyCharm

  • Install boto-stubs[macie2] in your environment: python -m pip install 'boto3-stubs[macie2]'

Both type checking and auto-complete should work for Macie2 service. No explicit type annotations required, write your boto3 code as usual. Auto-complete can be slow on big projects or if you have a lot of installed boto3-stubs submodules.

Other IDEs

Not tested, but as long as your IDE supports mypy or pyright, everything should work.

mypy

  • Install mypy: python -m pip install mypy
  • Install boto-stubs[macie2] in your environment: python -m pip install 'boto3-stubs[macie2]'
  • Run mypy as usual

Type checking should work for Macie2 service. No explicit type annotations required, write your boto3 code as usual.

pyright

  • Install pyright: yarn global add pyright
  • Install boto-stubs[macie2] in your environment: python -m pip install 'boto3-stubs[macie2]'
  • Optionally, you can install boto3-stubs to typings folder.

Type checking should work for Macie2 service. No explicit type annotations required, write your boto3 code as usual.

Explicit type annotations

Client annotations

Macie2Client provides annotations for boto3.client("macie2").

import boto3

from mypy_boto3_macie2 import Macie2Client

client: Macie2Client = boto3.client("macie2")

# now client usage is checked by mypy and IDE should provide code auto-complete

# works for session as well
session = boto3.session.Session(region="us-west-1")
session_client: Macie2Client = session.client("macie2")

Paginators annotations

mypy_boto3_macie2.paginator module contains type annotations for all paginators.

from mypy_boto3_macie2 import Macie2Client
from mypy_boto3_macie2.paginator import (
    DescribeBucketsPaginator,
    GetUsageStatisticsPaginator,
    ListClassificationJobsPaginator,
    ListCustomDataIdentifiersPaginator,
    ListFindingsPaginator,
    ListFindingsFiltersPaginator,
    ListInvitationsPaginator,
    ListMembersPaginator,
    ListOrganizationAdminAccountsPaginator,
    SearchResourcesPaginator,
)

client: Macie2Client = boto3.client("macie2")

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
describe_buckets_paginator: DescribeBucketsPaginator = client.get_paginator("describe_buckets")
get_usage_statistics_paginator: GetUsageStatisticsPaginator = client.get_paginator("get_usage_statistics")
list_classification_jobs_paginator: ListClassificationJobsPaginator = client.get_paginator("list_classification_jobs")
list_custom_data_identifiers_paginator: ListCustomDataIdentifiersPaginator = client.get_paginator("list_custom_data_identifiers")
list_findings_paginator: ListFindingsPaginator = client.get_paginator("list_findings")
list_findings_filters_paginator: ListFindingsFiltersPaginator = client.get_paginator("list_findings_filters")
list_invitations_paginator: ListInvitationsPaginator = client.get_paginator("list_invitations")
list_members_paginator: ListMembersPaginator = client.get_paginator("list_members")
list_organization_admin_accounts_paginator: ListOrganizationAdminAccountsPaginator = client.get_paginator("list_organization_admin_accounts")
search_resources_paginator: SearchResourcesPaginator = client.get_paginator("search_resources")

Literals

mypy_boto3_macie2.literals module contains literals extracted from shapes that can be used in user code for type checking.

from mypy_boto3_macie2.literals import (
    AdminStatusType,
    AllowsUnencryptedObjectUploadsType,
    BucketMetadataErrorCodeType,
    CurrencyType,
    DataIdentifierSeverityType,
    DayOfWeekType,
    DescribeBucketsPaginatorName,
    EffectivePermissionType,
    EncryptionTypeType,
    ErrorCodeType,
    FindingActionTypeType,
    FindingCategoryType,
    FindingPublishingFrequencyType,
    FindingStatisticsSortAttributeNameType,
    FindingTypeType,
    FindingsFilterActionType,
    GetUsageStatisticsPaginatorName,
    GroupByType,
    IsDefinedInJobType,
    IsMonitoredByJobType,
    JobComparatorType,
    JobStatusType,
    JobTypeType,
    LastRunErrorStatusCodeType,
    ListClassificationJobsPaginatorName,
    ListCustomDataIdentifiersPaginatorName,
    ListFindingsFiltersPaginatorName,
    ListFindingsPaginatorName,
    ListInvitationsPaginatorName,
    ListJobsFilterKeyType,
    ListJobsSortAttributeNameType,
    ListMembersPaginatorName,
    ListOrganizationAdminAccountsPaginatorName,
    MacieStatusType,
    ManagedDataIdentifierSelectorType,
    OrderByType,
    RelationshipStatusType,
    ScopeFilterKeyType,
    SearchResourcesComparatorType,
    SearchResourcesPaginatorName,
    SearchResourcesSimpleCriterionKeyType,
    SearchResourcesSortAttributeNameType,
    SensitiveDataItemCategoryType,
    SeverityDescriptionType,
    SharedAccessType,
    SimpleCriterionKeyForJobType,
    StorageClassType,
    TagTargetType,
    TimeRangeType,
    TypeType,
    UnitType,
    UsageStatisticsFilterComparatorType,
    UsageStatisticsFilterKeyType,
    UsageStatisticsSortKeyType,
    UsageTypeType,
    UserIdentityTypeType,
    ServiceName,
    PaginatorName,
)

def check_value(value: AdminStatusType) -> bool:
    ...

Typed dictionaries

mypy_boto3_macie2.type_defs module contains structures and shapes assembled to typed dictionaries for additional type checking.

from mypy_boto3_macie2.type_defs import (
    AcceptInvitationRequestRequestTypeDef,
    AccessControlListTypeDef,
    AccountDetailTypeDef,
    AccountLevelPermissionsTypeDef,
    AdminAccountTypeDef,
    ApiCallDetailsTypeDef,
    AssumedRoleTypeDef,
    AwsAccountTypeDef,
    AwsServiceTypeDef,
    BatchGetCustomDataIdentifierSummaryTypeDef,
    BatchGetCustomDataIdentifiersRequestRequestTypeDef,
    BatchGetCustomDataIdentifiersResponseTypeDef,
    BlockPublicAccessTypeDef,
    BucketCountByEffectivePermissionTypeDef,
    BucketCountByEncryptionTypeTypeDef,
    BucketCountBySharedAccessTypeTypeDef,
    BucketCountPolicyAllowsUnencryptedObjectUploadsTypeDef,
    BucketCriteriaAdditionalPropertiesTypeDef,
    BucketLevelPermissionsTypeDef,
    BucketMetadataTypeDef,
    BucketPermissionConfigurationTypeDef,
    BucketPolicyTypeDef,
    BucketPublicAccessTypeDef,
    BucketServerSideEncryptionTypeDef,
    BucketSortCriteriaTypeDef,
    CellTypeDef,
    ClassificationDetailsTypeDef,
    ClassificationExportConfigurationTypeDef,
    ClassificationResultStatusTypeDef,
    ClassificationResultTypeDef,
    CreateClassificationJobRequestRequestTypeDef,
    CreateClassificationJobResponseTypeDef,
    CreateCustomDataIdentifierRequestRequestTypeDef,
    CreateCustomDataIdentifierResponseTypeDef,
    CreateFindingsFilterRequestRequestTypeDef,
    CreateFindingsFilterResponseTypeDef,
    CreateInvitationsRequestRequestTypeDef,
    CreateInvitationsResponseTypeDef,
    CreateMemberRequestRequestTypeDef,
    CreateMemberResponseTypeDef,
    CreateSampleFindingsRequestRequestTypeDef,
    CriteriaBlockForJobTypeDef,
    CriteriaForJobTypeDef,
    CriterionAdditionalPropertiesTypeDef,
    CustomDataIdentifierSummaryTypeDef,
    CustomDataIdentifiersTypeDef,
    CustomDetectionTypeDef,
    DeclineInvitationsRequestRequestTypeDef,
    DeclineInvitationsResponseTypeDef,
    DefaultDetectionTypeDef,
    DeleteCustomDataIdentifierRequestRequestTypeDef,
    DeleteFindingsFilterRequestRequestTypeDef,
    DeleteInvitationsRequestRequestTypeDef,
    DeleteInvitationsResponseTypeDef,
    DeleteMemberRequestRequestTypeDef,
    DescribeBucketsRequestRequestTypeDef,
    DescribeBucketsResponseTypeDef,
    DescribeClassificationJobRequestRequestTypeDef,
    DescribeClassificationJobResponseTypeDef,
    DescribeOrganizationConfigurationResponseTypeDef,
    DisableOrganizationAdminAccountRequestRequestTypeDef,
    DisassociateMemberRequestRequestTypeDef,
    DomainDetailsTypeDef,
    EnableMacieRequestRequestTypeDef,
    EnableOrganizationAdminAccountRequestRequestTypeDef,
    FederatedUserTypeDef,
    FindingActionTypeDef,
    FindingActorTypeDef,
    FindingCriteriaTypeDef,
    FindingStatisticsSortCriteriaTypeDef,
    FindingTypeDef,
    FindingsFilterListItemTypeDef,
    GetAdministratorAccountResponseTypeDef,
    GetBucketStatisticsRequestRequestTypeDef,
    GetBucketStatisticsResponseTypeDef,
    GetClassificationExportConfigurationResponseTypeDef,
    GetCustomDataIdentifierRequestRequestTypeDef,
    GetCustomDataIdentifierResponseTypeDef,
    GetFindingStatisticsRequestRequestTypeDef,
    GetFindingStatisticsResponseTypeDef,
    GetFindingsFilterRequestRequestTypeDef,
    GetFindingsFilterResponseTypeDef,
    GetFindingsPublicationConfigurationResponseTypeDef,
    GetFindingsRequestRequestTypeDef,
    GetFindingsResponseTypeDef,
    GetInvitationsCountResponseTypeDef,
    GetMacieSessionResponseTypeDef,
    GetMasterAccountResponseTypeDef,
    GetMemberRequestRequestTypeDef,
    GetMemberResponseTypeDef,
    GetUsageStatisticsRequestRequestTypeDef,
    GetUsageStatisticsResponseTypeDef,
    GetUsageTotalsRequestRequestTypeDef,
    GetUsageTotalsResponseTypeDef,
    GroupCountTypeDef,
    IamUserTypeDef,
    InvitationTypeDef,
    IpAddressDetailsTypeDef,
    IpCityTypeDef,
    IpCountryTypeDef,
    IpGeoLocationTypeDef,
    IpOwnerTypeDef,
    JobDetailsTypeDef,
    JobScheduleFrequencyTypeDef,
    JobScopeTermTypeDef,
    JobScopingBlockTypeDef,
    JobSummaryTypeDef,
    KeyValuePairTypeDef,
    LastRunErrorStatusTypeDef,
    ListClassificationJobsRequestRequestTypeDef,
    ListClassificationJobsResponseTypeDef,
    ListCustomDataIdentifiersRequestRequestTypeDef,
    ListCustomDataIdentifiersResponseTypeDef,
    ListFindingsFiltersRequestRequestTypeDef,
    ListFindingsFiltersResponseTypeDef,
    ListFindingsRequestRequestTypeDef,
    ListFindingsResponseTypeDef,
    ListInvitationsRequestRequestTypeDef,
    ListInvitationsResponseTypeDef,
    ListJobsFilterCriteriaTypeDef,
    ListJobsFilterTermTypeDef,
    ListJobsSortCriteriaTypeDef,
    ListManagedDataIdentifiersRequestRequestTypeDef,
    ListManagedDataIdentifiersResponseTypeDef,
    ListMembersRequestRequestTypeDef,
    ListMembersResponseTypeDef,
    ListOrganizationAdminAccountsRequestRequestTypeDef,
    ListOrganizationAdminAccountsResponseTypeDef,
    ListTagsForResourceRequestRequestTypeDef,
    ListTagsForResourceResponseTypeDef,
    ManagedDataIdentifierSummaryTypeDef,
    MatchingBucketTypeDef,
    MatchingResourceTypeDef,
    MemberTypeDef,
    MonthlyScheduleTypeDef,
    ObjectCountByEncryptionTypeTypeDef,
    ObjectLevelStatisticsTypeDef,
    OccurrencesTypeDef,
    PageTypeDef,
    PaginatorConfigTypeDef,
    PolicyDetailsTypeDef,
    PutClassificationExportConfigurationRequestRequestTypeDef,
    PutClassificationExportConfigurationResponseTypeDef,
    PutFindingsPublicationConfigurationRequestRequestTypeDef,
    RangeTypeDef,
    RecordTypeDef,
    ReplicationDetailsTypeDef,
    ResourcesAffectedTypeDef,
    ResponseMetadataTypeDef,
    S3BucketCriteriaForJobTypeDef,
    S3BucketDefinitionForJobTypeDef,
    S3BucketOwnerTypeDef,
    S3BucketTypeDef,
    S3DestinationTypeDef,
    S3JobDefinitionTypeDef,
    S3ObjectTypeDef,
    ScopingTypeDef,
    SearchResourcesBucketCriteriaTypeDef,
    SearchResourcesCriteriaBlockTypeDef,
    SearchResourcesCriteriaTypeDef,
    SearchResourcesRequestRequestTypeDef,
    SearchResourcesResponseTypeDef,
    SearchResourcesSimpleCriterionTypeDef,
    SearchResourcesSortCriteriaTypeDef,
    SearchResourcesTagCriterionPairTypeDef,
    SearchResourcesTagCriterionTypeDef,
    SecurityHubConfigurationTypeDef,
    SensitiveDataItemTypeDef,
    ServerSideEncryptionTypeDef,
    ServiceLimitTypeDef,
    SessionContextAttributesTypeDef,
    SessionContextTypeDef,
    SessionIssuerTypeDef,
    SeverityLevelTypeDef,
    SeverityTypeDef,
    SimpleCriterionForJobTypeDef,
    SimpleScopeTermTypeDef,
    SortCriteriaTypeDef,
    StatisticsTypeDef,
    TagCriterionForJobTypeDef,
    TagCriterionPairForJobTypeDef,
    TagResourceRequestRequestTypeDef,
    TagScopeTermTypeDef,
    TagValuePairTypeDef,
    TestCustomDataIdentifierRequestRequestTypeDef,
    TestCustomDataIdentifierResponseTypeDef,
    UnprocessedAccountTypeDef,
    UntagResourceRequestRequestTypeDef,
    UpdateClassificationJobRequestRequestTypeDef,
    UpdateFindingsFilterRequestRequestTypeDef,
    UpdateFindingsFilterResponseTypeDef,
    UpdateMacieSessionRequestRequestTypeDef,
    UpdateMemberSessionRequestRequestTypeDef,
    UpdateOrganizationConfigurationRequestRequestTypeDef,
    UsageByAccountTypeDef,
    UsageRecordTypeDef,
    UsageStatisticsFilterTypeDef,
    UsageStatisticsSortByTypeDef,
    UsageTotalTypeDef,
    UserIdentityRootTypeDef,
    UserIdentityTypeDef,
    UserPausedDetailsTypeDef,
    WeeklyScheduleTypeDef,
)

def get_structure() -> AcceptInvitationRequestRequestTypeDef:
    return {
      ...
    }

Versioning

mypy-boto3-macie2 version is the same as related boto3 version and follows PEP 440 format.

Documentation

All type annotations can be found in mypy-boto3-macie2 docs

Support and contributing

This package is auto-generated. Please reports any bugs or request new features in mypy-boto3-builder repository.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mypy-boto3-macie2-1.20.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mypy_boto3_macie2-1.20.0-py3-none-any.whl (44.3 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-macie2-1.20.0.tar.gz.

File metadata

  • Download URL: mypy-boto3-macie2-1.20.0.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for mypy-boto3-macie2-1.20.0.tar.gz
Algorithm Hash digest
SHA256 7649b8b2cde1e096b05fbf2ea28d2157115a55de28e0c8fd22cf63f6154271a0
MD5 6e6a03c2ea13ec6b27f1cee630d9cf8f
BLAKE2b-256 0b2a24fcfd5447a338b2005d0d82080520da6dc7d5e6be5eb6d60f2b100b3ff5

See more details on using hashes here.

File details

Details for the file mypy_boto3_macie2-1.20.0-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_macie2-1.20.0-py3-none-any.whl
  • Upload date:
  • Size: 44.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for mypy_boto3_macie2-1.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f383e2f8f851b5c15dc0aff35d3dbf14ab2bcd5bd403413b8cde1c407f1a651
MD5 ad6f6362ed52abf7b750dba8cbfb5a3a
BLAKE2b-256 f9d70affd916dad5bca7b6737370c2aec3f8c65214afef25336ed8bc87ff49bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page