startMetricsExport method
Initiates the export task of metrics.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter bucketName :
(Optional) Specifies the name of the Amazon Simple Storage Service bucket
where the exported metrics will be stored.
Parameter clientToken :
Used for an idempotency token. A client token is a unique, case-sensitive
string of up to 64 ASCII characters. You should not reuse the same client
token for other API requests.
Implementation
Future<StartMetricsExportResponse> startMetricsExport({
String? bucketName,
String? clientToken,
}) async {
final $payload = <String, dynamic>{
if (bucketName != null) 'bucketName': bucketName,
'clientToken': clientToken ?? _s.generateIdempotencyToken(),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/start-metrics-export',
exceptionFnMap: _exceptionFns,
);
return StartMetricsExportResponse.fromJson(response);
}