aws-sdk-qconnect 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,7 @@ module Aws::QConnect
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AndConditions = Shapes::ListShape.new(name: 'AndConditions')
17
18
  AppIntegrationsConfiguration = Shapes::StructureShape.new(name: 'AppIntegrationsConfiguration')
18
19
  Arn = Shapes::StringShape.new(name: 'Arn')
19
20
  AssistantAssociationData = Shapes::StructureShape.new(name: 'AssistantAssociationData')
@@ -155,6 +156,8 @@ module Aws::QConnect
155
156
  NotifyRecommendationsReceivedRequest = Shapes::StructureShape.new(name: 'NotifyRecommendationsReceivedRequest')
156
157
  NotifyRecommendationsReceivedResponse = Shapes::StructureShape.new(name: 'NotifyRecommendationsReceivedResponse')
157
158
  ObjectFieldsList = Shapes::ListShape.new(name: 'ObjectFieldsList')
159
+ OrCondition = Shapes::UnionShape.new(name: 'OrCondition')
160
+ OrConditions = Shapes::ListShape.new(name: 'OrConditions')
158
161
  Order = Shapes::StringShape.new(name: 'Order')
159
162
  PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException')
160
163
  Priority = Shapes::StringShape.new(name: 'Priority')
@@ -240,6 +243,8 @@ module Aws::QConnect
240
243
  StartImportJobResponse = Shapes::StructureShape.new(name: 'StartImportJobResponse')
241
244
  String = Shapes::StringShape.new(name: 'String')
242
245
  SyntheticTimestamp_epoch_seconds = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_epoch_seconds', timestampFormat: "unixTimestamp")
246
+ TagCondition = Shapes::StructureShape.new(name: 'TagCondition')
247
+ TagFilter = Shapes::UnionShape.new(name: 'TagFilter')
243
248
  TagKey = Shapes::StringShape.new(name: 'TagKey')
244
249
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
245
250
  TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
@@ -258,6 +263,8 @@ module Aws::QConnect
258
263
  UpdateKnowledgeBaseTemplateUriResponse = Shapes::StructureShape.new(name: 'UpdateKnowledgeBaseTemplateUriResponse')
259
264
  UpdateQuickResponseRequest = Shapes::StructureShape.new(name: 'UpdateQuickResponseRequest')
260
265
  UpdateQuickResponseResponse = Shapes::StructureShape.new(name: 'UpdateQuickResponseResponse')
266
+ UpdateSessionRequest = Shapes::StructureShape.new(name: 'UpdateSessionRequest')
267
+ UpdateSessionResponse = Shapes::StructureShape.new(name: 'UpdateSessionResponse')
261
268
  UploadId = Shapes::StringShape.new(name: 'UploadId')
262
269
  Uri = Shapes::StringShape.new(name: 'Uri')
263
270
  Url = Shapes::StringShape.new(name: 'Url')
@@ -269,6 +276,8 @@ module Aws::QConnect
269
276
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
270
277
  AccessDeniedException.struct_class = Types::AccessDeniedException
271
278
 
279
+ AndConditions.member = Shapes::ShapeRef.new(shape: TagCondition)
280
+
272
281
  AppIntegrationsConfiguration.add_member(:app_integration_arn, Shapes::ShapeRef.new(shape: GenericArn, required: true, location_name: "appIntegrationArn"))
273
282
  AppIntegrationsConfiguration.add_member(:object_fields, Shapes::ShapeRef.new(shape: ObjectFieldsList, location_name: "objectFields"))
274
283
  AppIntegrationsConfiguration.struct_class = Types::AppIntegrationsConfiguration
@@ -474,6 +483,7 @@ module Aws::QConnect
474
483
  CreateSessionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
475
484
  CreateSessionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
476
485
  CreateSessionRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
486
+ CreateSessionRequest.add_member(:tag_filter, Shapes::ShapeRef.new(shape: TagFilter, location_name: "tagFilter"))
477
487
  CreateSessionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
478
488
  CreateSessionRequest.struct_class = Types::CreateSessionRequest
479
489
 
@@ -784,6 +794,16 @@ module Aws::QConnect
784
794
 
785
795
  ObjectFieldsList.member = Shapes::ShapeRef.new(shape: NonEmptyString)
786
796
 
797
+ OrCondition.add_member(:and_conditions, Shapes::ShapeRef.new(shape: AndConditions, location_name: "andConditions"))
798
+ OrCondition.add_member(:tag_condition, Shapes::ShapeRef.new(shape: TagCondition, location_name: "tagCondition"))
799
+ OrCondition.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
800
+ OrCondition.add_member_subclass(:and_conditions, Types::OrCondition::AndConditions)
801
+ OrCondition.add_member_subclass(:tag_condition, Types::OrCondition::TagCondition)
802
+ OrCondition.add_member_subclass(:unknown, Types::OrCondition::Unknown)
803
+ OrCondition.struct_class = Types::OrCondition
804
+
805
+ OrConditions.member = Shapes::ShapeRef.new(shape: OrCondition)
806
+
787
807
  PreconditionFailedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
788
808
  PreconditionFailedException.struct_class = Types::PreconditionFailedException
789
809
 
@@ -1036,6 +1056,7 @@ module Aws::QConnect
1036
1056
  SessionData.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
1037
1057
  SessionData.add_member(:session_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "sessionArn"))
1038
1058
  SessionData.add_member(:session_id, Shapes::ShapeRef.new(shape: Uuid, required: true, location_name: "sessionId"))
1059
+ SessionData.add_member(:tag_filter, Shapes::ShapeRef.new(shape: TagFilter, location_name: "tagFilter"))
1039
1060
  SessionData.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1040
1061
  SessionData.struct_class = Types::SessionData
1041
1062
 
@@ -1084,6 +1105,20 @@ module Aws::QConnect
1084
1105
  StartImportJobResponse.add_member(:import_job, Shapes::ShapeRef.new(shape: ImportJobData, location_name: "importJob"))
1085
1106
  StartImportJobResponse.struct_class = Types::StartImportJobResponse
1086
1107
 
1108
+ TagCondition.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
1109
+ TagCondition.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "value"))
1110
+ TagCondition.struct_class = Types::TagCondition
1111
+
1112
+ TagFilter.add_member(:and_conditions, Shapes::ShapeRef.new(shape: AndConditions, location_name: "andConditions"))
1113
+ TagFilter.add_member(:or_conditions, Shapes::ShapeRef.new(shape: OrConditions, location_name: "orConditions"))
1114
+ TagFilter.add_member(:tag_condition, Shapes::ShapeRef.new(shape: TagCondition, location_name: "tagCondition"))
1115
+ TagFilter.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1116
+ TagFilter.add_member_subclass(:and_conditions, Types::TagFilter::AndConditions)
1117
+ TagFilter.add_member_subclass(:or_conditions, Types::TagFilter::OrConditions)
1118
+ TagFilter.add_member_subclass(:tag_condition, Types::TagFilter::TagCondition)
1119
+ TagFilter.add_member_subclass(:unknown, Types::TagFilter::Unknown)
1120
+ TagFilter.struct_class = Types::TagFilter
1121
+
1087
1122
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
1088
1123
 
1089
1124
  TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
@@ -1148,6 +1183,15 @@ module Aws::QConnect
1148
1183
  UpdateQuickResponseResponse.add_member(:quick_response, Shapes::ShapeRef.new(shape: QuickResponseData, location_name: "quickResponse"))
1149
1184
  UpdateQuickResponseResponse.struct_class = Types::UpdateQuickResponseResponse
1150
1185
 
1186
+ UpdateSessionRequest.add_member(:assistant_id, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location: "uri", location_name: "assistantId"))
1187
+ UpdateSessionRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
1188
+ UpdateSessionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: UuidOrArn, required: true, location: "uri", location_name: "sessionId"))
1189
+ UpdateSessionRequest.add_member(:tag_filter, Shapes::ShapeRef.new(shape: TagFilter, location_name: "tagFilter"))
1190
+ UpdateSessionRequest.struct_class = Types::UpdateSessionRequest
1191
+
1192
+ UpdateSessionResponse.add_member(:session, Shapes::ShapeRef.new(shape: SessionData, location_name: "session"))
1193
+ UpdateSessionResponse.struct_class = Types::UpdateSessionResponse
1194
+
1151
1195
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
1152
1196
  ValidationException.struct_class = Types::ValidationException
1153
1197
 
@@ -1240,6 +1284,7 @@ module Aws::QConnect
1240
1284
  o.output = Shapes::ShapeRef.new(shape: CreateSessionResponse)
1241
1285
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1242
1286
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1287
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1243
1288
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1244
1289
  end)
1245
1290
 
@@ -1701,6 +1746,17 @@ module Aws::QConnect
1701
1746
  o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
1702
1747
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1703
1748
  end)
1749
+
1750
+ api.add_operation(:update_session, Seahorse::Model::Operation.new.tap do |o|
1751
+ o.name = "UpdateSession"
1752
+ o.http_method = "POST"
1753
+ o.http_request_uri = "/assistants/{assistantId}/sessions/{sessionId}"
1754
+ o.input = Shapes::ShapeRef.new(shape: UpdateSessionRequest)
1755
+ o.output = Shapes::ShapeRef.new(shape: UpdateSessionResponse)
1756
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1757
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1758
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1759
+ end)
1704
1760
  end
1705
1761
 
1706
1762
  end
@@ -600,5 +600,19 @@ module Aws::QConnect
600
600
  end
601
601
  end
602
602
 
603
+ class UpdateSession
604
+ def self.build(context)
605
+ unless context.config.regional_endpoint
606
+ endpoint = context.config.endpoint.to_s
607
+ end
608
+ Aws::QConnect::EndpointParameters.new(
609
+ region: context.config.region,
610
+ use_dual_stack: context.config.use_dualstack_endpoint,
611
+ use_fips: context.config.use_fips_endpoint,
612
+ endpoint: endpoint,
613
+ )
614
+ end
615
+ end
616
+
603
617
  end
604
618
  end
@@ -142,6 +142,8 @@ module Aws::QConnect
142
142
  Aws::QConnect::Endpoints::UpdateKnowledgeBaseTemplateUri.build(context)
143
143
  when :update_quick_response
144
144
  Aws::QConnect::Endpoints::UpdateQuickResponse.build(context)
145
+ when :update_session
146
+ Aws::QConnect::Endpoints::UpdateSession.build(context)
145
147
  end
146
148
  end
147
149
  end