tagResource method
Adds one or more tags (keys and values) to an application, campaign, message template, or segment.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource.
Implementation
Future<void> tagResource({
required String resourceArn,
required TagsModel tagsModel,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
ArgumentError.checkNotNull(tagsModel, 'tagsModel');
await _protocol.send(
payload: tagsModel,
method: 'POST',
requestUri: '/v1/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
}