untagResource method
Deletes specified tags from a resource.
May throw InvalidParameterException.
May throw InvalidTagParameterException.
May throw RepositoryNotFoundException.
May throw ServerException.
May throw TooManyTagsException.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the resource from which to remove tags.
Currently, the only supported resource is an Amazon ECR repository.
Parameter tagKeys :
The keys of the tags to be removed.
Implementation
Future<void> untagResource({
required String resourceArn,
required List<String> tagKeys,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonEC2ContainerRegistry_V20150921.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'resourceArn': resourceArn,
'tagKeys': tagKeys,
},
);
}