getPolicy method
Retrieves a resilience policy by ARN.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Implementation
Future<GetPolicyResponse> getPolicy({
required String policyArn,
}) async {
final $query = <String, List<String>>{
'policyArn': [policyArn],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v2/get-policy',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetPolicyResponse.fromJson(response);
}