updateRegistry method
Updates an existing registry. This operation uses PATCH semantics: specify only the fields you want to change, and omit the rest to leave them unchanged. Updates are applied asynchronously and the registry transitions to the UPDATING status while they are processed.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter registryId :
The identifier of the registry to update (ARN or ID)
Parameter approvalConfiguration :
The updated approval configuration. The change applies only to records
that move to PENDING_APPROVAL after the update; records already in
PENDING_APPROVAL are unaffected.
Parameter description :
The updated description of the registry
Parameter discoveryConfiguration :
The updated discovery configuration. Changing the discovery authorization
can break existing consumers that rely on the previous authorization type.
Parameter name :
The updated name of the registry
Implementation
Future<UpdateRegistryResponse> updateRegistry({
required String registryId,
UpdatedApprovalConfiguration? approvalConfiguration,
UpdatedDescription? description,
UpdatedDiscoveryConfiguration? discoveryConfiguration,
String? name,
}) async {
final $payload = <String, dynamic>{
if (approvalConfiguration != null)
'approvalConfiguration': approvalConfiguration,
if (description != null) 'description': description,
if (discoveryConfiguration != null)
'discoveryConfiguration': discoveryConfiguration,
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/registries/${Uri.encodeComponent(registryId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateRegistryResponse.fromJson(response);
}