aws-sdk-lexmodelsv2 1.32.0 → 1.34.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexmodelsv2/client.rb +918 -20
- data/lib/aws-sdk-lexmodelsv2/client_api.rb +812 -0
- data/lib/aws-sdk-lexmodelsv2/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-lexmodelsv2/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-lexmodelsv2/endpoints.rb +196 -0
- data/lib/aws-sdk-lexmodelsv2/plugins/endpoints.rb +28 -0
- data/lib/aws-sdk-lexmodelsv2/types.rb +2424 -196
- data/lib/aws-sdk-lexmodelsv2.rb +1 -1
- metadata +4 -4
@@ -50,9 +50,6 @@ module Aws::LexModelsV2
|
|
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
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::LexModelsV2
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://models-v2-lex-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://models-v2-lex-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://models-v2-lex-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://models-v2-lex-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://models-v2-lex.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://models-v2-lex.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://models-v2-lex.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
@@ -207,6 +207,20 @@ module Aws::LexModelsV2
|
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
210
|
+
class CreateTestSetDiscrepancyReport
|
211
|
+
def self.build(context)
|
212
|
+
unless context.config.regional_endpoint
|
213
|
+
endpoint = context.config.endpoint.to_s
|
214
|
+
end
|
215
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
216
|
+
region: context.config.region,
|
217
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
+
use_fips: context.config.use_fips_endpoint,
|
219
|
+
endpoint: endpoint,
|
220
|
+
)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
210
224
|
class CreateUploadUrl
|
211
225
|
def self.build(context)
|
212
226
|
unless context.config.regional_endpoint
|
@@ -389,6 +403,20 @@ module Aws::LexModelsV2
|
|
389
403
|
end
|
390
404
|
end
|
391
405
|
|
406
|
+
class DeleteTestSet
|
407
|
+
def self.build(context)
|
408
|
+
unless context.config.regional_endpoint
|
409
|
+
endpoint = context.config.endpoint.to_s
|
410
|
+
end
|
411
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
412
|
+
region: context.config.region,
|
413
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
|
+
use_fips: context.config.use_fips_endpoint,
|
415
|
+
endpoint: endpoint,
|
416
|
+
)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
392
420
|
class DeleteUtterances
|
393
421
|
def self.build(context)
|
394
422
|
unless context.config.regional_endpoint
|
@@ -571,6 +599,76 @@ module Aws::LexModelsV2
|
|
571
599
|
end
|
572
600
|
end
|
573
601
|
|
602
|
+
class DescribeTestExecution
|
603
|
+
def self.build(context)
|
604
|
+
unless context.config.regional_endpoint
|
605
|
+
endpoint = context.config.endpoint.to_s
|
606
|
+
end
|
607
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
608
|
+
region: context.config.region,
|
609
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
610
|
+
use_fips: context.config.use_fips_endpoint,
|
611
|
+
endpoint: endpoint,
|
612
|
+
)
|
613
|
+
end
|
614
|
+
end
|
615
|
+
|
616
|
+
class DescribeTestSet
|
617
|
+
def self.build(context)
|
618
|
+
unless context.config.regional_endpoint
|
619
|
+
endpoint = context.config.endpoint.to_s
|
620
|
+
end
|
621
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
622
|
+
region: context.config.region,
|
623
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
624
|
+
use_fips: context.config.use_fips_endpoint,
|
625
|
+
endpoint: endpoint,
|
626
|
+
)
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
630
|
+
class DescribeTestSetDiscrepancyReport
|
631
|
+
def self.build(context)
|
632
|
+
unless context.config.regional_endpoint
|
633
|
+
endpoint = context.config.endpoint.to_s
|
634
|
+
end
|
635
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
636
|
+
region: context.config.region,
|
637
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
638
|
+
use_fips: context.config.use_fips_endpoint,
|
639
|
+
endpoint: endpoint,
|
640
|
+
)
|
641
|
+
end
|
642
|
+
end
|
643
|
+
|
644
|
+
class DescribeTestSetGeneration
|
645
|
+
def self.build(context)
|
646
|
+
unless context.config.regional_endpoint
|
647
|
+
endpoint = context.config.endpoint.to_s
|
648
|
+
end
|
649
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
650
|
+
region: context.config.region,
|
651
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
652
|
+
use_fips: context.config.use_fips_endpoint,
|
653
|
+
endpoint: endpoint,
|
654
|
+
)
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
658
|
+
class GetTestExecutionArtifactsUrl
|
659
|
+
def self.build(context)
|
660
|
+
unless context.config.regional_endpoint
|
661
|
+
endpoint = context.config.endpoint.to_s
|
662
|
+
end
|
663
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
664
|
+
region: context.config.region,
|
665
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
666
|
+
use_fips: context.config.use_fips_endpoint,
|
667
|
+
endpoint: endpoint,
|
668
|
+
)
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
574
672
|
class ListAggregatedUtterances
|
575
673
|
def self.build(context)
|
576
674
|
unless context.config.regional_endpoint
|
@@ -795,6 +893,62 @@ module Aws::LexModelsV2
|
|
795
893
|
end
|
796
894
|
end
|
797
895
|
|
896
|
+
class ListTestExecutionResultItems
|
897
|
+
def self.build(context)
|
898
|
+
unless context.config.regional_endpoint
|
899
|
+
endpoint = context.config.endpoint.to_s
|
900
|
+
end
|
901
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
902
|
+
region: context.config.region,
|
903
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
904
|
+
use_fips: context.config.use_fips_endpoint,
|
905
|
+
endpoint: endpoint,
|
906
|
+
)
|
907
|
+
end
|
908
|
+
end
|
909
|
+
|
910
|
+
class ListTestExecutions
|
911
|
+
def self.build(context)
|
912
|
+
unless context.config.regional_endpoint
|
913
|
+
endpoint = context.config.endpoint.to_s
|
914
|
+
end
|
915
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
916
|
+
region: context.config.region,
|
917
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
918
|
+
use_fips: context.config.use_fips_endpoint,
|
919
|
+
endpoint: endpoint,
|
920
|
+
)
|
921
|
+
end
|
922
|
+
end
|
923
|
+
|
924
|
+
class ListTestSetRecords
|
925
|
+
def self.build(context)
|
926
|
+
unless context.config.regional_endpoint
|
927
|
+
endpoint = context.config.endpoint.to_s
|
928
|
+
end
|
929
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
930
|
+
region: context.config.region,
|
931
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
932
|
+
use_fips: context.config.use_fips_endpoint,
|
933
|
+
endpoint: endpoint,
|
934
|
+
)
|
935
|
+
end
|
936
|
+
end
|
937
|
+
|
938
|
+
class ListTestSets
|
939
|
+
def self.build(context)
|
940
|
+
unless context.config.regional_endpoint
|
941
|
+
endpoint = context.config.endpoint.to_s
|
942
|
+
end
|
943
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
944
|
+
region: context.config.region,
|
945
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
946
|
+
use_fips: context.config.use_fips_endpoint,
|
947
|
+
endpoint: endpoint,
|
948
|
+
)
|
949
|
+
end
|
950
|
+
end
|
951
|
+
|
798
952
|
class SearchAssociatedTranscripts
|
799
953
|
def self.build(context)
|
800
954
|
unless context.config.regional_endpoint
|
@@ -837,6 +991,34 @@ module Aws::LexModelsV2
|
|
837
991
|
end
|
838
992
|
end
|
839
993
|
|
994
|
+
class StartTestExecution
|
995
|
+
def self.build(context)
|
996
|
+
unless context.config.regional_endpoint
|
997
|
+
endpoint = context.config.endpoint.to_s
|
998
|
+
end
|
999
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
1000
|
+
region: context.config.region,
|
1001
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1002
|
+
use_fips: context.config.use_fips_endpoint,
|
1003
|
+
endpoint: endpoint,
|
1004
|
+
)
|
1005
|
+
end
|
1006
|
+
end
|
1007
|
+
|
1008
|
+
class StartTestSetGeneration
|
1009
|
+
def self.build(context)
|
1010
|
+
unless context.config.regional_endpoint
|
1011
|
+
endpoint = context.config.endpoint.to_s
|
1012
|
+
end
|
1013
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
1014
|
+
region: context.config.region,
|
1015
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1016
|
+
use_fips: context.config.use_fips_endpoint,
|
1017
|
+
endpoint: endpoint,
|
1018
|
+
)
|
1019
|
+
end
|
1020
|
+
end
|
1021
|
+
|
840
1022
|
class StopBotRecommendation
|
841
1023
|
def self.build(context)
|
842
1024
|
unless context.config.regional_endpoint
|
@@ -1005,5 +1187,19 @@ module Aws::LexModelsV2
|
|
1005
1187
|
end
|
1006
1188
|
end
|
1007
1189
|
|
1190
|
+
class UpdateTestSet
|
1191
|
+
def self.build(context)
|
1192
|
+
unless context.config.regional_endpoint
|
1193
|
+
endpoint = context.config.endpoint.to_s
|
1194
|
+
end
|
1195
|
+
Aws::LexModelsV2::EndpointParameters.new(
|
1196
|
+
region: context.config.region,
|
1197
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1198
|
+
use_fips: context.config.use_fips_endpoint,
|
1199
|
+
endpoint: endpoint,
|
1200
|
+
)
|
1201
|
+
end
|
1202
|
+
end
|
1203
|
+
|
1008
1204
|
end
|
1009
1205
|
end
|
@@ -84,6 +84,8 @@ module Aws::LexModelsV2
|
|
84
84
|
Aws::LexModelsV2::Endpoints::CreateSlot.build(context)
|
85
85
|
when :create_slot_type
|
86
86
|
Aws::LexModelsV2::Endpoints::CreateSlotType.build(context)
|
87
|
+
when :create_test_set_discrepancy_report
|
88
|
+
Aws::LexModelsV2::Endpoints::CreateTestSetDiscrepancyReport.build(context)
|
87
89
|
when :create_upload_url
|
88
90
|
Aws::LexModelsV2::Endpoints::CreateUploadUrl.build(context)
|
89
91
|
when :delete_bot
|
@@ -110,6 +112,8 @@ module Aws::LexModelsV2
|
|
110
112
|
Aws::LexModelsV2::Endpoints::DeleteSlot.build(context)
|
111
113
|
when :delete_slot_type
|
112
114
|
Aws::LexModelsV2::Endpoints::DeleteSlotType.build(context)
|
115
|
+
when :delete_test_set
|
116
|
+
Aws::LexModelsV2::Endpoints::DeleteTestSet.build(context)
|
113
117
|
when :delete_utterances
|
114
118
|
Aws::LexModelsV2::Endpoints::DeleteUtterances.build(context)
|
115
119
|
when :describe_bot
|
@@ -136,6 +140,16 @@ module Aws::LexModelsV2
|
|
136
140
|
Aws::LexModelsV2::Endpoints::DescribeSlot.build(context)
|
137
141
|
when :describe_slot_type
|
138
142
|
Aws::LexModelsV2::Endpoints::DescribeSlotType.build(context)
|
143
|
+
when :describe_test_execution
|
144
|
+
Aws::LexModelsV2::Endpoints::DescribeTestExecution.build(context)
|
145
|
+
when :describe_test_set
|
146
|
+
Aws::LexModelsV2::Endpoints::DescribeTestSet.build(context)
|
147
|
+
when :describe_test_set_discrepancy_report
|
148
|
+
Aws::LexModelsV2::Endpoints::DescribeTestSetDiscrepancyReport.build(context)
|
149
|
+
when :describe_test_set_generation
|
150
|
+
Aws::LexModelsV2::Endpoints::DescribeTestSetGeneration.build(context)
|
151
|
+
when :get_test_execution_artifacts_url
|
152
|
+
Aws::LexModelsV2::Endpoints::GetTestExecutionArtifactsUrl.build(context)
|
139
153
|
when :list_aggregated_utterances
|
140
154
|
Aws::LexModelsV2::Endpoints::ListAggregatedUtterances.build(context)
|
141
155
|
when :list_bot_aliases
|
@@ -168,12 +182,24 @@ module Aws::LexModelsV2
|
|
168
182
|
Aws::LexModelsV2::Endpoints::ListSlots.build(context)
|
169
183
|
when :list_tags_for_resource
|
170
184
|
Aws::LexModelsV2::Endpoints::ListTagsForResource.build(context)
|
185
|
+
when :list_test_execution_result_items
|
186
|
+
Aws::LexModelsV2::Endpoints::ListTestExecutionResultItems.build(context)
|
187
|
+
when :list_test_executions
|
188
|
+
Aws::LexModelsV2::Endpoints::ListTestExecutions.build(context)
|
189
|
+
when :list_test_set_records
|
190
|
+
Aws::LexModelsV2::Endpoints::ListTestSetRecords.build(context)
|
191
|
+
when :list_test_sets
|
192
|
+
Aws::LexModelsV2::Endpoints::ListTestSets.build(context)
|
171
193
|
when :search_associated_transcripts
|
172
194
|
Aws::LexModelsV2::Endpoints::SearchAssociatedTranscripts.build(context)
|
173
195
|
when :start_bot_recommendation
|
174
196
|
Aws::LexModelsV2::Endpoints::StartBotRecommendation.build(context)
|
175
197
|
when :start_import
|
176
198
|
Aws::LexModelsV2::Endpoints::StartImport.build(context)
|
199
|
+
when :start_test_execution
|
200
|
+
Aws::LexModelsV2::Endpoints::StartTestExecution.build(context)
|
201
|
+
when :start_test_set_generation
|
202
|
+
Aws::LexModelsV2::Endpoints::StartTestSetGeneration.build(context)
|
177
203
|
when :stop_bot_recommendation
|
178
204
|
Aws::LexModelsV2::Endpoints::StopBotRecommendation.build(context)
|
179
205
|
when :tag_resource
|
@@ -198,6 +224,8 @@ module Aws::LexModelsV2
|
|
198
224
|
Aws::LexModelsV2::Endpoints::UpdateSlot.build(context)
|
199
225
|
when :update_slot_type
|
200
226
|
Aws::LexModelsV2::Endpoints::UpdateSlotType.build(context)
|
227
|
+
when :update_test_set
|
228
|
+
Aws::LexModelsV2::Endpoints::UpdateTestSet.build(context)
|
201
229
|
end
|
202
230
|
end
|
203
231
|
end
|