describeTags method
Describes the specified tags for the specified WorkSpaces resource.
May throw ResourceNotFoundException.
Parameter resourceId
:
The identifier of the WorkSpaces resource. The supported resource types
are WorkSpaces, registered directories, images, custom bundles, IP access
control groups, and connection aliases.
Implementation
Future<DescribeTagsResult> describeTags({
required String resourceId,
}) async {
ArgumentError.checkNotNull(resourceId, 'resourceId');
_s.validateStringLength(
'resourceId',
resourceId,
1,
1152921504606846976,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.DescribeTags'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceId': resourceId,
},
);
return DescribeTagsResult.fromJson(jsonResponse.body);
}