tagResource method

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

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw TooManyTagsException. May throw ValidationException.

Parameter resourceARN : The Amazon Resource Name (ARN) of the resource to tag.

Parameter tags : Tags to associate with the resource.

Implementation

Future<void> tagResource({
  required String resourceARN,
  required List<Tag> tags,
}) async {
  final $payload = <String, dynamic>{
    'resourceARN': resourceARN,
    'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/tagResource',
    exceptionFnMap: _exceptionFns,
  );
}