untagResource method
Removes tags from the specified container. You can specify one or more tags to remove.
May throw ContainerInUseException. May throw ContainerNotFoundException. May throw InternalServerError.
Parameter resource
:
The Amazon Resource Name (ARN) for the container.
Parameter tagKeys
:
A comma-separated list of keys for tags that you want to remove from the
container. For example, if your container has two tags (customer:CompanyA
and priority:High) and you want to remove one of the tags (priority:High),
you specify the key for the tag that you want to remove (priority).
Implementation
Future<void> untagResource({
required String resource,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(resource, 'resource');
_s.validateStringLength(
'resource',
resource,
1,
1024,
isRequired: true,
);
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'MediaStore_20170901.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Resource': resource,
'TagKeys': tagKeys,
},
);
}