ApplicationCostProfilerClient#
Index > ApplicationCostProfiler > ApplicationCostProfilerClient
Auto-generated documentation for ApplicationCostProfiler type annotations stubs module types-aiobotocore-applicationcostprofiler.
ApplicationCostProfilerClient#
Type annotations and code completion for session.create_client("applicationcostprofiler")
boto3 documentation
ApplicationCostProfilerClient usage example
from aiobotocore.session import get_session
from types_aiobotocore_applicationcostprofiler.client import ApplicationCostProfilerClient
session = get_session()
async with session.create_client("applicationcostprofiler") as client:
client: ApplicationCostProfilerClient
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("applicationcostprofiler").exceptions
structure.
ApplicationCostProfilerClient.exceptions usage example
async with session.create_client("applicationcostprofiler") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.InternalServerException,
client.ServiceQuotaExceededException,
client.ThrottlingException,
client.ValidationException,
) as e:
print(e)
ApplicationCostProfilerClient usage type checking example
from types_aiobotocore_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 session.create_client("applicationcostprofiler").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 session.create_client("applicationcostprofiler").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
delete_report_definition#
Deletes the specified report definition in AWS Application Cost Profiler.
Type annotations and code completion for session.create_client("applicationcostprofiler").delete_report_definition
method.
boto3 documentation
# delete_report_definition method definition
await def delete_report_definition(
self,
*,
reportId: str,
) -> DeleteReportDefinitionResultTypeDef: # (1)
...
# delete_report_definition method usage example with argument unpacking
kwargs: DeleteReportDefinitionRequestRequestTypeDef = { # (1)
"reportId": ...,
}
parent.delete_report_definition(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.create_client("applicationcostprofiler").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
await 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 session.create_client("applicationcostprofiler").get_report_definition
method.
boto3 documentation
# get_report_definition method definition
await def get_report_definition(
self,
*,
reportId: str,
) -> GetReportDefinitionResultTypeDef: # (1)
...
# get_report_definition method usage example with argument unpacking
kwargs: GetReportDefinitionRequestRequestTypeDef = { # (1)
"reportId": ...,
}
parent.get_report_definition(**kwargs)
import_application_usage#
Ingests application usage data from Amazon Simple Storage Service (Amazon S3).
Type annotations and code completion for session.create_client("applicationcostprofiler").import_application_usage
method.
boto3 documentation
# import_application_usage method definition
await def import_application_usage(
self,
*,
sourceS3Location: SourceS3LocationTypeDef, # (1)
) -> ImportApplicationUsageResultTypeDef: # (2)
...
# import_application_usage method usage example with argument unpacking
kwargs: ImportApplicationUsageRequestRequestTypeDef = { # (1)
"sourceS3Location": ...,
}
parent.import_application_usage(**kwargs)
list_report_definitions#
Retrieves a list of all reports and their configurations for your AWS account.
Type annotations and code completion for session.create_client("applicationcostprofiler").list_report_definitions
method.
boto3 documentation
# list_report_definitions method definition
await def list_report_definitions(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> ListReportDefinitionsResultTypeDef: # (1)
...
# list_report_definitions method usage example with argument unpacking
kwargs: ListReportDefinitionsRequestRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_report_definitions(**kwargs)
put_report_definition#
Creates the report definition for a report in Application Cost Profiler.
Type annotations and code completion for session.create_client("applicationcostprofiler").put_report_definition
method.
boto3 documentation
# put_report_definition method definition
await def put_report_definition(
self,
*,
reportId: str,
reportDescription: str,
reportFrequency: ReportFrequencyType, # (1)
format: FormatType, # (2)
destinationS3Location: S3LocationTypeDef, # (3)
) -> PutReportDefinitionResultTypeDef: # (4)
...
# put_report_definition method usage example with argument unpacking
kwargs: PutReportDefinitionRequestRequestTypeDef = { # (1)
"reportId": ...,
"reportDescription": ...,
"reportFrequency": ...,
"format": ...,
"destinationS3Location": ...,
}
parent.put_report_definition(**kwargs)
update_report_definition#
Updates existing report in AWS Application Cost Profiler.
Type annotations and code completion for session.create_client("applicationcostprofiler").update_report_definition
method.
boto3 documentation
# update_report_definition method definition
await def update_report_definition(
self,
*,
reportId: str,
reportDescription: str,
reportFrequency: ReportFrequencyType, # (1)
format: FormatType, # (2)
destinationS3Location: S3LocationTypeDef, # (3)
) -> UpdateReportDefinitionResultTypeDef: # (4)
...
- See ReportFrequencyType
- See FormatType
- See S3LocationTypeDef
- See UpdateReportDefinitionResultTypeDef
# update_report_definition method usage example with argument unpacking
kwargs: UpdateReportDefinitionRequestRequestTypeDef = { # (1)
"reportId": ...,
"reportDescription": ...,
"reportFrequency": ...,
"format": ...,
"destinationS3Location": ...,
}
parent.update_report_definition(**kwargs)
__aenter__#
Type annotations and code completion for session.create_client("applicationcostprofiler").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> ApplicationCostProfilerClient:
...
__aexit__#
Type annotations and code completion for session.create_client("applicationcostprofiler").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...
get_paginator#
Type annotations and code completion for session.create_client("applicationcostprofiler").get_paginator
method with overloads.
client.get_paginator("list_report_definitions")
-> ListReportDefinitionsPaginator