describeProject method
Describes a project and its resources.
May throw ProjectNotFoundException. May throw ValidationException. May throw InvalidServiceRoleException. May throw ProjectConfigurationException. May throw ConcurrentModificationException.
Parameter id
:
The ID of the project.
Implementation
Future<DescribeProjectResult> describeProject({
required String id,
}) async {
ArgumentError.checkNotNull(id, 'id');
_s.validateStringLength(
'id',
id,
2,
15,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeStar_20170419.DescribeProject'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'id': id,
},
);
return DescribeProjectResult.fromJson(jsonResponse.body);
}