Skip to content

Commit

Permalink
Merge pull request #1009 from nkezhaya/add-personalize-to-endpoints
Browse files Browse the repository at this point in the history
Add support for Personalize
  • Loading branch information
bernardd authored Dec 11, 2023
2 parents 945d732 + c34451a commit 7cec35c
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/ex_aws/config/defaults.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ defmodule ExAws.Config.Defaults do
|> Map.merge(defaults(:lex))
end

def defaults(:"personalize-runtime") do
%{service_override: :personalize}
|> Map.merge(defaults(:personalize))
end

def defaults(:"personalize-events") do
%{service_override: :personalize}
|> Map.merge(defaults(:personalize))
end

def defaults(:sagemaker_runtime) do
%{service_override: :sagemaker}
|> Map.merge(defaults(:sagemaker))
Expand Down
48 changes: 48 additions & 0 deletions priv/endpoints.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,51 @@
"us-west-2" => %{"description" => "US West (Oregon)"}
},
"services" => %{
"personalize" => %{
"endpoints" => %{
"us-east-1" => %{},
"us-east-2" => %{},
"us-west-2" => %{},
"ap-northeast-1" => %{},
"ap-northeast-2" => %{},
"ap-south-1" => %{},
"ap-southeast-1" => %{},
"ap-southeast-2" => %{},
"ca-central-1" => %{},
"eu-west-1" => %{},
"eu-central-1" => %{}
}
},
"personalize-events" => %{
"endpoints" => %{
"us-east-1" => %{},
"us-east-2" => %{},
"us-west-2" => %{},
"ap-northeast-1" => %{},
"ap-northeast-2" => %{},
"ap-south-1" => %{},
"ap-southeast-1" => %{},
"ap-southeast-2" => %{},
"ca-central-1" => %{},
"eu-west-1" => %{},
"eu-central-1" => %{}
}
},
"personalize-runtime" => %{
"endpoints" => %{
"us-east-1" => %{},
"us-east-2" => %{},
"us-west-2" => %{},
"ap-northeast-1" => %{},
"ap-northeast-2" => %{},
"ap-south-1" => %{},
"ap-southeast-1" => %{},
"ap-southeast-2" => %{},
"ca-central-1" => %{},
"eu-west-1" => %{},
"eu-central-1" => %{}
}
},
"connect" => %{
"endpoints" => %{
"ap-northeast-1" => %{},
Expand Down Expand Up @@ -2450,6 +2495,9 @@
"cn-northwest-1" => %{"description" => "China (Ningxia)"}
},
"services" => %{
"personalize" => %{"endpoints" => %{"cn-north-1" => %{}}},
"personalize-runtime" => %{"endpoints" => %{"cn-north-1" => %{}}},
"personalize-events" => %{"endpoints" => %{"cn-north-1" => %{}}},
"elasticache" => %{"endpoints" => %{"cn-north-1" => %{}, "cn-northwest-1" => %{}}},
"config" => %{"endpoints" => %{"cn-north-1" => %{}, "cn-northwest-1" => %{}}},
"iam" => %{
Expand Down

0 comments on commit 7cec35c

Please sign in to comment.