aws-sdk-qbusiness 1.26.0 → 1.27.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.
@@ -91,6 +91,8 @@ module Aws::QBusiness
91
91
  BrowserExtension = Shapes::StringShape.new(name: 'BrowserExtension')
92
92
  BrowserExtensionConfiguration = Shapes::StructureShape.new(name: 'BrowserExtensionConfiguration')
93
93
  BrowserExtensionList = Shapes::ListShape.new(name: 'BrowserExtensionList')
94
+ CancelSubscriptionRequest = Shapes::StructureShape.new(name: 'CancelSubscriptionRequest')
95
+ CancelSubscriptionResponse = Shapes::StructureShape.new(name: 'CancelSubscriptionResponse')
94
96
  ChatInput = Shapes::StructureShape.new(name: 'ChatInput')
95
97
  ChatInputStream = Shapes::StructureShape.new(name: 'ChatInputStream')
96
98
  ChatMode = Shapes::StringShape.new(name: 'ChatMode')
@@ -127,6 +129,8 @@ module Aws::QBusiness
127
129
  CreatePluginResponse = Shapes::StructureShape.new(name: 'CreatePluginResponse')
128
130
  CreateRetrieverRequest = Shapes::StructureShape.new(name: 'CreateRetrieverRequest')
129
131
  CreateRetrieverResponse = Shapes::StructureShape.new(name: 'CreateRetrieverResponse')
132
+ CreateSubscriptionRequest = Shapes::StructureShape.new(name: 'CreateSubscriptionRequest')
133
+ CreateSubscriptionResponse = Shapes::StructureShape.new(name: 'CreateSubscriptionResponse')
130
134
  CreateUserRequest = Shapes::StructureShape.new(name: 'CreateUserRequest')
131
135
  CreateUserRequestUserAliasesList = Shapes::ListShape.new(name: 'CreateUserRequestUserAliasesList')
132
136
  CreateUserResponse = Shapes::StructureShape.new(name: 'CreateUserResponse')
@@ -248,6 +252,7 @@ module Aws::QBusiness
248
252
  GetUserResponse = Shapes::StructureShape.new(name: 'GetUserResponse')
249
253
  GetWebExperienceRequest = Shapes::StructureShape.new(name: 'GetWebExperienceRequest')
250
254
  GetWebExperienceResponse = Shapes::StructureShape.new(name: 'GetWebExperienceResponse')
255
+ GroupIdentifier = Shapes::StringShape.new(name: 'GroupIdentifier')
251
256
  GroupMembers = Shapes::StructureShape.new(name: 'GroupMembers')
252
257
  GroupName = Shapes::StringShape.new(name: 'GroupName')
253
258
  GroupStatus = Shapes::StringShape.new(name: 'GroupStatus')
@@ -316,6 +321,8 @@ module Aws::QBusiness
316
321
  ListPluginsResponse = Shapes::StructureShape.new(name: 'ListPluginsResponse')
317
322
  ListRetrieversRequest = Shapes::StructureShape.new(name: 'ListRetrieversRequest')
318
323
  ListRetrieversResponse = Shapes::StructureShape.new(name: 'ListRetrieversResponse')
324
+ ListSubscriptionsRequest = Shapes::StructureShape.new(name: 'ListSubscriptionsRequest')
325
+ ListSubscriptionsResponse = Shapes::StructureShape.new(name: 'ListSubscriptionsResponse')
319
326
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
320
327
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
321
328
  ListWebExperiencesRequest = Shapes::StructureShape.new(name: 'ListWebExperiencesRequest')
@@ -339,6 +346,7 @@ module Aws::QBusiness
339
346
  MaxResultsIntegerForListPluginTypeMetadata = Shapes::IntegerShape.new(name: 'MaxResultsIntegerForListPluginTypeMetadata')
340
347
  MaxResultsIntegerForListPlugins = Shapes::IntegerShape.new(name: 'MaxResultsIntegerForListPlugins')
341
348
  MaxResultsIntegerForListRetrieversRequest = Shapes::IntegerShape.new(name: 'MaxResultsIntegerForListRetrieversRequest')
349
+ MaxResultsIntegerForListSubscriptions = Shapes::IntegerShape.new(name: 'MaxResultsIntegerForListSubscriptions')
342
350
  MaxResultsIntegerForListWebExperiencesRequest = Shapes::IntegerShape.new(name: 'MaxResultsIntegerForListWebExperiencesRequest')
343
351
  MediaExtractionConfiguration = Shapes::StructureShape.new(name: 'MediaExtractionConfiguration')
344
352
  MediaId = Shapes::StringShape.new(name: 'MediaId')
@@ -452,7 +460,13 @@ module Aws::QBusiness
452
460
  StringListAttributeBoostingConfiguration = Shapes::StructureShape.new(name: 'StringListAttributeBoostingConfiguration')
453
461
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
454
462
  SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
463
+ Subscription = Shapes::StructureShape.new(name: 'Subscription')
464
+ SubscriptionArn = Shapes::StringShape.new(name: 'SubscriptionArn')
465
+ SubscriptionDetails = Shapes::StructureShape.new(name: 'SubscriptionDetails')
466
+ SubscriptionId = Shapes::StringShape.new(name: 'SubscriptionId')
467
+ SubscriptionPrincipal = Shapes::UnionShape.new(name: 'SubscriptionPrincipal')
455
468
  SubscriptionType = Shapes::StringShape.new(name: 'SubscriptionType')
469
+ Subscriptions = Shapes::ListShape.new(name: 'Subscriptions')
456
470
  SyncSchedule = Shapes::StringShape.new(name: 'SyncSchedule')
457
471
  SystemMessageId = Shapes::StringShape.new(name: 'SystemMessageId')
458
472
  SystemMessageOverride = Shapes::StringShape.new(name: 'SystemMessageOverride')
@@ -491,6 +505,8 @@ module Aws::QBusiness
491
505
  UpdatePluginResponse = Shapes::StructureShape.new(name: 'UpdatePluginResponse')
492
506
  UpdateRetrieverRequest = Shapes::StructureShape.new(name: 'UpdateRetrieverRequest')
493
507
  UpdateRetrieverResponse = Shapes::StructureShape.new(name: 'UpdateRetrieverResponse')
508
+ UpdateSubscriptionRequest = Shapes::StructureShape.new(name: 'UpdateSubscriptionRequest')
509
+ UpdateSubscriptionResponse = Shapes::StructureShape.new(name: 'UpdateSubscriptionResponse')
494
510
  UpdateUserRequest = Shapes::StructureShape.new(name: 'UpdateUserRequest')
495
511
  UpdateUserResponse = Shapes::StructureShape.new(name: 'UpdateUserResponse')
496
512
  UpdateWebExperienceRequest = Shapes::StructureShape.new(name: 'UpdateWebExperienceRequest')
@@ -500,6 +516,7 @@ module Aws::QBusiness
500
516
  UserAliases = Shapes::ListShape.new(name: 'UserAliases')
501
517
  UserGroups = Shapes::ListShape.new(name: 'UserGroups')
502
518
  UserId = Shapes::StringShape.new(name: 'UserId')
519
+ UserIdentifier = Shapes::StringShape.new(name: 'UserIdentifier')
503
520
  UserIds = Shapes::ListShape.new(name: 'UserIds')
504
521
  UserMessage = Shapes::StringShape.new(name: 'UserMessage')
505
522
  UsersAndGroups = Shapes::StructureShape.new(name: 'UsersAndGroups')
@@ -742,6 +759,15 @@ module Aws::QBusiness
742
759
 
743
760
  BrowserExtensionList.member = Shapes::ShapeRef.new(shape: BrowserExtension)
744
761
 
762
+ CancelSubscriptionRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
763
+ CancelSubscriptionRequest.add_member(:subscription_id, Shapes::ShapeRef.new(shape: SubscriptionId, required: true, location: "uri", location_name: "subscriptionId"))
764
+ CancelSubscriptionRequest.struct_class = Types::CancelSubscriptionRequest
765
+
766
+ CancelSubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: SubscriptionArn, location_name: "subscriptionArn"))
767
+ CancelSubscriptionResponse.add_member(:current_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "currentSubscription"))
768
+ CancelSubscriptionResponse.add_member(:next_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "nextSubscription"))
769
+ CancelSubscriptionResponse.struct_class = Types::CancelSubscriptionResponse
770
+
745
771
  ChatInput.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
746
772
  ChatInput.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location: "querystring", location_name: "userId"))
747
773
  ChatInput.add_member(:user_groups, Shapes::ShapeRef.new(shape: UserGroups, location: "querystring", location_name: "userGroups"))
@@ -937,6 +963,18 @@ module Aws::QBusiness
937
963
  CreateRetrieverResponse.add_member(:retriever_arn, Shapes::ShapeRef.new(shape: RetrieverArn, location_name: "retrieverArn"))
938
964
  CreateRetrieverResponse.struct_class = Types::CreateRetrieverResponse
939
965
 
966
+ CreateSubscriptionRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
967
+ CreateSubscriptionRequest.add_member(:principal, Shapes::ShapeRef.new(shape: SubscriptionPrincipal, required: true, location_name: "principal"))
968
+ CreateSubscriptionRequest.add_member(:type, Shapes::ShapeRef.new(shape: SubscriptionType, required: true, location_name: "type"))
969
+ CreateSubscriptionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
970
+ CreateSubscriptionRequest.struct_class = Types::CreateSubscriptionRequest
971
+
972
+ CreateSubscriptionResponse.add_member(:subscription_id, Shapes::ShapeRef.new(shape: SubscriptionId, location_name: "subscriptionId"))
973
+ CreateSubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: SubscriptionArn, location_name: "subscriptionArn"))
974
+ CreateSubscriptionResponse.add_member(:current_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "currentSubscription"))
975
+ CreateSubscriptionResponse.add_member(:next_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "nextSubscription"))
976
+ CreateSubscriptionResponse.struct_class = Types::CreateSubscriptionResponse
977
+
940
978
  CreateUserRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
941
979
  CreateUserRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "userId"))
942
980
  CreateUserRequest.add_member(:user_aliases, Shapes::ShapeRef.new(shape: CreateUserRequestUserAliasesList, location_name: "userAliases"))
@@ -1632,6 +1670,15 @@ module Aws::QBusiness
1632
1670
  ListRetrieversResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1633
1671
  ListRetrieversResponse.struct_class = Types::ListRetrieversResponse
1634
1672
 
1673
+ ListSubscriptionsRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
1674
+ ListSubscriptionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
1675
+ ListSubscriptionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsIntegerForListSubscriptions, location: "querystring", location_name: "maxResults"))
1676
+ ListSubscriptionsRequest.struct_class = Types::ListSubscriptionsRequest
1677
+
1678
+ ListSubscriptionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1679
+ ListSubscriptionsResponse.add_member(:subscriptions, Shapes::ShapeRef.new(shape: Subscriptions, location_name: "subscriptions"))
1680
+ ListSubscriptionsResponse.struct_class = Types::ListSubscriptionsResponse
1681
+
1635
1682
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "uri", location_name: "resourceARN"))
1636
1683
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
1637
1684
 
@@ -1918,6 +1965,26 @@ module Aws::QBusiness
1918
1965
 
1919
1966
  SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
1920
1967
 
1968
+ Subscription.add_member(:subscription_id, Shapes::ShapeRef.new(shape: SubscriptionId, location_name: "subscriptionId"))
1969
+ Subscription.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: SubscriptionArn, location_name: "subscriptionArn"))
1970
+ Subscription.add_member(:principal, Shapes::ShapeRef.new(shape: SubscriptionPrincipal, location_name: "principal"))
1971
+ Subscription.add_member(:current_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "currentSubscription"))
1972
+ Subscription.add_member(:next_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "nextSubscription"))
1973
+ Subscription.struct_class = Types::Subscription
1974
+
1975
+ SubscriptionDetails.add_member(:type, Shapes::ShapeRef.new(shape: SubscriptionType, location_name: "type"))
1976
+ SubscriptionDetails.struct_class = Types::SubscriptionDetails
1977
+
1978
+ SubscriptionPrincipal.add_member(:user, Shapes::ShapeRef.new(shape: UserIdentifier, location_name: "user"))
1979
+ SubscriptionPrincipal.add_member(:group, Shapes::ShapeRef.new(shape: GroupIdentifier, location_name: "group"))
1980
+ SubscriptionPrincipal.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1981
+ SubscriptionPrincipal.add_member_subclass(:user, Types::SubscriptionPrincipal::User)
1982
+ SubscriptionPrincipal.add_member_subclass(:group, Types::SubscriptionPrincipal::Group)
1983
+ SubscriptionPrincipal.add_member_subclass(:unknown, Types::SubscriptionPrincipal::Unknown)
1984
+ SubscriptionPrincipal.struct_class = Types::SubscriptionPrincipal
1985
+
1986
+ Subscriptions.member = Shapes::ShapeRef.new(shape: Subscription)
1987
+
1921
1988
  Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
1922
1989
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
1923
1990
  Tag.struct_class = Types::Tag
@@ -2048,6 +2115,16 @@ module Aws::QBusiness
2048
2115
 
2049
2116
  UpdateRetrieverResponse.struct_class = Types::UpdateRetrieverResponse
2050
2117
 
2118
+ UpdateSubscriptionRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
2119
+ UpdateSubscriptionRequest.add_member(:subscription_id, Shapes::ShapeRef.new(shape: SubscriptionId, required: true, location: "uri", location_name: "subscriptionId"))
2120
+ UpdateSubscriptionRequest.add_member(:type, Shapes::ShapeRef.new(shape: SubscriptionType, required: true, location_name: "type"))
2121
+ UpdateSubscriptionRequest.struct_class = Types::UpdateSubscriptionRequest
2122
+
2123
+ UpdateSubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: SubscriptionArn, location_name: "subscriptionArn"))
2124
+ UpdateSubscriptionResponse.add_member(:current_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "currentSubscription"))
2125
+ UpdateSubscriptionResponse.add_member(:next_subscription, Shapes::ShapeRef.new(shape: SubscriptionDetails, location_name: "nextSubscription"))
2126
+ UpdateSubscriptionResponse.struct_class = Types::UpdateSubscriptionResponse
2127
+
2051
2128
  UpdateUserRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: ApplicationId, required: true, location: "uri", location_name: "applicationId"))
2052
2129
  UpdateUserRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "userId"))
2053
2130
  UpdateUserRequest.add_member(:user_aliases_to_update, Shapes::ShapeRef.new(shape: UserAliases, location_name: "userAliasesToUpdate"))
@@ -2182,6 +2259,19 @@ module Aws::QBusiness
2182
2259
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2183
2260
  end)
2184
2261
 
2262
+ api.add_operation(:cancel_subscription, Seahorse::Model::Operation.new.tap do |o|
2263
+ o.name = "CancelSubscription"
2264
+ o.http_method = "DELETE"
2265
+ o.http_request_uri = "/applications/{applicationId}/subscriptions/{subscriptionId}"
2266
+ o.input = Shapes::ShapeRef.new(shape: CancelSubscriptionRequest)
2267
+ o.output = Shapes::ShapeRef.new(shape: CancelSubscriptionResponse)
2268
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2269
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2270
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2271
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2272
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2273
+ end)
2274
+
2185
2275
  api.add_operation(:chat, Seahorse::Model::Operation.new.tap do |o|
2186
2276
  o.name = "Chat"
2187
2277
  o.http_method = "POST"
@@ -2305,6 +2395,20 @@ module Aws::QBusiness
2305
2395
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2306
2396
  end)
2307
2397
 
2398
+ api.add_operation(:create_subscription, Seahorse::Model::Operation.new.tap do |o|
2399
+ o.name = "CreateSubscription"
2400
+ o.http_method = "POST"
2401
+ o.http_request_uri = "/applications/{applicationId}/subscriptions"
2402
+ o.input = Shapes::ShapeRef.new(shape: CreateSubscriptionRequest)
2403
+ o.output = Shapes::ShapeRef.new(shape: CreateSubscriptionResponse)
2404
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2405
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2406
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2407
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2408
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2409
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2410
+ end)
2411
+
2308
2412
  api.add_operation(:create_user, Seahorse::Model::Operation.new.tap do |o|
2309
2413
  o.name = "CreateUser"
2310
2414
  o.http_method = "POST"
@@ -2955,6 +3059,26 @@ module Aws::QBusiness
2955
3059
  )
2956
3060
  end)
2957
3061
 
3062
+ api.add_operation(:list_subscriptions, Seahorse::Model::Operation.new.tap do |o|
3063
+ o.name = "ListSubscriptions"
3064
+ o.http_method = "GET"
3065
+ o.http_request_uri = "/applications/{applicationId}/subscriptions"
3066
+ o.input = Shapes::ShapeRef.new(shape: ListSubscriptionsRequest)
3067
+ o.output = Shapes::ShapeRef.new(shape: ListSubscriptionsResponse)
3068
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3069
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3070
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
3071
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3072
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3073
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3074
+ o[:pager] = Aws::Pager.new(
3075
+ limit_key: "max_results",
3076
+ tokens: {
3077
+ "next_token" => "next_token"
3078
+ }
3079
+ )
3080
+ end)
3081
+
2958
3082
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
2959
3083
  o.name = "ListTagsForResource"
2960
3084
  o.http_method = "GET"
@@ -3193,6 +3317,20 @@ module Aws::QBusiness
3193
3317
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
3194
3318
  end)
3195
3319
 
3320
+ api.add_operation(:update_subscription, Seahorse::Model::Operation.new.tap do |o|
3321
+ o.name = "UpdateSubscription"
3322
+ o.http_method = "PUT"
3323
+ o.http_request_uri = "/applications/{applicationId}/subscriptions/{subscriptionId}"
3324
+ o.input = Shapes::ShapeRef.new(shape: UpdateSubscriptionRequest)
3325
+ o.output = Shapes::ShapeRef.new(shape: UpdateSubscriptionResponse)
3326
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3327
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3328
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
3329
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3330
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3331
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3332
+ end)
3333
+
3196
3334
  api.add_operation(:update_user, Seahorse::Model::Operation.new.tap do |o|
3197
3335
  o.name = "UpdateUser"
3198
3336
  o.http_method = "PUT"