{
  "typeName" : "AWS::AppSync::GraphQLApi",
  "description" : "Resource Type definition for AWS::AppSync::GraphQLApi",
  "additionalProperties" : false,
  "properties" : {
    "OpenIDConnectConfig" : {
      "$ref" : "#/definitions/OpenIDConnectConfig"
    },
    "MergedApiExecutionRoleArn" : {
      "type" : "string"
    },
    "EnhancedMetricsConfig" : {
      "$ref" : "#/definitions/EnhancedMetricsConfig"
    },
    "RealtimeDns" : {
      "type" : "string"
    },
    "Name" : {
      "type" : "string"
    },
    "GraphQLUrl" : {
      "type" : "string"
    },
    "EnvironmentVariables" : {
      "type" : "object"
    },
    "GraphQLDns" : {
      "type" : "string"
    },
    "ApiType" : {
      "type" : "string"
    },
    "LambdaAuthorizerConfig" : {
      "$ref" : "#/definitions/LambdaAuthorizerConfig"
    },
    "Tags" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "GraphQLEndpointArn" : {
      "type" : "string"
    },
    "AuthenticationType" : {
      "type" : "string"
    },
    "QueryDepthLimit" : {
      "type" : "integer"
    },
    "IntrospectionConfig" : {
      "type" : "string"
    },
    "OwnerContact" : {
      "type" : "string"
    },
    "ResolverCountLimit" : {
      "type" : "integer"
    },
    "AdditionalAuthenticationProviders" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/AdditionalAuthenticationProvider"
      }
    },
    "RealtimeUrl" : {
      "type" : "string"
    },
    "XrayEnabled" : {
      "type" : "boolean"
    },
    "Visibility" : {
      "type" : "string"
    },
    "Id" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    },
    "UserPoolConfig" : {
      "$ref" : "#/definitions/UserPoolConfig"
    },
    "ApiId" : {
      "type" : "string"
    },
    "LogConfig" : {
      "$ref" : "#/definitions/LogConfig"
    }
  },
  "definitions" : {
    "OpenIDConnectConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ClientId" : {
          "type" : "string"
        },
        "AuthTTL" : {
          "type" : "number"
        },
        "Issuer" : {
          "type" : "string"
        },
        "IatTTL" : {
          "type" : "number"
        }
      }
    },
    "EnhancedMetricsConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "OperationLevelMetricsConfig" : {
          "type" : "string"
        },
        "ResolverLevelMetricsBehavior" : {
          "type" : "string"
        },
        "DataSourceLevelMetricsBehavior" : {
          "type" : "string"
        }
      },
      "required" : [ "OperationLevelMetricsConfig", "ResolverLevelMetricsBehavior", "DataSourceLevelMetricsBehavior" ]
    },
    "CognitoUserPoolConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "AppIdClientRegex" : {
          "type" : "string"
        },
        "UserPoolId" : {
          "type" : "string"
        },
        "AwsRegion" : {
          "type" : "string"
        }
      }
    },
    "LambdaAuthorizerConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "IdentityValidationExpression" : {
          "type" : "string"
        },
        "AuthorizerUri" : {
          "type" : "string"
        },
        "AuthorizerResultTtlInSeconds" : {
          "type" : "number"
        }
      }
    },
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Value" : {
          "type" : "string"
        },
        "Key" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    },
    "UserPoolConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "AppIdClientRegex" : {
          "type" : "string"
        },
        "UserPoolId" : {
          "type" : "string"
        },
        "AwsRegion" : {
          "type" : "string"
        },
        "DefaultAction" : {
          "type" : "string"
        }
      }
    },
    "AdditionalAuthenticationProvider" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "LambdaAuthorizerConfig" : {
          "$ref" : "#/definitions/LambdaAuthorizerConfig"
        },
        "OpenIDConnectConfig" : {
          "$ref" : "#/definitions/OpenIDConnectConfig"
        },
        "UserPoolConfig" : {
          "$ref" : "#/definitions/CognitoUserPoolConfig"
        },
        "AuthenticationType" : {
          "type" : "string"
        }
      },
      "required" : [ "AuthenticationType" ]
    },
    "LogConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "ExcludeVerboseContent" : {
          "type" : "boolean"
        },
        "FieldLogLevel" : {
          "type" : "string"
        },
        "CloudWatchLogsRoleArn" : {
          "type" : "string"
        }
      },
      "required" : [ "CloudWatchLogsRoleArn", "FieldLogLevel" ]
    }
  },
  "required" : [ "Name", "AuthenticationType" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/ApiId", "/properties/GraphQLEndpointArn", "/properties/Id", "/properties/GraphQLDns", "/properties/GraphQLUrl", "/properties/RealtimeDns", "/properties/RealtimeUrl", "/properties/Arn" ]
}