describeTags method
Future<DescribeTagsOutput>
describeTags({
- required String resourceId,
- required TaggableResourceType resourceType,
Describes one or more of the tags for your Amazon ML object.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter resourceId
:
The ID of the ML object. For example, exampleModelId
.
Parameter resourceType
:
The type of the ML object.
Implementation
Future<DescribeTagsOutput> describeTags({
required String resourceId,
required TaggableResourceType resourceType,
}) async {
ArgumentError.checkNotNull(resourceId, 'resourceId');
_s.validateStringLength(
'resourceId',
resourceId,
1,
64,
isRequired: true,
);
ArgumentError.checkNotNull(resourceType, 'resourceType');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonML_20141212.DescribeTags'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceId': resourceId,
'ResourceType': resourceType.toValue(),
},
);
return DescribeTagsOutput.fromJson(jsonResponse.body);
}