getPolicy method
Returns the JSON-formatted resource-based policy on a profiling group.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter profilingGroupName :
The name of the profiling group.
Implementation
Future<GetPolicyResponse> getPolicy({
required String profilingGroupName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/profilingGroups/${Uri.encodeComponent(profilingGroupName)}/policy',
exceptionFnMap: _exceptionFns,
);
return GetPolicyResponse.fromJson(response);
}