describeProject method
Gets details about a project in AWS Mobile Hub.
May throw InternalFailureException. May throw ServiceUnavailableException. May throw UnauthorizedException. May throw TooManyRequestsException. May throw BadRequestException. May throw NotFoundException.
Parameter projectId
:
Unique project identifier.
Parameter syncFromResources
:
If set to true, causes AWS Mobile Hub to synchronize information from
other services, e.g., update state of AWS CloudFormation stacks in the AWS
Mobile Hub project.
Implementation
Future<DescribeProjectResult> describeProject({
required String projectId,
bool? syncFromResources,
}) async {
ArgumentError.checkNotNull(projectId, 'projectId');
final $query = <String, List<String>>{
'projectId': [projectId],
if (syncFromResources != null)
'syncFromResources': [syncFromResources.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/project',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return DescribeProjectResult.fromJson(response);
}