updateCertificateAuthority method
- required String certificateAuthorityArn,
- RevocationConfiguration? revocationConfiguration,
- CertificateAuthorityStatus? status,
Updates the status or configuration of a private certificate authority
(CA). Your private CA must be in the ACTIVE or
DISABLED state before you can update it. You can disable a
private CA that is in the ACTIVE state or make a CA that is
in the DISABLED state active again.
May throw ConcurrentModificationException.
May throw InvalidArgsException.
May throw InvalidArnException.
May throw InvalidPolicyException.
May throw InvalidStateException.
May throw ResourceNotFoundException.
Parameter certificateAuthorityArn :
Amazon Resource Name (ARN) of the private CA that issued the certificate
to be revoked. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
Parameter revocationConfiguration :
Contains information to enable support for Online Certificate Status
Protocol (OCSP), certificate revocation list (CRL), both protocols, or
neither. If you don't supply this parameter, existing capibilites remain
unchanged. For more information, see the OcspConfiguration
and CrlConfiguration
types.
The following requirements apply to revocation configurations.
-
A configuration disabling CRLs or OCSP must contain only the
Enabled=Falseparameter, and will fail if other parameters such asCustomCnameorExpirationInDaysare included. -
In a CRL configuration, the
S3BucketNameparameter must conform to Amazon S3 bucket naming rules. - A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP must conform to RFC2396 restrictions on the use of special characters in a CNAME.
- In a CRL or OCSP configuration, the value of a CNAME parameter must not include a protocol prefix such as "http://" or "https://".
Parameter status :
Status of your private CA.
Implementation
Future<void> updateCertificateAuthority({
required String certificateAuthorityArn,
RevocationConfiguration? revocationConfiguration,
CertificateAuthorityStatus? status,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ACMPrivateCA.UpdateCertificateAuthority'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'CertificateAuthorityArn': certificateAuthorityArn,
if (revocationConfiguration != null)
'RevocationConfiguration': revocationConfiguration,
if (status != null) 'Status': status.value,
},
);
}