updatePrivateConnectionCertificate method
Updates the certificate associated with a Private Connection.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter certificate :
The new certificate for the Private Connection.
Parameter name :
The name of the Private Connection.
Implementation
Future<UpdatePrivateConnectionCertificateOutput>
updatePrivateConnectionCertificate({
required String certificate,
required String name,
}) async {
final $payload = <String, dynamic>{
'certificate': certificate,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/v1/private-connections/${Uri.encodeComponent(name)}/certificate',
hostPrefix: 'cp.',
exceptionFnMap: _exceptionFns,
);
return UpdatePrivateConnectionCertificateOutput.fromJson(response);
}