{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-timestream/json-schema/amazon-timestream-describe-account-settings-response-schema.json",
  "title": "DescribeAccountSettingsResponse",
  "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/DescribeAccountSettingsResponse",
  "type": "object",
  "properties": {
    "MaxQueryTCU": {
      "type": "integer",
      "description": "The maximum number of Timestream compute units (TCUs) 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. This configuration is applicable only for on-demand usage of (TCUs)."
    },
    "QueryPricingModel": {
      "type": "string",
      "enum": [
        "BYTES_SCANNED",
        "COMPUTE_UNITS"
      ],
      "description": "The pricing model for queries in your 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/QueryComputeResponse"
    }
  },
  "$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"
      ]
    },
    "LastUpdate": {
      "type": "object",
      "properties": {
        "TargetQueryTCU": {
          "type": "integer",
          "description": "The number of TimeStream Compute Units (TCUs) requested in the last account settings update."
        },
        "Status": {
          "type": "string",
          "enum": [
            "PENDING",
            "FAILED",
            "SUCCEEDED"
          ],
          "description": "The status of the last update. Can be either PENDING, FAILED, or SUCCEEDED."
        },
        "StatusMessage": {
          "type": "string",
          "description": "Error message describing the last account settings update status, visible only if an error occurred."
        }
      }
    },
    "ProvisionedCapacityResponse": {
      "type": "object",
      "properties": {
        "ActiveQueryTCU": {
          "type": "integer",
          "description": "The number of Timestream Compute Units (TCUs) provisioned in the account. This field is only visible when the compute mode is PROVISIONED."
        },
        "NotificationConfiguration": {
          "$ref": "#/$defs/AccountSettingsNotificationConfiguration"
        },
        "LastUpdate": {
          "$ref": "#/$defs/LastUpdate"
        }
      }
    },
    "QueryComputeResponse": {
      "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/ProvisionedCapacityResponse"
        }
      }
    },
    "SnsConfiguration": {
      "type": "object",
      "properties": {
        "TopicArn": {
          "type": "string",
          "description": "SNS topic ARN that the scheduled query status notifications will be sent to."
        }
      },
      "required": [
        "TopicArn"
      ]
    }
  }
}