acceptCertificateTransfer method
Accepts a pending certificate transfer. The default state of the certificate is INACTIVE.
To check for pending certificate transfers, call ListCertificates to enumerate your certificates.
Requires permission to access the AcceptCertificateTransfer action.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
May throw TransferAlreadyCompletedException.
May throw UnauthorizedException.
Parameter certificateId :
The ID of the certificate. (The last part of the certificate ARN contains
the certificate ID.)
Parameter setAsActive :
Specifies whether the certificate is active.
Implementation
Future<void> acceptCertificateTransfer({
required String certificateId,
bool? setAsActive,
}) async {
final $query = <String, List<String>>{
if (setAsActive != null) 'setAsActive': [setAsActive.toString()],
};
await _protocol.send(
payload: null,
method: 'PATCH',
requestUri:
'/accept-certificate-transfer/${Uri.encodeComponent(certificateId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}