{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rds/json-schema/amazon-rds-modify-option-group-message-schema.json",
  "title": "ModifyOptionGroupMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-rds-option-group-api-openapi.yml#/components/schemas/ModifyOptionGroupMessage",
  "type": "object",
  "properties": {
    "OptionGroupName": {
      "type": "string",
      "description": "The name of the option group to be modified. Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't be removed from an option group, and that option group can't be removed from a DB instance once it is associated with a DB instance"
    },
    "OptionsToInclude": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OptionConfiguration"
      },
      "description": "Options in this list are added to the option group or, if already present, the specified configuration is used to update the existing configuration."
    },
    "OptionsToRemove": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Options in this list are removed from the option group."
    },
    "ApplyImmediately": {
      "type": "boolean",
      "description": "Specifies whether to apply the change immediately or during the next maintenance window for each instance associated with the option group."
    }
  },
  "required": [
    "OptionGroupName"
  ],
  "$defs": {
    "OptionConfiguration": {
      "type": "object",
      "properties": {
        "OptionName": {
          "type": "string",
          "description": "The configuration of options to include in a group."
        },
        "Port": {
          "type": "integer",
          "description": "The optional port for the option."
        },
        "OptionVersion": {
          "type": "string",
          "description": "The version for the option."
        },
        "DBSecurityGroupMemberships": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of DB security groups used for this option."
        },
        "VpcSecurityGroupMemberships": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of VPC security group names used for this option."
        },
        "OptionSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OptionSetting"
          },
          "description": "The option settings to include in an option group."
        }
      },
      "required": [
        "OptionName"
      ]
    },
    "OptionSetting": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the option that has settings that you can set."
        },
        "Value": {
          "type": "string",
          "description": "The current value of the option setting."
        },
        "DefaultValue": {
          "type": "string",
          "description": "The default value of the option setting."
        },
        "Description": {
          "type": "string",
          "description": "The description of the option setting."
        },
        "ApplyType": {
          "type": "string",
          "description": "The DB engine specific parameter type."
        },
        "DataType": {
          "type": "string",
          "description": "The data type of the option setting."
        },
        "AllowedValues": {
          "type": "string",
          "description": "The allowed values of the option setting."
        },
        "IsModifiable": {
          "type": "boolean",
          "description": "Indicates whether the option setting can be modified from the default."
        },
        "IsCollection": {
          "type": "boolean",
          "description": "Indicates whether the option setting is part of a collection."
        }
      }
    }
  }
}