tagGlobalResource method
Adds tags to a global resource in AWS Elemental MediaConnect. The API supports the following global resources: router inputs, router outputs and router network interfaces.
May throw BadRequestException.
May throw InternalServerErrorException.
May throw NotFoundException.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the global resource to tag.
Parameter tags :
A map of tag keys and values to add to the global resource.
Implementation
Future<void> tagGlobalResource({
required String resourceArn,
required Map<String, String> tags,
}) async {
final $payload = <String, dynamic>{
'tags': tags,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/tags/global/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
}