tagResource method

Future<void> tagResource({
  1. required String arn,
  2. required List<Tag> tags,
})

Tags an OpenSearch Ingestion pipeline. For more information, see Tagging Amazon OpenSearch Ingestion pipelines.

May throw AccessDeniedException. May throw DisabledOperationException. May throw InternalException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter arn : The Amazon Resource Name (ARN) of the pipeline to tag.

Parameter tags : The list of key-value tags to add to the pipeline.

Implementation

Future<void> tagResource({
  required String arn,
  required List<Tag> tags,
}) async {
  final $query = <String, List<String>>{
    'arn': [arn],
  };
  final $payload = <String, dynamic>{
    'Tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/2022-01-01/osis/tagResource',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}