Skip to content

BillingandCostManagementRecommendedActionsClient#

Index > BillingandCostManagementRecommendedActions > BillingandCostManagementRecommendedActionsClient

Auto-generated documentation for BillingandCostManagementRecommendedActions type annotations stubs module mypy-boto3-bcm-recommended-actions.

BillingandCostManagementRecommendedActionsClient#

Type annotations and code completion for boto3.client("bcm-recommended-actions"). boto3 documentation

# BillingandCostManagementRecommendedActionsClient usage example

from boto3.session import Session
from mypy_boto3_bcm_recommended_actions.client import BillingandCostManagementRecommendedActionsClient

def get_bcm-recommended-actions_client() -> BillingandCostManagementRecommendedActionsClient:
    return Session().client("bcm-recommended-actions")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("bcm-recommended-actions").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("bcm-recommended-actions")

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

from mypy_boto3_bcm_recommended_actions.client import Exceptions

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

Methods#

can_paginate#

Type annotations and code completion for boto3.client("bcm-recommended-actions").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("bcm-recommended-actions").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:
    ...

Returns a list of recommended actions that match the filter criteria.

Type annotations and code completion for boto3.client("bcm-recommended-actions").list_recommended_actions method. boto3 documentation

# list_recommended_actions method definition

def list_recommended_actions(
    self,
    *,
    filter: RequestFilterTypeDef = ...,  # (1)
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListRecommendedActionsResponseTypeDef:  # (2)
    ...
  1. See RequestFilterTypeDef
  2. See ListRecommendedActionsResponseTypeDef
# list_recommended_actions method usage example with argument unpacking

kwargs: ListRecommendedActionsRequestTypeDef = {  # (1)
    "filter": ...,
}

parent.list_recommended_actions(**kwargs)
  1. See ListRecommendedActionsRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("bcm-recommended-actions").get_paginator method with overloads.