Code Monkey home page Code Monkey logo

Comments (1)

ksss avatar ksss commented on May 29, 2024

@HoneyryderChuck Thank you for raising the issue.

message/body/message_body parameters in S3/SQS clients are incorrectly typed to "only IO"

I fixed this issue. Could you confirm this?
#354

SQS client "send_message" incorrectly typed as well

You are right.
Aws::SQS::Client#send_message and all client methods parameters has "params" and "options" argument.

https://github.com/aws/aws-sdk-ruby/blob/bbe581191d8d0dc9be0f63be5b3656d655c5b8e0/gems/aws-sdk-sqs/lib/aws-sdk-sqs/client.rb#L2233C3-L2233C3

The current implementation is intentionally conscious of being able to check required keyword arguments.
There is a possible way to set the Record type as you mentioned, but it has the disadvantage of not being able to check for required keywords.
I believe this is happening because aws-sdk-ruby implements such dynamic required keyword arguments.
I have not found the best solution to this problem. I am looking for ideas.

Aws::SQS::Errors::InvalidParameterValue error is missing

Aws::SQS::Errors::InvalidParameterValue is a dynamically generated class. Probably the name is obtained by HTTP response and the class is generated under Errors.

https://github.com/aws/aws-sdk-ruby/blob/bbe581191d8d0dc9be0f63be5b3656d655c5b8e0/gems/aws-sdk-core/lib/aws-sdk-core/errors.rb#L393

I have not been able to find a list of names that could occur as this error class and have been unable to define it.
Ideally, the error class should be generated automatically from the list of error definitions maintained by Aws.
There is some documentation currently found, but we do not know if it is the best method.

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/CommonErrors.html

from gem_rbs_collection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.