Package: types-aiobotocore-iam
types-aiobotocore-iamType annotations foraiobotocore.IAM 2.12.0service compatible withVSCode,PyCharm,Emacs,Sublime Text,mypy,pyrightand other tools.Generated bymypy-boto3-builder 7.23.2.More information can be found ontypes-aiobotocorepage and intypes-aiobotocore-iam docs.See how it helps to find and fix potential bugs:types-aiobotocore-iamHow to installFrom PyPI with pipHow to uninstallUsageVSCodePyCharmEmacsSublime TextOther IDEsmypypyrightExplicit type annotationsClient annotationsPaginators annotationsWaiters annotationsService Resource annotationsOther resources annotationsCollections annotationsLiteralsType definitionsHow it worksWhat's newImplemented featuresLatest changesVersioningThank youDocumentationSupport and contributingHow to installFrom PyPI with pipInstalltypes-aiobotocoreforIAMservice.# install with aiobotocore type annotationspython-mpipinstall'types-aiobotocore[iam]'# Lite version does not provide session.client/resource overloads# it is more RAM-friendly, but requires explicit type annotationspython-mpipinstall'types-aiobotocore-lite[iam]'# standalone installationpython-mpipinstalltypes-aiobotocore-iamHow to uninstallpython-mpipuninstall-ytypes-aiobotocore-iamUsageVSCodeInstallPython extensionInstallPylance extensionSetPylanceas your Python Language ServerInstalltypes-aiobotocore[iam]in your environment:python-mpipinstall'types-aiobotocore[iam]'Both type checking and code completion should now work. No explicit type
annotations required, write youraiobotocorecode as usual.PyCharmInstalltypes-aiobotocore-lite[iam]in your environment:python-mpipinstall'types-aiobotocore-lite[iam]'`Both type checking and code completion should now work. Explicit type
annotationsare required.Usetypes-aiobotocorepackage instead for implicit type discovery.EmacsInstalltypes-aiobotocorewith services you use in your environment:python-mpipinstall'types-aiobotocore[iam]'Installuse-package,lsp,companyandflycheckpackagesInstalllsp-pyrightpackage(use-packagelsp-pyright:ensuret:hook(python-mode.(lambda()(require'lsp-pyright)(lsp))); or lsp-deferred:init(when(executable-find"python3")(setqlsp-pyright-python-executable-cmd"python3")))Make sure emacs uses the environment where you have installedtypes-aiobotocoreType checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.Sublime TextInstalltypes-aiobotocore[iam]with services you use in your environment:python-mpipinstall'types-aiobotocore[iam]'InstallLSP-pyrightpackageType checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.Other IDEsNot tested, but as long as your IDE supportsmypyorpyright, everything
should work.mypyInstallmypy:python -m pip install mypyInstalltypes-aiobotocore[iam]in your environment:python-mpipinstall'types-aiobotocore[iam]'`Type checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.pyrightInstallpyright:npm i -g pyrightInstalltypes-aiobotocore[iam]in your environment:python-mpipinstall'types-aiobotocore[iam]'Optionally, you can installtypes-aiobotocoretotypingsfolder.Type checking should now work. No explicit type annotations required, write
youraiobotocorecode as usual.Explicit type annotationsClient annotationsIAMClientprovides annotations forsession.create_client("iam").fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_iamimportIAMClientsession=get_session()asyncwithsession.create_client("iam")asclient:client:IAMClient# now client usage is checked by mypy and IDE should provide code completionPaginators annotationstypes_aiobotocore_iam.paginatormodule contains type annotations for all
paginators.fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_iamimportIAMClientfromtypes_aiobotocore_iam.paginatorimport(GetAccountAuthorizationDetailsPaginator,GetGroupPaginator,ListAccessKeysPaginator,ListAccountAliasesPaginator,ListAttachedGroupPoliciesPaginator,ListAttachedRolePoliciesPaginator,ListAttachedUserPoliciesPaginator,ListEntitiesForPolicyPaginator,ListGroupPoliciesPaginator,ListGroupsPaginator,ListGroupsForUserPaginator,ListInstanceProfileTagsPaginator,ListInstanceProfilesPaginator,ListInstanceProfilesForRolePaginator,ListMFADeviceTagsPaginator,ListMFADevicesPaginator,ListOpenIDConnectProviderTagsPaginator,ListPoliciesPaginator,ListPolicyTagsPaginator,ListPolicyVersionsPaginator,ListRolePoliciesPaginator,ListRoleTagsPaginator,ListRolesPaginator,ListSAMLProviderTagsPaginator,ListSSHPublicKeysPaginator,ListServerCertificateTagsPaginator,ListServerCertificatesPaginator,ListSigningCertificatesPaginator,ListUserPoliciesPaginator,ListUserTagsPaginator,ListUsersPaginator,ListVirtualMFADevicesPaginator,SimulateCustomPolicyPaginator,SimulatePrincipalPolicyPaginator,)session=get_session()asyncwithsession.create_client("iam")asclient:client:IAMClient# Explicit type annotations are optional here# Types should be correctly discovered by mypy and IDEsget_account_authorization_details_paginator:GetAccountAuthorizationDetailsPaginator=(client.get_paginator("get_account_authorization_details"))get_group_paginator:GetGroupPaginator=client.get_paginator("get_group")list_access_keys_paginator:ListAccessKeysPaginator=client.get_paginator("list_access_keys")list_account_aliases_paginator:ListAccountAliasesPaginator=client.get_paginator("list_account_aliases")list_attached_group_policies_paginator:ListAttachedGroupPoliciesPaginator=(client.get_paginator("list_attached_group_policies"))list_attached_role_policies_paginator:ListAttachedRolePoliciesPaginator=client.get_paginator("list_attached_role_policies")list_attached_user_policies_paginator:ListAttachedUserPoliciesPaginator=client.get_paginator("list_attached_user_policies")list_entities_for_policy_paginator:ListEntitiesForPolicyPaginator=client.get_paginator("list_entities_for_policy")list_group_policies_paginator:ListGroupPoliciesPaginator=client.get_paginator("list_group_policies")list_groups_paginator:ListGroupsPaginator=client.get_paginator("list_groups")list_groups_for_user_paginator:ListGroupsForUserPaginator=client.get_paginator("list_groups_for_user")list_instance_profile_tags_paginator:ListInstanceProfileTagsPaginator=client.get_paginator("list_instance_profile_tags")list_instance_profiles_paginator:ListInstanceProfilesPaginator=client.get_paginator("list_instance_profiles")list_instance_profiles_for_role_paginator:ListInstanceProfilesForRolePaginator=(client.get_paginator("list_instance_profiles_for_role"))list_mfa_device_tags_paginator:ListMFADeviceTagsPaginator=client.get_paginator("list_mfa_device_tags")list_mfa_devices_paginator:ListMFADevicesPaginator=client.get_paginator("list_mfa_devices")list_open_id_connect_provider_tags_paginator:ListOpenIDConnectProviderTagsPaginator=(client.get_paginator("list_open_id_connect_provider_tags"))list_policies_paginator:ListPoliciesPaginator=client.get_paginator("list_policies")list_policy_tags_paginator:ListPolicyTagsPaginator=client.get_paginator("list_policy_tags")list_policy_versions_paginator:ListPolicyVersionsPaginator=client.get_paginator("list_policy_versions")list_role_policies_paginator:ListRolePoliciesPaginator=client.get_paginator("list_role_policies")list_role_tags_paginator:ListRoleTagsPaginator=client.get_paginator("list_role_tags")list_roles_paginator:ListRolesPaginator=client.get_paginator("list_roles")list_saml_provider_tags_paginator:ListSAMLProviderTagsPaginator=client.get_paginator("list_saml_provider_tags")list_ssh_public_keys_paginator:ListSSHPublicKeysPaginator=client.get_paginator("list_ssh_public_keys")list_server_certificate_tags_paginator:ListServerCertificateTagsPaginator=(client.get_paginator("list_server_certificate_tags"))list_server_certificates_paginator:ListServerCertificatesPaginator=client.get_paginator("list_server_certificates")list_signing_certificates_paginator:ListSigningCertificatesPaginator=client.get_paginator("list_signing_certificates")list_user_policies_paginator:ListUserPoliciesPaginator=client.get_paginator("list_user_policies")list_user_tags_paginator:ListUserTagsPaginator=client.get_paginator("list_user_tags")list_users_paginator:ListUsersPaginator=client.get_paginator("list_users")list_virtual_mfa_devices_paginator:ListVirtualMFADevicesPaginator=client.get_paginator("list_virtual_mfa_devices")simulate_custom_policy_paginator:SimulateCustomPolicyPaginator=client.get_paginator("simulate_custom_policy")simulate_principal_policy_paginator:SimulatePrincipalPolicyPaginator=client.get_paginator("simulate_principal_policy")Waiters annotationstypes_aiobotocore_iam.waitermodule contains type annotations for all
waiters.fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_iam.clientimportIAMClientfromtypes_aiobotocore_iam.waiterimport(InstanceProfileExistsWaiter,PolicyExistsWaiter,RoleExistsWaiter,UserExistsWaiter,)session=get_session()asyncwithsession.create_client("iam")asclient:client:IAMClient# Explicit type annotations are optional here# Types should be correctly discovered by mypy and IDEsinstance_profile_exists_waiter:InstanceProfileExistsWaiter=client.get_waiter("instance_profile_exists")policy_exists_waiter:PolicyExistsWaiter=client.get_waiter("policy_exists")role_exists_waiter:RoleExistsWaiter=client.get_waiter("role_exists")user_exists_waiter:UserExistsWaiter=client.get_waiter("user_exists")Service Resource annotationsIAMServiceResourceprovides annotations foraiobotocore.resource("iam").fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_iamimportIAMServiceResourcesession=get_session()asyncwithsession.resource("iam")asresource:resource:IAMServiceResource# now resource usage is checked by mypy and IDE should provide code completionOther resources annotationstypes_aiobotocore_iam.service_resourcemodule contains type annotations for
all resources.fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_iamimportIAMServiceResourcefromtypes_aiobotocore_iam.service_resourceimport(AccessKey,AccessKeyPair,AccountPasswordPolicy,AccountSummary,AssumeRolePolicy,CurrentUser,Group,GroupPolicy,InstanceProfile,LoginProfile,MfaDevice,Policy,PolicyVersion,Role,RolePolicy,SamlProvider,ServerCertificate,SigningCertificate,User,UserPolicy,VirtualMfaDevice,)session=get_session()asyncwithsession.resource("iam")asresource:resource:IAMServiceResource# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEsmy_access_key:AccessKey=resource.AccessKey(...)my_access_key_pair:AccessKeyPair=resource.AccessKeyPair(...)my_account_password_policy:AccountPasswordPolicy=resource.AccountPasswordPolicy(...)my_account_summary:AccountSummary=resource.AccountSummary(...)my_assume_role_policy:AssumeRolePolicy=resource.AssumeRolePolicy(...)my_current_user:CurrentUser=resource.CurrentUser(...)my_group:Group=resource.Group(...)my_group_policy:GroupPolicy=resource.GroupPolicy(...)my_instance_profile:InstanceProfile=resource.InstanceProfile(...)my_login_profile:LoginProfile=resource.LoginProfile(...)my_mfa_device:MfaDevice=resource.MfaDevice(...)my_policy:Policy=resource.Policy(...)my_policy_version:PolicyVersion=resource.PolicyVersion(...)my_role:Role=resource.Role(...)my_role_policy:RolePolicy=resource.RolePolicy(...)my_saml_provider:SamlProvider=resource.SamlProvider(...)my_server_certificate:ServerCertificate=resource.ServerCertificate(...)my_signing_certificate:SigningCertificate=resource.SigningCertificate(...)my_user:User=resource.User(...)my_user_policy:UserPolicy=resource.UserPolicy(...)my_virtual_mfa_device:VirtualMfaDevice=resource.VirtualMfaDevice(...)Collections annotationstypes_aiobotocore_iam.service_resourcemodule contains type annotations for
allIAMServiceResourcecollections.fromaiobotocore.sessionimportget_sessionfromtypes_aiobotocore_iamimportIAMServiceResourcefromtypes_aiobotocore_iam.service_resourceimport(ServiceResourceGroupsCollection,ServiceResourceInstanceProfilesCollection,ServiceResourcePoliciesCollection,ServiceResourceRolesCollection,ServiceResourceSamlProvidersCollection,ServiceResourceServerCertificatesCollection,ServiceResourceUsersCollection,ServiceResourceVirtualMfaDevicesCollection,)session=get_session()asyncwithsession.resource("iam")asresource:resource:IAMServiceResource# Explicit type annotations are optional here# Type should be correctly discovered by mypy and IDEsgroups:iam_resources.ServiceResourceGroupsCollection=resource.groupsinstance_profiles:iam_resources.ServiceResourceInstanceProfilesCollection=(resource.instance_profiles)policies:iam_resources.ServiceResourcePoliciesCollection=resource.policiesroles:iam_resources.ServiceResourceRolesCollection=resource.rolessaml_providers:iam_resources.ServiceResourceSamlProvidersCollection=resource.saml_providersserver_certificates:iam_resources.ServiceResourceServerCertificatesCollection=(resource.server_certificates)users:iam_resources.ServiceResourceUsersCollection=resource.usersvirtual_mfa_devices:iam_resources.ServiceResourceVirtualMfaDevicesCollection=(resource.virtual_mfa_devices)Literalstypes_aiobotocore_iam.literalsmodule contains literals extracted from shapes
that can be used in user code for type checking.Full list ofIAMLiterals can be found indocs.fromtypes_aiobotocore_iam.literalsimportAccessAdvisorUsageGranularityTypeTypedefcheck_value(value:AccessAdvisorUsageGranularityTypeType)->bool:...Type definitionstypes_aiobotocore_iam.type_defsmodule contains structures and shapes
assembled to typed dictionaries and unions for additional type checking.Full list ofIAMTypeDefs can be found indocs.fromtypes_aiobotocore_iam.type_defsimportAccessDetailTypeDefdefget_value()->AccessDetailTypeDef:return{...}How it worksFully automatedmypy-boto3-buildercarefully
generates type annotations for each service, patiently waiting foraiobotocoreupdates. It delivers drop-in type annotations for you and makes
sure that:All availableaiobotocoreservices are covered.Each public class and method of everyaiobotocoreservice gets valid type
annotations extracted frombotocoreschemas.Type annotations include up-to-date documentation.Link to documentation is provided for every method.Code is processed byblackandisortfor readability.What's newImplemented featuresFully type annotatedboto3,botocore,aiobotocoreandaioboto3librariesmypy,pyright,VSCode,PyCharm,Sublime TextandEmacscompatibilityClient,ServiceResource,Resource,WaiterPaginatortype
annotations for each serviceGeneratedTypeDefsfor each serviceGeneratedLiteralsfor each serviceAuto discovery of types forboto3.clientandboto3.resourcecallsAuto discovery of types forsession.clientandsession.resourcecallsAuto discovery of types forclient.get_waiterandclient.get_paginatorcallsAuto discovery of types forServiceResourceandResourcecollectionsAuto discovery of types foraiobotocore.Session.create_clientcallsLatest changesBuilder changelog can be found inReleases.Versioningtypes-aiobotocore-iamversion is the same as relatedaiobotocoreversion
and followsPEP 440format.Thank youAllie Fitterforboto3-type-annotations,
this package is based on top of his workblackdevelopers for an awesome formatting
toolTimothy Edmund Crosleyforisortand how flexible it ismypydevelopers for doing all dirty work
for uspyrightteam for the new era of typed
PythonDocumentationAll services type annotations can be found inaiobotocore docsSupport and contributingThis package is auto-generated. Please reports any bugs or request new features
inmypy-boto3-builderrepository.