{
  "name": "UpdateResourceFilters",
  "fully_qualified_name": "DatadogApi.UpdateResourceFilters@0.1.0",
  "description": "Update resource filters in cloud security management.\n\nUse this tool to modify resource filters within Datadog's cloud security management. It should be called when you need to change which resources are included or excluded for evaluation.",
  "toolkit": {
    "name": "ArcadeDatadogApi",
    "description": null,
    "version": "0.1.0"
  },
  "input": {
    "parameters": [
      {
        "name": "resource_filter_data",
        "required": true,
        "description": "JSON data for the resource filter update. Includes attributes like `cloud_provider`, `uuid`, and type `csm_resource_filter`.",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "data": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": {
                "attributes": {
                  "val_type": "json",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": {
                    "cloud_provider": {
                      "val_type": "json",
                      "inner_val_type": null,
                      "enum": null,
                      "properties": null,
                      "inner_properties": null,
                      "description": "A map of cloud provider names (e.g., \"aws\", \"gcp\", \"azure\") to a map of account/resource IDs and their associated tag filters."
                    },
                    "uuid": {
                      "val_type": "string",
                      "inner_val_type": null,
                      "enum": null,
                      "properties": null,
                      "inner_properties": null,
                      "description": "The UUID of the resource filter."
                    }
                  },
                  "inner_properties": null,
                  "description": "Attributes of a resource filter."
                },
                "id": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": null,
                  "inner_properties": null,
                  "description": "The `UpdateResourceEvaluationFiltersRequestData` `id`."
                },
                "type": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": [
                    "csm_resource_filter"
                  ],
                  "properties": null,
                  "inner_properties": null,
                  "description": "Constant string to identify the request type."
                }
              },
              "inner_properties": null,
              "description": "The definition of `UpdateResourceFilterRequestData` object."
            }
          },
          "inner_properties": null,
          "description": ""
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "requestBody"
      }
    ]
  },
  "output": {
    "description": "Response from the API endpoint 'UpdateResourceEvaluationFilters'.",
    "available_modes": [
      "value",
      "error",
      "null"
    ],
    "value_schema": {
      "val_type": "json",
      "inner_val_type": null,
      "enum": null,
      "properties": null,
      "inner_properties": null,
      "description": null
    }
  },
  "requirements": {
    "authorization": null,
    "secrets": [
      {
        "key": "DATADOG_API_KEY"
      },
      {
        "key": "DATADOG_APPLICATION_KEY"
      },
      {
        "key": "DATADOG_BASE_URL"
      }
    ],
    "metadata": null
  },
  "deprecation_message": null,
  "metadata": {
    "object_type": "api_wrapper_tool",
    "version": "1.1.0",
    "description": "Tools that enable LLMs to interact directly with the Datadog API."
  },
  "http_endpoint": {
    "metadata": {
      "object_type": "http_endpoint",
      "version": "1.2.0",
      "description": ""
    },
    "url": "https://{datadog_base_url}/api/v2/cloud_security_management/resource_filters",
    "http_method": "PUT",
    "headers": {},
    "parameters": [
      {
        "name": "requestBody",
        "tool_parameter_name": "resource_filter_data",
        "description": "",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "data": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": {
                "attributes": {
                  "val_type": "json",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": {
                    "cloud_provider": {
                      "val_type": "json",
                      "inner_val_type": null,
                      "enum": null,
                      "properties": null,
                      "inner_properties": null,
                      "description": "A map of cloud provider names (e.g., \"aws\", \"gcp\", \"azure\") to a map of account/resource IDs and their associated tag filters."
                    },
                    "uuid": {
                      "val_type": "string",
                      "inner_val_type": null,
                      "enum": null,
                      "properties": null,
                      "inner_properties": null,
                      "description": "The UUID of the resource filter."
                    }
                  },
                  "inner_properties": null,
                  "description": "Attributes of a resource filter."
                },
                "id": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": null,
                  "properties": null,
                  "inner_properties": null,
                  "description": "The `UpdateResourceEvaluationFiltersRequestData` `id`."
                },
                "type": {
                  "val_type": "string",
                  "inner_val_type": null,
                  "enum": [
                    "csm_resource_filter"
                  ],
                  "properties": null,
                  "inner_properties": null,
                  "description": "Constant string to identify the request type."
                }
              },
              "inner_properties": null,
              "description": "The definition of `UpdateResourceFilterRequestData` object."
            }
          },
          "inner_properties": null,
          "description": ""
        },
        "accepted_as": "body",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      }
    ],
    "documentation_urls": [],
    "secrets": [
      {
        "arcade_key": "DATADOG_API_KEY",
        "parameter_name": "DD-API-KEY",
        "accepted_as": "header",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      },
      {
        "arcade_key": "DATADOG_APPLICATION_KEY",
        "parameter_name": "DD-APPLICATION-KEY",
        "accepted_as": "header",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      },
      {
        "arcade_key": "DATADOG_BASE_URL",
        "parameter_name": "datadog_base_url",
        "accepted_as": "path",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      }
    ],
    "request_body_spec": "{\n  \"content\": {\n    \"application/json\": {\n      \"schema\": {\n        \"description\": \"Request object to update a resource filter.\",\n        \"properties\": {\n          \"data\": {\n            \"description\": \"The definition of `UpdateResourceFilterRequestData` object.\",\n            \"properties\": {\n              \"attributes\": {\n                \"description\": \"Attributes of a resource filter.\",\n                \"example\": {\n                  \"aws\": {\n                    \"123456789\": [\n                      \"environment:production\",\n                      \"team:devops\"\n                    ]\n                  },\n                  \"azure\": {\n                    \"sub-001\": [\n                      \"app:frontend\"\n                    ]\n                  },\n                  \"gcp\": {\n                    \"project-abc\": [\n                      \"region:us-central1\"\n                    ]\n                  }\n                },\n                \"properties\": {\n                  \"cloud_provider\": {\n                    \"additionalProperties\": {\n                      \"additionalProperties\": {\n                        \"items\": {\n                          \"description\": \"Tag filter in format \\\"key:value\\\"\",\n                          \"example\": \"environment:production\",\n                          \"type\": \"string\"\n                        },\n                        \"type\": \"array\"\n                      },\n                      \"type\": \"object\"\n                    },\n                    \"description\": \"A map of cloud provider names (e.g., \\\"aws\\\", \\\"gcp\\\", \\\"azure\\\") to a map of account/resource IDs and their associated tag filters.\",\n                    \"type\": \"object\"\n                  },\n                  \"uuid\": {\n                    \"description\": \"The UUID of the resource filter.\",\n                    \"type\": \"string\"\n                  }\n                },\n                \"required\": [\n                  \"cloud_provider\"\n                ],\n                \"type\": \"object\"\n              },\n              \"id\": {\n                \"description\": \"The `UpdateResourceEvaluationFiltersRequestData` `id`.\",\n                \"example\": \"csm_resource_filter\",\n                \"type\": \"string\"\n              },\n              \"type\": {\n                \"description\": \"Constant string to identify the request type.\",\n                \"enum\": [\n                  \"csm_resource_filter\"\n                ],\n                \"example\": \"csm_resource_filter\",\n                \"type\": \"string\",\n                \"x-enum-varnames\": [\n                  \"CSM_RESOURCE_FILTER\"\n                ]\n              }\n            },\n            \"required\": [\n              \"attributes\",\n              \"type\"\n            ],\n            \"type\": \"object\"\n          }\n        },\n        \"required\": [\n          \"data\"\n        ],\n        \"type\": \"object\"\n      }\n    }\n  },\n  \"required\": true\n}",
    "use_request_body_schema_mode": true,
    "validate_request_body_schema": true
  }
}
