Skip to main content

Type annotations for boto3.Macie2 1.16.5 service, generated by mypy-boto3-buider 3.2.2

Project description

mypy-boto3-macie2

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

Type annotations for boto3.Macie2 1.16.5 service compatible with VSCode, PyCharm, mypy, pyright and other tools.

Generated by mypy-boto3-buider 3.2.2.

More information can be found on boto3-stubs page.

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 support 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,
    ListFindingsFiltersPaginator,
    ListFindingsPaginator,
    ListInvitationsPaginator,
    ListMembersPaginator,
    ListOrganizationAdminAccountsPaginator,
)

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")

Typed dictionations

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 (
    AccessControlListTypeDef,
    AccountDetailTypeDef,
    AccountLevelPermissionsTypeDef,
    AdminAccountTypeDef,
    ApiCallDetailsTypeDef,
    AssumedRoleTypeDef,
    AwsAccountTypeDef,
    AwsServiceTypeDef,
    BatchGetCustomDataIdentifiersResponseTypeDef,
    BatchGetCustomDataIdentifierSummaryTypeDef,
    BlockPublicAccessTypeDef,
    BucketCountByEffectivePermissionTypeDef,
    BucketCountByEncryptionTypeTypeDef,
    BucketCountBySharedAccessTypeTypeDef,
    BucketCriteriaAdditionalPropertiesTypeDef,
    BucketLevelPermissionsTypeDef,
    BucketMetadataTypeDef,
    BucketPermissionConfigurationTypeDef,
    BucketPolicyTypeDef,
    BucketPublicAccessTypeDef,
    BucketSortCriteriaTypeDef,
    CellTypeDef,
    ClassificationDetailsTypeDef,
    ClassificationExportConfigurationTypeDef,
    ClassificationResultStatusTypeDef,
    ClassificationResultTypeDef,
    CreateClassificationJobResponseTypeDef,
    CreateCustomDataIdentifierResponseTypeDef,
    CreateFindingsFilterResponseTypeDef,
    CreateInvitationsResponseTypeDef,
    CreateMemberResponseTypeDef,
    CriterionAdditionalPropertiesTypeDef,
    CustomDataIdentifiersTypeDef,
    CustomDataIdentifierSummaryTypeDef,
    CustomDetectionTypeDef,
    DeclineInvitationsResponseTypeDef,
    DefaultDetectionTypeDef,
    DeleteInvitationsResponseTypeDef,
    DescribeBucketsResponseTypeDef,
    DescribeClassificationJobResponseTypeDef,
    DescribeOrganizationConfigurationResponseTypeDef,
    DomainDetailsTypeDef,
    FederatedUserTypeDef,
    FindingActionTypeDef,
    FindingActorTypeDef,
    FindingCriteriaTypeDef,
    FindingsFilterListItemTypeDef,
    FindingStatisticsSortCriteriaTypeDef,
    FindingTypeDef,
    GetBucketStatisticsResponseTypeDef,
    GetClassificationExportConfigurationResponseTypeDef,
    GetCustomDataIdentifierResponseTypeDef,
    GetFindingsFilterResponseTypeDef,
    GetFindingsResponseTypeDef,
    GetFindingStatisticsResponseTypeDef,
    GetInvitationsCountResponseTypeDef,
    GetMacieSessionResponseTypeDef,
    GetMasterAccountResponseTypeDef,
    GetMemberResponseTypeDef,
    GetUsageStatisticsResponseTypeDef,
    GetUsageTotalsResponseTypeDef,
    GroupCountTypeDef,
    IamUserTypeDef,
    InvitationTypeDef,
    IpAddressDetailsTypeDef,
    IpCityTypeDef,
    IpCountryTypeDef,
    IpGeoLocationTypeDef,
    IpOwnerTypeDef,
    JobScheduleFrequencyTypeDef,
    JobScopeTermTypeDef,
    JobScopingBlockTypeDef,
    JobSummaryTypeDef,
    KeyValuePairTypeDef,
    ListClassificationJobsResponseTypeDef,
    ListCustomDataIdentifiersResponseTypeDef,
    ListFindingsFiltersResponseTypeDef,
    ListFindingsResponseTypeDef,
    ListInvitationsResponseTypeDef,
    ListJobsFilterCriteriaTypeDef,
    ListJobsFilterTermTypeDef,
    ListJobsSortCriteriaTypeDef,
    ListMembersResponseTypeDef,
    ListOrganizationAdminAccountsResponseTypeDef,
    ListTagsForResourceResponseTypeDef,
    MemberTypeDef,
    MonthlyScheduleTypeDef,
    ObjectCountByEncryptionTypeTypeDef,
    ObjectLevelStatisticsTypeDef,
    OccurrencesTypeDef,
    PageTypeDef,
    PaginatorConfigTypeDef,
    PolicyDetailsTypeDef,
    PutClassificationExportConfigurationResponseTypeDef,
    RangeTypeDef,
    RecordTypeDef,
    ReplicationDetailsTypeDef,
    ResourcesAffectedTypeDef,
    S3BucketDefinitionForJobTypeDef,
    S3BucketOwnerTypeDef,
    S3BucketTypeDef,
    S3DestinationTypeDef,
    S3JobDefinitionTypeDef,
    S3ObjectTypeDef,
    ScopingTypeDef,
    SensitiveDataItemTypeDef,
    ServerSideEncryptionTypeDef,
    ServiceLimitTypeDef,
    SessionContextAttributesTypeDef,
    SessionContextTypeDef,
    SessionIssuerTypeDef,
    SeverityTypeDef,
    SimpleScopeTermTypeDef,
    SortCriteriaTypeDef,
    StatisticsTypeDef,
    TagScopeTermTypeDef,
    TagValuePairTypeDef,
    TestCustomDataIdentifierResponseTypeDef,
    UnprocessedAccountTypeDef,
    UpdateFindingsFilterResponseTypeDef,
    UsageByAccountTypeDef,
    UsageRecordTypeDef,
    UsageStatisticsFilterTypeDef,
    UsageStatisticsSortByTypeDef,
    UsageTotalTypeDef,
    UserIdentityRootTypeDef,
    UserIdentityTypeDef,
    UserPausedDetailsTypeDef,
    WeeklyScheduleTypeDef,
)

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

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.16.5.1.tar.gz (22.8 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.16.5.1-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mypy-boto3-macie2-1.16.5.1.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mypy-boto3-macie2-1.16.5.1.tar.gz
Algorithm Hash digest
SHA256 8fbe887fe0f7692fbebb102dff8e66fb5e7425f567aec4c455f1ac71f2317770
MD5 e5673d9d8227efc2bd0ae49d1125232a
BLAKE2b-256 91b911eb0050fb35fe01938495ce6daec40363f9f27dff789d7f9cc52685b42d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mypy_boto3_macie2-1.16.5.1-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for mypy_boto3_macie2-1.16.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 991b767817442a39b109ab4837d595cf200e0d96b0da5798033f62b69674aaa5
MD5 787d65e58b02eb01ce73e67b0b7e1543
BLAKE2b-256 7653b7243b46882b185225264fa3c7f99ba0ebb1a8b73c8d408e0a2831f2ca55

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