{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dynamodb/json-schema/amazon-dynamodb-update-global-table-settings-input-schema.json",
  "title": "UpdateGlobalTableSettingsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-dynamodb-global-tables-api-openapi.yml#/components/schemas/UpdateGlobalTableSettingsInput",
  "type": "object",
  "properties": {
    "GlobalTableName": {
      "type": "string",
      "description": "The name of the global table"
    },
    "GlobalTableBillingMode": {
      "type": "string",
      "enum": [
        "PROVISIONED",
        "PAY_PER_REQUEST"
      ],
      "description": "The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity billing mode. PROVISIONED - We recommend using PROVISIONED for predictable workloads. PROVISIONED sets the billing mode to Provisioned capacity mode. PAY_PER_REQUEST - We recommend using PAY_PER_REQUEST for unpredictable workloads. PAY_PER_REQUEST sets the billing mode to On-demand capacity mode."
    },
    "GlobalTableProvisionedWriteCapacityUnits": {
      "type": "integer",
      "description": "The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException."
    },
    "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate": {
      "$ref": "#/$defs/AutoScalingSettingsUpdate"
    },
    "GlobalTableGlobalSecondaryIndexSettingsUpdate": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GlobalTableGlobalSecondaryIndexSettingsUpdate"
      },
      "description": "Represents the settings of a global secondary index for a global table that will be modified."
    },
    "ReplicaSettingsUpdate": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReplicaSettingsUpdate"
      },
      "description": "Represents the settings for a global table in a Region that will be modified."
    }
  },
  "required": [
    "GlobalTableName"
  ],
  "$defs": {
    "AutoScalingPolicyUpdate": {
      "type": "object",
      "properties": {
        "PolicyName": {
          "type": "string",
          "description": "The name of the scaling policy."
        },
        "TargetTrackingScalingPolicyConfiguration": {
          "$ref": "#/$defs/AutoScalingTargetTrackingScalingPolicyConfigurationUpdate"
        }
      },
      "required": [
        "TargetTrackingScalingPolicyConfiguration"
      ]
    },
    "AutoScalingSettingsUpdate": {
      "type": "object",
      "properties": {
        "MinimumUnits": {
          "type": "integer",
          "description": "The minimum capacity units that a global table or global secondary index should be scaled down to."
        },
        "MaximumUnits": {
          "type": "integer",
          "description": "The maximum capacity units that a global table or global secondary index should be scaled up to."
        },
        "AutoScalingDisabled": {
          "type": "boolean",
          "description": "Disabled auto scaling for this global table or global secondary index."
        },
        "AutoScalingRoleArn": {
          "type": "string",
          "description": "Role ARN used for configuring auto scaling policy."
        },
        "ScalingPolicyUpdate": {
          "$ref": "#/$defs/AutoScalingPolicyUpdate"
        }
      }
    },
    "AutoScalingTargetTrackingScalingPolicyConfigurationUpdate": {
      "type": "object",
      "properties": {
        "DisableScaleIn": {
          "type": "boolean",
          "description": "Indicates whether scale in by the target tracking policy is disabled. If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is false."
        },
        "ScaleInCooldown": {
          "type": "integer",
          "description": "The amount of time, in seconds, after a scale in activity completes before another scale in activity can start. The cooldown period is used to block subsequent scale in requests until it has expired. You should scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, application auto scaling scales out your scalable target immediately."
        },
        "ScaleOutCooldown": {
          "type": "integer",
          "description": "The amount of time, in seconds, after a scale out activity completes before another scale out activity can start. While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. You should continuously (but not excessively) scale out."
        },
        "TargetValue": {
          "type": "number",
          "description": "The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2)."
        }
      },
      "required": [
        "TargetValue"
      ]
    },
    "GlobalTableGlobalSecondaryIndexSettingsUpdate": {
      "type": "object",
      "properties": {
        "IndexName": {
          "type": "string",
          "description": "The name of the global secondary index. The name must be unique among all other indexes on this table."
        },
        "ProvisionedWriteCapacityUnits": {
          "type": "integer",
          "description": "The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException."
        },
        "ProvisionedWriteCapacityAutoScalingSettingsUpdate": {
          "$ref": "#/$defs/AutoScalingSettingsUpdate"
        }
      },
      "required": [
        "IndexName"
      ]
    },
    "ReplicaGlobalSecondaryIndexSettingsUpdate": {
      "type": "object",
      "properties": {
        "IndexName": {
          "type": "string",
          "description": "The name of the global secondary index. The name must be unique among all other indexes on this table."
        },
        "ProvisionedReadCapacityUnits": {
          "type": "integer",
          "description": "The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException."
        },
        "ProvisionedReadCapacityAutoScalingSettingsUpdate": {
          "$ref": "#/$defs/AutoScalingSettingsUpdate"
        }
      },
      "required": [
        "IndexName"
      ]
    },
    "ReplicaSettingsUpdate": {
      "type": "object",
      "properties": {
        "RegionName": {
          "type": "string",
          "description": "The Region of the replica to be added."
        },
        "ReplicaProvisionedReadCapacityUnits": {
          "type": "integer",
          "description": "The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide."
        },
        "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate": {
          "$ref": "#/$defs/AutoScalingSettingsUpdate"
        },
        "ReplicaGlobalSecondaryIndexSettingsUpdate": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReplicaGlobalSecondaryIndexSettingsUpdate"
          },
          "description": "Represents the settings of a global secondary index for a global table that will be modified."
        },
        "ReplicaTableClass": {
          "type": "string",
          "enum": [
            "STANDARD",
            "STANDARD_INFREQUENT_ACCESS"
          ],
          "description": "Replica-specific table class. If not specified, uses the source table's table class."
        }
      },
      "required": [
        "RegionName"
      ]
    }
  }
}