tagResource method
Adds or updates tags for a resource. Supports telemetry rule resources and telemetry pipeline resources.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceQuotaExceededException.
May throw TooManyRequestsException.
May throw ValidationException.
Parameter resourceARN :
The Amazon Resource Name (ARN) of the telemetry rule resource to tag.
Parameter tags :
The key-value pairs to add or update for the telemetry rule resource.
Implementation
Future<void> tagResource({
required String resourceARN,
required Map<String, String> tags,
}) async {
final $payload = <String, dynamic>{
'ResourceARN': resourceARN,
'Tags': tags,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/TagResource',
exceptionFnMap: _exceptionFns,
);
}