updateTrustAnchor method
Updates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials.
Required permissions:
rolesanywhere:UpdateTrustAnchor.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter trustAnchorId :
The unique identifier of the trust anchor.
Parameter name :
The name of the trust anchor.
Parameter source :
The trust anchor type and its related certificate data.
Implementation
Future<TrustAnchorDetailResponse> updateTrustAnchor({
required String trustAnchorId,
String? name,
Source? source,
}) async {
final $payload = <String, dynamic>{
if (name != null) 'name': name,
if (source != null) 'source': source,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/trustanchor/${Uri.encodeComponent(trustAnchorId)}',
exceptionFnMap: _exceptionFns,
);
return TrustAnchorDetailResponse.fromJson(response);
}