Skip to content

ApplicationCostProfilerClient#

Index > ApplicationCostProfiler > ApplicationCostProfilerClient

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

ApplicationCostProfilerClient#

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

# ApplicationCostProfilerClient usage example

from boto3.session import Session
from types_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.

# Exceptions.exceptions usage example

client = boto3.client("applicationcostprofiler")

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

from types_boto3_applicationcostprofiler.client import Exceptions

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

Methods#

can_paginate#

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

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

# delete_report_definition method definition

def delete_report_definition(
    self,
    *,
    reportId: str,
) -> DeleteReportDefinitionResultTypeDef:  # (1)
    ...
  1. See DeleteReportDefinitionResultTypeDef
# delete_report_definition method usage example with argument unpacking

kwargs: DeleteReportDefinitionRequestRequestTypeDef = {  # (1)
    "reportId": ...,
}

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

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

# get_report_definition method definition

def get_report_definition(
    self,
    *,
    reportId: str,
) -> GetReportDefinitionResultTypeDef:  # (1)
    ...
  1. See GetReportDefinitionResultTypeDef
# get_report_definition method usage example with argument unpacking

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

# import_application_usage method definition

def import_application_usage(
    self,
    *,
    sourceS3Location: SourceS3LocationTypeDef,  # (1)
) -> ImportApplicationUsageResultTypeDef:  # (2)
    ...
  1. See SourceS3LocationTypeDef
  2. See ImportApplicationUsageResultTypeDef
# import_application_usage method usage example with argument unpacking

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

# list_report_definitions method definition

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

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

# put_report_definition 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
# put_report_definition method usage example with argument unpacking

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

# update_report_definition 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
# update_report_definition method usage example with argument unpacking

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.