getApplicationPolicy method

Future<GetApplicationPolicyResponse> getApplicationPolicy({
  1. required String applicationId,
})

Retrieves the policy for the application.

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException.

Parameter applicationId : The Amazon Resource Name (ARN) of the application.

Implementation

Future<GetApplicationPolicyResponse> getApplicationPolicy({
  required String applicationId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/applications/${Uri.encodeComponent(applicationId)}/policy',
    exceptionFnMap: _exceptionFns,
  );
  return GetApplicationPolicyResponse.fromJson(response);
}