Struct aws_sdk_applicationcostprofiler::Client
source · [−]pub struct Client { /* private fields */ }
Expand description
Client for AWS Application Cost Profiler
Client for invoking operations on AWS Application Cost Profiler. Each operation on AWS Application Cost Profiler is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_applicationcostprofiler::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_applicationcostprofiler::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_applicationcostprofiler::Client::from_conf(config);
Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn delete_report_definition(&self) -> DeleteReportDefinition
pub fn delete_report_definition(&self) -> DeleteReportDefinition
Constructs a fluent builder for the DeleteReportDefinition
operation.
- The fluent builder is configurable:
report_id(impl Into<String>)
/set_report_id(Option<String>)
:Required. ID of the report to delete.
- On success, responds with
DeleteReportDefinitionOutput
with field(s):report_id(Option<String>)
:ID of the report that was deleted.
- On failure, responds with
SdkError<DeleteReportDefinitionError>
sourcepub fn get_report_definition(&self) -> GetReportDefinition
pub fn get_report_definition(&self) -> GetReportDefinition
Constructs a fluent builder for the GetReportDefinition
operation.
- The fluent builder is configurable:
report_id(impl Into<String>)
/set_report_id(Option<String>)
:ID of the report to retrieve.
- On success, responds with
GetReportDefinitionOutput
with field(s):report_id(Option<String>)
:ID of the report retrieved.
report_description(Option<String>)
:Description of the report.
report_frequency(Option<ReportFrequency>)
:Cadence used to generate the report.
format(Option<Format>)
:Format of the generated report.
destination_s3_location(Option<S3Location>)
:Amazon Simple Storage Service (Amazon S3) location where the report is uploaded.
created_at(Option<DateTime>)
:Timestamp (milliseconds) when this report definition was created.
last_updated(Option<DateTime>)
:Timestamp (milliseconds) when this report definition was last updated.
- On failure, responds with
SdkError<GetReportDefinitionError>
sourcepub fn import_application_usage(&self) -> ImportApplicationUsage
pub fn import_application_usage(&self) -> ImportApplicationUsage
Constructs a fluent builder for the ImportApplicationUsage
operation.
- The fluent builder is configurable:
source_s3_location(SourceS3Location)
/set_source_s3_location(Option<SourceS3Location>)
:Amazon S3 location to import application usage data from.
- On success, responds with
ImportApplicationUsageOutput
with field(s):import_id(Option<String>)
:ID of the import request.
- On failure, responds with
SdkError<ImportApplicationUsageError>
sourcepub fn list_report_definitions(&self) -> ListReportDefinitions
pub fn list_report_definitions(&self) -> ListReportDefinitions
Constructs a fluent builder for the ListReportDefinitions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
next_token(impl Into<String>)
/set_next_token(Option<String>)
:The token value from a previous call to access the next page of results.
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of results to return.
- On success, responds with
ListReportDefinitionsOutput
with field(s):report_definitions(Option<Vec<ReportDefinition>>)
:The retrieved reports.
next_token(Option<String>)
:The value of the next token, if it exists. Null if there are no more results.
- On failure, responds with
SdkError<ListReportDefinitionsError>
sourcepub fn put_report_definition(&self) -> PutReportDefinition
pub fn put_report_definition(&self) -> PutReportDefinition
Constructs a fluent builder for the PutReportDefinition
operation.
- The fluent builder is configurable:
report_id(impl Into<String>)
/set_report_id(Option<String>)
:Required. ID of the report. You can choose any valid string matching the pattern for the ID.
report_description(impl Into<String>)
/set_report_description(Option<String>)
:Required. Description of the report.
report_frequency(ReportFrequency)
/set_report_frequency(Option<ReportFrequency>)
:Required. The cadence to generate the report.
format(Format)
/set_format(Option<Format>)
:Required. The format to use for the generated report.
destination_s3_location(S3Location)
/set_destination_s3_location(Option<S3Location>)
:Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report.
- On success, responds with
PutReportDefinitionOutput
with field(s):report_id(Option<String>)
:ID of the report.
- On failure, responds with
SdkError<PutReportDefinitionError>
sourcepub fn update_report_definition(&self) -> UpdateReportDefinition
pub fn update_report_definition(&self) -> UpdateReportDefinition
Constructs a fluent builder for the UpdateReportDefinition
operation.
- The fluent builder is configurable:
report_id(impl Into<String>)
/set_report_id(Option<String>)
:Required. ID of the report to update.
report_description(impl Into<String>)
/set_report_description(Option<String>)
:Required. Description of the report.
report_frequency(ReportFrequency)
/set_report_frequency(Option<ReportFrequency>)
:Required. The cadence to generate the report.
format(Format)
/set_format(Option<Format>)
:Required. The format to use for the generated report.
destination_s3_location(S3Location)
/set_destination_s3_location(Option<S3Location>)
:Required. Amazon Simple Storage Service (Amazon S3) location where Application Cost Profiler uploads the report.
- On success, responds with
UpdateReportDefinitionOutput
with field(s):report_id(Option<String>)
:ID of the report.
- On failure, responds with
SdkError<UpdateReportDefinitionError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Selfwhere
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Selfwhere
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.