deleteRepositoryPolicy method
Deletes the repository policy that's associated with the specified repository.
May throw InvalidParameterException.
May throw RepositoryNotFoundException.
May throw RepositoryPolicyNotFoundException.
May throw ServerException.
May throw UnsupportedCommandException.
Parameter repositoryName :
The name of the repository that's associated with the repository policy to
delete.
Parameter registryId :
The Amazon Web Services account ID that's associated with the public
registry that contains the repository policy to delete. If you do not
specify a registry, the default public registry is assumed.
Implementation
Future<DeleteRepositoryPolicyResponse> deleteRepositoryPolicy({
required String repositoryName,
String? registryId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SpencerFrontendService.DeleteRepositoryPolicy'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'repositoryName': repositoryName,
if (registryId != null) 'registryId': registryId,
},
);
return DeleteRepositoryPolicyResponse.fromJson(jsonResponse.body);
}