{
  "typeName" : "AWS::SecretsManager::RotationSchedule",
  "description" : "Resource Type definition for AWS::SecretsManager::RotationSchedule",
  "additionalProperties" : false,
  "properties" : {
    "Id" : {
      "type" : "string"
    },
    "RotationLambdaARN" : {
      "type" : "string"
    },
    "RotationRules" : {
      "$ref" : "#/definitions/RotationRules"
    },
    "RotateImmediatelyOnUpdate" : {
      "type" : "boolean"
    },
    "SecretId" : {
      "type" : "string"
    },
    "HostedRotationLambda" : {
      "$ref" : "#/definitions/HostedRotationLambda"
    }
  },
  "definitions" : {
    "HostedRotationLambda" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Runtime" : {
          "type" : "string"
        },
        "RotationType" : {
          "type" : "string"
        },
        "RotationLambdaName" : {
          "type" : "string"
        },
        "KmsKeyArn" : {
          "type" : "string"
        },
        "MasterSecretArn" : {
          "type" : "string"
        },
        "VpcSecurityGroupIds" : {
          "type" : "string"
        },
        "ExcludeCharacters" : {
          "type" : "string"
        },
        "MasterSecretKmsKeyArn" : {
          "type" : "string"
        },
        "SuperuserSecretArn" : {
          "type" : "string"
        },
        "SuperuserSecretKmsKeyArn" : {
          "type" : "string"
        },
        "VpcSubnetIds" : {
          "type" : "string"
        }
      },
      "required" : [ "RotationType" ]
    },
    "RotationRules" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ScheduleExpression" : {
          "type" : "string"
        },
        "Duration" : {
          "type" : "string"
        },
        "AutomaticallyAfterDays" : {
          "type" : "integer"
        }
      }
    }
  },
  "required" : [ "SecretId" ],
  "createOnlyProperties" : [ "/properties/SecretId" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}