untagResource method

Future<void> untagResource({
  1. required String resourceArn,
  2. required List<String> resourceTagKeys,
})

Removes specified tags from a dashboard resource.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter resourceArn : The unique identifier for the resource.

Parameter resourceTagKeys : The keys of the tags to remove from the dashboard resource.

Implementation

Future<void> untagResource({
  required String resourceArn,
  required List<String> resourceTagKeys,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSBCMDashboardsService.UntagResource'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'resourceArn': resourceArn,
      'resourceTagKeys': resourceTagKeys,
    },
  );
}