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

No valid waiter names for SSM API #1692

Closed
vanguard737 opened this issue Jan 16, 2018 · 1 comment
Closed

No valid waiter names for SSM API #1692

vanguard737 opened this issue Jan 16, 2018 · 1 comment
Labels
feature-request A feature should be added or improved.

Comments

@vanguard737
Copy link

vanguard737 commented Jan 16, 2018

In the v2 SDK, it appears that SSMs don't expose any valid waiters. If I throw a bogus waiter at (for example) the CloudFormation client, I get a well-formed exception with the list of valid CFN waiter names. However, when I do the same to the SSM client, I don't get any waiter names back.

This issue may be relevant. Perhaps this has been implemented for SSM in the latest v3 SDK (and not v2)?

Gem: aws-sdk, 2.9.26.
Environment: Ruby 2.4.1, Windows 10.

Code, run from irb:

require 'aws-sdk'
Aws.config.update({
    region: 'us-west-2',
    credentials: Aws::Credentials.new('AKIAid', 'secret')
})

cfn = Aws::CloudFormation::Client.new
cfn.wait_until(:bogus)

ssm = Aws::SSM::Client.new
ssm.wait_until(:bogus)

The respective exceptions:

CFN:

Aws::Waiters::Errors::NoSuchWaiterError: no such waiter :bogus; valid waiter names are: :stack_exists, :stack_create_complete, :stack_delete_complete, :stack_update_complete, :change_set_create_complete
        from C:/tools/ruby24/lib/ruby/gems/2.4.0/gems/aws-sdk-core-2.9.26/lib/aws-sdk-core/waiters/provider.rb:29:in `waiter'
        from C:/tools/ruby24/lib/ruby/gems/2.4.0/gems/aws-sdk-core-2.9.26/lib/aws-sdk-core/client_waiters.rb:108:in `wait_until'
        from (irb):7
        from C:/tools/ruby24/bin/irb.cmd:19:in `<main>'

SSM:

Aws::Waiters::Errors::NoSuchWaiterError: no such waiter :bogus; valid waiter names are:
        from C:/tools/ruby24/lib/ruby/gems/2.4.0/gems/aws-sdk-core-2.9.26/lib/aws-sdk-core/waiters/provider.rb:29:in `waiter'
        from C:/tools/ruby24/lib/ruby/gems/2.4.0/gems/aws-sdk-core-2.9.26/lib/aws-sdk-core/client_waiters.rb:108:in `wait_until'
        from (irb):9
        from C:/tools/ruby24/bin/irb.cmd:19:in `<main>'
@cjyclaire cjyclaire added feature-request A feature should be added or improved. paginators-&-waiters labels Jan 16, 2018
@cjyclaire
Copy link
Contributor

cjyclaire commented Jan 16, 2018

Currently there is no waiter available for SSM, marking this as a feature request for adding waiters for SSM service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

4 participants