tagResource method
Adds tags to the specified MSK resource.
May throw NotFoundException. May throw BadRequestException. May throw InternalServerErrorException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) that uniquely identifies the resource that's associated with the tags.
Parameter tags
:
The key-value pair for the resource tag.
Implementation
Future<void> tagResource({
required String resourceArn,
required Map<String, String> tags,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
ArgumentError.checkNotNull(tags, 'tags');
final $payload = <String, dynamic>{
'tags': tags,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/v1/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
}