deleteTags method
Deletes the specified tags from an Amazon SageMaker resource.
To list a resource's tags, use the ListTags
API.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource whose tags you want to
delete.
Parameter tagKeys
:
An array or one or more tag keys to delete.
Implementation
Future<void> deleteTags({
required String resourceArn,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
0,
256,
isRequired: true,
);
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteTags'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceArn': resourceArn,
'TagKeys': tagKeys,
},
);
}