aws-beam / aws-codegen

Code generator for AWS clients in Erlang and Elixir.
Other
53 stars 49 forks source link

Mechanical Turk API is not regionalised but has no `credentialScope` for `aws-global` #40

Closed jfacorro closed 6 months ago

jfacorro commented 4 years ago

The Mechanical Turk API is not regionalized but doesn't include information for aws-global, it has an entry for sandbox instead (from endpoints.json):

      "mturk-requester" : {
        "endpoints" : {
          "sandbox" : {
            "hostname" : "mturk-requester-sandbox.us-east-1.amazonaws.com"
          },
          "us-east-1" : { }
        },
        "isRegionalized" : false
      },

This special case needs to be addressed in the generation somehow.

onno-vos-dev commented 6 months ago

I believe this was fixed a long time ago. If not looking at: https://github.com/aws/aws-sdk-go-v2/blob/main/codegen/sdk-codegen/aws-models/mturk.json#L2815-L2822 it should be fixed now since the move to v2 spec.