createTrustStore method
Creates a trust store.
May throw AccessDenied.
May throw EntityAlreadyExists.
May throw EntityLimitExceeded.
May throw EntityNotFound.
May throw InvalidArgument.
May throw InvalidTagging.
Parameter caCertificatesBundleSource :
The CA certificates bundle source for the trust store.
Parameter name :
A name for the trust store.
Parameter useClientCertificateOCSPEndpoint :
A Boolean that determines whether to use the CA certificate's OCSP
endpoint to check certificate revocation status.
Implementation
Future<CreateTrustStoreResult> createTrustStore({
required CaCertificatesBundleSource caCertificatesBundleSource,
required String name,
Tags? tags,
bool? useClientCertificateOCSPEndpoint,
}) async {
final $result = await _protocol.sendRaw(
method: 'POST',
requestUri: '/2020-05-31/trust-store',
payload: CreateTrustStoreRequest(
caCertificatesBundleSource: caCertificatesBundleSource,
name: name,
tags: tags,
useClientCertificateOCSPEndpoint:
useClientCertificateOCSPEndpoint)
.toXml('CreateTrustStoreRequest'),
exceptionFnMap: _exceptionFns,
);
final $elem = await _s.xmlFromResponse($result);
return CreateTrustStoreResult(
trustStore: TrustStore.fromXml($elem),
eTag: _s.extractHeaderStringValue($result.headers, 'ETag'),
);
}