listTagsForVault method

Future<ListTagsForVaultOutput> listTagsForVault({
  1. required String accountId,
  2. required String vaultName,
})

This operation lists all the tags attached to a vault. The operation returns an empty map if there are no tags. For more information about tags, see Tagging Amazon S3 Glacier Resources.

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.

Implementation

Future<ListTagsForVaultOutput> listTagsForVault({
  required String accountId,
  required String vaultName,
}) async {
  ArgumentError.checkNotNull(accountId, 'accountId');
  ArgumentError.checkNotNull(vaultName, 'vaultName');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/${Uri.encodeComponent(accountId)}/vaults/${Uri.encodeComponent(vaultName)}/tags',
    exceptionFnMap: _exceptionFns,
  );
  return ListTagsForVaultOutput.fromJson(response);
}