untagResource method

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

Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.

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

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource.

Parameter resourceTagKeys : A list of tag key value pairs that are associated with the 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': 'AWSBilling.UntagResource'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'resourceArn': resourceArn,
      'resourceTagKeys': resourceTagKeys,
    },
  );
}