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