getPolicyVersion method
Returns details for the version of a policy. Policies define the permissions for team resources.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter policyVersionArn :
Amazon Resource Name (ARN) for the policy.
Implementation
Future<GetPolicyVersionResponse> getPolicyVersion({
required String policyVersionArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/policy-versions/${Uri.encodeComponent(policyVersionArn)}',
exceptionFnMap: _exceptionFns,
);
return GetPolicyVersionResponse.fromJson(response);
}