Skip to main content

Type annotations for boto3.ConfigService 1.17.69 service, generated by mypy-boto3-buider 4.10.0

Project description

mypy-boto3-config

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

boto3.typed

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

Generated by mypy-boto3-buider 4.10.0.

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

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

Install boto3-stubs for ConfigService service.

python -m pip install boto3-stubs[config]

Usage

VSCode

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

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

PyCharm

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

Both type checking and auto-complete should work for ConfigService 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[config] in your environment: python -m pip install 'boto3-stubs[config]'
  • Run mypy as usual

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

pyright

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

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

Explicit type annotations

Client annotations

ConfigServiceClient provides annotations for boto3.client("config").

import boto3

from mypy_boto3_config import ConfigServiceClient

client: ConfigServiceClient = boto3.client("config")

# 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: ConfigServiceClient = session.client("config")

Paginators annotations

mypy_boto3_config.paginator module contains type annotations for all paginators.

from mypy_boto3_config import ConfigServiceClient
from mypy_boto3_config.paginator import (
    DescribeAggregateComplianceByConfigRulesPaginator,
    DescribeAggregationAuthorizationsPaginator,
    DescribeComplianceByConfigRulePaginator,
    DescribeComplianceByResourcePaginator,
    DescribeConfigRuleEvaluationStatusPaginator,
    DescribeConfigRulesPaginator,
    DescribeConfigurationAggregatorSourcesStatusPaginator,
    DescribeConfigurationAggregatorsPaginator,
    DescribePendingAggregationRequestsPaginator,
    DescribeRemediationExecutionStatusPaginator,
    DescribeRetentionConfigurationsPaginator,
    GetAggregateComplianceDetailsByConfigRulePaginator,
    GetComplianceDetailsByConfigRulePaginator,
    GetComplianceDetailsByResourcePaginator,
    GetResourceConfigHistoryPaginator,
    ListAggregateDiscoveredResourcesPaginator,
    ListDiscoveredResourcesPaginator,
)

client: ConfigServiceClient = boto3.client("config")

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
describe_aggregate_compliance_by_config_rules_paginator: DescribeAggregateComplianceByConfigRulesPaginator = client.get_paginator("describe_aggregate_compliance_by_config_rules")
describe_aggregation_authorizations_paginator: DescribeAggregationAuthorizationsPaginator = client.get_paginator("describe_aggregation_authorizations")
describe_compliance_by_config_rule_paginator: DescribeComplianceByConfigRulePaginator = client.get_paginator("describe_compliance_by_config_rule")
describe_compliance_by_resource_paginator: DescribeComplianceByResourcePaginator = client.get_paginator("describe_compliance_by_resource")
describe_config_rule_evaluation_status_paginator: DescribeConfigRuleEvaluationStatusPaginator = client.get_paginator("describe_config_rule_evaluation_status")
describe_config_rules_paginator: DescribeConfigRulesPaginator = client.get_paginator("describe_config_rules")
describe_configuration_aggregator_sources_status_paginator: DescribeConfigurationAggregatorSourcesStatusPaginator = client.get_paginator("describe_configuration_aggregator_sources_status")
describe_configuration_aggregators_paginator: DescribeConfigurationAggregatorsPaginator = client.get_paginator("describe_configuration_aggregators")
describe_pending_aggregation_requests_paginator: DescribePendingAggregationRequestsPaginator = client.get_paginator("describe_pending_aggregation_requests")
describe_remediation_execution_status_paginator: DescribeRemediationExecutionStatusPaginator = client.get_paginator("describe_remediation_execution_status")
describe_retention_configurations_paginator: DescribeRetentionConfigurationsPaginator = client.get_paginator("describe_retention_configurations")
get_aggregate_compliance_details_by_config_rule_paginator: GetAggregateComplianceDetailsByConfigRulePaginator = client.get_paginator("get_aggregate_compliance_details_by_config_rule")
get_compliance_details_by_config_rule_paginator: GetComplianceDetailsByConfigRulePaginator = client.get_paginator("get_compliance_details_by_config_rule")
get_compliance_details_by_resource_paginator: GetComplianceDetailsByResourcePaginator = client.get_paginator("get_compliance_details_by_resource")
get_resource_config_history_paginator: GetResourceConfigHistoryPaginator = client.get_paginator("get_resource_config_history")
list_aggregate_discovered_resources_paginator: ListAggregateDiscoveredResourcesPaginator = client.get_paginator("list_aggregate_discovered_resources")
list_discovered_resources_paginator: ListDiscoveredResourcesPaginator = client.get_paginator("list_discovered_resources")

Literals

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

from mypy_boto3_config.literals import (
    AggregateConformancePackComplianceSummaryGroupKey,
    AggregatedSourceStatusType,
    AggregatedSourceType,
    ChronologicalOrder,
    ComplianceType,
    ConfigRuleComplianceSummaryGroupKey,
    ConfigRuleState,
    ConfigurationItemStatus,
    ConformancePackComplianceType,
    ConformancePackState,
    DeliveryStatus,
    DescribeAggregateComplianceByConfigRulesPaginatorName,
    DescribeAggregationAuthorizationsPaginatorName,
    DescribeComplianceByConfigRulePaginatorName,
    DescribeComplianceByResourcePaginatorName,
    DescribeConfigRuleEvaluationStatusPaginatorName,
    DescribeConfigRulesPaginatorName,
    DescribeConfigurationAggregatorSourcesStatusPaginatorName,
    DescribeConfigurationAggregatorsPaginatorName,
    DescribePendingAggregationRequestsPaginatorName,
    DescribeRemediationExecutionStatusPaginatorName,
    DescribeRetentionConfigurationsPaginatorName,
    EventSource,
    GetAggregateComplianceDetailsByConfigRulePaginatorName,
    GetComplianceDetailsByConfigRulePaginatorName,
    GetComplianceDetailsByResourcePaginatorName,
    GetResourceConfigHistoryPaginatorName,
    ListAggregateDiscoveredResourcesPaginatorName,
    ListDiscoveredResourcesPaginatorName,
    MaximumExecutionFrequency,
    MemberAccountRuleStatus,
    MessageType,
    OrganizationConfigRuleTriggerType,
    OrganizationResourceDetailedStatus,
    OrganizationResourceStatus,
    OrganizationRuleStatus,
    Owner,
    RecorderStatus,
    RemediationExecutionState,
    RemediationExecutionStepState,
    RemediationTargetType,
    ResourceCountGroupKey,
    ResourceType,
    ResourceValueType,
)

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

Typed dictionaries

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

from mypy_boto3_config.type_defs import (
    AccountAggregationSourceTypeDef,
    AggregateComplianceByConfigRuleTypeDef,
    AggregateComplianceByConformancePackTypeDef,
    AggregateComplianceCountTypeDef,
    AggregateConformancePackComplianceCountTypeDef,
    AggregateConformancePackComplianceFiltersTypeDef,
    AggregateConformancePackComplianceSummaryFiltersTypeDef,
    AggregateConformancePackComplianceSummaryTypeDef,
    AggregateConformancePackComplianceTypeDef,
    AggregateEvaluationResultTypeDef,
    AggregateResourceIdentifierTypeDef,
    AggregatedSourceStatusTypeDef,
    AggregationAuthorizationTypeDef,
    BaseConfigurationItemTypeDef,
    BatchGetAggregateResourceConfigResponseTypeDef,
    BatchGetResourceConfigResponseTypeDef,
    ComplianceByConfigRuleTypeDef,
    ComplianceByResourceTypeDef,
    ComplianceContributorCountTypeDef,
    ComplianceSummaryByResourceTypeTypeDef,
    ComplianceSummaryTypeDef,
    ComplianceTypeDef,
    ConfigExportDeliveryInfoTypeDef,
    ConfigRuleComplianceFiltersTypeDef,
    ConfigRuleComplianceSummaryFiltersTypeDef,
    ConfigRuleEvaluationStatusTypeDef,
    ConfigRuleTypeDef,
    ConfigSnapshotDeliveryPropertiesTypeDef,
    ConfigStreamDeliveryInfoTypeDef,
    ConfigurationAggregatorTypeDef,
    ConfigurationItemTypeDef,
    ConfigurationRecorderStatusTypeDef,
    ConfigurationRecorderTypeDef,
    ConformancePackComplianceFiltersTypeDef,
    ConformancePackComplianceSummaryTypeDef,
    ConformancePackDetailTypeDef,
    ConformancePackEvaluationFiltersTypeDef,
    ConformancePackEvaluationResultTypeDef,
    ConformancePackInputParameterTypeDef,
    ConformancePackRuleComplianceTypeDef,
    ConformancePackStatusDetailTypeDef,
    DeleteRemediationExceptionsResponseTypeDef,
    DeliverConfigSnapshotResponseTypeDef,
    DeliveryChannelStatusTypeDef,
    DeliveryChannelTypeDef,
    DescribeAggregateComplianceByConfigRulesResponseTypeDef,
    DescribeAggregateComplianceByConformancePacksResponseTypeDef,
    DescribeAggregationAuthorizationsResponseTypeDef,
    DescribeComplianceByConfigRuleResponseTypeDef,
    DescribeComplianceByResourceResponseTypeDef,
    DescribeConfigRuleEvaluationStatusResponseTypeDef,
    DescribeConfigRulesResponseTypeDef,
    DescribeConfigurationAggregatorSourcesStatusResponseTypeDef,
    DescribeConfigurationAggregatorsResponseTypeDef,
    DescribeConfigurationRecorderStatusResponseTypeDef,
    DescribeConfigurationRecordersResponseTypeDef,
    DescribeConformancePackComplianceResponseTypeDef,
    DescribeConformancePackStatusResponseTypeDef,
    DescribeConformancePacksResponseTypeDef,
    DescribeDeliveryChannelStatusResponseTypeDef,
    DescribeDeliveryChannelsResponseTypeDef,
    DescribeOrganizationConfigRuleStatusesResponseTypeDef,
    DescribeOrganizationConfigRulesResponseTypeDef,
    DescribeOrganizationConformancePackStatusesResponseTypeDef,
    DescribeOrganizationConformancePacksResponseTypeDef,
    DescribePendingAggregationRequestsResponseTypeDef,
    DescribeRemediationConfigurationsResponseTypeDef,
    DescribeRemediationExceptionsResponseTypeDef,
    DescribeRemediationExecutionStatusResponseTypeDef,
    DescribeRetentionConfigurationsResponseTypeDef,
    EvaluationResultIdentifierTypeDef,
    EvaluationResultQualifierTypeDef,
    EvaluationResultTypeDef,
    EvaluationTypeDef,
    ExecutionControlsTypeDef,
    ExternalEvaluationTypeDef,
    FailedDeleteRemediationExceptionsBatchTypeDef,
    FailedRemediationBatchTypeDef,
    FailedRemediationExceptionBatchTypeDef,
    FieldInfoTypeDef,
    GetAggregateComplianceDetailsByConfigRuleResponseTypeDef,
    GetAggregateConfigRuleComplianceSummaryResponseTypeDef,
    GetAggregateConformancePackComplianceSummaryResponseTypeDef,
    GetAggregateDiscoveredResourceCountsResponseTypeDef,
    GetAggregateResourceConfigResponseTypeDef,
    GetComplianceDetailsByConfigRuleResponseTypeDef,
    GetComplianceDetailsByResourceResponseTypeDef,
    GetComplianceSummaryByConfigRuleResponseTypeDef,
    GetComplianceSummaryByResourceTypeResponseTypeDef,
    GetConformancePackComplianceDetailsResponseTypeDef,
    GetConformancePackComplianceSummaryResponseTypeDef,
    GetDiscoveredResourceCountsResponseTypeDef,
    GetOrganizationConfigRuleDetailedStatusResponseTypeDef,
    GetOrganizationConformancePackDetailedStatusResponseTypeDef,
    GetResourceConfigHistoryResponseTypeDef,
    GetStoredQueryResponseTypeDef,
    GroupedResourceCountTypeDef,
    ListAggregateDiscoveredResourcesResponseTypeDef,
    ListDiscoveredResourcesResponseTypeDef,
    ListStoredQueriesResponseTypeDef,
    ListTagsForResourceResponseTypeDef,
    MemberAccountStatusTypeDef,
    OrganizationAggregationSourceTypeDef,
    OrganizationConfigRuleStatusTypeDef,
    OrganizationConfigRuleTypeDef,
    OrganizationConformancePackDetailedStatusTypeDef,
    OrganizationConformancePackStatusTypeDef,
    OrganizationConformancePackTypeDef,
    OrganizationCustomRuleMetadataTypeDef,
    OrganizationManagedRuleMetadataTypeDef,
    OrganizationResourceDetailedStatusFiltersTypeDef,
    PaginatorConfigTypeDef,
    PendingAggregationRequestTypeDef,
    PutAggregationAuthorizationResponseTypeDef,
    PutConfigurationAggregatorResponseTypeDef,
    PutConformancePackResponseTypeDef,
    PutEvaluationsResponseTypeDef,
    PutOrganizationConfigRuleResponseTypeDef,
    PutOrganizationConformancePackResponseTypeDef,
    PutRemediationConfigurationsResponseTypeDef,
    PutRemediationExceptionsResponseTypeDef,
    PutRetentionConfigurationResponseTypeDef,
    PutStoredQueryResponseTypeDef,
    QueryInfoTypeDef,
    RecordingGroupTypeDef,
    RelationshipTypeDef,
    RemediationConfigurationTypeDef,
    RemediationExceptionResourceKeyTypeDef,
    RemediationExceptionTypeDef,
    RemediationExecutionStatusTypeDef,
    RemediationExecutionStepTypeDef,
    RemediationParameterValueTypeDef,
    ResourceCountFiltersTypeDef,
    ResourceCountTypeDef,
    ResourceFiltersTypeDef,
    ResourceIdentifierTypeDef,
    ResourceKeyTypeDef,
    ResourceValueTypeDef,
    RetentionConfigurationTypeDef,
    ScopeTypeDef,
    SelectAggregateResourceConfigResponseTypeDef,
    SelectResourceConfigResponseTypeDef,
    SourceDetailTypeDef,
    SourceTypeDef,
    SsmControlsTypeDef,
    StartRemediationExecutionResponseTypeDef,
    StaticValueTypeDef,
    StatusDetailFiltersTypeDef,
    StoredQueryMetadataTypeDef,
    StoredQueryTypeDef,
    TagTypeDef,
)

def get_structure() -> AccountAggregationSourceTypeDef:
    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-config-1.17.69.0.tar.gz (32.3 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_config-1.17.69.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-config-1.17.69.0.tar.gz.

File metadata

  • Download URL: mypy-boto3-config-1.17.69.0.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mypy-boto3-config-1.17.69.0.tar.gz
Algorithm Hash digest
SHA256 fb70eaa716fb0180267b474a003f52d09929e38871645338085acecb347c8819
MD5 f5064ff52def2d50797828cb09186fe1
BLAKE2b-256 9d2f0de2ea984434d1c4e14a9ddb6514b8fedf229da6da1556852544c7037aed

See more details on using hashes here.

File details

Details for the file mypy_boto3_config-1.17.69.0-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_config-1.17.69.0-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for mypy_boto3_config-1.17.69.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9636c236a4b668cc479f9b53bdb578a60704e1dc35e3469bf722ce14f9d4b422
MD5 0e8b3ec8ed5d2ee20450c4c6472f6bc3
BLAKE2b-256 21ab02c2502d1a6ca516ed5807c936d5f5e73a9f2166ba9bda75cb78afb3390b

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