  Resources:

    # A name starts with a letter and contains only numbers, letters, and underscores

    ### Lambda DataSources

    AppSyncInternalRequestsDataSource:
      Type: AWS::AppSync::DataSource
      DependsOn:
        - AppSyncSchema
      Properties:
        ApiId: !GetAtt AppSyncApi.ApiId
        LambdaConfig:
          LambdaFunctionArn:
            Fn::GetAtt: [InternalRequestsLambdaFunction, Arn]
        Name: InternalRequestsDS
        ServiceRoleArn: !GetAtt AppSyncRole.Arn
        Type: AWS_LAMBDA

    AppSyncPostEnrichmentRequestsDataSource:
      Type: AWS::AppSync::DataSource
      DependsOn:
        - AppSyncSchema
      Properties:
        ApiId: !GetAtt AppSyncApi.ApiId
        LambdaConfig:
          LambdaFunctionArn:
            Fn::GetAtt: [PostEnrichmentRequestsLambdaFunction, Arn]
        Name: PostEnrichmentRequestsDS
        ServiceRoleArn: !GetAtt AppSyncRole.Arn
        Type: AWS_LAMBDA


    ### None DataSources

    AppSyncNoneDataSource:
      Type: AWS::AppSync::DataSource
      DependsOn:
        - AppSyncSchema
      Properties:
        ApiId: !GetAtt AppSyncApi.ApiId
        Name: NoneDS
        Type: NONE
