Type annotations for boto3.Connect 1.17.97 service, generated by mypy-boto3-buider 4.18.3
Project description
mypy-boto3-connect
Type annotations for boto3.Connect 1.17.97 service compatible with VSCode, PyCharm, Emacs, Sublime Text, mypy, pyright and other tools.
Generated by mypy-boto3-buider 4.18.3.
More information can be found on boto3-stubs page and in mypy-boto3-connect docs
See how it helps to find and fix potential bugs:
How to install
Install boto3-stubs
for Connect
service.
python -m pip install boto3-stubs[connect]
Usage
VSCode
- Install Python extension
- Install Pylance extension
- Set
Pylance
as your Python Language Server - Install
boto-stubs[connect]
in your environment:python -m pip install 'boto3-stubs[connect]'
Both type checking and auto-complete should work for Connect
service. No
explicit type annotations required, write your boto3
code as usual.
PyCharm
- Install
boto-stubs[connect]
in your environment:python -m pip install 'boto3-stubs[connect]'
Both type checking and auto-complete should work for Connect
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[connect]
in your environment:python -m pip install 'boto3-stubs[connect]'
- Run
mypy
as usual
Type checking should work for Connect
service. No explicit type annotations
required, write your boto3
code as usual.
pyright
- Install
pyright
:yarn global add pyright
- Install
boto-stubs[connect]
in your environment:python -m pip install 'boto3-stubs[connect]'
- Optionally, you can install
boto3-stubs
totypings
folder.
Type checking should work for Connect
service. No explicit type annotations
required, write your boto3
code as usual.
Explicit type annotations
Client annotations
ConnectClient
provides annotations for boto3.client("connect")
.
import boto3
from mypy_boto3_connect import ConnectClient
client: ConnectClient = boto3.client("connect")
# 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: ConnectClient = session.client("connect")
Paginators annotations
mypy_boto3_connect.paginator
module contains type annotations for all
paginators.
from mypy_boto3_connect import ConnectClient
from mypy_boto3_connect.paginator import (
GetMetricDataPaginator,
ListApprovedOriginsPaginator,
ListBotsPaginator,
ListContactFlowsPaginator,
ListHoursOfOperationsPaginator,
ListInstanceAttributesPaginator,
ListInstanceStorageConfigsPaginator,
ListInstancesPaginator,
ListIntegrationAssociationsPaginator,
ListLambdaFunctionsPaginator,
ListLexBotsPaginator,
ListPhoneNumbersPaginator,
ListPromptsPaginator,
ListQueueQuickConnectsPaginator,
ListQueuesPaginator,
ListQuickConnectsPaginator,
ListRoutingProfileQueuesPaginator,
ListRoutingProfilesPaginator,
ListSecurityKeysPaginator,
ListSecurityProfilesPaginator,
ListUseCasesPaginator,
ListUserHierarchyGroupsPaginator,
ListUsersPaginator,
)
client: ConnectClient = boto3.client("connect")
# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
get_metric_data_paginator: GetMetricDataPaginator = client.get_paginator("get_metric_data")
list_approved_origins_paginator: ListApprovedOriginsPaginator = client.get_paginator("list_approved_origins")
list_bots_paginator: ListBotsPaginator = client.get_paginator("list_bots")
list_contact_flows_paginator: ListContactFlowsPaginator = client.get_paginator("list_contact_flows")
list_hours_of_operations_paginator: ListHoursOfOperationsPaginator = client.get_paginator("list_hours_of_operations")
list_instance_attributes_paginator: ListInstanceAttributesPaginator = client.get_paginator("list_instance_attributes")
list_instance_storage_configs_paginator: ListInstanceStorageConfigsPaginator = client.get_paginator("list_instance_storage_configs")
list_instances_paginator: ListInstancesPaginator = client.get_paginator("list_instances")
list_integration_associations_paginator: ListIntegrationAssociationsPaginator = client.get_paginator("list_integration_associations")
list_lambda_functions_paginator: ListLambdaFunctionsPaginator = client.get_paginator("list_lambda_functions")
list_lex_bots_paginator: ListLexBotsPaginator = client.get_paginator("list_lex_bots")
list_phone_numbers_paginator: ListPhoneNumbersPaginator = client.get_paginator("list_phone_numbers")
list_prompts_paginator: ListPromptsPaginator = client.get_paginator("list_prompts")
list_queue_quick_connects_paginator: ListQueueQuickConnectsPaginator = client.get_paginator("list_queue_quick_connects")
list_queues_paginator: ListQueuesPaginator = client.get_paginator("list_queues")
list_quick_connects_paginator: ListQuickConnectsPaginator = client.get_paginator("list_quick_connects")
list_routing_profile_queues_paginator: ListRoutingProfileQueuesPaginator = client.get_paginator("list_routing_profile_queues")
list_routing_profiles_paginator: ListRoutingProfilesPaginator = client.get_paginator("list_routing_profiles")
list_security_keys_paginator: ListSecurityKeysPaginator = client.get_paginator("list_security_keys")
list_security_profiles_paginator: ListSecurityProfilesPaginator = client.get_paginator("list_security_profiles")
list_use_cases_paginator: ListUseCasesPaginator = client.get_paginator("list_use_cases")
list_user_hierarchy_groups_paginator: ListUserHierarchyGroupsPaginator = client.get_paginator("list_user_hierarchy_groups")
list_users_paginator: ListUsersPaginator = client.get_paginator("list_users")
Literals
mypy_boto3_connect.literals
module contains literals extracted from shapes
that can be used in user code for type checking.
from mypy_boto3_connect.literals import (
ChannelType,
ComparisonType,
ContactFlowTypeType,
CurrentMetricNameType,
DirectoryTypeType,
EncryptionTypeType,
GetMetricDataPaginatorName,
GroupingType,
HistoricalMetricNameType,
HoursOfOperationDaysType,
InstanceAttributeTypeType,
InstanceStatusType,
InstanceStorageResourceTypeType,
IntegrationTypeType,
LexVersionType,
ListApprovedOriginsPaginatorName,
ListBotsPaginatorName,
ListContactFlowsPaginatorName,
ListHoursOfOperationsPaginatorName,
ListInstanceAttributesPaginatorName,
ListInstanceStorageConfigsPaginatorName,
ListInstancesPaginatorName,
ListIntegrationAssociationsPaginatorName,
ListLambdaFunctionsPaginatorName,
ListLexBotsPaginatorName,
ListPhoneNumbersPaginatorName,
ListPromptsPaginatorName,
ListQueueQuickConnectsPaginatorName,
ListQueuesPaginatorName,
ListQuickConnectsPaginatorName,
ListRoutingProfileQueuesPaginatorName,
ListRoutingProfilesPaginatorName,
ListSecurityKeysPaginatorName,
ListSecurityProfilesPaginatorName,
ListUseCasesPaginatorName,
ListUserHierarchyGroupsPaginatorName,
ListUsersPaginatorName,
PhoneNumberCountryCodeType,
PhoneNumberTypeType,
PhoneTypeType,
QueueStatusType,
QueueTypeType,
QuickConnectTypeType,
ReferenceTypeType,
SourceTypeType,
StatisticType,
StorageTypeType,
UnitType,
UseCaseTypeType,
VoiceRecordingTrackType,
)
def check_value(value: ChannelType) -> bool:
...
Typed dictionaries
mypy_boto3_connect.type_defs
module contains structures and shapes assembled
to typed dictionaries for additional type checking.
from mypy_boto3_connect.type_defs import (
AssociateInstanceStorageConfigResponseTypeDef,
AssociateSecurityKeyResponseTypeDef,
AttributeTypeDef,
ChatMessageTypeDef,
ContactFlowSummaryTypeDef,
ContactFlowTypeDef,
CreateContactFlowResponseTypeDef,
CreateInstanceResponseTypeDef,
CreateIntegrationAssociationResponseTypeDef,
CreateQueueResponseTypeDef,
CreateQuickConnectResponseTypeDef,
CreateRoutingProfileResponseTypeDef,
CreateUseCaseResponseTypeDef,
CreateUserHierarchyGroupResponseTypeDef,
CreateUserResponseTypeDef,
CredentialsTypeDef,
CurrentMetricDataTypeDef,
CurrentMetricResultTypeDef,
CurrentMetricTypeDef,
DescribeContactFlowResponseTypeDef,
DescribeHoursOfOperationResponseTypeDef,
DescribeInstanceAttributeResponseTypeDef,
DescribeInstanceResponseTypeDef,
DescribeInstanceStorageConfigResponseTypeDef,
DescribeQueueResponseTypeDef,
DescribeQuickConnectResponseTypeDef,
DescribeRoutingProfileResponseTypeDef,
DescribeUserHierarchyGroupResponseTypeDef,
DescribeUserHierarchyStructureResponseTypeDef,
DescribeUserResponseTypeDef,
DimensionsTypeDef,
EncryptionConfigTypeDef,
FiltersTypeDef,
GetContactAttributesResponseTypeDef,
GetCurrentMetricDataResponseTypeDef,
GetFederationTokenResponseTypeDef,
GetMetricDataResponseTypeDef,
HierarchyGroupSummaryTypeDef,
HierarchyGroupTypeDef,
HierarchyLevelTypeDef,
HierarchyLevelUpdateTypeDef,
HierarchyPathTypeDef,
HierarchyStructureTypeDef,
HierarchyStructureUpdateTypeDef,
HistoricalMetricDataTypeDef,
HistoricalMetricResultTypeDef,
HistoricalMetricTypeDef,
HoursOfOperationConfigTypeDef,
HoursOfOperationSummaryTypeDef,
HoursOfOperationTimeSliceTypeDef,
HoursOfOperationTypeDef,
InstanceStatusReasonTypeDef,
InstanceStorageConfigTypeDef,
InstanceSummaryTypeDef,
InstanceTypeDef,
IntegrationAssociationSummaryTypeDef,
KinesisFirehoseConfigTypeDef,
KinesisStreamConfigTypeDef,
KinesisVideoStreamConfigTypeDef,
LexBotConfigTypeDef,
LexBotTypeDef,
LexV2BotTypeDef,
ListApprovedOriginsResponseTypeDef,
ListBotsResponseTypeDef,
ListContactFlowsResponseTypeDef,
ListHoursOfOperationsResponseTypeDef,
ListInstanceAttributesResponseTypeDef,
ListInstanceStorageConfigsResponseTypeDef,
ListInstancesResponseTypeDef,
ListIntegrationAssociationsResponseTypeDef,
ListLambdaFunctionsResponseTypeDef,
ListLexBotsResponseTypeDef,
ListPhoneNumbersResponseTypeDef,
ListPromptsResponseTypeDef,
ListQueueQuickConnectsResponseTypeDef,
ListQueuesResponseTypeDef,
ListQuickConnectsResponseTypeDef,
ListRoutingProfileQueuesResponseTypeDef,
ListRoutingProfilesResponseTypeDef,
ListSecurityKeysResponseTypeDef,
ListSecurityProfilesResponseTypeDef,
ListTagsForResourceResponseTypeDef,
ListUseCasesResponseTypeDef,
ListUserHierarchyGroupsResponseTypeDef,
ListUsersResponseTypeDef,
MediaConcurrencyTypeDef,
OutboundCallerConfigTypeDef,
PaginatorConfigTypeDef,
ParticipantDetailsTypeDef,
PhoneNumberQuickConnectConfigTypeDef,
PhoneNumberSummaryTypeDef,
PromptSummaryTypeDef,
QueueQuickConnectConfigTypeDef,
QueueReferenceTypeDef,
QueueSummaryTypeDef,
QueueTypeDef,
QuickConnectConfigTypeDef,
QuickConnectSummaryTypeDef,
QuickConnectTypeDef,
ReferenceTypeDef,
RoutingProfileQueueConfigSummaryTypeDef,
RoutingProfileQueueConfigTypeDef,
RoutingProfileQueueReferenceTypeDef,
RoutingProfileSummaryTypeDef,
RoutingProfileTypeDef,
S3ConfigTypeDef,
SecurityKeyTypeDef,
SecurityProfileSummaryTypeDef,
StartChatContactResponseTypeDef,
StartOutboundVoiceContactResponseTypeDef,
StartTaskContactResponseTypeDef,
ThresholdTypeDef,
UseCaseTypeDef,
UserIdentityInfoTypeDef,
UserPhoneConfigTypeDef,
UserQuickConnectConfigTypeDef,
UserSummaryTypeDef,
UserTypeDef,
VoiceRecordingConfigurationTypeDef,
)
def get_structure() -> AssociateInstanceStorageConfigResponseTypeDef:
return {
...
}
Versioning
mypy-boto3-connect
version is the same as related boto3
version and follows
PEP 440 format.
Documentation
All type annotations can be found in mypy-boto3-connect 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
Built Distribution
Hashes for mypy-boto3-connect-1.17.97.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1be134162379c2c792bdb3b1d8c77888af9339bf7afaef4152af223b8aac044 |
|
MD5 | c23e946ff8c1f39604d6c4e3786d30da |
|
BLAKE2b-256 | 7143f44f204b32f1deb366875ebf720fbefc5d396e1cbb274b1a251e11255458 |
Hashes for mypy_boto3_connect-1.17.97-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4b2bec0c670945e788c6a36ac485e16cf4411519d2dfde372d3c78216e473a4 |
|
MD5 | 6c8f2bca09b7cb58257bf6d231e78f05 |
|
BLAKE2b-256 | 2dbe3e08bdf9098ff145e382453bb5cf915de5584a4aee0f14ba8d060df973fc |