{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-update-account-settings-request-schema.json",
  "title": "UpdateAccountSettingsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-timestream-operations-api-openapi.yml#/components/schemas/UpdateAccountSettingsRequest",
  "type": "object",
  "properties": {
    "MaxQueryTCU": {
      "type": "integer",
      "description": "The maximum number of compute units the service will use at any point in time to serve your queries. To run queries, you must set a minimum capacity of 4 TCU. You can set the maximum number of TCU in multiples of 4, for example, 4, 8, 16, 32, and so on. The maximum value supported for MaxQueryTCU is 1000. To request an increase to this soft limit, contact Amazon Web Services Support. For information about the default quota for maxQueryTCU, see Default quotas. This configuration is applicable only for on-demand usage of Timestream Compute Units (TCUs). The maximum value supported for MaxQueryTC"
    },
    "QueryPricingModel": {
      "type": "string",
      "enum": [
        "BYTES_SCANNED",
        "COMPUTE_UNITS"
      ],
      "description": "The pricing model for queries in an account. The QueryPricingModel parameter is used by several Timestream operations; however, the UpdateAccountSettings API operation doesn't recognize any values other than COMPUTE_UNITS."
    },
    "QueryCompute": {
      "$ref": "#/$defs/QueryComputeRequest"
    }
  },
  "$defs": {
    "AccountSettingsNotificationConfiguration": {
      "type": "object",
      "properties": {
        "SnsConfiguration": {
          "$ref": "#/$defs/SnsConfiguration"
        },
        "RoleArn": {
          "type": "string",
          "description": "An Amazon Resource Name (ARN) that grants Timestream permission to publish notifications. This field is only visible if SNS Topic is provided when updating the account settings."
        }
      },
      "required": [
        "RoleArn"
      ]
    },
    "ProvisionedCapacityRequest": {
      "type": "object",
      "properties": {
        "TargetQueryTCU": {
          "type": "integer",
          "description": "The target compute capacity for querying data, specified in Timestream Compute Units (TCUs)."
        },
        "NotificationConfiguration": {
          "$ref": "#/$defs/AccountSettingsNotificationConfiguration"
        }
      },
      "required": [
        "TargetQueryTCU"
      ]
    },
    "QueryComputeRequest": {
      "type": "object",
      "properties": {
        "ComputeMode": {
          "type": "string",
          "enum": [
            "ON_DEMAND",
            "PROVISIONED"
          ],
          "description": "The mode in which Timestream Compute Units (TCUs) are allocated and utilized within an account. Note that in the Asia Pacific (Mumbai) region, the API operation only recognizes the value PROVISIONED."
        },
        "ProvisionedCapacity": {
          "$ref": "#/$defs/ProvisionedCapacityRequest"
        }
      }
    },
    "SnsConfiguration": {
      "type": "object",
      "properties": {
        "TopicArn": {
          "type": "string",
          "description": "SNS topic ARN that the scheduled query status notifications will be sent to."
        }
      },
      "required": [
        "TopicArn"
      ]
    }
  }
}