Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

record type mappings error in ExAws.Utils.rename_keys/2 #7

Open
romanr321 opened this issue Nov 14, 2018 · 1 comment
Open

record type mappings error in ExAws.Utils.rename_keys/2 #7

romanr321 opened this issue Nov 14, 2018 · 1 comment

Comments

@romanr321
Copy link

Environment
Elixir & Erlang versions (elixir --version):
Erlang/OTP 21 [erts-10.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]
Interactive Elixir (1.7.0)

ExAws version mix deps |grep ex_aws
{:poison, "> 3.0"},
{:configparser_ex, "> 2.0"},
{:ex_aws, "> 2.0"},
{:ex_aws_route53, "> 2.0"},

HTTP client version. IE for hackney do mix deps | grep hackney
{:hackney, "~> 1.9"}

Current behavior
ExAws.Route53.list_record_sets("Z2M1FKI600VX4C", type: :a) |> ExAws.request()
{:error,
{:http_error, 400,
%{
body: "\nSenderInvalidInput1 validation error detected: Value 'a' at 'startRecordType' failed to satisfy constraint: Member must satisfy enum value set: [AAAA, A, CAA, NS, SOA, SPF, MX, PTR, CNAME, TXT, SRV, NAPTR]9b1c1317-e831-11e8-b1fb-13c43b8553d8",
headers: [
{"x-amzn-RequestId", "9b1c1317-e831-11e8-b1fb-13c43b8553d8"},
{"Content-Type", "text/xml"},
{"Content-Length", "431"},
{"Date", "Wed, 14 Nov 2018 17:20:37 GMT"},
{"Connection", "close"}
],
status_code: 400
}}}

Expected behavior
{:ok, map with body = xml with list of type A records}

  • Original ticket created in ExAws, ticket closed by admin stating it should be created here.
@lenfree
Copy link

lenfree commented May 15, 2019

I believe it should be ExAws.Route53.list_record_sets("Z2M1FKI600VX4C", type: "A", name: "www.example.com") |> ExAws.request(). Furthermore, you might want to check out https://docs.aws.amazon.com/cli/latest/reference/route53/list-resource-record-sets.html which have information on how they match name and sort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants