describeApplication method

Future<DescribeApplicationResponse> describeApplication({
  1. required String resourceGroupName,
  2. String? accountId,
})

Describes the application.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter resourceGroupName : The name of the resource group.

Parameter accountId : The Amazon Web Services account ID for the resource group owner.

Implementation

Future<DescribeApplicationResponse> describeApplication({
  required String resourceGroupName,
  String? accountId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'EC2WindowsBarleyService.DescribeApplication'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceGroupName': resourceGroupName,
      if (accountId != null) 'AccountId': accountId,
    },
  );

  return DescribeApplicationResponse.fromJson(jsonResponse.body);
}