aws-sdk-transfer 1.49.0 → 1.52.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4dcec53c534ecacf09fc94f69e2df74a13999f50aa80f275128e8d18f76b443
4
- data.tar.gz: 5fbcbbe7e310309089ebdb58bef2285c085fca6aa19858cbf718df923504fb96
3
+ metadata.gz: 0fa6cb0551a45bbf8181b24aa16b6906bc2d484a634c99d9235ed568a41e3052
4
+ data.tar.gz: d8fae405f7cf074190e0d51c130e07d256b28cb68c92756f298b997ee7122f1c
5
5
  SHA512:
6
- metadata.gz: 18a7b532fd07a10853847090bb0c6e940a332ec059bc032ede56fd28fea63013862038c874b1537b905d9be0b1c2aa9f0424d5a3e86ef6309d1784a3c0b56d3a
7
- data.tar.gz: 2f8c878b83effecd7ed1d52698c1b13229477604639a593d3f42a4833febd225bc69d2a74d04a3a55360fb7d8c95e6f0708feeb3908e78967f9e891c802b28c3
6
+ metadata.gz: 3a512a5e6444bf200dc5c516c33794af3458fb60441fa380306dc2ff00710783fe586afbb2ec6f510c98f99c1c5e51b3d2481469fade079e99d1be417ff43c05
7
+ data.tar.gz: d2583c98b553bd682528e547431bf8e3c8c0899ec70b7f23532363a32b90255e6e39ae2fb0c41788c5f4e07087ee274582fa76510dc2adedf9d19f7060c52233
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.52.0 (2022-03-23)
5
+ ------------------
6
+
7
+ * Feature - Documentation updates for AWS Transfer Family to describe how to remove an associated workflow from a server.
8
+
9
+ 1.51.0 (2022-03-10)
10
+ ------------------
11
+
12
+ * Feature - Adding more descriptive error types for managed workflows
13
+
14
+ 1.50.0 (2022-03-04)
15
+ ------------------
16
+
17
+ * Feature - Add waiters for server online and offline.
18
+
4
19
  1.49.0 (2022-02-24)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.49.0
1
+ 1.52.0
@@ -657,8 +657,23 @@ module Aws::Transfer
657
657
  # set, user activity can be viewed in your CloudWatch logs.
658
658
  #
659
659
  # @option params [String] :post_authentication_login_banner
660
+ # Specify a string to display when users connect to a server. This
661
+ # string is displayed after the user authenticates.
662
+ #
663
+ # <note markdown="1"> The SFTP protocol does not support post-authentication display
664
+ # banners.
665
+ #
666
+ # </note>
660
667
  #
661
668
  # @option params [String] :pre_authentication_login_banner
669
+ # Specify a string to display when users connect to a server. This
670
+ # string is displayed before the user authenticates. For example, the
671
+ # following banner displays details about using the system.
672
+ #
673
+ # `This system is for the use of authorized users only. Individuals
674
+ # using this computer system without authority, or in excess of their
675
+ # authority, are subject to having all of their activities on this
676
+ # system monitored and recorded by system personnel.`
662
677
  #
663
678
  # @option params [Array<String>] :protocols
664
679
  # Specifies the file transfer protocol or protocols over which your file
@@ -1363,12 +1378,12 @@ module Aws::Transfer
1363
1378
  # resp.execution.results.steps #=> Array
1364
1379
  # resp.execution.results.steps[0].step_type #=> String, one of "COPY", "CUSTOM", "TAG", "DELETE"
1365
1380
  # resp.execution.results.steps[0].outputs #=> String
1366
- # resp.execution.results.steps[0].error.type #=> String, one of "PERMISSION_DENIED"
1381
+ # resp.execution.results.steps[0].error.type #=> String, one of "PERMISSION_DENIED", "CUSTOM_STEP_FAILED", "THROTTLED", "ALREADY_EXISTS", "NOT_FOUND", "BAD_REQUEST", "TIMEOUT", "INTERNAL_SERVER_ERROR"
1367
1382
  # resp.execution.results.steps[0].error.message #=> String
1368
1383
  # resp.execution.results.on_exception_steps #=> Array
1369
1384
  # resp.execution.results.on_exception_steps[0].step_type #=> String, one of "COPY", "CUSTOM", "TAG", "DELETE"
1370
1385
  # resp.execution.results.on_exception_steps[0].outputs #=> String
1371
- # resp.execution.results.on_exception_steps[0].error.type #=> String, one of "PERMISSION_DENIED"
1386
+ # resp.execution.results.on_exception_steps[0].error.type #=> String, one of "PERMISSION_DENIED", "CUSTOM_STEP_FAILED", "THROTTLED", "ALREADY_EXISTS", "NOT_FOUND", "BAD_REQUEST", "TIMEOUT", "INTERNAL_SERVER_ERROR"
1372
1387
  # resp.execution.results.on_exception_steps[0].error.message #=> String
1373
1388
  #
1374
1389
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeExecution AWS API Documentation
@@ -1483,6 +1498,12 @@ module Aws::Transfer
1483
1498
  # resp.server.workflow_details.on_upload[0].workflow_id #=> String
1484
1499
  # resp.server.workflow_details.on_upload[0].execution_role #=> String
1485
1500
  #
1501
+ #
1502
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1503
+ #
1504
+ # * server_offline
1505
+ # * server_online
1506
+ #
1486
1507
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DescribeServer AWS API Documentation
1487
1508
  #
1488
1509
  # @overload describe_server(params = {})
@@ -2566,8 +2587,23 @@ module Aws::Transfer
2566
2587
  # set, user activity can be viewed in your CloudWatch logs.
2567
2588
  #
2568
2589
  # @option params [String] :post_authentication_login_banner
2590
+ # Specify a string to display when users connect to a server. This
2591
+ # string is displayed after the user authenticates.
2592
+ #
2593
+ # <note markdown="1"> The SFTP protocol does not support post-authentication display
2594
+ # banners.
2595
+ #
2596
+ # </note>
2569
2597
  #
2570
2598
  # @option params [String] :pre_authentication_login_banner
2599
+ # Specify a string to display when users connect to a server. This
2600
+ # string is displayed before the user authenticates. For example, the
2601
+ # following banner displays details about using the system.
2602
+ #
2603
+ # `This system is for the use of authorized users only. Individuals
2604
+ # using this computer system without authority, or in excess of their
2605
+ # authority, are subject to having all of their activities on this
2606
+ # system monitored and recorded by system personnel.`
2571
2607
  #
2572
2608
  # @option params [Array<String>] :protocols
2573
2609
  # Specifies the file transfer protocol or protocols over which your file
@@ -2611,6 +2647,12 @@ module Aws::Transfer
2611
2647
  # Specifies the workflow ID for the workflow to assign and the execution
2612
2648
  # role used for executing the workflow.
2613
2649
  #
2650
+ # To remove an associated workflow from a server, you can provide an
2651
+ # empty `OnUpload` object, as in the following example.
2652
+ #
2653
+ # `aws transfer update-server --server-id s-01234567890abcdef
2654
+ # --workflow-details '\{"OnUpload":[]\}'`
2655
+ #
2614
2656
  # @return [Types::UpdateServerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2615
2657
  #
2616
2658
  # * {Types::UpdateServerResponse#server_id #server_id} => String
@@ -2824,14 +2866,129 @@ module Aws::Transfer
2824
2866
  params: params,
2825
2867
  config: config)
2826
2868
  context[:gem_name] = 'aws-sdk-transfer'
2827
- context[:gem_version] = '1.49.0'
2869
+ context[:gem_version] = '1.52.0'
2828
2870
  Seahorse::Client::Request.new(handlers, context)
2829
2871
  end
2830
2872
 
2873
+ # Polls an API operation until a resource enters a desired state.
2874
+ #
2875
+ # ## Basic Usage
2876
+ #
2877
+ # A waiter will call an API operation until:
2878
+ #
2879
+ # * It is successful
2880
+ # * It enters a terminal state
2881
+ # * It makes the maximum number of attempts
2882
+ #
2883
+ # In between attempts, the waiter will sleep.
2884
+ #
2885
+ # # polls in a loop, sleeping between attempts
2886
+ # client.wait_until(waiter_name, params)
2887
+ #
2888
+ # ## Configuration
2889
+ #
2890
+ # You can configure the maximum number of polling attempts, and the
2891
+ # delay (in seconds) between each polling attempt. You can pass
2892
+ # configuration as the final arguments hash.
2893
+ #
2894
+ # # poll for ~25 seconds
2895
+ # client.wait_until(waiter_name, params, {
2896
+ # max_attempts: 5,
2897
+ # delay: 5,
2898
+ # })
2899
+ #
2900
+ # ## Callbacks
2901
+ #
2902
+ # You can be notified before each polling attempt and before each
2903
+ # delay. If you throw `:success` or `:failure` from these callbacks,
2904
+ # it will terminate the waiter.
2905
+ #
2906
+ # started_at = Time.now
2907
+ # client.wait_until(waiter_name, params, {
2908
+ #
2909
+ # # disable max attempts
2910
+ # max_attempts: nil,
2911
+ #
2912
+ # # poll for 1 hour, instead of a number of attempts
2913
+ # before_wait: -> (attempts, response) do
2914
+ # throw :failure if Time.now - started_at > 3600
2915
+ # end
2916
+ # })
2917
+ #
2918
+ # ## Handling Errors
2919
+ #
2920
+ # When a waiter is unsuccessful, it will raise an error.
2921
+ # All of the failure errors extend from
2922
+ # {Aws::Waiters::Errors::WaiterFailed}.
2923
+ #
2924
+ # begin
2925
+ # client.wait_until(...)
2926
+ # rescue Aws::Waiters::Errors::WaiterFailed
2927
+ # # resource did not enter the desired state in time
2928
+ # end
2929
+ #
2930
+ # ## Valid Waiters
2931
+ #
2932
+ # The following table lists the valid waiter names, the operations they call,
2933
+ # and the default `:delay` and `:max_attempts` values.
2934
+ #
2935
+ # | waiter_name | params | :delay | :max_attempts |
2936
+ # | -------------- | ------------------------ | -------- | ------------- |
2937
+ # | server_offline | {Client#describe_server} | 30 | 120 |
2938
+ # | server_online | {Client#describe_server} | 30 | 120 |
2939
+ #
2940
+ # @raise [Errors::FailureStateError] Raised when the waiter terminates
2941
+ # because the waiter has entered a state that it will not transition
2942
+ # out of, preventing success.
2943
+ #
2944
+ # @raise [Errors::TooManyAttemptsError] Raised when the configured
2945
+ # maximum number of attempts have been made, and the waiter is not
2946
+ # yet successful.
2947
+ #
2948
+ # @raise [Errors::UnexpectedError] Raised when an error is encounted
2949
+ # while polling for a resource that is not expected.
2950
+ #
2951
+ # @raise [Errors::NoSuchWaiterError] Raised when you request to wait
2952
+ # for an unknown state.
2953
+ #
2954
+ # @return [Boolean] Returns `true` if the waiter was successful.
2955
+ # @param [Symbol] waiter_name
2956
+ # @param [Hash] params ({})
2957
+ # @param [Hash] options ({})
2958
+ # @option options [Integer] :max_attempts
2959
+ # @option options [Integer] :delay
2960
+ # @option options [Proc] :before_attempt
2961
+ # @option options [Proc] :before_wait
2962
+ def wait_until(waiter_name, params = {}, options = {})
2963
+ w = waiter(waiter_name, options)
2964
+ yield(w.waiter) if block_given? # deprecated
2965
+ w.wait(params)
2966
+ end
2967
+
2831
2968
  # @api private
2832
2969
  # @deprecated
2833
2970
  def waiter_names
2834
- []
2971
+ waiters.keys
2972
+ end
2973
+
2974
+ private
2975
+
2976
+ # @param [Symbol] waiter_name
2977
+ # @param [Hash] options ({})
2978
+ def waiter(waiter_name, options = {})
2979
+ waiter_class = waiters[waiter_name]
2980
+ if waiter_class
2981
+ waiter_class.new(options.merge(client: self))
2982
+ else
2983
+ raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
2984
+ end
2985
+ end
2986
+
2987
+ def waiters
2988
+ {
2989
+ server_offline: Waiters::ServerOffline,
2990
+ server_online: Waiters::ServerOnline
2991
+ }
2835
2992
  end
2836
2993
 
2837
2994
  class << self
@@ -465,9 +465,24 @@ module Aws::Transfer
465
465
  # @return [String]
466
466
  #
467
467
  # @!attribute [rw] post_authentication_login_banner
468
+ # Specify a string to display when users connect to a server. This
469
+ # string is displayed after the user authenticates.
470
+ #
471
+ # <note markdown="1"> The SFTP protocol does not support post-authentication display
472
+ # banners.
473
+ #
474
+ # </note>
468
475
  # @return [String]
469
476
  #
470
477
  # @!attribute [rw] pre_authentication_login_banner
478
+ # Specify a string to display when users connect to a server. This
479
+ # string is displayed before the user authenticates. For example, the
480
+ # following banner displays details about using the system.
481
+ #
482
+ # `This system is for the use of authorized users only. Individuals
483
+ # using this computer system without authority, or in excess of their
484
+ # authority, are subject to having all of their activities on this
485
+ # system monitored and recorded by system personnel.`
471
486
  # @return [String]
472
487
  #
473
488
  # @!attribute [rw] protocols
@@ -1669,9 +1684,24 @@ module Aws::Transfer
1669
1684
  # @return [String]
1670
1685
  #
1671
1686
  # @!attribute [rw] post_authentication_login_banner
1687
+ # Specify a string to display when users connect to a server. This
1688
+ # string is displayed after the user authenticates.
1689
+ #
1690
+ # <note markdown="1"> The SFTP protocol does not support post-authentication display
1691
+ # banners.
1692
+ #
1693
+ # </note>
1672
1694
  # @return [String]
1673
1695
  #
1674
1696
  # @!attribute [rw] pre_authentication_login_banner
1697
+ # Specify a string to display when users connect to a server. This
1698
+ # string is displayed before the user authenticates. For example, the
1699
+ # following banner displays details about using the system.
1700
+ #
1701
+ # `This system is for the use of authorized users only. Individuals
1702
+ # using this computer system without authority, or in excess of their
1703
+ # authority, are subject to having all of their activities on this
1704
+ # system monitored and recorded by system personnel.`
1675
1705
  # @return [String]
1676
1706
  #
1677
1707
  # @!attribute [rw] protocols
@@ -2027,10 +2057,38 @@ module Aws::Transfer
2027
2057
  # the execution of the workflow.
2028
2058
  #
2029
2059
  # @!attribute [rw] type
2030
- # Specifies the error type: currently, the only valid value is
2031
- # `PERMISSION_DENIED`, which occurs if your policy does not contain
2032
- # the correct permissions to complete one or more of the steps in the
2033
- # workflow.
2060
+ # Specifies the error type.
2061
+ #
2062
+ # * `ALREADY_EXISTS`\: occurs for a copy step, if the overwrite option
2063
+ # is not selected and a file with the same name already exists in
2064
+ # the target location.
2065
+ #
2066
+ # * `BAD_REQUEST`\: a general bad request: for example, a step that
2067
+ # attempts to tag an EFS file returns `BAD_REQUEST`, as only S3
2068
+ # files can be tagged.
2069
+ #
2070
+ # * `CUSTOM_STEP_FAILED`\: occurs when the custom step provided a
2071
+ # callback that indicates failure.
2072
+ #
2073
+ # * `INTERNAL_SERVER_ERROR`\: a catch-all error that can occur for a
2074
+ # variety of reasons.
2075
+ #
2076
+ # * `NOT_FOUND`\: occurs when a requested entity, for example a source
2077
+ # file for a copy step, does not exist.
2078
+ #
2079
+ # * `PERMISSION_DENIED`\: occurs if your policy does not contain the
2080
+ # correct permissions to complete one or more of the steps in the
2081
+ # workflow.
2082
+ #
2083
+ # * `TIMEOUT`\: occurs when the execution times out.
2084
+ #
2085
+ # <note markdown="1"> You can set the `TimeoutSeconds` for a custom step, anywhere from
2086
+ # 1 second to 1800 seconds (30 minutes).
2087
+ #
2088
+ # </note>
2089
+ #
2090
+ # * `THROTTLED`\: occurs if you exceed the new execution refill rate
2091
+ # of one workflow per second.
2034
2092
  # @return [String]
2035
2093
  #
2036
2094
  # @!attribute [rw] message
@@ -4031,9 +4089,24 @@ module Aws::Transfer
4031
4089
  # @return [String]
4032
4090
  #
4033
4091
  # @!attribute [rw] post_authentication_login_banner
4092
+ # Specify a string to display when users connect to a server. This
4093
+ # string is displayed after the user authenticates.
4094
+ #
4095
+ # <note markdown="1"> The SFTP protocol does not support post-authentication display
4096
+ # banners.
4097
+ #
4098
+ # </note>
4034
4099
  # @return [String]
4035
4100
  #
4036
4101
  # @!attribute [rw] pre_authentication_login_banner
4102
+ # Specify a string to display when users connect to a server. This
4103
+ # string is displayed before the user authenticates. For example, the
4104
+ # following banner displays details about using the system.
4105
+ #
4106
+ # `This system is for the use of authorized users only. Individuals
4107
+ # using this computer system without authority, or in excess of their
4108
+ # authority, are subject to having all of their activities on this
4109
+ # system monitored and recorded by system personnel.`
4037
4110
  # @return [String]
4038
4111
  #
4039
4112
  # @!attribute [rw] protocols
@@ -4080,6 +4153,12 @@ module Aws::Transfer
4080
4153
  # @!attribute [rw] workflow_details
4081
4154
  # Specifies the workflow ID for the workflow to assign and the
4082
4155
  # execution role used for executing the workflow.
4156
+ #
4157
+ # To remove an associated workflow from a server, you can provide an
4158
+ # empty `OnUpload` object, as in the following example.
4159
+ #
4160
+ # `aws transfer update-server --server-id s-01234567890abcdef
4161
+ # --workflow-details '\{"OnUpload":[]\}'`
4083
4162
  # @return [Types::WorkflowDetails]
4084
4163
  #
4085
4164
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateServerRequest AWS API Documentation
@@ -4357,6 +4436,12 @@ module Aws::Transfer
4357
4436
  # @!attribute [rw] on_upload
4358
4437
  # A trigger that starts a workflow: the workflow begins to execute
4359
4438
  # after a file is uploaded.
4439
+ #
4440
+ # To remove an associated workflow from a server, you can provide an
4441
+ # empty `OnUpload` object, as in the following example.
4442
+ #
4443
+ # `aws transfer update-server --server-id s-01234567890abcdef
4444
+ # --workflow-details '\{"OnUpload":[]\}'`
4360
4445
  # @return [Array<Types::WorkflowDetail>]
4361
4446
  #
4362
4447
  # @see http://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/WorkflowDetails AWS API Documentation
@@ -0,0 +1,165 @@
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::Transfer
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
+ # | server_offline | {Client#describe_server} | 30 | 120 |
73
+ # | server_online | {Client#describe_server} | 30 | 120 |
74
+ #
75
+ module Waiters
76
+
77
+ class ServerOffline
78
+
79
+ # @param [Hash] options
80
+ # @option options [required, Client] :client
81
+ # @option options [Integer] :max_attempts (120)
82
+ # @option options [Integer] :delay (30)
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: 120,
89
+ delay: 30,
90
+ poller: Aws::Waiters::Poller.new(
91
+ operation_name: :describe_server,
92
+ acceptors: [
93
+ {
94
+ "argument" => "server.state",
95
+ "expected" => "OFFLINE",
96
+ "matcher" => "path",
97
+ "state" => "success"
98
+ },
99
+ {
100
+ "argument" => "server.state",
101
+ "expected" => "STOP_FAILED",
102
+ "matcher" => "path",
103
+ "state" => "failure"
104
+ }
105
+ ]
106
+ )
107
+ }.merge(options))
108
+ end
109
+
110
+ # @option (see Client#describe_server)
111
+ # @return (see Client#describe_server)
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
+
121
+ class ServerOnline
122
+
123
+ # @param [Hash] options
124
+ # @option options [required, Client] :client
125
+ # @option options [Integer] :max_attempts (120)
126
+ # @option options [Integer] :delay (30)
127
+ # @option options [Proc] :before_attempt
128
+ # @option options [Proc] :before_wait
129
+ def initialize(options)
130
+ @client = options.fetch(:client)
131
+ @waiter = Aws::Waiters::Waiter.new({
132
+ max_attempts: 120,
133
+ delay: 30,
134
+ poller: Aws::Waiters::Poller.new(
135
+ operation_name: :describe_server,
136
+ acceptors: [
137
+ {
138
+ "argument" => "server.state",
139
+ "expected" => "ONLINE",
140
+ "matcher" => "path",
141
+ "state" => "success"
142
+ },
143
+ {
144
+ "argument" => "server.state",
145
+ "expected" => "START_FAILED",
146
+ "matcher" => "path",
147
+ "state" => "failure"
148
+ }
149
+ ]
150
+ )
151
+ }.merge(options))
152
+ end
153
+
154
+ # @option (see Client#describe_server)
155
+ # @return (see Client#describe_server)
156
+ def wait(params = {})
157
+ @waiter.wait(client: @client, params: params)
158
+ end
159
+
160
+ # @api private
161
+ attr_reader :waiter
162
+
163
+ end
164
+ end
165
+ end
@@ -15,6 +15,7 @@ require_relative 'aws-sdk-transfer/types'
15
15
  require_relative 'aws-sdk-transfer/client_api'
16
16
  require_relative 'aws-sdk-transfer/client'
17
17
  require_relative 'aws-sdk-transfer/errors'
18
+ require_relative 'aws-sdk-transfer/waiters'
18
19
  require_relative 'aws-sdk-transfer/resource'
19
20
  require_relative 'aws-sdk-transfer/customizations'
20
21
 
@@ -48,6 +49,6 @@ require_relative 'aws-sdk-transfer/customizations'
48
49
  # @!group service
49
50
  module Aws::Transfer
50
51
 
51
- GEM_VERSION = '1.49.0'
52
+ GEM_VERSION = '1.52.0'
52
53
 
53
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-transfer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.49.0
4
+ version: 1.52.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: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -62,6 +62,7 @@ files:
62
62
  - lib/aws-sdk-transfer/errors.rb
63
63
  - lib/aws-sdk-transfer/resource.rb
64
64
  - lib/aws-sdk-transfer/types.rb
65
+ - lib/aws-sdk-transfer/waiters.rb
65
66
  homepage: https://github.com/aws/aws-sdk-ruby
66
67
  licenses:
67
68
  - Apache-2.0