aws-sdk-lex 1.14.0 → 1.15.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
  SHA1:
3
- metadata.gz: 4d4b781f2a19f6fa4ad4fa7bda2d5c5215129906
4
- data.tar.gz: 5c7d8fb19e6162cfaff911ce4757b572f3ca12cf
3
+ metadata.gz: 233111509658dad4e514ae4413bed89f3150ce62
4
+ data.tar.gz: 5d89101702f167c516ab533d6044aad979fcc673
5
5
  SHA512:
6
- metadata.gz: adec8a83d62dcd4de3ef91a4bf80051594f9bb12b187876ccc55fbf86f00de5bdf84fc62ffe45a6ec2272c13327afa25c4069ed5056e09033f82afee096448fb
7
- data.tar.gz: f3a0ba99ee2fd4f4da0046324b49827a8e58c75977832cd14092c3af7091adaad4e517d8070db24805af643b3ca65a4d23cd27912c4c32b9961192c5754a3125
6
+ metadata.gz: 8ee1323e6a1af7708b3ae35814f095c397a12b8dc19e92402050b59855e8d90333840962f76cd8c18db249f414633f70f93ad72234c4761d834b6ab11fd77c09
7
+ data.tar.gz: 405e3282470df9072faa09babb9bb552801010b5aae4a9184bc0d26b88596d80c854ba4eb36ba76b64276fd4cc60460ab6b6c40383395ba30d5c6244e196423d
data/lib/aws-sdk-lex.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lex/customizations'
42
42
  # @service
43
43
  module Aws::Lex
44
44
 
45
- GEM_VERSION = '1.14.0'
45
+ GEM_VERSION = '1.15.0'
46
46
 
47
47
  end
@@ -684,7 +684,7 @@ module Aws::Lex
684
684
  params: params,
685
685
  config: config)
686
686
  context[:gem_name] = 'aws-sdk-lex'
687
- context[:gem_version] = '1.14.0'
687
+ context[:gem_version] = '1.15.0'
688
688
  Seahorse::Client::Request.new(handlers, context)
689
689
  end
690
690
 
@@ -51,10 +51,22 @@ module Aws::Lex
51
51
  genericAttachmentList = Shapes::ListShape.new(name: 'genericAttachmentList')
52
52
  listOfButtons = Shapes::ListShape.new(name: 'listOfButtons')
53
53
 
54
+ BadGatewayException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
55
+ BadGatewayException.struct_class = Types::BadGatewayException
56
+
57
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
58
+ BadRequestException.struct_class = Types::BadRequestException
59
+
54
60
  Button.add_member(:text, Shapes::ShapeRef.new(shape: ButtonTextStringWithLength, required: true, location_name: "text"))
55
61
  Button.add_member(:value, Shapes::ShapeRef.new(shape: ButtonValueStringWithLength, required: true, location_name: "value"))
56
62
  Button.struct_class = Types::Button
57
63
 
64
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
65
+ ConflictException.struct_class = Types::ConflictException
66
+
67
+ DependencyFailedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
68
+ DependencyFailedException.struct_class = Types::DependencyFailedException
69
+
58
70
  GenericAttachment.add_member(:title, Shapes::ShapeRef.new(shape: StringWithLength, location_name: "title"))
59
71
  GenericAttachment.add_member(:sub_title, Shapes::ShapeRef.new(shape: StringWithLength, location_name: "subTitle"))
60
72
  GenericAttachment.add_member(:attachment_link_url, Shapes::ShapeRef.new(shape: StringUrlWithLength, location_name: "attachmentLinkUrl"))
@@ -62,6 +74,22 @@ module Aws::Lex
62
74
  GenericAttachment.add_member(:buttons, Shapes::ShapeRef.new(shape: listOfButtons, location_name: "buttons"))
63
75
  GenericAttachment.struct_class = Types::GenericAttachment
64
76
 
77
+ InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
78
+ InternalFailureException.struct_class = Types::InternalFailureException
79
+
80
+ LimitExceededException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Retry-After"))
81
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
82
+ LimitExceededException.struct_class = Types::LimitExceededException
83
+
84
+ LoopDetectedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
85
+ LoopDetectedException.struct_class = Types::LoopDetectedException
86
+
87
+ NotAcceptableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
88
+ NotAcceptableException.struct_class = Types::NotAcceptableException
89
+
90
+ NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
91
+ NotFoundException.struct_class = Types::NotFoundException
92
+
65
93
  PostContentRequest.add_member(:bot_name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "botName"))
66
94
  PostContentRequest.add_member(:bot_alias, Shapes::ShapeRef.new(shape: BotAlias, required: true, location: "uri", location_name: "botAlias"))
67
95
  PostContentRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "userId"))
@@ -106,6 +134,9 @@ module Aws::Lex
106
134
  PostTextResponse.add_member(:response_card, Shapes::ShapeRef.new(shape: ResponseCard, location_name: "responseCard"))
107
135
  PostTextResponse.struct_class = Types::PostTextResponse
108
136
 
137
+ RequestTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
138
+ RequestTimeoutException.struct_class = Types::RequestTimeoutException
139
+
109
140
  ResponseCard.add_member(:version, Shapes::ShapeRef.new(shape: String, location_name: "version"))
110
141
  ResponseCard.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location_name: "contentType"))
111
142
  ResponseCard.add_member(:generic_attachments, Shapes::ShapeRef.new(shape: genericAttachmentList, location_name: "genericAttachments"))
@@ -114,6 +145,9 @@ module Aws::Lex
114
145
  StringMap.key = Shapes::ShapeRef.new(shape: String)
115
146
  StringMap.value = Shapes::ShapeRef.new(shape: String)
116
147
 
148
+ UnsupportedMediaTypeException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
149
+ UnsupportedMediaTypeException.struct_class = Types::UnsupportedMediaTypeException
150
+
117
151
  genericAttachmentList.member = Shapes::ShapeRef.new(shape: GenericAttachment)
118
152
 
119
153
  listOfButtons.member = Shapes::ShapeRef.new(shape: Button)
@@ -10,5 +10,186 @@ module Aws::Lex
10
10
 
11
11
  extend Aws::Errors::DynamicErrors
12
12
 
13
+ class BadGatewayException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::Lex::Types::BadGatewayException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
29
+ class BadRequestException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::Lex::Types::BadRequestException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ class ConflictException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::Lex::Types::ConflictException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+
59
+ end
60
+
61
+ class DependencyFailedException < ServiceError
62
+
63
+ # @param [Seahorse::Client::RequestContext] context
64
+ # @param [String] message
65
+ # @param [Aws::Lex::Types::DependencyFailedException] data
66
+ def initialize(context, message, data = Aws::EmptyStructure.new)
67
+ super(context, message, data)
68
+ end
69
+
70
+ # @return [String]
71
+ def message
72
+ @message || @data[:message]
73
+ end
74
+
75
+ end
76
+
77
+ class InternalFailureException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::Lex::Types::InternalFailureException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+
91
+ end
92
+
93
+ class LimitExceededException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::Lex::Types::LimitExceededException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def retry_after_seconds
104
+ @data[:retry_after_seconds]
105
+ end
106
+
107
+ # @return [String]
108
+ def message
109
+ @message || @data[:message]
110
+ end
111
+
112
+ end
113
+
114
+ class LoopDetectedException < ServiceError
115
+
116
+ # @param [Seahorse::Client::RequestContext] context
117
+ # @param [String] message
118
+ # @param [Aws::Lex::Types::LoopDetectedException] data
119
+ def initialize(context, message, data = Aws::EmptyStructure.new)
120
+ super(context, message, data)
121
+ end
122
+
123
+ # @return [String]
124
+ def message
125
+ @message || @data[:message]
126
+ end
127
+
128
+ end
129
+
130
+ class NotAcceptableException < ServiceError
131
+
132
+ # @param [Seahorse::Client::RequestContext] context
133
+ # @param [String] message
134
+ # @param [Aws::Lex::Types::NotAcceptableException] data
135
+ def initialize(context, message, data = Aws::EmptyStructure.new)
136
+ super(context, message, data)
137
+ end
138
+
139
+ # @return [String]
140
+ def message
141
+ @message || @data[:message]
142
+ end
143
+
144
+ end
145
+
146
+ class NotFoundException < ServiceError
147
+
148
+ # @param [Seahorse::Client::RequestContext] context
149
+ # @param [String] message
150
+ # @param [Aws::Lex::Types::NotFoundException] data
151
+ def initialize(context, message, data = Aws::EmptyStructure.new)
152
+ super(context, message, data)
153
+ end
154
+
155
+ # @return [String]
156
+ def message
157
+ @message || @data[:message]
158
+ end
159
+
160
+ end
161
+
162
+ class RequestTimeoutException < ServiceError
163
+
164
+ # @param [Seahorse::Client::RequestContext] context
165
+ # @param [String] message
166
+ # @param [Aws::Lex::Types::RequestTimeoutException] data
167
+ def initialize(context, message, data = Aws::EmptyStructure.new)
168
+ super(context, message, data)
169
+ end
170
+
171
+ # @return [String]
172
+ def message
173
+ @message || @data[:message]
174
+ end
175
+
176
+ end
177
+
178
+ class UnsupportedMediaTypeException < ServiceError
179
+
180
+ # @param [Seahorse::Client::RequestContext] context
181
+ # @param [String] message
182
+ # @param [Aws::Lex::Types::UnsupportedMediaTypeException] data
183
+ def initialize(context, message, data = Aws::EmptyStructure.new)
184
+ super(context, message, data)
185
+ end
186
+
187
+ # @return [String]
188
+ def message
189
+ @message || @data[:message]
190
+ end
191
+
192
+ end
193
+
13
194
  end
14
195
  end
@@ -8,6 +8,34 @@
8
8
  module Aws::Lex
9
9
  module Types
10
10
 
11
+ # Either the Amazon Lex bot is still building, or one of the dependent
12
+ # services (Amazon Polly, AWS Lambda) failed with an internal service
13
+ # error.
14
+ #
15
+ # @!attribute [rw] message
16
+ # @return [String]
17
+ #
18
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/BadGatewayException AWS API Documentation
19
+ #
20
+ class BadGatewayException < Struct.new(
21
+ :message)
22
+ include Aws::Structure
23
+ end
24
+
25
+ # Request validation failed, there is no usable message in the context,
26
+ # or the bot build failed, is still in progress, or contains unbuilt
27
+ # changes.
28
+ #
29
+ # @!attribute [rw] message
30
+ # @return [String]
31
+ #
32
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/BadRequestException AWS API Documentation
33
+ #
34
+ class BadRequestException < Struct.new(
35
+ :message)
36
+ include Aws::Structure
37
+ end
38
+
11
39
  # Represents an option to be shown on the client platform (Facebook,
12
40
  # Slack, etc.)
13
41
  #
@@ -29,6 +57,40 @@ module Aws::Lex
29
57
  include Aws::Structure
30
58
  end
31
59
 
60
+ # Two clients are using the same AWS account, Amazon Lex bot, and user
61
+ # ID.
62
+ #
63
+ # @!attribute [rw] message
64
+ # @return [String]
65
+ #
66
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/ConflictException AWS API Documentation
67
+ #
68
+ class ConflictException < Struct.new(
69
+ :message)
70
+ include Aws::Structure
71
+ end
72
+
73
+ # One of the dependencies, such as AWS Lambda or Amazon Polly, threw an
74
+ # exception. For example,
75
+ #
76
+ # * If Amazon Lex does not have sufficient permissions to call a Lambda
77
+ # function.
78
+ #
79
+ # * If a Lambda function takes longer than 30 seconds to execute.
80
+ #
81
+ # * If a fulfillment Lambda function returns a `Delegate` dialog action
82
+ # without removing any slot values.
83
+ #
84
+ # @!attribute [rw] message
85
+ # @return [String]
86
+ #
87
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/DependencyFailedException AWS API Documentation
88
+ #
89
+ class DependencyFailedException < Struct.new(
90
+ :message)
91
+ include Aws::Structure
92
+ end
93
+
32
94
  # Represents an option rendered to the user when a prompt is shown. It
33
95
  # could be an image, a button, a link, or text.
34
96
  #
@@ -63,6 +125,71 @@ module Aws::Lex
63
125
  include Aws::Structure
64
126
  end
65
127
 
128
+ # Internal service error. Retry the call.
129
+ #
130
+ # @!attribute [rw] message
131
+ # @return [String]
132
+ #
133
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/InternalFailureException AWS API Documentation
134
+ #
135
+ class InternalFailureException < Struct.new(
136
+ :message)
137
+ include Aws::Structure
138
+ end
139
+
140
+ # Exceeded a limit.
141
+ #
142
+ # @!attribute [rw] retry_after_seconds
143
+ # @return [String]
144
+ #
145
+ # @!attribute [rw] message
146
+ # @return [String]
147
+ #
148
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/LimitExceededException AWS API Documentation
149
+ #
150
+ class LimitExceededException < Struct.new(
151
+ :retry_after_seconds,
152
+ :message)
153
+ include Aws::Structure
154
+ end
155
+
156
+ # This exception is not used.
157
+ #
158
+ # @!attribute [rw] message
159
+ # @return [String]
160
+ #
161
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/LoopDetectedException AWS API Documentation
162
+ #
163
+ class LoopDetectedException < Struct.new(
164
+ :message)
165
+ include Aws::Structure
166
+ end
167
+
168
+ # The accept header in the request does not have a valid value.
169
+ #
170
+ # @!attribute [rw] message
171
+ # @return [String]
172
+ #
173
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/NotAcceptableException AWS API Documentation
174
+ #
175
+ class NotAcceptableException < Struct.new(
176
+ :message)
177
+ include Aws::Structure
178
+ end
179
+
180
+ # The resource (such as the Amazon Lex bot or an alias) that is referred
181
+ # to is not found.
182
+ #
183
+ # @!attribute [rw] message
184
+ # @return [String]
185
+ #
186
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/NotFoundException AWS API Documentation
187
+ #
188
+ class NotFoundException < Struct.new(
189
+ :message)
190
+ include Aws::Structure
191
+ end
192
+
66
193
  # @note When making an API call, you may pass PostContentRequest
67
194
  # data as a hash:
68
195
  #
@@ -615,6 +742,18 @@ module Aws::Lex
615
742
  include Aws::Structure
616
743
  end
617
744
 
745
+ # The input speech is too long.
746
+ #
747
+ # @!attribute [rw] message
748
+ # @return [String]
749
+ #
750
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/RequestTimeoutException AWS API Documentation
751
+ #
752
+ class RequestTimeoutException < Struct.new(
753
+ :message)
754
+ include Aws::Structure
755
+ end
756
+
618
757
  # If you configure a response card when creating your bots, Amazon Lex
619
758
  # substitutes the session attributes and slot values that are available,
620
759
  # and then returns it. The response card can also come from a Lambda
@@ -641,5 +780,17 @@ module Aws::Lex
641
780
  include Aws::Structure
642
781
  end
643
782
 
783
+ # The Content-Type header (`PostContent` API) has an invalid value.
784
+ #
785
+ # @!attribute [rw] message
786
+ # @return [String]
787
+ #
788
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/UnsupportedMediaTypeException AWS API Documentation
789
+ #
790
+ class UnsupportedMediaTypeException < Struct.new(
791
+ :message)
792
+ include Aws::Structure
793
+ end
794
+
644
795
  end
645
796
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.15.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: 2019-05-15 00:00:00.000000000 Z
11
+ date: 2019-05-21 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.52.1
22
+ version: 3.53.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.52.1
32
+ version: 3.53.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement