Skip to content

ApplicationCostProfilerClient

Index > ApplicationCostProfiler > ApplicationCostProfilerClient

Auto-generated documentation for ApplicationCostProfiler type annotations stubs module mypy-boto3-applicationcostprofiler.

ApplicationCostProfilerClient

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

Usage example
from boto3.session import Session
from mypy_boto3_applicationcostprofiler.client import ApplicationCostProfilerClient

def get_applicationcostprofiler_client() -> ApplicationCostProfilerClient:
    return Session().client("applicationcostprofiler")

Exceptions

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

Usage example
client = boto3.client("applicationcostprofiler")

try:
    do_something(client)
except (
    client.AccessDeniedException,
    client.ClientError,
    client.InternalServerException,
    client.ServiceQuotaExceededException,
    client.ThrottlingException,
    client.ValidationException,
) as e:
    print(e)
Type checking example
from mypy_boto3_applicationcostprofiler.client import Exceptions

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

Methods

can_paginate

Check if an operation can be paginated.

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

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

close

Closes underlying endpoint connections.

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

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

delete_report_definition

Deletes the specified report definition in AWS Application Cost Profiler.

Type annotations and code completion for boto3.client("applicationcostprofiler").delete_report_definition method. boto3 documentation

Method definition
def delete_report_definition(
    self,
    *,
    reportId: str,
) -> DeleteReportDefinitionResultTypeDef:  # (1)
    ...
  1. See DeleteReportDefinitionResultTypeDef
Usage example with kwargs
kwargs: DeleteReportDefinitionRequestRequestTypeDef = {  # (1)
    "reportId": ...,
}

parent.delete_report_definition(**kwargs)
  1. See DeleteReportDefinitionRequestRequestTypeDef

generate_presigned_url

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

Type annotations and code completion for boto3.client("applicationcostprofiler").generate_presigned_url method. boto3 documentation

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

get_report_definition

Retrieves the definition of a report already configured in AWS Application Cost Profiler.

Type annotations and code completion for boto3.client("applicationcostprofiler").get_report_definition method. boto3 documentation

Method definition
def get_report_definition(
    self,
    *,
    reportId: str,
) -> GetReportDefinitionResultTypeDef:  # (1)
    ...
  1. See GetReportDefinitionResultTypeDef
Usage example with kwargs
kwargs: GetReportDefinitionRequestRequestTypeDef = {  # (1)
    "reportId": ...,
}

parent.get_report_definition(**kwargs)
  1. See GetReportDefinitionRequestRequestTypeDef

import_application_usage

Ingests application usage data from Amazon Simple Storage Service (Amazon S3).

Type annotations and code completion for boto3.client("applicationcostprofiler").import_application_usage method. boto3 documentation

Method definition
def import_application_usage(
    self,
    *,
    sourceS3Location: SourceS3LocationTypeDef,  # (1)
) -> ImportApplicationUsageResultTypeDef:  # (2)
    ...
  1. See SourceS3LocationTypeDef
  2. See ImportApplicationUsageResultTypeDef
Usage example with kwargs
kwargs: ImportApplicationUsageRequestRequestTypeDef = {  # (1)
    "sourceS3Location": ...,
}

parent.import_application_usage(**kwargs)
  1. See ImportApplicationUsageRequestRequestTypeDef

list_report_definitions

Retrieves a list of all reports and their configurations for your AWS account.

Type annotations and code completion for boto3.client("applicationcostprofiler").list_report_definitions method. boto3 documentation

Method definition
def list_report_definitions(
    self,
    *,
    nextToken: str = ...,
    maxResults: int = ...,
) -> ListReportDefinitionsResultTypeDef:  # (1)
    ...
  1. See ListReportDefinitionsResultTypeDef
Usage example with kwargs
kwargs: ListReportDefinitionsRequestRequestTypeDef = {  # (1)
    "nextToken": ...,
}

parent.list_report_definitions(**kwargs)
  1. See ListReportDefinitionsRequestRequestTypeDef

put_report_definition

Creates the report definition for a report in Application Cost Profiler.

Type annotations and code completion for boto3.client("applicationcostprofiler").put_report_definition method. boto3 documentation

Method definition
def put_report_definition(
    self,
    *,
    reportId: str,
    reportDescription: str,
    reportFrequency: ReportFrequencyType,  # (1)
    format: FormatType,  # (2)
    destinationS3Location: S3LocationTypeDef,  # (3)
) -> PutReportDefinitionResultTypeDef:  # (4)
    ...
  1. See ReportFrequencyType
  2. See FormatType
  3. See S3LocationTypeDef
  4. See PutReportDefinitionResultTypeDef
Usage example with kwargs
kwargs: PutReportDefinitionRequestRequestTypeDef = {  # (1)
    "reportId": ...,
    "reportDescription": ...,
    "reportFrequency": ...,
    "format": ...,
    "destinationS3Location": ...,
}

parent.put_report_definition(**kwargs)
  1. See PutReportDefinitionRequestRequestTypeDef

update_report_definition

Updates existing report in AWS Application Cost Profiler.

Type annotations and code completion for boto3.client("applicationcostprofiler").update_report_definition method. boto3 documentation

Method definition
def update_report_definition(
    self,
    *,
    reportId: str,
    reportDescription: str,
    reportFrequency: ReportFrequencyType,  # (1)
    format: FormatType,  # (2)
    destinationS3Location: S3LocationTypeDef,  # (3)
) -> UpdateReportDefinitionResultTypeDef:  # (4)
    ...
  1. See ReportFrequencyType
  2. See FormatType
  3. See S3LocationTypeDef
  4. See UpdateReportDefinitionResultTypeDef
Usage example with kwargs
kwargs: UpdateReportDefinitionRequestRequestTypeDef = {  # (1)
    "reportId": ...,
    "reportDescription": ...,
    "reportFrequency": ...,
    "format": ...,
    "destinationS3Location": ...,
}

parent.update_report_definition(**kwargs)
  1. See UpdateReportDefinitionRequestRequestTypeDef

get_paginator

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