{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-rds/json-schema/amazon-rds-create-option-group-result-schema.json",
  "title": "CreateOptionGroupResult",
  "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/CreateOptionGroupResult",
  "type": "object",
  "properties": {
    "OptionGroup": {
      "$ref": "#/$defs/OptionGroup"
    }
  },
  "$defs": {
    "DBSecurityGroupMembership": {
      "type": "object",
      "properties": {
        "DBSecurityGroupName": {
          "type": "string",
          "description": "The name of the DB security group."
        },
        "Status": {
          "type": "string",
          "description": "The status of the DB security group."
        }
      }
    },
    "Option": {
      "type": "object",
      "properties": {
        "OptionName": {
          "type": "string",
          "description": "The name of the option."
        },
        "OptionDescription": {
          "type": "string",
          "description": "The description of the option."
        },
        "Persistent": {
          "type": "boolean",
          "description": "Indicates whether this option is persistent."
        },
        "Permanent": {
          "type": "boolean",
          "description": "Indicates whether this option is permanent."
        },
        "Port": {
          "type": "integer",
          "description": "If required, the port configured for this option to use."
        },
        "OptionVersion": {
          "type": "string",
          "description": "The version of the option."
        },
        "OptionSettings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OptionSetting"
          },
          "description": "The option settings for this option."
        },
        "DBSecurityGroupMemberships": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DBSecurityGroupMembership"
          },
          "description": "If the option requires access to a port, then this DB security group allows access to the port."
        },
        "VpcSecurityGroupMemberships": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VpcSecurityGroupMembership"
          },
          "description": "If the option requires access to a port, then this VPC security group allows access to the port."
        }
      }
    },
    "OptionGroup": {
      "type": "object",
      "properties": {
        "OptionGroupName": {
          "type": "string",
          "description": "Specifies the name of the option group."
        },
        "OptionGroupDescription": {
          "type": "string",
          "description": "Provides a description of the option group."
        },
        "EngineName": {
          "type": "string",
          "description": "Indicates the name of the engine that this option group can be applied to."
        },
        "MajorEngineVersion": {
          "type": "string",
          "description": "Indicates the major engine version associated with this option group."
        },
        "Options": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Option"
          },
          "description": "Indicates what options are available in the option group."
        },
        "AllowsVpcAndNonVpcInstanceMemberships": {
          "type": "boolean",
          "description": "Indicates whether this option group can be applied to both VPC and non-VPC instances. The value true indicates the option group can be applied to both VPC and non-VPC instances."
        },
        "VpcId": {
          "type": "string",
          "description": "If AllowsVpcAndNonVpcInstanceMemberships is false, this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is true and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field."
        },
        "OptionGroupArn": {
          "type": "string",
          "description": "Specifies the Amazon Resource Name (ARN) for the option group."
        },
        "SourceOptionGroup": {
          "type": "string",
          "description": "Specifies the name of the option group from which this option group is copied."
        },
        "SourceAccountId": {
          "type": "string",
          "description": "Specifies the Amazon Web Services account ID for the option group from which this option group is copied."
        },
        "CopyTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "Indicates when the option group was copied."
        },
        "SourceRegion": {
          "type": "string",
          "description": "Specifies the Amazon Web Services Region for the option group from which this option group is copied."
        }
      }
    },
    "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."
        }
      }
    },
    "VpcSecurityGroupMembership": {
      "type": "object",
      "properties": {
        "VpcSecurityGroupId": {
          "type": "string",
          "description": "The name of the VPC security group."
        },
        "Status": {
          "type": "string",
          "description": "The membership status of the VPC security group. Currently, the only valid status is active."
        }
      }
    }
  }
}