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
# ApplicationCostProfilerClient 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.
# 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 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
# 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("applicationcostprofiler").close
method.
boto3 documentation
# close 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
# delete_report_definition method definition
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 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:
...
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)
...
# 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 boto3.client("applicationcostprofiler").import_application_usage
method.
boto3 documentation
# import_application_usage method definition
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 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)
...
# 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 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)
...
# 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 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)
...
- 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)
get_paginator#
Type annotations and code completion for boto3.client("applicationcostprofiler").get_paginator
method with overloads.
client.get_paginator("list_report_definitions")
-> ListReportDefinitionsPaginator