putRegistryCatalogData method
Create or update the catalog data for a public registry.
May throw InvalidParameterException.
May throw ServerException.
May throw UnsupportedCommandException.
Parameter displayName :
The display name for a public registry. The display name is shown as the
repository author in the Amazon ECR Public Gallery.
Implementation
Future<PutRegistryCatalogDataResponse> putRegistryCatalogData({
String? displayName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SpencerFrontendService.PutRegistryCatalogData'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (displayName != null) 'displayName': displayName,
},
);
return PutRegistryCatalogDataResponse.fromJson(jsonResponse.body);
}