{
  "typeName" : "AWS::RDS::OptionGroup",
  "description" : "The AWS::RDS::OptionGroup resource creates an option group, to enable and configure features that are specific to a particular DB engine.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-rds",
  "definitions" : {
    "OptionConfiguration" : {
      "description" : "The OptionConfiguration property type specifies an individual option, and its settings, within an AWS::RDS::OptionGroup resource.",
      "type" : "object",
      "properties" : {
        "DBSecurityGroupMemberships" : {
          "description" : "A list of DBSecurityGroupMembership name strings used for this option.",
          "type" : "array",
          "uniqueItems" : true,
          "insertionOrder" : false,
          "items" : {
            "type" : "string"
          }
        },
        "OptionName" : {
          "description" : "The configuration of options to include in a group.",
          "type" : "string"
        },
        "OptionSettings" : {
          "description" : "The option settings to include in an option group.",
          "type" : "array",
          "insertionOrder" : false,
          "items" : {
            "$ref" : "#/definitions/OptionSetting"
          }
        },
        "OptionVersion" : {
          "description" : "The version for the option.",
          "type" : "string"
        },
        "Port" : {
          "description" : "The optional port for the option.",
          "type" : "integer"
        },
        "VpcSecurityGroupMemberships" : {
          "description" : "A list of VpcSecurityGroupMembership name strings used for this option.",
          "type" : "array",
          "uniqueItems" : true,
          "insertionOrder" : false,
          "items" : {
            "type" : "string"
          }
        }
      },
      "additionalProperties" : false,
      "required" : [ "OptionName" ]
    },
    "OptionSetting" : {
      "description" : "The OptionSetting property type specifies the value for an option within an OptionSetting property.",
      "type" : "object",
      "properties" : {
        "Name" : {
          "description" : "The name of the option that has settings that you can set.",
          "type" : "string"
        },
        "Value" : {
          "description" : "The current value of the option setting.",
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "Tag" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "type" : "string",
          "description" : "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "description" : "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. ",
          "minLength" : 0,
          "maxLength" : 256
        }
      },
      "required" : [ "Key" ]
    }
  },
  "properties" : {
    "OptionGroupName" : {
      "description" : "Specifies the name of the option group.",
      "type" : "string"
    },
    "OptionGroupDescription" : {
      "description" : "Provides a description of the option group.",
      "type" : "string"
    },
    "EngineName" : {
      "description" : "Indicates the name of the engine that this option group can be applied to.",
      "type" : "string"
    },
    "MajorEngineVersion" : {
      "description" : "Indicates the major engine version associated with this option group.",
      "type" : "string"
    },
    "OptionConfigurations" : {
      "description" : "Indicates what options are available in the option group.",
      "type" : "array",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/OptionConfiguration"
      }
    },
    "Tags" : {
      "type" : "array",
      "description" : "An array of key-value pairs to apply to this resource.",
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "additionalProperties" : false,
  "propertyTransform" : {
    "/properties/OptionGroupName" : "$lowercase(OptionGroupName)"
  },
  "required" : [ "EngineName", "MajorEngineVersion", "OptionGroupDescription" ],
  "createOnlyProperties" : [ "/properties/EngineName", "/properties/MajorEngineVersion", "/properties/OptionGroupDescription", "/properties/OptionGroupName" ],
  "primaryIdentifier" : [ "/properties/OptionGroupName" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "rds:AddTagsToResource", "rds:CreateOptionGroup", "rds:DescribeOptionGroups", "rds:ListTagsForResource", "rds:ModifyOptionGroup" ]
    },
    "read" : {
      "permissions" : [ "rds:DescribeOptionGroups", "rds:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "rds:AddTagsToResource", "rds:DescribeOptionGroups", "rds:ListTagsForResource", "rds:ModifyOptionGroup", "rds:RemoveTagsFromResource" ]
    },
    "delete" : {
      "permissions" : [ "rds:DeleteOptionGroup", "rds:DescribeOptionGroups", "rds:ListTagsForResource", "rds:RemoveTagsFromResource" ]
    },
    "list" : {
      "permissions" : [ "rds:DescribeOptionGroups" ]
    }
  }
}