addTags method
Attaches tags to an existing Elasticsearch domain. Tags are a set of case-sensitive key value pairs. An Elasticsearch domain may have up to 10 tags. See Tagging Amazon Elasticsearch Service Domains for more information.
May throw BaseException. May throw LimitExceededException. May throw ValidationException. May throw InternalException.
Parameter arn
:
Specify the ARN
for which you want to add the tags.
Parameter tagList
:
List of Tag
that need to be added for the Elasticsearch
domain.
Implementation
Future<void> addTags({
required String arn,
required List<Tag> tagList,
}) async {
ArgumentError.checkNotNull(arn, 'arn');
ArgumentError.checkNotNull(tagList, 'tagList');
final $payload = <String, dynamic>{
'ARN': arn,
'TagList': tagList,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/2015-01-01/tags',
exceptionFnMap: _exceptionFns,
);
}