aws-sdk-groundstation 1.30.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-groundstation/client.rb +136 -2
- data/lib/aws-sdk-groundstation/client_api.rb +5 -0
- data/lib/aws-sdk-groundstation/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-groundstation/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-groundstation/types.rb +28 -0
- data/lib/aws-sdk-groundstation/waiters.rb +121 -0
- data/lib/aws-sdk-groundstation.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f81601bf76df148196ec209a859d1ecb84fd10bc3acd806cabf79b401fe3e5d
|
4
|
+
data.tar.gz: c0b6183670ea5b39f5072350fa76e1cb31e781bc0e068be14987cc3dc6b6d8a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2b0d6362d6b7df9c64ebf4281b3eb373c22111b873b7043ddfb5322c0e00a8a3b2ce6e7c9144e78f9140994e1a4787ec3f02883693da1f88cf5d1ada9c47df
|
7
|
+
data.tar.gz: 1c7569ad6d5e1def50be9bce16b426616d8b40aecc418a66b4369054db8e248111f8ffcd924098d41f21b1952476a96b321b8bf7785126f483faa5f0bc4a0c96
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.31.0 (2023-01-19)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Add configurable prepass and postpass times for DataflowEndpointGroup. Add Waiter to allow customers to wait for a contact that was reserved through ReserveContact
|
8
|
+
|
4
9
|
1.30.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.31.0
|
@@ -513,6 +513,16 @@ module Aws::GroundStation
|
|
513
513
|
# When a contact uses multiple `DataflowEndpointConfig` objects, each
|
514
514
|
# `Config` must match a `DataflowEndpoint` in the same group.
|
515
515
|
#
|
516
|
+
# @option params [Integer] :contact_post_pass_duration_seconds
|
517
|
+
# Amount of time, in seconds, after a contact ends for the contact to
|
518
|
+
# remain in a `POSTPASS` state. A CloudWatch event is emitted when the
|
519
|
+
# contact enters and exits the `POSTPASS` state.
|
520
|
+
#
|
521
|
+
# @option params [Integer] :contact_pre_pass_duration_seconds
|
522
|
+
# Amount of time, in seconds, prior to contact start for the contact to
|
523
|
+
# remain in a `PREPASS` state. A CloudWatch event is emitted when the
|
524
|
+
# contact enters and exits the `PREPASS` state.
|
525
|
+
#
|
516
526
|
# @option params [required, Array<Types::EndpointDetails>] :endpoint_details
|
517
527
|
# Endpoint details of each endpoint in the dataflow endpoint group.
|
518
528
|
#
|
@@ -526,6 +536,8 @@ module Aws::GroundStation
|
|
526
536
|
# @example Request syntax with placeholder values
|
527
537
|
#
|
528
538
|
# resp = client.create_dataflow_endpoint_group({
|
539
|
+
# contact_post_pass_duration_seconds: 1,
|
540
|
+
# contact_pre_pass_duration_seconds: 1,
|
529
541
|
# endpoint_details: [ # required
|
530
542
|
# {
|
531
543
|
# endpoint: {
|
@@ -921,6 +933,11 @@ module Aws::GroundStation
|
|
921
933
|
# resp.tags #=> Hash
|
922
934
|
# resp.tags["String"] #=> String
|
923
935
|
#
|
936
|
+
#
|
937
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
938
|
+
#
|
939
|
+
# * contact_scheduled
|
940
|
+
#
|
924
941
|
# @see http://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/DescribeContact AWS API Documentation
|
925
942
|
#
|
926
943
|
# @overload describe_contact(params = {})
|
@@ -1061,6 +1078,8 @@ module Aws::GroundStation
|
|
1061
1078
|
#
|
1062
1079
|
# @return [Types::GetDataflowEndpointGroupResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1063
1080
|
#
|
1081
|
+
# * {Types::GetDataflowEndpointGroupResponse#contact_post_pass_duration_seconds #contact_post_pass_duration_seconds} => Integer
|
1082
|
+
# * {Types::GetDataflowEndpointGroupResponse#contact_pre_pass_duration_seconds #contact_pre_pass_duration_seconds} => Integer
|
1064
1083
|
# * {Types::GetDataflowEndpointGroupResponse#dataflow_endpoint_group_arn #dataflow_endpoint_group_arn} => String
|
1065
1084
|
# * {Types::GetDataflowEndpointGroupResponse#dataflow_endpoint_group_id #dataflow_endpoint_group_id} => String
|
1066
1085
|
# * {Types::GetDataflowEndpointGroupResponse#endpoints_details #endpoints_details} => Array<Types::EndpointDetails>
|
@@ -1074,6 +1093,8 @@ module Aws::GroundStation
|
|
1074
1093
|
#
|
1075
1094
|
# @example Response structure
|
1076
1095
|
#
|
1096
|
+
# resp.contact_post_pass_duration_seconds #=> Integer
|
1097
|
+
# resp.contact_pre_pass_duration_seconds #=> Integer
|
1077
1098
|
# resp.dataflow_endpoint_group_arn #=> String
|
1078
1099
|
# resp.dataflow_endpoint_group_id #=> String
|
1079
1100
|
# resp.endpoints_details #=> Array
|
@@ -1950,14 +1971,127 @@ module Aws::GroundStation
|
|
1950
1971
|
params: params,
|
1951
1972
|
config: config)
|
1952
1973
|
context[:gem_name] = 'aws-sdk-groundstation'
|
1953
|
-
context[:gem_version] = '1.
|
1974
|
+
context[:gem_version] = '1.31.0'
|
1954
1975
|
Seahorse::Client::Request.new(handlers, context)
|
1955
1976
|
end
|
1956
1977
|
|
1978
|
+
# Polls an API operation until a resource enters a desired state.
|
1979
|
+
#
|
1980
|
+
# ## Basic Usage
|
1981
|
+
#
|
1982
|
+
# A waiter will call an API operation until:
|
1983
|
+
#
|
1984
|
+
# * It is successful
|
1985
|
+
# * It enters a terminal state
|
1986
|
+
# * It makes the maximum number of attempts
|
1987
|
+
#
|
1988
|
+
# In between attempts, the waiter will sleep.
|
1989
|
+
#
|
1990
|
+
# # polls in a loop, sleeping between attempts
|
1991
|
+
# client.wait_until(waiter_name, params)
|
1992
|
+
#
|
1993
|
+
# ## Configuration
|
1994
|
+
#
|
1995
|
+
# You can configure the maximum number of polling attempts, and the
|
1996
|
+
# delay (in seconds) between each polling attempt. You can pass
|
1997
|
+
# configuration as the final arguments hash.
|
1998
|
+
#
|
1999
|
+
# # poll for ~25 seconds
|
2000
|
+
# client.wait_until(waiter_name, params, {
|
2001
|
+
# max_attempts: 5,
|
2002
|
+
# delay: 5,
|
2003
|
+
# })
|
2004
|
+
#
|
2005
|
+
# ## Callbacks
|
2006
|
+
#
|
2007
|
+
# You can be notified before each polling attempt and before each
|
2008
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
2009
|
+
# it will terminate the waiter.
|
2010
|
+
#
|
2011
|
+
# started_at = Time.now
|
2012
|
+
# client.wait_until(waiter_name, params, {
|
2013
|
+
#
|
2014
|
+
# # disable max attempts
|
2015
|
+
# max_attempts: nil,
|
2016
|
+
#
|
2017
|
+
# # poll for 1 hour, instead of a number of attempts
|
2018
|
+
# before_wait: -> (attempts, response) do
|
2019
|
+
# throw :failure if Time.now - started_at > 3600
|
2020
|
+
# end
|
2021
|
+
# })
|
2022
|
+
#
|
2023
|
+
# ## Handling Errors
|
2024
|
+
#
|
2025
|
+
# When a waiter is unsuccessful, it will raise an error.
|
2026
|
+
# All of the failure errors extend from
|
2027
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
2028
|
+
#
|
2029
|
+
# begin
|
2030
|
+
# client.wait_until(...)
|
2031
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
2032
|
+
# # resource did not enter the desired state in time
|
2033
|
+
# end
|
2034
|
+
#
|
2035
|
+
# ## Valid Waiters
|
2036
|
+
#
|
2037
|
+
# The following table lists the valid waiter names, the operations they call,
|
2038
|
+
# and the default `:delay` and `:max_attempts` values.
|
2039
|
+
#
|
2040
|
+
# | waiter_name | params | :delay | :max_attempts |
|
2041
|
+
# | ----------------- | ------------------------- | -------- | ------------- |
|
2042
|
+
# | contact_scheduled | {Client#describe_contact} | 5 | 180 |
|
2043
|
+
#
|
2044
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
2045
|
+
# because the waiter has entered a state that it will not transition
|
2046
|
+
# out of, preventing success.
|
2047
|
+
#
|
2048
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
2049
|
+
# maximum number of attempts have been made, and the waiter is not
|
2050
|
+
# yet successful.
|
2051
|
+
#
|
2052
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
2053
|
+
# while polling for a resource that is not expected.
|
2054
|
+
#
|
2055
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
2056
|
+
# for an unknown state.
|
2057
|
+
#
|
2058
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
2059
|
+
# @param [Symbol] waiter_name
|
2060
|
+
# @param [Hash] params ({})
|
2061
|
+
# @param [Hash] options ({})
|
2062
|
+
# @option options [Integer] :max_attempts
|
2063
|
+
# @option options [Integer] :delay
|
2064
|
+
# @option options [Proc] :before_attempt
|
2065
|
+
# @option options [Proc] :before_wait
|
2066
|
+
def wait_until(waiter_name, params = {}, options = {})
|
2067
|
+
w = waiter(waiter_name, options)
|
2068
|
+
yield(w.waiter) if block_given? # deprecated
|
2069
|
+
w.wait(params)
|
2070
|
+
end
|
2071
|
+
|
1957
2072
|
# @api private
|
1958
2073
|
# @deprecated
|
1959
2074
|
def waiter_names
|
1960
|
-
|
2075
|
+
waiters.keys
|
2076
|
+
end
|
2077
|
+
|
2078
|
+
private
|
2079
|
+
|
2080
|
+
# @param [Symbol] waiter_name
|
2081
|
+
# @param [Hash] options ({})
|
2082
|
+
def waiter(waiter_name, options = {})
|
2083
|
+
waiter_class = waiters[waiter_name]
|
2084
|
+
if waiter_class
|
2085
|
+
waiter_class.new(options.merge(client: self))
|
2086
|
+
else
|
2087
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
2088
|
+
end
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
def waiters
|
2092
|
+
{
|
2093
|
+
contact_scheduled: Waiters::ContactScheduled
|
2094
|
+
}
|
1961
2095
|
end
|
1962
2096
|
|
1963
2097
|
class << self
|
@@ -47,6 +47,7 @@ module Aws::GroundStation
|
|
47
47
|
DataflowEndpoint = Shapes::StructureShape.new(name: 'DataflowEndpoint')
|
48
48
|
DataflowEndpointConfig = Shapes::StructureShape.new(name: 'DataflowEndpointConfig')
|
49
49
|
DataflowEndpointGroupArn = Shapes::StringShape.new(name: 'DataflowEndpointGroupArn')
|
50
|
+
DataflowEndpointGroupDurationInSeconds = Shapes::IntegerShape.new(name: 'DataflowEndpointGroupDurationInSeconds')
|
50
51
|
DataflowEndpointGroupIdResponse = Shapes::StructureShape.new(name: 'DataflowEndpointGroupIdResponse')
|
51
52
|
DataflowEndpointGroupList = Shapes::ListShape.new(name: 'DataflowEndpointGroupList')
|
52
53
|
DataflowEndpointListItem = Shapes::StructureShape.new(name: 'DataflowEndpointListItem')
|
@@ -263,6 +264,8 @@ module Aws::GroundStation
|
|
263
264
|
CreateConfigRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
264
265
|
CreateConfigRequest.struct_class = Types::CreateConfigRequest
|
265
266
|
|
267
|
+
CreateDataflowEndpointGroupRequest.add_member(:contact_post_pass_duration_seconds, Shapes::ShapeRef.new(shape: DataflowEndpointGroupDurationInSeconds, location_name: "contactPostPassDurationSeconds"))
|
268
|
+
CreateDataflowEndpointGroupRequest.add_member(:contact_pre_pass_duration_seconds, Shapes::ShapeRef.new(shape: DataflowEndpointGroupDurationInSeconds, location_name: "contactPrePassDurationSeconds"))
|
266
269
|
CreateDataflowEndpointGroupRequest.add_member(:endpoint_details, Shapes::ShapeRef.new(shape: EndpointDetailsList, required: true, location_name: "endpointDetails"))
|
267
270
|
CreateDataflowEndpointGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
268
271
|
CreateDataflowEndpointGroupRequest.struct_class = Types::CreateDataflowEndpointGroupRequest
|
@@ -458,6 +461,8 @@ module Aws::GroundStation
|
|
458
461
|
GetDataflowEndpointGroupRequest.add_member(:dataflow_endpoint_group_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location: "uri", location_name: "dataflowEndpointGroupId"))
|
459
462
|
GetDataflowEndpointGroupRequest.struct_class = Types::GetDataflowEndpointGroupRequest
|
460
463
|
|
464
|
+
GetDataflowEndpointGroupResponse.add_member(:contact_post_pass_duration_seconds, Shapes::ShapeRef.new(shape: DataflowEndpointGroupDurationInSeconds, location_name: "contactPostPassDurationSeconds"))
|
465
|
+
GetDataflowEndpointGroupResponse.add_member(:contact_pre_pass_duration_seconds, Shapes::ShapeRef.new(shape: DataflowEndpointGroupDurationInSeconds, location_name: "contactPrePassDurationSeconds"))
|
461
466
|
GetDataflowEndpointGroupResponse.add_member(:dataflow_endpoint_group_arn, Shapes::ShapeRef.new(shape: DataflowEndpointGroupArn, location_name: "dataflowEndpointGroupArn"))
|
462
467
|
GetDataflowEndpointGroupResponse.add_member(:dataflow_endpoint_group_id, Shapes::ShapeRef.new(shape: Uuid, location_name: "dataflowEndpointGroupId"))
|
463
468
|
GetDataflowEndpointGroupResponse.add_member(:endpoints_details, Shapes::ShapeRef.new(shape: EndpointDetailsList, location_name: "endpointsDetails"))
|
@@ -50,6 +50,9 @@ module Aws::GroundStation
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -15,7 +15,7 @@ module Aws::GroundStation
|
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
17
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
19
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
20
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
21
|
end
|
@@ -363,6 +363,18 @@ module Aws::GroundStation
|
|
363
363
|
include Aws::Structure
|
364
364
|
end
|
365
365
|
|
366
|
+
# @!attribute [rw] contact_post_pass_duration_seconds
|
367
|
+
# Amount of time, in seconds, after a contact ends for the contact to
|
368
|
+
# remain in a `POSTPASS` state. A CloudWatch event is emitted when the
|
369
|
+
# contact enters and exits the `POSTPASS` state.
|
370
|
+
# @return [Integer]
|
371
|
+
#
|
372
|
+
# @!attribute [rw] contact_pre_pass_duration_seconds
|
373
|
+
# Amount of time, in seconds, prior to contact start for the contact
|
374
|
+
# to remain in a `PREPASS` state. A CloudWatch event is emitted when
|
375
|
+
# the contact enters and exits the `PREPASS` state.
|
376
|
+
# @return [Integer]
|
377
|
+
#
|
366
378
|
# @!attribute [rw] endpoint_details
|
367
379
|
# Endpoint details of each endpoint in the dataflow endpoint group.
|
368
380
|
# @return [Array<Types::EndpointDetails>]
|
@@ -374,6 +386,8 @@ module Aws::GroundStation
|
|
374
386
|
# @see http://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/CreateDataflowEndpointGroupRequest AWS API Documentation
|
375
387
|
#
|
376
388
|
class CreateDataflowEndpointGroupRequest < Struct.new(
|
389
|
+
:contact_post_pass_duration_seconds,
|
390
|
+
:contact_pre_pass_duration_seconds,
|
377
391
|
:endpoint_details,
|
378
392
|
:tags)
|
379
393
|
SENSITIVE = []
|
@@ -1232,6 +1246,18 @@ module Aws::GroundStation
|
|
1232
1246
|
include Aws::Structure
|
1233
1247
|
end
|
1234
1248
|
|
1249
|
+
# @!attribute [rw] contact_post_pass_duration_seconds
|
1250
|
+
# Amount of time, in seconds, after a contact ends for the contact to
|
1251
|
+
# remain in a `POSTPASS` state. A CloudWatch event is emitted when the
|
1252
|
+
# contact enters and exits the `POSTPASS` state.
|
1253
|
+
# @return [Integer]
|
1254
|
+
#
|
1255
|
+
# @!attribute [rw] contact_pre_pass_duration_seconds
|
1256
|
+
# Amount of time, in seconds, prior to contact start for the contact
|
1257
|
+
# to remain in a `PREPASS` state. A CloudWatch event is emitted when
|
1258
|
+
# the contact enters and exits the `PREPASS` state.
|
1259
|
+
# @return [Integer]
|
1260
|
+
#
|
1235
1261
|
# @!attribute [rw] dataflow_endpoint_group_arn
|
1236
1262
|
# ARN of a dataflow endpoint group.
|
1237
1263
|
# @return [String]
|
@@ -1251,6 +1277,8 @@ module Aws::GroundStation
|
|
1251
1277
|
# @see http://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetDataflowEndpointGroupResponse AWS API Documentation
|
1252
1278
|
#
|
1253
1279
|
class GetDataflowEndpointGroupResponse < Struct.new(
|
1280
|
+
:contact_post_pass_duration_seconds,
|
1281
|
+
:contact_pre_pass_duration_seconds,
|
1254
1282
|
:dataflow_endpoint_group_arn,
|
1255
1283
|
:dataflow_endpoint_group_id,
|
1256
1284
|
:endpoints_details,
|
@@ -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
|
@@ -16,6 +16,7 @@ require_relative 'aws-sdk-groundstation/client_api'
|
|
16
16
|
require_relative 'aws-sdk-groundstation/plugins/endpoints.rb'
|
17
17
|
require_relative 'aws-sdk-groundstation/client'
|
18
18
|
require_relative 'aws-sdk-groundstation/errors'
|
19
|
+
require_relative 'aws-sdk-groundstation/waiters'
|
19
20
|
require_relative 'aws-sdk-groundstation/resource'
|
20
21
|
require_relative 'aws-sdk-groundstation/endpoint_parameters'
|
21
22
|
require_relative 'aws-sdk-groundstation/endpoint_provider'
|
@@ -52,6 +53,6 @@ require_relative 'aws-sdk-groundstation/customizations'
|
|
52
53
|
# @!group service
|
53
54
|
module Aws::GroundStation
|
54
55
|
|
55
|
-
GEM_VERSION = '1.
|
56
|
+
GEM_VERSION = '1.31.0'
|
56
57
|
|
57
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.
|
4
|
+
version: 1.31.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: 2023-01-
|
11
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- lib/aws-sdk-groundstation/plugins/endpoints.rb
|
67
67
|
- lib/aws-sdk-groundstation/resource.rb
|
68
68
|
- lib/aws-sdk-groundstation/types.rb
|
69
|
+
- lib/aws-sdk-groundstation/waiters.rb
|
69
70
|
homepage: https://github.com/aws/aws-sdk-ruby
|
70
71
|
licenses:
|
71
72
|
- Apache-2.0
|