recordHandlerProgress method
Reports progress of a resource handler to CloudFormation.
Reserved for use by the CloudFormation CLI. Don't use this API in your code.
May throw InvalidStateTransitionException.
May throw OperationStatusCheckFailedException.
Parameter bearerToken :
Reserved for use by the CloudFormation
CLI.
Parameter operationStatus :
Reserved for use by the CloudFormation
CLI.
Parameter clientRequestToken :
Reserved for use by the CloudFormation
CLI.
Parameter currentOperationStatus :
Reserved for use by the CloudFormation
CLI.
Parameter errorCode :
Reserved for use by the CloudFormation
CLI.
Parameter resourceModel :
Reserved for use by the CloudFormation
CLI.
Parameter statusMessage :
Reserved for use by the CloudFormation
CLI.
Implementation
Future<void> recordHandlerProgress({
required String bearerToken,
required OperationStatus operationStatus,
String? clientRequestToken,
OperationStatus? currentOperationStatus,
HandlerErrorCode? errorCode,
String? resourceModel,
String? statusMessage,
}) async {
final $request = <String, String>{
'BearerToken': bearerToken,
'OperationStatus': operationStatus.value,
if (clientRequestToken != null) 'ClientRequestToken': clientRequestToken,
if (currentOperationStatus != null)
'CurrentOperationStatus': currentOperationStatus.value,
if (errorCode != null) 'ErrorCode': errorCode.value,
if (resourceModel != null) 'ResourceModel': resourceModel,
if (statusMessage != null) 'StatusMessage': statusMessage,
};
await _protocol.send(
$request,
action: 'RecordHandlerProgress',
version: '2010-05-15',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
resultWrapper: 'RecordHandlerProgressResult',
);
}