updateCertificateProvider method
Updates a certificate provider.
Requires permission to access the UpdateCertificateProvider action.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
May throw UnauthorizedException.
Parameter certificateProviderName :
The name of the certificate provider.
Parameter accountDefaultForOperations :
A list of the operations that the certificate provider will use to
generate certificates. Valid value: CreateCertificateFromCsr.
Parameter lambdaFunctionArn :
The Lambda function ARN that's associated with the certificate provider.
Implementation
Future<UpdateCertificateProviderResponse> updateCertificateProvider({
required String certificateProviderName,
List<CertificateProviderOperation>? accountDefaultForOperations,
String? lambdaFunctionArn,
}) async {
final $payload = <String, dynamic>{
if (accountDefaultForOperations != null)
'accountDefaultForOperations':
accountDefaultForOperations.map((e) => e.value).toList(),
if (lambdaFunctionArn != null) 'lambdaFunctionArn': lambdaFunctionArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/certificate-providers/${Uri.encodeComponent(certificateProviderName)}',
exceptionFnMap: _exceptionFns,
);
return UpdateCertificateProviderResponse.fromJson(response);
}