upgradeProfileVersion method
Upgrade a profile.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter profileArn :
The profile ARN.
Implementation
Future<void> upgradeProfileVersion({
required String profileArn,
required String workloadId,
String? clientRequestToken,
String? milestoneName,
}) async {
final $payload = <String, dynamic>{
'ClientRequestToken': clientRequestToken ?? _s.generateIdempotencyToken(),
if (milestoneName != null) 'MilestoneName': milestoneName,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/workloads/${Uri.encodeComponent(workloadId)}/profiles/${Uri.encodeComponent(profileArn)}/upgrade',
exceptionFnMap: _exceptionFns,
);
}