deleteRegistryPolicy method

Future<DeleteRegistryPolicyResponse> deleteRegistryPolicy()

Deletes the registry permissions policy.

May throw ServerException. May throw InvalidParameterException. May throw RegistryPolicyNotFoundException.

Implementation

Future<DeleteRegistryPolicyResponse> deleteRegistryPolicy() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return DeleteRegistryPolicyResponse.fromJson(jsonResponse.body);
}