aws-sdk-lexmodelsv2 1.5.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexmodelsv2.rb +2 -1
- data/lib/aws-sdk-lexmodelsv2/client.rb +176 -2
- data/lib/aws-sdk-lexmodelsv2/client_api.rb +3 -0
- data/lib/aws-sdk-lexmodelsv2/types.rb +40 -4
- data/lib/aws-sdk-lexmodelsv2/waiters.rb +532 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aefbfa1afbd478c99d8a70cf8b410f5b16723e55b8ea024cd2682386798a0b77
|
4
|
+
data.tar.gz: 93799d24b0af94543bccfd71f26e940a513a90662c45980f20f40589735939ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be2f4a26cb9f4a3b83ce3c15799334b6420d0639de74178ffa0f43b92bf896e978de9ff92972e7d0cf20dd468dcfba65d1adee9583c66b51f0115a073f4006bc
|
7
|
+
data.tar.gz: 542c598c70f406c4e108768acc8bdb38fcf0720a3f561888f285a03c9cb1d67ea14ff0a58595f6ff9b17c838dfe7108fb58aaeae5ac9199861986d24f33b534b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.9.0 (2021-08-05)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Customers can now toggle the active field on prompts and responses.
|
8
|
+
|
9
|
+
1.8.0 (2021-07-30)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.7.0 (2021-07-28)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.6.0 (2021-07-27)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Add waiters that automatically poll for resource status for asynchronous operations, such as building a bot
|
23
|
+
|
4
24
|
1.5.0 (2021-06-15)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.9.0
|
data/lib/aws-sdk-lexmodelsv2.rb
CHANGED
@@ -15,6 +15,7 @@ require_relative 'aws-sdk-lexmodelsv2/types'
|
|
15
15
|
require_relative 'aws-sdk-lexmodelsv2/client_api'
|
16
16
|
require_relative 'aws-sdk-lexmodelsv2/client'
|
17
17
|
require_relative 'aws-sdk-lexmodelsv2/errors'
|
18
|
+
require_relative 'aws-sdk-lexmodelsv2/waiters'
|
18
19
|
require_relative 'aws-sdk-lexmodelsv2/resource'
|
19
20
|
require_relative 'aws-sdk-lexmodelsv2/customizations'
|
20
21
|
|
@@ -48,6 +49,6 @@ require_relative 'aws-sdk-lexmodelsv2/customizations'
|
|
48
49
|
# @!group service
|
49
50
|
module Aws::LexModelsV2
|
50
51
|
|
51
|
-
GEM_VERSION = '1.
|
52
|
+
GEM_VERSION = '1.9.0'
|
52
53
|
|
53
54
|
end
|
@@ -1130,6 +1130,7 @@ module Aws::LexModelsV2
|
|
1130
1130
|
# ],
|
1131
1131
|
# allow_interrupt: false,
|
1132
1132
|
# },
|
1133
|
+
# active: false,
|
1133
1134
|
# },
|
1134
1135
|
# intent_closing_setting: {
|
1135
1136
|
# closing_response: { # required
|
@@ -1185,6 +1186,7 @@ module Aws::LexModelsV2
|
|
1185
1186
|
# ],
|
1186
1187
|
# allow_interrupt: false,
|
1187
1188
|
# },
|
1189
|
+
# active: false,
|
1188
1190
|
# },
|
1189
1191
|
# input_contexts: [
|
1190
1192
|
# {
|
@@ -1261,6 +1263,7 @@ module Aws::LexModelsV2
|
|
1261
1263
|
# resp.intent_confirmation_setting.declination_response.message_groups[0].variations[0].image_response_card.buttons[0].text #=> String
|
1262
1264
|
# resp.intent_confirmation_setting.declination_response.message_groups[0].variations[0].image_response_card.buttons[0].value #=> String
|
1263
1265
|
# resp.intent_confirmation_setting.declination_response.allow_interrupt #=> Boolean
|
1266
|
+
# resp.intent_confirmation_setting.active #=> Boolean
|
1264
1267
|
# resp.intent_closing_setting.closing_response.message_groups #=> Array
|
1265
1268
|
# resp.intent_closing_setting.closing_response.message_groups[0].message.plain_text_message.value #=> String
|
1266
1269
|
# resp.intent_closing_setting.closing_response.message_groups[0].message.custom_payload.value #=> String
|
@@ -1282,6 +1285,7 @@ module Aws::LexModelsV2
|
|
1282
1285
|
# resp.intent_closing_setting.closing_response.message_groups[0].variations[0].image_response_card.buttons[0].text #=> String
|
1283
1286
|
# resp.intent_closing_setting.closing_response.message_groups[0].variations[0].image_response_card.buttons[0].value #=> String
|
1284
1287
|
# resp.intent_closing_setting.closing_response.allow_interrupt #=> Boolean
|
1288
|
+
# resp.intent_closing_setting.active #=> Boolean
|
1285
1289
|
# resp.input_contexts #=> Array
|
1286
1290
|
# resp.input_contexts[0].name #=> String
|
1287
1291
|
# resp.output_contexts #=> Array
|
@@ -1761,6 +1765,7 @@ module Aws::LexModelsV2
|
|
1761
1765
|
# timeout_in_seconds: 1, # required
|
1762
1766
|
# allow_interrupt: false,
|
1763
1767
|
# },
|
1768
|
+
# active: false,
|
1764
1769
|
# },
|
1765
1770
|
# },
|
1766
1771
|
# obfuscation_setting: {
|
@@ -1873,6 +1878,7 @@ module Aws::LexModelsV2
|
|
1873
1878
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.frequency_in_seconds #=> Integer
|
1874
1879
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.timeout_in_seconds #=> Integer
|
1875
1880
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.allow_interrupt #=> Boolean
|
1881
|
+
# resp.value_elicitation_setting.wait_and_continue_specification.active #=> Boolean
|
1876
1882
|
# resp.obfuscation_setting.obfuscation_setting_type #=> String, one of "None", "DefaultObfuscation"
|
1877
1883
|
# resp.bot_id #=> String
|
1878
1884
|
# resp.bot_version #=> String
|
@@ -2541,6 +2547,11 @@ module Aws::LexModelsV2
|
|
2541
2547
|
# resp.creation_date_time #=> Time
|
2542
2548
|
# resp.last_updated_date_time #=> Time
|
2543
2549
|
#
|
2550
|
+
#
|
2551
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2552
|
+
#
|
2553
|
+
# * bot_available
|
2554
|
+
#
|
2544
2555
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBot AWS API Documentation
|
2545
2556
|
#
|
2546
2557
|
# @overload describe_bot(params = {})
|
@@ -2609,6 +2620,11 @@ module Aws::LexModelsV2
|
|
2609
2620
|
# resp.creation_date_time #=> Time
|
2610
2621
|
# resp.last_updated_date_time #=> Time
|
2611
2622
|
#
|
2623
|
+
#
|
2624
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2625
|
+
#
|
2626
|
+
# * bot_alias_available
|
2627
|
+
#
|
2612
2628
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotAlias AWS API Documentation
|
2613
2629
|
#
|
2614
2630
|
# @overload describe_bot_alias(params = {})
|
@@ -2682,6 +2698,13 @@ module Aws::LexModelsV2
|
|
2682
2698
|
# resp.bot_locale_history_events[0].event #=> String
|
2683
2699
|
# resp.bot_locale_history_events[0].event_date #=> Time
|
2684
2700
|
#
|
2701
|
+
#
|
2702
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2703
|
+
#
|
2704
|
+
# * bot_locale_built
|
2705
|
+
# * bot_locale_created
|
2706
|
+
# * bot_locale_express_testing_available
|
2707
|
+
#
|
2685
2708
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotLocale AWS API Documentation
|
2686
2709
|
#
|
2687
2710
|
# @overload describe_bot_locale(params = {})
|
@@ -2734,6 +2757,11 @@ module Aws::LexModelsV2
|
|
2734
2757
|
# resp.failure_reasons[0] #=> String
|
2735
2758
|
# resp.creation_date_time #=> Time
|
2736
2759
|
#
|
2760
|
+
#
|
2761
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2762
|
+
#
|
2763
|
+
# * bot_version_available
|
2764
|
+
#
|
2737
2765
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotVersion AWS API Documentation
|
2738
2766
|
#
|
2739
2767
|
# @overload describe_bot_version(params = {})
|
@@ -2781,6 +2809,11 @@ module Aws::LexModelsV2
|
|
2781
2809
|
# resp.creation_date_time #=> Time
|
2782
2810
|
# resp.last_updated_date_time #=> Time
|
2783
2811
|
#
|
2812
|
+
#
|
2813
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2814
|
+
#
|
2815
|
+
# * bot_export_completed
|
2816
|
+
#
|
2784
2817
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeExport AWS API Documentation
|
2785
2818
|
#
|
2786
2819
|
# @overload describe_export(params = {})
|
@@ -2838,6 +2871,11 @@ module Aws::LexModelsV2
|
|
2838
2871
|
# resp.creation_date_time #=> Time
|
2839
2872
|
# resp.last_updated_date_time #=> Time
|
2840
2873
|
#
|
2874
|
+
#
|
2875
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
2876
|
+
#
|
2877
|
+
# * bot_import_completed
|
2878
|
+
#
|
2841
2879
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeImport AWS API Documentation
|
2842
2880
|
#
|
2843
2881
|
# @overload describe_import(params = {})
|
@@ -2953,6 +2991,7 @@ module Aws::LexModelsV2
|
|
2953
2991
|
# resp.intent_confirmation_setting.declination_response.message_groups[0].variations[0].image_response_card.buttons[0].text #=> String
|
2954
2992
|
# resp.intent_confirmation_setting.declination_response.message_groups[0].variations[0].image_response_card.buttons[0].value #=> String
|
2955
2993
|
# resp.intent_confirmation_setting.declination_response.allow_interrupt #=> Boolean
|
2994
|
+
# resp.intent_confirmation_setting.active #=> Boolean
|
2956
2995
|
# resp.intent_closing_setting.closing_response.message_groups #=> Array
|
2957
2996
|
# resp.intent_closing_setting.closing_response.message_groups[0].message.plain_text_message.value #=> String
|
2958
2997
|
# resp.intent_closing_setting.closing_response.message_groups[0].message.custom_payload.value #=> String
|
@@ -2974,6 +3013,7 @@ module Aws::LexModelsV2
|
|
2974
3013
|
# resp.intent_closing_setting.closing_response.message_groups[0].variations[0].image_response_card.buttons[0].text #=> String
|
2975
3014
|
# resp.intent_closing_setting.closing_response.message_groups[0].variations[0].image_response_card.buttons[0].value #=> String
|
2976
3015
|
# resp.intent_closing_setting.closing_response.allow_interrupt #=> Boolean
|
3016
|
+
# resp.intent_closing_setting.active #=> Boolean
|
2977
3017
|
# resp.input_contexts #=> Array
|
2978
3018
|
# resp.input_contexts[0].name #=> String
|
2979
3019
|
# resp.output_contexts #=> Array
|
@@ -3178,6 +3218,7 @@ module Aws::LexModelsV2
|
|
3178
3218
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.frequency_in_seconds #=> Integer
|
3179
3219
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.timeout_in_seconds #=> Integer
|
3180
3220
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.allow_interrupt #=> Boolean
|
3221
|
+
# resp.value_elicitation_setting.wait_and_continue_specification.active #=> Boolean
|
3181
3222
|
# resp.obfuscation_setting.obfuscation_setting_type #=> String, one of "None", "DefaultObfuscation"
|
3182
3223
|
# resp.bot_id #=> String
|
3183
3224
|
# resp.bot_version #=> String
|
@@ -4876,6 +4917,7 @@ module Aws::LexModelsV2
|
|
4876
4917
|
# ],
|
4877
4918
|
# allow_interrupt: false,
|
4878
4919
|
# },
|
4920
|
+
# active: false,
|
4879
4921
|
# },
|
4880
4922
|
# intent_closing_setting: {
|
4881
4923
|
# closing_response: { # required
|
@@ -4931,6 +4973,7 @@ module Aws::LexModelsV2
|
|
4931
4973
|
# ],
|
4932
4974
|
# allow_interrupt: false,
|
4933
4975
|
# },
|
4976
|
+
# active: false,
|
4934
4977
|
# },
|
4935
4978
|
# input_contexts: [
|
4936
4979
|
# {
|
@@ -5010,6 +5053,7 @@ module Aws::LexModelsV2
|
|
5010
5053
|
# resp.intent_confirmation_setting.declination_response.message_groups[0].variations[0].image_response_card.buttons[0].text #=> String
|
5011
5054
|
# resp.intent_confirmation_setting.declination_response.message_groups[0].variations[0].image_response_card.buttons[0].value #=> String
|
5012
5055
|
# resp.intent_confirmation_setting.declination_response.allow_interrupt #=> Boolean
|
5056
|
+
# resp.intent_confirmation_setting.active #=> Boolean
|
5013
5057
|
# resp.intent_closing_setting.closing_response.message_groups #=> Array
|
5014
5058
|
# resp.intent_closing_setting.closing_response.message_groups[0].message.plain_text_message.value #=> String
|
5015
5059
|
# resp.intent_closing_setting.closing_response.message_groups[0].message.custom_payload.value #=> String
|
@@ -5031,6 +5075,7 @@ module Aws::LexModelsV2
|
|
5031
5075
|
# resp.intent_closing_setting.closing_response.message_groups[0].variations[0].image_response_card.buttons[0].text #=> String
|
5032
5076
|
# resp.intent_closing_setting.closing_response.message_groups[0].variations[0].image_response_card.buttons[0].value #=> String
|
5033
5077
|
# resp.intent_closing_setting.closing_response.allow_interrupt #=> Boolean
|
5078
|
+
# resp.intent_closing_setting.active #=> Boolean
|
5034
5079
|
# resp.input_contexts #=> Array
|
5035
5080
|
# resp.input_contexts[0].name #=> String
|
5036
5081
|
# resp.output_contexts #=> Array
|
@@ -5414,6 +5459,7 @@ module Aws::LexModelsV2
|
|
5414
5459
|
# timeout_in_seconds: 1, # required
|
5415
5460
|
# allow_interrupt: false,
|
5416
5461
|
# },
|
5462
|
+
# active: false,
|
5417
5463
|
# },
|
5418
5464
|
# },
|
5419
5465
|
# obfuscation_setting: {
|
@@ -5526,6 +5572,7 @@ module Aws::LexModelsV2
|
|
5526
5572
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.frequency_in_seconds #=> Integer
|
5527
5573
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.timeout_in_seconds #=> Integer
|
5528
5574
|
# resp.value_elicitation_setting.wait_and_continue_specification.still_waiting_response.allow_interrupt #=> Boolean
|
5575
|
+
# resp.value_elicitation_setting.wait_and_continue_specification.active #=> Boolean
|
5529
5576
|
# resp.obfuscation_setting.obfuscation_setting_type #=> String, one of "None", "DefaultObfuscation"
|
5530
5577
|
# resp.bot_id #=> String
|
5531
5578
|
# resp.bot_version #=> String
|
@@ -5666,14 +5713,141 @@ module Aws::LexModelsV2
|
|
5666
5713
|
params: params,
|
5667
5714
|
config: config)
|
5668
5715
|
context[:gem_name] = 'aws-sdk-lexmodelsv2'
|
5669
|
-
context[:gem_version] = '1.
|
5716
|
+
context[:gem_version] = '1.9.0'
|
5670
5717
|
Seahorse::Client::Request.new(handlers, context)
|
5671
5718
|
end
|
5672
5719
|
|
5720
|
+
# Polls an API operation until a resource enters a desired state.
|
5721
|
+
#
|
5722
|
+
# ## Basic Usage
|
5723
|
+
#
|
5724
|
+
# A waiter will call an API operation until:
|
5725
|
+
#
|
5726
|
+
# * It is successful
|
5727
|
+
# * It enters a terminal state
|
5728
|
+
# * It makes the maximum number of attempts
|
5729
|
+
#
|
5730
|
+
# In between attempts, the waiter will sleep.
|
5731
|
+
#
|
5732
|
+
# # polls in a loop, sleeping between attempts
|
5733
|
+
# client.wait_until(waiter_name, params)
|
5734
|
+
#
|
5735
|
+
# ## Configuration
|
5736
|
+
#
|
5737
|
+
# You can configure the maximum number of polling attempts, and the
|
5738
|
+
# delay (in seconds) between each polling attempt. You can pass
|
5739
|
+
# configuration as the final arguments hash.
|
5740
|
+
#
|
5741
|
+
# # poll for ~25 seconds
|
5742
|
+
# client.wait_until(waiter_name, params, {
|
5743
|
+
# max_attempts: 5,
|
5744
|
+
# delay: 5,
|
5745
|
+
# })
|
5746
|
+
#
|
5747
|
+
# ## Callbacks
|
5748
|
+
#
|
5749
|
+
# You can be notified before each polling attempt and before each
|
5750
|
+
# delay. If you throw `:success` or `:failure` from these callbacks,
|
5751
|
+
# it will terminate the waiter.
|
5752
|
+
#
|
5753
|
+
# started_at = Time.now
|
5754
|
+
# client.wait_until(waiter_name, params, {
|
5755
|
+
#
|
5756
|
+
# # disable max attempts
|
5757
|
+
# max_attempts: nil,
|
5758
|
+
#
|
5759
|
+
# # poll for 1 hour, instead of a number of attempts
|
5760
|
+
# before_wait: -> (attempts, response) do
|
5761
|
+
# throw :failure if Time.now - started_at > 3600
|
5762
|
+
# end
|
5763
|
+
# })
|
5764
|
+
#
|
5765
|
+
# ## Handling Errors
|
5766
|
+
#
|
5767
|
+
# When a waiter is unsuccessful, it will raise an error.
|
5768
|
+
# All of the failure errors extend from
|
5769
|
+
# {Aws::Waiters::Errors::WaiterFailed}.
|
5770
|
+
#
|
5771
|
+
# begin
|
5772
|
+
# client.wait_until(...)
|
5773
|
+
# rescue Aws::Waiters::Errors::WaiterFailed
|
5774
|
+
# # resource did not enter the desired state in time
|
5775
|
+
# end
|
5776
|
+
#
|
5777
|
+
# ## Valid Waiters
|
5778
|
+
#
|
5779
|
+
# The following table lists the valid waiter names, the operations they call,
|
5780
|
+
# and the default `:delay` and `:max_attempts` values.
|
5781
|
+
#
|
5782
|
+
# | waiter_name | params | :delay | :max_attempts |
|
5783
|
+
# | ------------------------------------ | ----------------------------- | -------- | ------------- |
|
5784
|
+
# | bot_alias_available | {Client#describe_bot_alias} | 10 | 35 |
|
5785
|
+
# | bot_available | {Client#describe_bot} | 10 | 35 |
|
5786
|
+
# | bot_export_completed | {Client#describe_export} | 10 | 35 |
|
5787
|
+
# | bot_import_completed | {Client#describe_import} | 10 | 35 |
|
5788
|
+
# | bot_locale_built | {Client#describe_bot_locale} | 10 | 35 |
|
5789
|
+
# | bot_locale_created | {Client#describe_bot_locale} | 10 | 35 |
|
5790
|
+
# | bot_locale_express_testing_available | {Client#describe_bot_locale} | 10 | 35 |
|
5791
|
+
# | bot_version_available | {Client#describe_bot_version} | 10 | 35 |
|
5792
|
+
#
|
5793
|
+
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
5794
|
+
# because the waiter has entered a state that it will not transition
|
5795
|
+
# out of, preventing success.
|
5796
|
+
#
|
5797
|
+
# @raise [Errors::TooManyAttemptsError] Raised when the configured
|
5798
|
+
# maximum number of attempts have been made, and the waiter is not
|
5799
|
+
# yet successful.
|
5800
|
+
#
|
5801
|
+
# @raise [Errors::UnexpectedError] Raised when an error is encounted
|
5802
|
+
# while polling for a resource that is not expected.
|
5803
|
+
#
|
5804
|
+
# @raise [Errors::NoSuchWaiterError] Raised when you request to wait
|
5805
|
+
# for an unknown state.
|
5806
|
+
#
|
5807
|
+
# @return [Boolean] Returns `true` if the waiter was successful.
|
5808
|
+
# @param [Symbol] waiter_name
|
5809
|
+
# @param [Hash] params ({})
|
5810
|
+
# @param [Hash] options ({})
|
5811
|
+
# @option options [Integer] :max_attempts
|
5812
|
+
# @option options [Integer] :delay
|
5813
|
+
# @option options [Proc] :before_attempt
|
5814
|
+
# @option options [Proc] :before_wait
|
5815
|
+
def wait_until(waiter_name, params = {}, options = {})
|
5816
|
+
w = waiter(waiter_name, options)
|
5817
|
+
yield(w.waiter) if block_given? # deprecated
|
5818
|
+
w.wait(params)
|
5819
|
+
end
|
5820
|
+
|
5673
5821
|
# @api private
|
5674
5822
|
# @deprecated
|
5675
5823
|
def waiter_names
|
5676
|
-
|
5824
|
+
waiters.keys
|
5825
|
+
end
|
5826
|
+
|
5827
|
+
private
|
5828
|
+
|
5829
|
+
# @param [Symbol] waiter_name
|
5830
|
+
# @param [Hash] options ({})
|
5831
|
+
def waiter(waiter_name, options = {})
|
5832
|
+
waiter_class = waiters[waiter_name]
|
5833
|
+
if waiter_class
|
5834
|
+
waiter_class.new(options.merge(client: self))
|
5835
|
+
else
|
5836
|
+
raise Aws::Waiters::Errors::NoSuchWaiterError.new(waiter_name, waiters.keys)
|
5837
|
+
end
|
5838
|
+
end
|
5839
|
+
|
5840
|
+
def waiters
|
5841
|
+
{
|
5842
|
+
bot_alias_available: Waiters::BotAliasAvailable,
|
5843
|
+
bot_available: Waiters::BotAvailable,
|
5844
|
+
bot_export_completed: Waiters::BotExportCompleted,
|
5845
|
+
bot_import_completed: Waiters::BotImportCompleted,
|
5846
|
+
bot_locale_built: Waiters::BotLocaleBuilt,
|
5847
|
+
bot_locale_created: Waiters::BotLocaleCreated,
|
5848
|
+
bot_locale_express_testing_available: Waiters::BotLocaleExpressTestingAvailable,
|
5849
|
+
bot_version_available: Waiters::BotVersionAvailable
|
5850
|
+
}
|
5677
5851
|
end
|
5678
5852
|
|
5679
5853
|
class << self
|
@@ -1078,10 +1078,12 @@ module Aws::LexModelsV2
|
|
1078
1078
|
InputContextsList.member = Shapes::ShapeRef.new(shape: InputContext)
|
1079
1079
|
|
1080
1080
|
IntentClosingSetting.add_member(:closing_response, Shapes::ShapeRef.new(shape: ResponseSpecification, required: true, location_name: "closingResponse"))
|
1081
|
+
IntentClosingSetting.add_member(:active, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "active"))
|
1081
1082
|
IntentClosingSetting.struct_class = Types::IntentClosingSetting
|
1082
1083
|
|
1083
1084
|
IntentConfirmationSetting.add_member(:prompt_specification, Shapes::ShapeRef.new(shape: PromptSpecification, required: true, location_name: "promptSpecification"))
|
1084
1085
|
IntentConfirmationSetting.add_member(:declination_response, Shapes::ShapeRef.new(shape: ResponseSpecification, required: true, location_name: "declinationResponse"))
|
1086
|
+
IntentConfirmationSetting.add_member(:active, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "active"))
|
1085
1087
|
IntentConfirmationSetting.struct_class = Types::IntentConfirmationSetting
|
1086
1088
|
|
1087
1089
|
IntentFilter.add_member(:name, Shapes::ShapeRef.new(shape: IntentFilterName, required: true, location_name: "name"))
|
@@ -1654,6 +1656,7 @@ module Aws::LexModelsV2
|
|
1654
1656
|
WaitAndContinueSpecification.add_member(:waiting_response, Shapes::ShapeRef.new(shape: ResponseSpecification, required: true, location_name: "waitingResponse"))
|
1655
1657
|
WaitAndContinueSpecification.add_member(:continue_response, Shapes::ShapeRef.new(shape: ResponseSpecification, required: true, location_name: "continueResponse"))
|
1656
1658
|
WaitAndContinueSpecification.add_member(:still_waiting_response, Shapes::ShapeRef.new(shape: StillWaitingResponseSpecification, location_name: "stillWaitingResponse"))
|
1659
|
+
WaitAndContinueSpecification.add_member(:active, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "active"))
|
1657
1660
|
WaitAndContinueSpecification.struct_class = Types::WaitAndContinueSpecification
|
1658
1661
|
|
1659
1662
|
|
@@ -182,7 +182,7 @@ module Aws::LexModelsV2
|
|
182
182
|
include Aws::Structure
|
183
183
|
end
|
184
184
|
|
185
|
-
#
|
185
|
+
# Provides the identity of a the bot that was exported.
|
186
186
|
#
|
187
187
|
# @note When making an API call, you may pass BotExportSpecification
|
188
188
|
# data as a hash:
|
@@ -1773,6 +1773,7 @@ module Aws::LexModelsV2
|
|
1773
1773
|
# ],
|
1774
1774
|
# allow_interrupt: false,
|
1775
1775
|
# },
|
1776
|
+
# active: false,
|
1776
1777
|
# },
|
1777
1778
|
# intent_closing_setting: {
|
1778
1779
|
# closing_response: { # required
|
@@ -1828,6 +1829,7 @@ module Aws::LexModelsV2
|
|
1828
1829
|
# ],
|
1829
1830
|
# allow_interrupt: false,
|
1830
1831
|
# },
|
1832
|
+
# active: false,
|
1831
1833
|
# },
|
1832
1834
|
# input_contexts: [
|
1833
1835
|
# {
|
@@ -2496,6 +2498,7 @@ module Aws::LexModelsV2
|
|
2496
2498
|
# timeout_in_seconds: 1, # required
|
2497
2499
|
# allow_interrupt: false,
|
2498
2500
|
# },
|
2501
|
+
# active: false,
|
2499
2502
|
# },
|
2500
2503
|
# },
|
2501
2504
|
# obfuscation_setting: {
|
@@ -4923,6 +4926,7 @@ module Aws::LexModelsV2
|
|
4923
4926
|
# ],
|
4924
4927
|
# allow_interrupt: false,
|
4925
4928
|
# },
|
4929
|
+
# active: false,
|
4926
4930
|
# }
|
4927
4931
|
#
|
4928
4932
|
# @!attribute [rw] closing_response
|
@@ -4930,10 +4934,18 @@ module Aws::LexModelsV2
|
|
4930
4934
|
# complete.
|
4931
4935
|
# @return [Types::ResponseSpecification]
|
4932
4936
|
#
|
4937
|
+
# @!attribute [rw] active
|
4938
|
+
# Specifies whether an intent's closing response is used. When this
|
4939
|
+
# field is false, the closing response isn't sent to the user and no
|
4940
|
+
# closing input from the user is used. If the `active` field isn't
|
4941
|
+
# specified, the default is true.
|
4942
|
+
# @return [Boolean]
|
4943
|
+
#
|
4933
4944
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/IntentClosingSetting AWS API Documentation
|
4934
4945
|
#
|
4935
4946
|
class IntentClosingSetting < Struct.new(
|
4936
|
-
:closing_response
|
4947
|
+
:closing_response,
|
4948
|
+
:active)
|
4937
4949
|
SENSITIVE = []
|
4938
4950
|
include Aws::Structure
|
4939
4951
|
end
|
@@ -5052,6 +5064,7 @@ module Aws::LexModelsV2
|
|
5052
5064
|
# ],
|
5053
5065
|
# allow_interrupt: false,
|
5054
5066
|
# },
|
5067
|
+
# active: false,
|
5055
5068
|
# }
|
5056
5069
|
#
|
5057
5070
|
# @!attribute [rw] prompt_specification
|
@@ -5072,11 +5085,20 @@ module Aws::LexModelsV2
|
|
5072
5085
|
# acknowledge that the intent was canceled.
|
5073
5086
|
# @return [Types::ResponseSpecification]
|
5074
5087
|
#
|
5088
|
+
# @!attribute [rw] active
|
5089
|
+
# Specifies whether the intent's confirmation is sent to the user.
|
5090
|
+
# When this field is false, confirmation and declination responses
|
5091
|
+
# aren't sent and processing continues as if the responses aren't
|
5092
|
+
# present. If the `active` field isn't specified, the default is
|
5093
|
+
# true.
|
5094
|
+
# @return [Boolean]
|
5095
|
+
#
|
5075
5096
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/IntentConfirmationSetting AWS API Documentation
|
5076
5097
|
#
|
5077
5098
|
class IntentConfirmationSetting < Struct.new(
|
5078
5099
|
:prompt_specification,
|
5079
|
-
:declination_response
|
5100
|
+
:declination_response,
|
5101
|
+
:active)
|
5080
5102
|
SENSITIVE = []
|
5081
5103
|
include Aws::Structure
|
5082
5104
|
end
|
@@ -7516,6 +7538,7 @@ module Aws::LexModelsV2
|
|
7516
7538
|
# timeout_in_seconds: 1, # required
|
7517
7539
|
# allow_interrupt: false,
|
7518
7540
|
# },
|
7541
|
+
# active: false,
|
7519
7542
|
# },
|
7520
7543
|
# }
|
7521
7544
|
#
|
@@ -8581,6 +8604,7 @@ module Aws::LexModelsV2
|
|
8581
8604
|
# ],
|
8582
8605
|
# allow_interrupt: false,
|
8583
8606
|
# },
|
8607
|
+
# active: false,
|
8584
8608
|
# },
|
8585
8609
|
# intent_closing_setting: {
|
8586
8610
|
# closing_response: { # required
|
@@ -8636,6 +8660,7 @@ module Aws::LexModelsV2
|
|
8636
8660
|
# ],
|
8637
8661
|
# allow_interrupt: false,
|
8638
8662
|
# },
|
8663
|
+
# active: false,
|
8639
8664
|
# },
|
8640
8665
|
# input_contexts: [
|
8641
8666
|
# {
|
@@ -9173,6 +9198,7 @@ module Aws::LexModelsV2
|
|
9173
9198
|
# timeout_in_seconds: 1, # required
|
9174
9199
|
# allow_interrupt: false,
|
9175
9200
|
# },
|
9201
|
+
# active: false,
|
9176
9202
|
# },
|
9177
9203
|
# },
|
9178
9204
|
# obfuscation_setting: {
|
@@ -9700,6 +9726,7 @@ module Aws::LexModelsV2
|
|
9700
9726
|
# timeout_in_seconds: 1, # required
|
9701
9727
|
# allow_interrupt: false,
|
9702
9728
|
# },
|
9729
|
+
# active: false,
|
9703
9730
|
# }
|
9704
9731
|
#
|
9705
9732
|
# @!attribute [rw] waiting_response
|
@@ -9717,12 +9744,21 @@ module Aws::LexModelsV2
|
|
9717
9744
|
# indicate that the bot is still waiting for input from the user.
|
9718
9745
|
# @return [Types::StillWaitingResponseSpecification]
|
9719
9746
|
#
|
9747
|
+
# @!attribute [rw] active
|
9748
|
+
# Specifies whether the bot will wait for a user to respond. When this
|
9749
|
+
# field is false, wait and continue responses for a slot aren't used
|
9750
|
+
# and the bot expects an appropriate response within the configured
|
9751
|
+
# timeout. If the `active` field isn't specified, the default is
|
9752
|
+
# true.
|
9753
|
+
# @return [Boolean]
|
9754
|
+
#
|
9720
9755
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/WaitAndContinueSpecification AWS API Documentation
|
9721
9756
|
#
|
9722
9757
|
class WaitAndContinueSpecification < Struct.new(
|
9723
9758
|
:waiting_response,
|
9724
9759
|
:continue_response,
|
9725
|
-
:still_waiting_response
|
9760
|
+
:still_waiting_response,
|
9761
|
+
:active)
|
9726
9762
|
SENSITIVE = []
|
9727
9763
|
include Aws::Structure
|
9728
9764
|
end
|
@@ -0,0 +1,532 @@
|
|
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::LexModelsV2
|
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
|
+
# | bot_alias_available | {Client#describe_bot_alias} | 10 | 35 |
|
73
|
+
# | bot_available | {Client#describe_bot} | 10 | 35 |
|
74
|
+
# | bot_export_completed | {Client#describe_export} | 10 | 35 |
|
75
|
+
# | bot_import_completed | {Client#describe_import} | 10 | 35 |
|
76
|
+
# | bot_locale_built | {Client#describe_bot_locale} | 10 | 35 |
|
77
|
+
# | bot_locale_created | {Client#describe_bot_locale} | 10 | 35 |
|
78
|
+
# | bot_locale_express_testing_available | {Client#describe_bot_locale} | 10 | 35 |
|
79
|
+
# | bot_version_available | {Client#describe_bot_version} | 10 | 35 |
|
80
|
+
#
|
81
|
+
module Waiters
|
82
|
+
|
83
|
+
# Wait until a bot alias is available
|
84
|
+
class BotAliasAvailable
|
85
|
+
|
86
|
+
# @param [Hash] options
|
87
|
+
# @option options [required, Client] :client
|
88
|
+
# @option options [Integer] :max_attempts (35)
|
89
|
+
# @option options [Integer] :delay (10)
|
90
|
+
# @option options [Proc] :before_attempt
|
91
|
+
# @option options [Proc] :before_wait
|
92
|
+
def initialize(options)
|
93
|
+
@client = options.fetch(:client)
|
94
|
+
@waiter = Aws::Waiters::Waiter.new({
|
95
|
+
max_attempts: 35,
|
96
|
+
delay: 10,
|
97
|
+
poller: Aws::Waiters::Poller.new(
|
98
|
+
operation_name: :describe_bot_alias,
|
99
|
+
acceptors: [
|
100
|
+
{
|
101
|
+
"expected" => "Available",
|
102
|
+
"matcher" => "path",
|
103
|
+
"state" => "success",
|
104
|
+
"argument" => "bot_alias_status"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"expected" => "Failed",
|
108
|
+
"matcher" => "path",
|
109
|
+
"state" => "failure",
|
110
|
+
"argument" => "bot_alias_status"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"expected" => "Deleting",
|
114
|
+
"matcher" => "path",
|
115
|
+
"state" => "failure",
|
116
|
+
"argument" => "bot_alias_status"
|
117
|
+
}
|
118
|
+
]
|
119
|
+
)
|
120
|
+
}.merge(options))
|
121
|
+
end
|
122
|
+
|
123
|
+
# @option (see Client#describe_bot_alias)
|
124
|
+
# @return (see Client#describe_bot_alias)
|
125
|
+
def wait(params = {})
|
126
|
+
@waiter.wait(client: @client, params: params)
|
127
|
+
end
|
128
|
+
|
129
|
+
# @api private
|
130
|
+
attr_reader :waiter
|
131
|
+
|
132
|
+
end
|
133
|
+
|
134
|
+
# Wait until a bot is available
|
135
|
+
class BotAvailable
|
136
|
+
|
137
|
+
# @param [Hash] options
|
138
|
+
# @option options [required, Client] :client
|
139
|
+
# @option options [Integer] :max_attempts (35)
|
140
|
+
# @option options [Integer] :delay (10)
|
141
|
+
# @option options [Proc] :before_attempt
|
142
|
+
# @option options [Proc] :before_wait
|
143
|
+
def initialize(options)
|
144
|
+
@client = options.fetch(:client)
|
145
|
+
@waiter = Aws::Waiters::Waiter.new({
|
146
|
+
max_attempts: 35,
|
147
|
+
delay: 10,
|
148
|
+
poller: Aws::Waiters::Poller.new(
|
149
|
+
operation_name: :describe_bot,
|
150
|
+
acceptors: [
|
151
|
+
{
|
152
|
+
"expected" => "Available",
|
153
|
+
"matcher" => "path",
|
154
|
+
"state" => "success",
|
155
|
+
"argument" => "bot_status"
|
156
|
+
},
|
157
|
+
{
|
158
|
+
"expected" => "Deleting",
|
159
|
+
"matcher" => "path",
|
160
|
+
"state" => "failure",
|
161
|
+
"argument" => "bot_status"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"expected" => "Failed",
|
165
|
+
"matcher" => "path",
|
166
|
+
"state" => "failure",
|
167
|
+
"argument" => "bot_status"
|
168
|
+
},
|
169
|
+
{
|
170
|
+
"expected" => "Inactive",
|
171
|
+
"matcher" => "path",
|
172
|
+
"state" => "failure",
|
173
|
+
"argument" => "bot_status"
|
174
|
+
}
|
175
|
+
]
|
176
|
+
)
|
177
|
+
}.merge(options))
|
178
|
+
end
|
179
|
+
|
180
|
+
# @option (see Client#describe_bot)
|
181
|
+
# @return (see Client#describe_bot)
|
182
|
+
def wait(params = {})
|
183
|
+
@waiter.wait(client: @client, params: params)
|
184
|
+
end
|
185
|
+
|
186
|
+
# @api private
|
187
|
+
attr_reader :waiter
|
188
|
+
|
189
|
+
end
|
190
|
+
|
191
|
+
# Wait until a bot has been exported
|
192
|
+
class BotExportCompleted
|
193
|
+
|
194
|
+
# @param [Hash] options
|
195
|
+
# @option options [required, Client] :client
|
196
|
+
# @option options [Integer] :max_attempts (35)
|
197
|
+
# @option options [Integer] :delay (10)
|
198
|
+
# @option options [Proc] :before_attempt
|
199
|
+
# @option options [Proc] :before_wait
|
200
|
+
def initialize(options)
|
201
|
+
@client = options.fetch(:client)
|
202
|
+
@waiter = Aws::Waiters::Waiter.new({
|
203
|
+
max_attempts: 35,
|
204
|
+
delay: 10,
|
205
|
+
poller: Aws::Waiters::Poller.new(
|
206
|
+
operation_name: :describe_export,
|
207
|
+
acceptors: [
|
208
|
+
{
|
209
|
+
"expected" => "Completed",
|
210
|
+
"matcher" => "path",
|
211
|
+
"state" => "success",
|
212
|
+
"argument" => "export_status"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"expected" => "Deleting",
|
216
|
+
"matcher" => "path",
|
217
|
+
"state" => "failure",
|
218
|
+
"argument" => "export_status"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"expected" => "Failed",
|
222
|
+
"matcher" => "path",
|
223
|
+
"state" => "failure",
|
224
|
+
"argument" => "export_status"
|
225
|
+
}
|
226
|
+
]
|
227
|
+
)
|
228
|
+
}.merge(options))
|
229
|
+
end
|
230
|
+
|
231
|
+
# @option (see Client#describe_export)
|
232
|
+
# @return (see Client#describe_export)
|
233
|
+
def wait(params = {})
|
234
|
+
@waiter.wait(client: @client, params: params)
|
235
|
+
end
|
236
|
+
|
237
|
+
# @api private
|
238
|
+
attr_reader :waiter
|
239
|
+
|
240
|
+
end
|
241
|
+
|
242
|
+
# Wait until a bot has been imported
|
243
|
+
class BotImportCompleted
|
244
|
+
|
245
|
+
# @param [Hash] options
|
246
|
+
# @option options [required, Client] :client
|
247
|
+
# @option options [Integer] :max_attempts (35)
|
248
|
+
# @option options [Integer] :delay (10)
|
249
|
+
# @option options [Proc] :before_attempt
|
250
|
+
# @option options [Proc] :before_wait
|
251
|
+
def initialize(options)
|
252
|
+
@client = options.fetch(:client)
|
253
|
+
@waiter = Aws::Waiters::Waiter.new({
|
254
|
+
max_attempts: 35,
|
255
|
+
delay: 10,
|
256
|
+
poller: Aws::Waiters::Poller.new(
|
257
|
+
operation_name: :describe_import,
|
258
|
+
acceptors: [
|
259
|
+
{
|
260
|
+
"expected" => "Completed",
|
261
|
+
"matcher" => "path",
|
262
|
+
"state" => "success",
|
263
|
+
"argument" => "import_status"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"expected" => "Deleting",
|
267
|
+
"matcher" => "path",
|
268
|
+
"state" => "failure",
|
269
|
+
"argument" => "import_status"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"expected" => "Failed",
|
273
|
+
"matcher" => "path",
|
274
|
+
"state" => "failure",
|
275
|
+
"argument" => "import_status"
|
276
|
+
}
|
277
|
+
]
|
278
|
+
)
|
279
|
+
}.merge(options))
|
280
|
+
end
|
281
|
+
|
282
|
+
# @option (see Client#describe_import)
|
283
|
+
# @return (see Client#describe_import)
|
284
|
+
def wait(params = {})
|
285
|
+
@waiter.wait(client: @client, params: params)
|
286
|
+
end
|
287
|
+
|
288
|
+
# @api private
|
289
|
+
attr_reader :waiter
|
290
|
+
|
291
|
+
end
|
292
|
+
|
293
|
+
# Wait until a bot locale is built
|
294
|
+
class BotLocaleBuilt
|
295
|
+
|
296
|
+
# @param [Hash] options
|
297
|
+
# @option options [required, Client] :client
|
298
|
+
# @option options [Integer] :max_attempts (35)
|
299
|
+
# @option options [Integer] :delay (10)
|
300
|
+
# @option options [Proc] :before_attempt
|
301
|
+
# @option options [Proc] :before_wait
|
302
|
+
def initialize(options)
|
303
|
+
@client = options.fetch(:client)
|
304
|
+
@waiter = Aws::Waiters::Waiter.new({
|
305
|
+
max_attempts: 35,
|
306
|
+
delay: 10,
|
307
|
+
poller: Aws::Waiters::Poller.new(
|
308
|
+
operation_name: :describe_bot_locale,
|
309
|
+
acceptors: [
|
310
|
+
{
|
311
|
+
"expected" => "Built",
|
312
|
+
"matcher" => "path",
|
313
|
+
"state" => "success",
|
314
|
+
"argument" => "bot_locale_status"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
"expected" => "Deleting",
|
318
|
+
"matcher" => "path",
|
319
|
+
"state" => "failure",
|
320
|
+
"argument" => "bot_locale_status"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"expected" => "Failed",
|
324
|
+
"matcher" => "path",
|
325
|
+
"state" => "failure",
|
326
|
+
"argument" => "bot_locale_status"
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"expected" => "NotBuilt",
|
330
|
+
"matcher" => "path",
|
331
|
+
"state" => "failure",
|
332
|
+
"argument" => "bot_locale_status"
|
333
|
+
}
|
334
|
+
]
|
335
|
+
)
|
336
|
+
}.merge(options))
|
337
|
+
end
|
338
|
+
|
339
|
+
# @option (see Client#describe_bot_locale)
|
340
|
+
# @return (see Client#describe_bot_locale)
|
341
|
+
def wait(params = {})
|
342
|
+
@waiter.wait(client: @client, params: params)
|
343
|
+
end
|
344
|
+
|
345
|
+
# @api private
|
346
|
+
attr_reader :waiter
|
347
|
+
|
348
|
+
end
|
349
|
+
|
350
|
+
# Wait unit a bot locale is created
|
351
|
+
class BotLocaleCreated
|
352
|
+
|
353
|
+
# @param [Hash] options
|
354
|
+
# @option options [required, Client] :client
|
355
|
+
# @option options [Integer] :max_attempts (35)
|
356
|
+
# @option options [Integer] :delay (10)
|
357
|
+
# @option options [Proc] :before_attempt
|
358
|
+
# @option options [Proc] :before_wait
|
359
|
+
def initialize(options)
|
360
|
+
@client = options.fetch(:client)
|
361
|
+
@waiter = Aws::Waiters::Waiter.new({
|
362
|
+
max_attempts: 35,
|
363
|
+
delay: 10,
|
364
|
+
poller: Aws::Waiters::Poller.new(
|
365
|
+
operation_name: :describe_bot_locale,
|
366
|
+
acceptors: [
|
367
|
+
{
|
368
|
+
"expected" => "Built",
|
369
|
+
"matcher" => "path",
|
370
|
+
"state" => "success",
|
371
|
+
"argument" => "bot_locale_status"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"expected" => "ReadyExpressTesting",
|
375
|
+
"matcher" => "path",
|
376
|
+
"state" => "success",
|
377
|
+
"argument" => "bot_locale_status"
|
378
|
+
},
|
379
|
+
{
|
380
|
+
"expected" => "NotBuilt",
|
381
|
+
"matcher" => "path",
|
382
|
+
"state" => "success",
|
383
|
+
"argument" => "bot_locale_status"
|
384
|
+
},
|
385
|
+
{
|
386
|
+
"expected" => "Deleting",
|
387
|
+
"matcher" => "path",
|
388
|
+
"state" => "failure",
|
389
|
+
"argument" => "bot_locale_status"
|
390
|
+
},
|
391
|
+
{
|
392
|
+
"expected" => "Failed",
|
393
|
+
"matcher" => "path",
|
394
|
+
"state" => "failure",
|
395
|
+
"argument" => "bot_locale_status"
|
396
|
+
}
|
397
|
+
]
|
398
|
+
)
|
399
|
+
}.merge(options))
|
400
|
+
end
|
401
|
+
|
402
|
+
# @option (see Client#describe_bot_locale)
|
403
|
+
# @return (see Client#describe_bot_locale)
|
404
|
+
def wait(params = {})
|
405
|
+
@waiter.wait(client: @client, params: params)
|
406
|
+
end
|
407
|
+
|
408
|
+
# @api private
|
409
|
+
attr_reader :waiter
|
410
|
+
|
411
|
+
end
|
412
|
+
|
413
|
+
# Wait until a bot locale build is ready for express testing
|
414
|
+
class BotLocaleExpressTestingAvailable
|
415
|
+
|
416
|
+
# @param [Hash] options
|
417
|
+
# @option options [required, Client] :client
|
418
|
+
# @option options [Integer] :max_attempts (35)
|
419
|
+
# @option options [Integer] :delay (10)
|
420
|
+
# @option options [Proc] :before_attempt
|
421
|
+
# @option options [Proc] :before_wait
|
422
|
+
def initialize(options)
|
423
|
+
@client = options.fetch(:client)
|
424
|
+
@waiter = Aws::Waiters::Waiter.new({
|
425
|
+
max_attempts: 35,
|
426
|
+
delay: 10,
|
427
|
+
poller: Aws::Waiters::Poller.new(
|
428
|
+
operation_name: :describe_bot_locale,
|
429
|
+
acceptors: [
|
430
|
+
{
|
431
|
+
"expected" => "Built",
|
432
|
+
"matcher" => "path",
|
433
|
+
"state" => "success",
|
434
|
+
"argument" => "bot_locale_status"
|
435
|
+
},
|
436
|
+
{
|
437
|
+
"expected" => "ReadyExpressTesting",
|
438
|
+
"matcher" => "path",
|
439
|
+
"state" => "success",
|
440
|
+
"argument" => "bot_locale_status"
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"expected" => "Deleting",
|
444
|
+
"matcher" => "path",
|
445
|
+
"state" => "failure",
|
446
|
+
"argument" => "bot_locale_status"
|
447
|
+
},
|
448
|
+
{
|
449
|
+
"expected" => "Failed",
|
450
|
+
"matcher" => "path",
|
451
|
+
"state" => "failure",
|
452
|
+
"argument" => "bot_locale_status"
|
453
|
+
},
|
454
|
+
{
|
455
|
+
"expected" => "NotBuilt",
|
456
|
+
"matcher" => "path",
|
457
|
+
"state" => "failure",
|
458
|
+
"argument" => "bot_locale_status"
|
459
|
+
}
|
460
|
+
]
|
461
|
+
)
|
462
|
+
}.merge(options))
|
463
|
+
end
|
464
|
+
|
465
|
+
# @option (see Client#describe_bot_locale)
|
466
|
+
# @return (see Client#describe_bot_locale)
|
467
|
+
def wait(params = {})
|
468
|
+
@waiter.wait(client: @client, params: params)
|
469
|
+
end
|
470
|
+
|
471
|
+
# @api private
|
472
|
+
attr_reader :waiter
|
473
|
+
|
474
|
+
end
|
475
|
+
|
476
|
+
# Wait until a bot version is available
|
477
|
+
class BotVersionAvailable
|
478
|
+
|
479
|
+
# @param [Hash] options
|
480
|
+
# @option options [required, Client] :client
|
481
|
+
# @option options [Integer] :max_attempts (35)
|
482
|
+
# @option options [Integer] :delay (10)
|
483
|
+
# @option options [Proc] :before_attempt
|
484
|
+
# @option options [Proc] :before_wait
|
485
|
+
def initialize(options)
|
486
|
+
@client = options.fetch(:client)
|
487
|
+
@waiter = Aws::Waiters::Waiter.new({
|
488
|
+
max_attempts: 35,
|
489
|
+
delay: 10,
|
490
|
+
poller: Aws::Waiters::Poller.new(
|
491
|
+
operation_name: :describe_bot_version,
|
492
|
+
acceptors: [
|
493
|
+
{
|
494
|
+
"expected" => "Available",
|
495
|
+
"matcher" => "path",
|
496
|
+
"state" => "success",
|
497
|
+
"argument" => "bot_status"
|
498
|
+
},
|
499
|
+
{
|
500
|
+
"expected" => "Deleting",
|
501
|
+
"matcher" => "path",
|
502
|
+
"state" => "failure",
|
503
|
+
"argument" => "bot_status"
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"expected" => "Failed",
|
507
|
+
"matcher" => "path",
|
508
|
+
"state" => "failure",
|
509
|
+
"argument" => "bot_status"
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"state" => "retry",
|
513
|
+
"matcher" => "status",
|
514
|
+
"expected" => 404
|
515
|
+
}
|
516
|
+
]
|
517
|
+
)
|
518
|
+
}.merge(options))
|
519
|
+
end
|
520
|
+
|
521
|
+
# @option (see Client#describe_bot_version)
|
522
|
+
# @return (see Client#describe_bot_version)
|
523
|
+
def wait(params = {})
|
524
|
+
@waiter.wait(client: @client, params: params)
|
525
|
+
end
|
526
|
+
|
527
|
+
# @api private
|
528
|
+
attr_reader :waiter
|
529
|
+
|
530
|
+
end
|
531
|
+
end
|
532
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexmodelsv2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.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
|
+
date: 2021-08-05 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.
|
22
|
+
version: 3.119.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.
|
32
|
+
version: 3.119.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- lib/aws-sdk-lexmodelsv2/plugins/content_type.rb
|
64
64
|
- lib/aws-sdk-lexmodelsv2/resource.rb
|
65
65
|
- lib/aws-sdk-lexmodelsv2/types.rb
|
66
|
+
- lib/aws-sdk-lexmodelsv2/waiters.rb
|
66
67
|
homepage: https://github.com/aws/aws-sdk-ruby
|
67
68
|
licenses:
|
68
69
|
- Apache-2.0
|