untagResource method
Removes a tag from an associated repository.
May throw InternalServerException. May throw ValidationException. May throw ResourceNotFoundException.
Parameter tagKeys
:
A list of the keys for each tag you want to remove from an associated
repository.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the
RepositoryAssociation
object. You can retrieve this ARN
by calling
ListRepositoryAssociations
.
Implementation
Future<void> untagResource({
required List<String> tagKeys,
required String resourceArn,
}) async {
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
1,
1600,
isRequired: true,
);
final $query = <String, List<String>>{
'tagKeys': tagKeys,
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}