getComponent method
Gets a component object.
May throw ServiceException. May throw ClientException. May throw ServiceUnavailableException. May throw InvalidRequestException. May throw ForbiddenException. May throw CallRateLimitExceededException.
Parameter componentBuildVersionArn
:
The Amazon Resource Name (ARN) of the component that you want to retrieve.
Regex requires "/\d+$" suffix.
Implementation
Future<GetComponentResponse> getComponent({
required String componentBuildVersionArn,
}) async {
ArgumentError.checkNotNull(
componentBuildVersionArn, 'componentBuildVersionArn');
final $query = <String, List<String>>{
'componentBuildVersionArn': [componentBuildVersionArn],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/GetComponent',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetComponentResponse.fromJson(response);
}