getLink method
Returns complete information about one link.
To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks.
May throw InternalServiceFault.
May throw InvalidParameterException.
May throw MissingRequiredParameterException.
May throw ResourceNotFoundException.
Parameter identifier :
The ARN of the link to retrieve information for.
Parameter includeTags :
Specifies whether to include the tags associated with the link in the
response. When IncludeTags is set to true and
the caller has the required permission,
oam:ListTagsForResource, the API will return the tags for the
specified resource. If the caller doesn't have the required permission,
oam:ListTagsForResource, the API will raise an exception.
The default value is false.
Implementation
Future<GetLinkOutput> getLink({
required String identifier,
bool? includeTags,
}) async {
final $payload = <String, dynamic>{
'Identifier': identifier,
if (includeTags != null) 'IncludeTags': includeTags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/GetLink',
exceptionFnMap: _exceptionFns,
);
return GetLinkOutput.fromJson(response);
}