Skip to content

WellArchitectedClient#

Index > WellArchitected > WellArchitectedClient

Auto-generated documentation for WellArchitected type annotations stubs module mypy-boto3-wellarchitected.

WellArchitectedClient#

Type annotations and code completion for boto3.client("wellarchitected"). boto3 documentation

# WellArchitectedClient usage example

from boto3.session import Session
from mypy_boto3_wellarchitected.client import WellArchitectedClient

def get_wellarchitected_client() -> WellArchitectedClient:
    return Session().client("wellarchitected")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("wellarchitected")

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

from mypy_boto3_wellarchitected.client import Exceptions

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

Methods#

associate_lenses#

Associate a lens to a workload.

Type annotations and code completion for boto3.client("wellarchitected").associate_lenses method. boto3 documentation

# associate_lenses method definition

def associate_lenses(
    self,
    *,
    WorkloadId: str,
    LensAliases: Sequence[str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# associate_lenses method usage example with argument unpacking

kwargs: AssociateLensesInputRequestTypeDef = {  # (1)
    "WorkloadId": ...,
    "LensAliases": ...,
}

parent.associate_lenses(**kwargs)
  1. See AssociateLensesInputRequestTypeDef

associate_profiles#

Associate a profile with a workload.

Type annotations and code completion for boto3.client("wellarchitected").associate_profiles method. boto3 documentation

# associate_profiles method definition

def associate_profiles(
    self,
    *,
    WorkloadId: str,
    ProfileArns: Sequence[str],
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# associate_profiles method usage example with argument unpacking

kwargs: AssociateProfilesInputRequestTypeDef = {  # (1)
    "WorkloadId": ...,
    "ProfileArns": ...,
}

parent.associate_profiles(**kwargs)
  1. See AssociateProfilesInputRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("wellarchitected").can_paginate method. boto3 documentation

# can_paginate method definition

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

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("wellarchitected").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_lens_share#

Create a lens share.

Type annotations and code completion for boto3.client("wellarchitected").create_lens_share method.