getRegistryPolicy method

Future<GetRegistryPolicyResponse> getRegistryPolicy()

Retrieves the permissions policy for a registry.

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

Implementation

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

  return GetRegistryPolicyResponse.fromJson(jsonResponse.body);
}