Serverless-appsync-plugin, get arn of created appSync

Hi, I am trying to get the Arn of this appSync created with serverless:

custom:
  appSync:
    name: blackjack-appsync-api
    authenticationType: AMAZON_COGNITO_USER_POOLS
    additionalAuthenticationProviders:
      - authenticationType: AWS_IAM
  

To be used in an IAM role as such:

      Policies:
        - PolicyName: "blackjack-unauth-user-policy"
          PolicyDocument: 
            Version: "2012-10-17"
            Statement:
              - Effect: Allow
                Action:
                  - "appsync:GraphQL"
                Resource:
                  - "arn:aws:appsync:ap-southeast-2:xxx:apis/fgdfgggdgdfmm,mgdsai/*"

I’ve spent a few hours playing but no success…

Also, the " additionalAuthenticationProviders" property seems to generate a 500 server error on any redploy if anyone has any clues as to why?

For anyone who comes across this, I think I’ve got it working with the below:

                Resource:
                  Fn::Join:
                    - ""
                    - - "arn:aws:appsync:${self:provider.region}:"
                      - Ref : AWS::AccountId # ${aws:accountId}
                      - ":apis/"
                      - Fn::GetAtt:
                        - GraphQlApi
                        - ApiId
                      - "/*"