aws-sdk-groundstation 1.24.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,121 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::GroundStation
13
+ # Waiters are utility methods that poll for a particular state to occur
14
+ # on a client. Waiters can fail after a number of attempts at a polling
15
+ # interval defined for the service client.
16
+ #
17
+ # For a list of operations that can be waited for and the
18
+ # client methods called for each operation, see the table below or the
19
+ # {Client#wait_until} field documentation for the {Client}.
20
+ #
21
+ # # Invoking a Waiter
22
+ # To invoke a waiter, call #wait_until on a {Client}. The first parameter
23
+ # is the waiter name, which is specific to the service client and indicates
24
+ # which operation is being waited for. The second parameter is a hash of
25
+ # parameters that are passed to the client method called by the waiter,
26
+ # which varies according to the waiter name.
27
+ #
28
+ # # Wait Failures
29
+ # To catch errors in a waiter, use WaiterFailed,
30
+ # as shown in the following example.
31
+ #
32
+ # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
33
+ # puts "failed waiting for instance running: #{error.message}
34
+ # end
35
+ #
36
+ # # Configuring a Waiter
37
+ # Each waiter has a default polling interval and a maximum number of
38
+ # attempts it will make before returning control to your program.
39
+ # To set these values, use the `max_attempts` and `delay` parameters
40
+ # in your `#wait_until` call.
41
+ # The following example waits for up to 25 seconds, polling every five seconds.
42
+ #
43
+ # client.wait_until(...) do |w|
44
+ # w.max_attempts = 5
45
+ # w.delay = 5
46
+ # end
47
+ #
48
+ # To disable wait failures, set the value of either of these parameters
49
+ # to `nil`.
50
+ #
51
+ # # Extending a Waiter
52
+ # To modify the behavior of waiters, you can register callbacks that are
53
+ # triggered before each polling attempt and before waiting.
54
+ #
55
+ # The following example implements an exponential backoff in a waiter
56
+ # by doubling the amount of time to wait on every attempt.
57
+ #
58
+ # client.wait_until(...) do |w|
59
+ # w.interval = 0 # disable normal sleep
60
+ # w.before_wait do |n, resp|
61
+ # sleep(n ** 2)
62
+ # end
63
+ # end
64
+ #
65
+ # # Available Waiters
66
+ #
67
+ # The following table lists the valid waiter names, the operations they call,
68
+ # and the default `:delay` and `:max_attempts` values.
69
+ #
70
+ # | waiter_name | params | :delay | :max_attempts |
71
+ # | ----------------- | ------------------------- | -------- | ------------- |
72
+ # | contact_scheduled | {Client#describe_contact} | 5 | 180 |
73
+ #
74
+ module Waiters
75
+
76
+ # Waits until a contact has been scheduled
77
+ class ContactScheduled
78
+
79
+ # @param [Hash] options
80
+ # @option options [required, Client] :client
81
+ # @option options [Integer] :max_attempts (180)
82
+ # @option options [Integer] :delay (5)
83
+ # @option options [Proc] :before_attempt
84
+ # @option options [Proc] :before_wait
85
+ def initialize(options)
86
+ @client = options.fetch(:client)
87
+ @waiter = Aws::Waiters::Waiter.new({
88
+ max_attempts: 180,
89
+ delay: 5,
90
+ poller: Aws::Waiters::Poller.new(
91
+ operation_name: :describe_contact,
92
+ acceptors: [
93
+ {
94
+ "matcher" => "path",
95
+ "argument" => "contact_status",
96
+ "state" => "failure",
97
+ "expected" => "FAILED_TO_SCHEDULE"
98
+ },
99
+ {
100
+ "matcher" => "path",
101
+ "argument" => "contact_status",
102
+ "state" => "success",
103
+ "expected" => "SCHEDULED"
104
+ }
105
+ ]
106
+ )
107
+ }.merge(options))
108
+ end
109
+
110
+ # @option (see Client#describe_contact)
111
+ # @return (see Client#describe_contact)
112
+ def wait(params = {})
113
+ @waiter.wait(client: @client, params: params)
114
+ end
115
+
116
+ # @api private
117
+ attr_reader :waiter
118
+
119
+ end
120
+ end
121
+ end
@@ -13,9 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-groundstation/types'
15
15
  require_relative 'aws-sdk-groundstation/client_api'
16
+ require_relative 'aws-sdk-groundstation/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-groundstation/client'
17
18
  require_relative 'aws-sdk-groundstation/errors'
19
+ require_relative 'aws-sdk-groundstation/waiters'
18
20
  require_relative 'aws-sdk-groundstation/resource'
21
+ require_relative 'aws-sdk-groundstation/endpoint_parameters'
22
+ require_relative 'aws-sdk-groundstation/endpoint_provider'
23
+ require_relative 'aws-sdk-groundstation/endpoints'
19
24
  require_relative 'aws-sdk-groundstation/customizations'
20
25
 
21
26
  # This module provides support for AWS Ground Station. This module is available in the
@@ -48,6 +53,6 @@ require_relative 'aws-sdk-groundstation/customizations'
48
53
  # @!group service
49
54
  module Aws::GroundStation
50
55
 
51
- GEM_VERSION = '1.24.0'
56
+ GEM_VERSION = '1.41.0'
52
57
 
53
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-groundstation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.0
4
+ version: 1.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-30 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.122.0
22
+ version: 3.184.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.122.0
32
+ version: 3.184.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,9 +59,14 @@ files:
59
59
  - lib/aws-sdk-groundstation/client.rb
60
60
  - lib/aws-sdk-groundstation/client_api.rb
61
61
  - lib/aws-sdk-groundstation/customizations.rb
62
+ - lib/aws-sdk-groundstation/endpoint_parameters.rb
63
+ - lib/aws-sdk-groundstation/endpoint_provider.rb
64
+ - lib/aws-sdk-groundstation/endpoints.rb
62
65
  - lib/aws-sdk-groundstation/errors.rb
66
+ - lib/aws-sdk-groundstation/plugins/endpoints.rb
63
67
  - lib/aws-sdk-groundstation/resource.rb
64
68
  - lib/aws-sdk-groundstation/types.rb
69
+ - lib/aws-sdk-groundstation/waiters.rb
65
70
  homepage: https://github.com/aws/aws-sdk-ruby
66
71
  licenses:
67
72
  - Apache-2.0