Skip to content

IAMToolboxPreviewClient#

Index > IAMToolboxPreview > IAMToolboxPreviewClient

Auto-generated documentation for IAMToolboxPreview type annotations stubs module mypy-boto3-iam-toolbox.

IAMToolboxPreviewClient#

Type annotations and code completion for boto3.client("iam-toolbox"). boto3 documentation

# IAMToolboxPreviewClient usage example

from boto3.session import Session
from mypy_boto3_iam_toolbox.client import IAMToolboxPreviewClient

def get_iam-toolbox_client() -> IAMToolboxPreviewClient:
    return Session().client("iam-toolbox")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("iam-toolbox").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("iam-toolbox")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_iam_toolbox.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods#

can_paginate#

Type annotations and code completion for boto3.client("iam-toolbox").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

generate_presigned_url#

Type annotations and code completion for boto3.client("iam-toolbox").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_request_authorization_details#

Retrieves the authorization details for a specific access denied request.

Type annotations and code completion for boto3.client("iam-toolbox").get_request_authorization_details method. boto3 documentation

# get_request_authorization_details method definition

def get_request_authorization_details(
    self,
    *,
    authorizationId: str,
    nextToken: str = ...,
) -> GetRequestAuthorizationDetailsOutputTypeDef:  # (1)
    ...
  1. See GetRequestAuthorizationDetailsOutputTypeDef
# get_request_authorization_details method usage example with argument unpacking

kwargs: GetRequestAuthorizationDetailsInputTypeDef = {  # (1)
    "authorizationId": ...,
}

parent.get_request_authorization_details(**kwargs)
  1. See GetRequestAuthorizationDetailsInputTypeDef

get_paginator#

Type annotations and code completion for boto3.client("iam-toolbox").get_paginator method with overloads.