Skip to main content

Type annotations for boto3.SSOAdmin 1.17.63 service, generated by mypy-boto3-buider 4.8.1

Project description

mypy-boto3-sso-admin

PyPI - mypy-boto3-sso-admin PyPI - Python Version Docs PyPI - Downloads

boto3.typed

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

Generated by mypy-boto3-buider 4.8.1.

More information can be found on boto3-stubs page and in auto-generated docs

See how it helps to find and fix potential bugs:

boto3-stubs demo

How to install

Install boto3-stubs for SSOAdmin service.

python -m pip install boto3-stubs[sso-admin]

Usage

VSCode

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

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

PyCharm

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

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

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

pyright

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

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

Explicit type annotations

Client annotations

SSOAdminClient provides annotations for boto3.client("sso-admin").

import boto3

from mypy_boto3_sso_admin import SSOAdminClient

client: SSOAdminClient = boto3.client("sso-admin")

# 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: SSOAdminClient = session.client("sso-admin")

Paginators annotations

mypy_boto3_sso_admin.paginator module contains type annotations for all paginators.

from mypy_boto3_sso_admin import SSOAdminClient
from mypy_boto3_sso_admin.paginator import (
    ListAccountAssignmentCreationStatusPaginator,
    ListAccountAssignmentDeletionStatusPaginator,
    ListAccountAssignmentsPaginator,
    ListAccountsForProvisionedPermissionSetPaginator,
    ListInstancesPaginator,
    ListManagedPoliciesInPermissionSetPaginator,
    ListPermissionSetProvisioningStatusPaginator,
    ListPermissionSetsPaginator,
    ListPermissionSetsProvisionedToAccountPaginator,
    ListTagsForResourcePaginator,
)

client: SSOAdminClient = boto3.client("sso-admin")

# Explicit type annotations are optional here
# Type should be correctly discovered by mypy and IDEs
# VSCode requires explicit type annotations
list_account_assignment_creation_status_paginator: ListAccountAssignmentCreationStatusPaginator = client.get_paginator("list_account_assignment_creation_status")
list_account_assignment_deletion_status_paginator: ListAccountAssignmentDeletionStatusPaginator = client.get_paginator("list_account_assignment_deletion_status")
list_account_assignments_paginator: ListAccountAssignmentsPaginator = client.get_paginator("list_account_assignments")
list_accounts_for_provisioned_permission_set_paginator: ListAccountsForProvisionedPermissionSetPaginator = client.get_paginator("list_accounts_for_provisioned_permission_set")
list_instances_paginator: ListInstancesPaginator = client.get_paginator("list_instances")
list_managed_policies_in_permission_set_paginator: ListManagedPoliciesInPermissionSetPaginator = client.get_paginator("list_managed_policies_in_permission_set")
list_permission_set_provisioning_status_paginator: ListPermissionSetProvisioningStatusPaginator = client.get_paginator("list_permission_set_provisioning_status")
list_permission_sets_paginator: ListPermissionSetsPaginator = client.get_paginator("list_permission_sets")
list_permission_sets_provisioned_to_account_paginator: ListPermissionSetsProvisionedToAccountPaginator = client.get_paginator("list_permission_sets_provisioned_to_account")
list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")

Literals

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

from mypy_boto3_sso_admin.literals import (
    InstanceAccessControlAttributeConfigurationStatus,
    ListAccountAssignmentCreationStatusPaginatorName,
    ListAccountAssignmentDeletionStatusPaginatorName,
    ListAccountAssignmentsPaginatorName,
    ListAccountsForProvisionedPermissionSetPaginatorName,
    ListInstancesPaginatorName,
    ListManagedPoliciesInPermissionSetPaginatorName,
    ListPermissionSetProvisioningStatusPaginatorName,
    ListPermissionSetsPaginatorName,
    ListPermissionSetsProvisionedToAccountPaginatorName,
    ListTagsForResourcePaginatorName,
    PrincipalType,
    ProvisionTargetType,
    ProvisioningStatus,
    StatusValues,
    TargetType,
)

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

Typed dictionaries

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

from mypy_boto3_sso_admin.type_defs import (
    AccessControlAttributeTypeDef,
    AccessControlAttributeValueTypeDef,
    AccountAssignmentOperationStatusMetadataTypeDef,
    AccountAssignmentOperationStatusTypeDef,
    AccountAssignmentTypeDef,
    AttachedManagedPolicyTypeDef,
    CreateAccountAssignmentResponseTypeDef,
    CreatePermissionSetResponseTypeDef,
    DeleteAccountAssignmentResponseTypeDef,
    DescribeAccountAssignmentCreationStatusResponseTypeDef,
    DescribeAccountAssignmentDeletionStatusResponseTypeDef,
    DescribeInstanceAccessControlAttributeConfigurationResponseTypeDef,
    DescribePermissionSetProvisioningStatusResponseTypeDef,
    DescribePermissionSetResponseTypeDef,
    GetInlinePolicyForPermissionSetResponseTypeDef,
    InstanceAccessControlAttributeConfigurationTypeDef,
    InstanceMetadataTypeDef,
    ListAccountAssignmentCreationStatusResponseTypeDef,
    ListAccountAssignmentDeletionStatusResponseTypeDef,
    ListAccountAssignmentsResponseTypeDef,
    ListAccountsForProvisionedPermissionSetResponseTypeDef,
    ListInstancesResponseTypeDef,
    ListManagedPoliciesInPermissionSetResponseTypeDef,
    ListPermissionSetProvisioningStatusResponseTypeDef,
    ListPermissionSetsProvisionedToAccountResponseTypeDef,
    ListPermissionSetsResponseTypeDef,
    ListTagsForResourceResponseTypeDef,
    OperationStatusFilterTypeDef,
    PaginatorConfigTypeDef,
    PermissionSetProvisioningStatusMetadataTypeDef,
    PermissionSetProvisioningStatusTypeDef,
    PermissionSetTypeDef,
    ProvisionPermissionSetResponseTypeDef,
    TagTypeDef,
)

def get_structure() -> AccessControlAttributeTypeDef:
    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-sso-admin-1.17.63.0.tar.gz (12.5 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_sso_admin-1.17.63.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file mypy-boto3-sso-admin-1.17.63.0.tar.gz.

File metadata

  • Download URL: mypy-boto3-sso-admin-1.17.63.0.tar.gz
  • Upload date:
  • Size: 12.5 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.4

File hashes

Hashes for mypy-boto3-sso-admin-1.17.63.0.tar.gz
Algorithm Hash digest
SHA256 cd2045a27412565b103f3ffa675866c562eb2bdb49622996a2d7d74ceee8c06f
MD5 a0131843f4af2cab2ba213510895eeeb
BLAKE2b-256 fe86de0cd2890079a74dd2598a07a8f43baac38d83d08a30a2849a17ea761601

See more details on using hashes here.

File details

Details for the file mypy_boto3_sso_admin-1.17.63.0-py3-none-any.whl.

File metadata

  • Download URL: mypy_boto3_sso_admin-1.17.63.0-py3-none-any.whl
  • Upload date:
  • Size: 18.7 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.4

File hashes

Hashes for mypy_boto3_sso_admin-1.17.63.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec166d6bc2c36847347bea044827ec97dba6dbb3b443663b5e12ba4856ff3bef
MD5 d6c1bbc69a38bc17d4724de0524c99b2
BLAKE2b-256 3f0d65e8939b1ac31c70cd2fb0fb1eda0f8b610db694ea785cb64f8eb3ae9025

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