removeTagsFromVault method
This operation removes one or more tags from the set of tags attached to a vault. For more information about tags, see Tagging Amazon S3 Glacier Resources. This operation is idempotent. The operation will be successful, even if there are no tags attached to the vault.
May throw InvalidParameterValueException. May throw MissingParameterValueException. May throw ResourceNotFoundException. May throw ServiceUnavailableException.
Parameter accountId
:
The AccountId
value is the AWS account ID of the account that
owns the vault. You can either specify an AWS account ID or optionally a
single '-
' (hyphen), in which case Amazon S3 Glacier uses the
AWS account ID associated with the credentials used to sign the request.
If you use an account ID, do not include any hyphens ('-') in the ID.
Parameter vaultName
:
The name of the vault.
Parameter tagKeys
:
A list of tag keys. Each corresponding tag is removed from the vault.
Implementation
Future<void> removeTagsFromVault({
required String accountId,
required String vaultName,
List<String>? tagKeys,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
ArgumentError.checkNotNull(vaultName, 'vaultName');
final $payload = <String, dynamic>{
if (tagKeys != null) 'TagKeys': tagKeys,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/${Uri.encodeComponent(accountId)}/vaults/${Uri.encodeComponent(vaultName)}/tags?operation=remove',
exceptionFnMap: _exceptionFns,
);
}