Skip to content

TrustedAdvisorPublicAPIClient#

Index > TrustedAdvisorPublicAPI > TrustedAdvisorPublicAPIClient

Auto-generated documentation for TrustedAdvisorPublicAPI type annotations stubs module mypy-boto3-trustedadvisor.

TrustedAdvisorPublicAPIClient#

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

# TrustedAdvisorPublicAPIClient usage example

from boto3.session import Session
from mypy_boto3_trustedadvisor.client import TrustedAdvisorPublicAPIClient

def get_trustedadvisor_client() -> TrustedAdvisorPublicAPIClient:
    return Session().client("trustedadvisor")

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("trustedadvisor")

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

from mypy_boto3_trustedadvisor.client import Exceptions

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

Methods#

batch_update_recommendation_resource_exclusion#

Update one or more exclusion status for a list of recommendation resources See also: AWS API Documentation.

Type annotations and code completion for boto3.client("trustedadvisor").batch_update_recommendation_resource_exclusion method. boto3 documentation

# batch_update_recommendation_resource_exclusion method definition

def batch_update_recommendation_resource_exclusion(
    self,
    *,
    recommendationResourceExclusions: Sequence[RecommendationResourceExclusionTypeDef],  # (1)
) -> BatchUpdateRecommendationResourceExclusionResponseTypeDef:  # (2)
    ...
  1. See RecommendationResourceExclusionTypeDef
  2. See BatchUpdateRecommendationResourceExclusionResponseTypeDef
# batch_update_recommendation_resource_exclusion method usage example with argument unpacking

kwargs: BatchUpdateRecommendationResourceExclusionRequestRequestTypeDef = {  # (1)
    "recommendationResourceExclusions": ...,
}

parent.batch_update_recommendation_resource_exclusion(**kwargs)
  1. See BatchUpdateRecommendationResourceExclusionRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("trustedadvisor").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("trustedadvisor").close method. boto3 documentation

# close method definition

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

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("trustedadvisor").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_organization_recommendation#

Get a specific recommendation within an AWS Organizations organization.

Type annotations and code completion for boto3.client("trustedadvisor").get_organization_recommendation method. boto3 documentation

# get_organization_recommendation method definition

def get_organization_recommendation(
    self,
    *,
    organizationRecommendationIdentifier: str,
) -> GetOrganizationRecommendationResponseTypeDef:  # (1)
    ...
  1. See GetOrganizationRecommendationResponseTypeDef
# get_organization_recommendation method usage example with argument unpacking

kwargs: GetOrganizationRecommendationRequestRequestTypeDef = {  # (1)
    "organizationRecommendationIdentifier": ...,
}

parent.get_organization_recommendation(**kwargs)
  1. See GetOrganizationRecommendationRequestRequestTypeDef

get_recommendation#

Get a specific Recommendation See also: AWS API Documentation.

Type annotations and code completion for boto3.client("trustedadvisor").get_recommendation method. boto3 documentation

# get_recommendation method definition

def get_recommendation(
    self,
    *,
    recommendationIdentifier: str,
) -> GetRecommendationResponseTypeDef:  # (1)
    ...
  1. See GetRecommendationResponseTypeDef
# get_recommendation method usage example with argument unpacking

kwargs: GetRecommendationRequestRequestTypeDef = {  # (1)
    "recommendationIdentifier": ...,
}

parent.get_recommendation(**kwargs)
  1. See GetRecommendationRequestRequestTypeDef

list_checks#

List a filterable set of Checks See also: AWS API Documentation.

Type annotations and code completion for boto3.client("trustedadvisor").list_checks method. boto3 documentation

# list_checks method definition

def list_checks(
    self,
    *,
    awsService: str = ...,
    language: RecommendationLanguageType = ...,  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
    pillar: RecommendationPillarType = ...,  # (2)
    source: RecommendationSourceType = ...,  # (3)
) -> ListChecksResponseTypeDef:  # (4)
    ...
  1. See RecommendationLanguageType
  2. See RecommendationPillarType
  3. See RecommendationSourceType
  4. See ListChecksResponseTypeDef
# list_checks method usage example with argument unpacking

kwargs: ListChecksRequestRequestTypeDef = {  # (1)
    "awsService": ...,
}

parent.list_checks(**kwargs)
  1. See ListChecksRequestRequestTypeDef

list_organization_recommendation_accounts#

Lists the accounts that own the resources for an organization aggregate recommendation.

Type annotations and code completion for boto3.client("trustedadvisor").list_organization_recommendation_accounts method. boto3 documentation

# list_organization_recommendation_accounts method definition

def list_organization_recommendation_accounts(
    self,
    *,
    organizationRecommendationIdentifier: str,
    affectedAccountId: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListOrganizationRecommendationAccountsResponseTypeDef:  # (1)
    ...
  1. See ListOrganizationRecommendationAccountsResponseTypeDef
# list_organization_recommendation_accounts method usage example with argument unpacking

kwargs: ListOrganizationRecommendationAccountsRequestRequestTypeDef = {  # (1)
    "organizationRecommendationIdentifier": ...,
}

parent.list_organization_recommendation_accounts(**kwargs)
  1. See ListOrganizationRecommendationAccountsRequestRequestTypeDef

list_organization_recommendation_resources#

List Resources of a Recommendation within an Organization.

Type annotations and code completion for boto3.client("trustedadvisor").list_organization_recommendation_resources method.