aws-sdk-chatbot 1.17.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,10 @@ module Aws::Chatbot
17
17
  AccountPreferences = Shapes::StructureShape.new(name: 'AccountPreferences')
18
18
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
19
  Arn = Shapes::StringShape.new(name: 'Arn')
20
+ AssociateToConfigurationRequest = Shapes::StructureShape.new(name: 'AssociateToConfigurationRequest')
21
+ AssociateToConfigurationResult = Shapes::StructureShape.new(name: 'AssociateToConfigurationResult')
22
+ AssociationList = Shapes::ListShape.new(name: 'AssociationList')
23
+ AssociationListing = Shapes::StructureShape.new(name: 'AssociationListing')
20
24
  AwsUserIdentity = Shapes::StringShape.new(name: 'AwsUserIdentity')
21
25
  BooleanAccountPreference = Shapes::BooleanShape.new(name: 'BooleanAccountPreference')
22
26
  ChatConfigurationArn = Shapes::StringShape.new(name: 'ChatConfigurationArn')
@@ -24,6 +28,7 @@ module Aws::Chatbot
24
28
  ChimeWebhookConfigurationList = Shapes::ListShape.new(name: 'ChimeWebhookConfigurationList')
25
29
  ChimeWebhookDescription = Shapes::StringShape.new(name: 'ChimeWebhookDescription')
26
30
  ChimeWebhookUrl = Shapes::StringShape.new(name: 'ChimeWebhookUrl')
31
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
27
32
  ConfigurationName = Shapes::StringShape.new(name: 'ConfigurationName')
28
33
  ConfiguredTeam = Shapes::StructureShape.new(name: 'ConfiguredTeam')
29
34
  ConfiguredTeamsList = Shapes::ListShape.new(name: 'ConfiguredTeamsList')
@@ -31,16 +36,39 @@ module Aws::Chatbot
31
36
  CreateChimeWebhookConfigurationException = Shapes::StructureShape.new(name: 'CreateChimeWebhookConfigurationException')
32
37
  CreateChimeWebhookConfigurationRequest = Shapes::StructureShape.new(name: 'CreateChimeWebhookConfigurationRequest')
33
38
  CreateChimeWebhookConfigurationResult = Shapes::StructureShape.new(name: 'CreateChimeWebhookConfigurationResult')
39
+ CreateCustomActionRequest = Shapes::StructureShape.new(name: 'CreateCustomActionRequest')
40
+ CreateCustomActionResult = Shapes::StructureShape.new(name: 'CreateCustomActionResult')
34
41
  CreateSlackChannelConfigurationException = Shapes::StructureShape.new(name: 'CreateSlackChannelConfigurationException')
35
42
  CreateSlackChannelConfigurationRequest = Shapes::StructureShape.new(name: 'CreateSlackChannelConfigurationRequest')
36
43
  CreateSlackChannelConfigurationResult = Shapes::StructureShape.new(name: 'CreateSlackChannelConfigurationResult')
37
44
  CreateTeamsChannelConfigurationException = Shapes::StructureShape.new(name: 'CreateTeamsChannelConfigurationException')
38
45
  CreateTeamsChannelConfigurationRequest = Shapes::StructureShape.new(name: 'CreateTeamsChannelConfigurationRequest')
39
46
  CreateTeamsChannelConfigurationResult = Shapes::StructureShape.new(name: 'CreateTeamsChannelConfigurationResult')
47
+ CustomAction = Shapes::StructureShape.new(name: 'CustomAction')
48
+ CustomActionAliasName = Shapes::StringShape.new(name: 'CustomActionAliasName')
49
+ CustomActionArn = Shapes::StringShape.new(name: 'CustomActionArn')
50
+ CustomActionArnList = Shapes::ListShape.new(name: 'CustomActionArnList')
51
+ CustomActionAttachment = Shapes::StructureShape.new(name: 'CustomActionAttachment')
52
+ CustomActionAttachmentCriteria = Shapes::StructureShape.new(name: 'CustomActionAttachmentCriteria')
53
+ CustomActionAttachmentCriteriaList = Shapes::ListShape.new(name: 'CustomActionAttachmentCriteriaList')
54
+ CustomActionAttachmentCriteriaOperator = Shapes::StringShape.new(name: 'CustomActionAttachmentCriteriaOperator')
55
+ CustomActionAttachmentCriteriaValueString = Shapes::StringShape.new(name: 'CustomActionAttachmentCriteriaValueString')
56
+ CustomActionAttachmentCriteriaVariableNameString = Shapes::StringShape.new(name: 'CustomActionAttachmentCriteriaVariableNameString')
57
+ CustomActionAttachmentList = Shapes::ListShape.new(name: 'CustomActionAttachmentList')
58
+ CustomActionAttachmentNotificationType = Shapes::StringShape.new(name: 'CustomActionAttachmentNotificationType')
59
+ CustomActionAttachmentVariables = Shapes::MapShape.new(name: 'CustomActionAttachmentVariables')
60
+ CustomActionAttachmentVariablesKeyString = Shapes::StringShape.new(name: 'CustomActionAttachmentVariablesKeyString')
61
+ CustomActionAttachmentVariablesValueString = Shapes::StringShape.new(name: 'CustomActionAttachmentVariablesValueString')
62
+ CustomActionButtonText = Shapes::StringShape.new(name: 'CustomActionButtonText')
63
+ CustomActionDefinition = Shapes::StructureShape.new(name: 'CustomActionDefinition')
64
+ CustomActionDefinitionCommandTextString = Shapes::StringShape.new(name: 'CustomActionDefinitionCommandTextString')
65
+ CustomActionName = Shapes::StringShape.new(name: 'CustomActionName')
40
66
  CustomerCwLogLevel = Shapes::StringShape.new(name: 'CustomerCwLogLevel')
41
67
  DeleteChimeWebhookConfigurationException = Shapes::StructureShape.new(name: 'DeleteChimeWebhookConfigurationException')
42
68
  DeleteChimeWebhookConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteChimeWebhookConfigurationRequest')
43
69
  DeleteChimeWebhookConfigurationResult = Shapes::StructureShape.new(name: 'DeleteChimeWebhookConfigurationResult')
70
+ DeleteCustomActionRequest = Shapes::StructureShape.new(name: 'DeleteCustomActionRequest')
71
+ DeleteCustomActionResult = Shapes::StructureShape.new(name: 'DeleteCustomActionResult')
44
72
  DeleteMicrosoftTeamsUserIdentityException = Shapes::StructureShape.new(name: 'DeleteMicrosoftTeamsUserIdentityException')
45
73
  DeleteMicrosoftTeamsUserIdentityRequest = Shapes::StructureShape.new(name: 'DeleteMicrosoftTeamsUserIdentityRequest')
46
74
  DeleteMicrosoftTeamsUserIdentityResult = Shapes::StructureShape.new(name: 'DeleteMicrosoftTeamsUserIdentityResult')
@@ -71,10 +99,14 @@ module Aws::Chatbot
71
99
  DescribeSlackWorkspacesException = Shapes::StructureShape.new(name: 'DescribeSlackWorkspacesException')
72
100
  DescribeSlackWorkspacesRequest = Shapes::StructureShape.new(name: 'DescribeSlackWorkspacesRequest')
73
101
  DescribeSlackWorkspacesResult = Shapes::StructureShape.new(name: 'DescribeSlackWorkspacesResult')
102
+ DisassociateFromConfigurationRequest = Shapes::StructureShape.new(name: 'DisassociateFromConfigurationRequest')
103
+ DisassociateFromConfigurationResult = Shapes::StructureShape.new(name: 'DisassociateFromConfigurationResult')
74
104
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
75
105
  GetAccountPreferencesException = Shapes::StructureShape.new(name: 'GetAccountPreferencesException')
76
106
  GetAccountPreferencesRequest = Shapes::StructureShape.new(name: 'GetAccountPreferencesRequest')
77
107
  GetAccountPreferencesResult = Shapes::StructureShape.new(name: 'GetAccountPreferencesResult')
108
+ GetCustomActionRequest = Shapes::StructureShape.new(name: 'GetCustomActionRequest')
109
+ GetCustomActionResult = Shapes::StructureShape.new(name: 'GetCustomActionResult')
78
110
  GetTeamsChannelConfigurationException = Shapes::StructureShape.new(name: 'GetTeamsChannelConfigurationException')
79
111
  GetTeamsChannelConfigurationRequest = Shapes::StructureShape.new(name: 'GetTeamsChannelConfigurationRequest')
80
112
  GetTeamsChannelConfigurationResult = Shapes::StructureShape.new(name: 'GetTeamsChannelConfigurationResult')
@@ -84,6 +116,16 @@ module Aws::Chatbot
84
116
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
85
117
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
86
118
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
119
+ ListAssociationsRequest = Shapes::StructureShape.new(name: 'ListAssociationsRequest')
120
+ ListAssociationsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListAssociationsRequestMaxResultsInteger')
121
+ ListAssociationsRequestNextTokenString = Shapes::StringShape.new(name: 'ListAssociationsRequestNextTokenString')
122
+ ListAssociationsResult = Shapes::StructureShape.new(name: 'ListAssociationsResult')
123
+ ListAssociationsResultNextTokenString = Shapes::StringShape.new(name: 'ListAssociationsResultNextTokenString')
124
+ ListCustomActionsRequest = Shapes::StructureShape.new(name: 'ListCustomActionsRequest')
125
+ ListCustomActionsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListCustomActionsRequestMaxResultsInteger')
126
+ ListCustomActionsRequestNextTokenString = Shapes::StringShape.new(name: 'ListCustomActionsRequestNextTokenString')
127
+ ListCustomActionsResult = Shapes::StructureShape.new(name: 'ListCustomActionsResult')
128
+ ListCustomActionsResultNextTokenString = Shapes::StringShape.new(name: 'ListCustomActionsResultNextTokenString')
87
129
  ListMicrosoftTeamsConfiguredTeamsException = Shapes::StructureShape.new(name: 'ListMicrosoftTeamsConfiguredTeamsException')
88
130
  ListMicrosoftTeamsConfiguredTeamsRequest = Shapes::StructureShape.new(name: 'ListMicrosoftTeamsConfiguredTeamsRequest')
89
131
  ListMicrosoftTeamsConfiguredTeamsResult = Shapes::StructureShape.new(name: 'ListMicrosoftTeamsConfiguredTeamsResult')
@@ -97,6 +139,7 @@ module Aws::Chatbot
97
139
  ListTeamsChannelConfigurationsResult = Shapes::StructureShape.new(name: 'ListTeamsChannelConfigurationsResult')
98
140
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
99
141
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
142
+ ResourceIdentifier = Shapes::StringShape.new(name: 'ResourceIdentifier')
100
143
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
101
144
  ResourceState = Shapes::StringShape.new(name: 'ResourceState')
102
145
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
@@ -130,6 +173,7 @@ module Aws::Chatbot
130
173
  TeamsUserIdentity = Shapes::StructureShape.new(name: 'TeamsUserIdentity')
131
174
  TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
132
175
  UUID = Shapes::StringShape.new(name: 'UUID')
176
+ UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
133
177
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
134
178
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
135
179
  UpdateAccountPreferencesException = Shapes::StructureShape.new(name: 'UpdateAccountPreferencesException')
@@ -138,6 +182,8 @@ module Aws::Chatbot
138
182
  UpdateChimeWebhookConfigurationException = Shapes::StructureShape.new(name: 'UpdateChimeWebhookConfigurationException')
139
183
  UpdateChimeWebhookConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateChimeWebhookConfigurationRequest')
140
184
  UpdateChimeWebhookConfigurationResult = Shapes::StructureShape.new(name: 'UpdateChimeWebhookConfigurationResult')
185
+ UpdateCustomActionRequest = Shapes::StructureShape.new(name: 'UpdateCustomActionRequest')
186
+ UpdateCustomActionResult = Shapes::StructureShape.new(name: 'UpdateCustomActionResult')
141
187
  UpdateSlackChannelConfigurationException = Shapes::StructureShape.new(name: 'UpdateSlackChannelConfigurationException')
142
188
  UpdateSlackChannelConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateSlackChannelConfigurationRequest')
143
189
  UpdateSlackChannelConfigurationResult = Shapes::StructureShape.new(name: 'UpdateSlackChannelConfigurationResult')
@@ -149,6 +195,17 @@ module Aws::Chatbot
149
195
  AccountPreferences.add_member(:training_data_collection_enabled, Shapes::ShapeRef.new(shape: BooleanAccountPreference, location_name: "TrainingDataCollectionEnabled"))
150
196
  AccountPreferences.struct_class = Types::AccountPreferences
151
197
 
198
+ AssociateToConfigurationRequest.add_member(:resource, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Resource"))
199
+ AssociateToConfigurationRequest.add_member(:chat_configuration, Shapes::ShapeRef.new(shape: ChatConfigurationArn, required: true, location_name: "ChatConfiguration"))
200
+ AssociateToConfigurationRequest.struct_class = Types::AssociateToConfigurationRequest
201
+
202
+ AssociateToConfigurationResult.struct_class = Types::AssociateToConfigurationResult
203
+
204
+ AssociationList.member = Shapes::ShapeRef.new(shape: AssociationListing)
205
+
206
+ AssociationListing.add_member(:resource, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "Resource"))
207
+ AssociationListing.struct_class = Types::AssociationListing
208
+
152
209
  ChimeWebhookConfiguration.add_member(:webhook_description, Shapes::ShapeRef.new(shape: ChimeWebhookDescription, required: true, location_name: "WebhookDescription"))
153
210
  ChimeWebhookConfiguration.add_member(:chat_configuration_arn, Shapes::ShapeRef.new(shape: ChatConfigurationArn, required: true, location_name: "ChatConfigurationArn"))
154
211
  ChimeWebhookConfiguration.add_member(:iam_role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "IamRoleArn"))
@@ -189,6 +246,17 @@ module Aws::Chatbot
189
246
  CreateChimeWebhookConfigurationResult.add_member(:webhook_configuration, Shapes::ShapeRef.new(shape: ChimeWebhookConfiguration, location_name: "WebhookConfiguration"))
190
247
  CreateChimeWebhookConfigurationResult.struct_class = Types::CreateChimeWebhookConfigurationResult
191
248
 
249
+ CreateCustomActionRequest.add_member(:definition, Shapes::ShapeRef.new(shape: CustomActionDefinition, required: true, location_name: "Definition"))
250
+ CreateCustomActionRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: CustomActionAliasName, location_name: "AliasName"))
251
+ CreateCustomActionRequest.add_member(:attachments, Shapes::ShapeRef.new(shape: CustomActionAttachmentList, location_name: "Attachments"))
252
+ CreateCustomActionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
253
+ CreateCustomActionRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
254
+ CreateCustomActionRequest.add_member(:action_name, Shapes::ShapeRef.new(shape: CustomActionName, required: true, location_name: "ActionName"))
255
+ CreateCustomActionRequest.struct_class = Types::CreateCustomActionRequest
256
+
257
+ CreateCustomActionResult.add_member(:custom_action_arn, Shapes::ShapeRef.new(shape: CustomActionArn, required: true, location_name: "CustomActionArn"))
258
+ CreateCustomActionResult.struct_class = Types::CreateCustomActionResult
259
+
192
260
  CreateSlackChannelConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
193
261
  CreateSlackChannelConfigurationException.struct_class = Types::CreateSlackChannelConfigurationException
194
262
 
@@ -227,6 +295,36 @@ module Aws::Chatbot
227
295
  CreateTeamsChannelConfigurationResult.add_member(:channel_configuration, Shapes::ShapeRef.new(shape: TeamsChannelConfiguration, location_name: "ChannelConfiguration"))
228
296
  CreateTeamsChannelConfigurationResult.struct_class = Types::CreateTeamsChannelConfigurationResult
229
297
 
298
+ CustomAction.add_member(:custom_action_arn, Shapes::ShapeRef.new(shape: CustomActionArn, required: true, location_name: "CustomActionArn"))
299
+ CustomAction.add_member(:definition, Shapes::ShapeRef.new(shape: CustomActionDefinition, required: true, location_name: "Definition"))
300
+ CustomAction.add_member(:alias_name, Shapes::ShapeRef.new(shape: CustomActionAliasName, location_name: "AliasName"))
301
+ CustomAction.add_member(:attachments, Shapes::ShapeRef.new(shape: CustomActionAttachmentList, location_name: "Attachments"))
302
+ CustomAction.add_member(:action_name, Shapes::ShapeRef.new(shape: CustomActionName, location_name: "ActionName"))
303
+ CustomAction.struct_class = Types::CustomAction
304
+
305
+ CustomActionArnList.member = Shapes::ShapeRef.new(shape: CustomActionArn)
306
+
307
+ CustomActionAttachment.add_member(:notification_type, Shapes::ShapeRef.new(shape: CustomActionAttachmentNotificationType, location_name: "NotificationType"))
308
+ CustomActionAttachment.add_member(:button_text, Shapes::ShapeRef.new(shape: CustomActionButtonText, location_name: "ButtonText"))
309
+ CustomActionAttachment.add_member(:criteria, Shapes::ShapeRef.new(shape: CustomActionAttachmentCriteriaList, location_name: "Criteria"))
310
+ CustomActionAttachment.add_member(:variables, Shapes::ShapeRef.new(shape: CustomActionAttachmentVariables, location_name: "Variables"))
311
+ CustomActionAttachment.struct_class = Types::CustomActionAttachment
312
+
313
+ CustomActionAttachmentCriteria.add_member(:operator, Shapes::ShapeRef.new(shape: CustomActionAttachmentCriteriaOperator, required: true, location_name: "Operator"))
314
+ CustomActionAttachmentCriteria.add_member(:variable_name, Shapes::ShapeRef.new(shape: CustomActionAttachmentCriteriaVariableNameString, required: true, location_name: "VariableName"))
315
+ CustomActionAttachmentCriteria.add_member(:value, Shapes::ShapeRef.new(shape: CustomActionAttachmentCriteriaValueString, location_name: "Value"))
316
+ CustomActionAttachmentCriteria.struct_class = Types::CustomActionAttachmentCriteria
317
+
318
+ CustomActionAttachmentCriteriaList.member = Shapes::ShapeRef.new(shape: CustomActionAttachmentCriteria)
319
+
320
+ CustomActionAttachmentList.member = Shapes::ShapeRef.new(shape: CustomActionAttachment)
321
+
322
+ CustomActionAttachmentVariables.key = Shapes::ShapeRef.new(shape: CustomActionAttachmentVariablesKeyString)
323
+ CustomActionAttachmentVariables.value = Shapes::ShapeRef.new(shape: CustomActionAttachmentVariablesValueString)
324
+
325
+ CustomActionDefinition.add_member(:command_text, Shapes::ShapeRef.new(shape: CustomActionDefinitionCommandTextString, required: true, location_name: "CommandText"))
326
+ CustomActionDefinition.struct_class = Types::CustomActionDefinition
327
+
230
328
  DeleteChimeWebhookConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
231
329
  DeleteChimeWebhookConfigurationException.struct_class = Types::DeleteChimeWebhookConfigurationException
232
330
 
@@ -235,6 +333,11 @@ module Aws::Chatbot
235
333
 
236
334
  DeleteChimeWebhookConfigurationResult.struct_class = Types::DeleteChimeWebhookConfigurationResult
237
335
 
336
+ DeleteCustomActionRequest.add_member(:custom_action_arn, Shapes::ShapeRef.new(shape: CustomActionArn, required: true, location_name: "CustomActionArn"))
337
+ DeleteCustomActionRequest.struct_class = Types::DeleteCustomActionRequest
338
+
339
+ DeleteCustomActionResult.struct_class = Types::DeleteCustomActionResult
340
+
238
341
  DeleteMicrosoftTeamsUserIdentityException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
239
342
  DeleteMicrosoftTeamsUserIdentityException.struct_class = Types::DeleteMicrosoftTeamsUserIdentityException
240
343
 
@@ -333,6 +436,12 @@ module Aws::Chatbot
333
436
  DescribeSlackWorkspacesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
334
437
  DescribeSlackWorkspacesResult.struct_class = Types::DescribeSlackWorkspacesResult
335
438
 
439
+ DisassociateFromConfigurationRequest.add_member(:resource, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Resource"))
440
+ DisassociateFromConfigurationRequest.add_member(:chat_configuration, Shapes::ShapeRef.new(shape: ChatConfigurationArn, required: true, location_name: "ChatConfiguration"))
441
+ DisassociateFromConfigurationRequest.struct_class = Types::DisassociateFromConfigurationRequest
442
+
443
+ DisassociateFromConfigurationResult.struct_class = Types::DisassociateFromConfigurationResult
444
+
336
445
  GetAccountPreferencesException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
337
446
  GetAccountPreferencesException.struct_class = Types::GetAccountPreferencesException
338
447
 
@@ -341,6 +450,12 @@ module Aws::Chatbot
341
450
  GetAccountPreferencesResult.add_member(:account_preferences, Shapes::ShapeRef.new(shape: AccountPreferences, location_name: "AccountPreferences"))
342
451
  GetAccountPreferencesResult.struct_class = Types::GetAccountPreferencesResult
343
452
 
453
+ GetCustomActionRequest.add_member(:custom_action_arn, Shapes::ShapeRef.new(shape: CustomActionArn, required: true, location_name: "CustomActionArn"))
454
+ GetCustomActionRequest.struct_class = Types::GetCustomActionRequest
455
+
456
+ GetCustomActionResult.add_member(:custom_action, Shapes::ShapeRef.new(shape: CustomAction, location_name: "CustomAction"))
457
+ GetCustomActionResult.struct_class = Types::GetCustomActionResult
458
+
344
459
  GetTeamsChannelConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
345
460
  GetTeamsChannelConfigurationException.struct_class = Types::GetTeamsChannelConfigurationException
346
461
 
@@ -364,6 +479,23 @@ module Aws::Chatbot
364
479
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
365
480
  LimitExceededException.struct_class = Types::LimitExceededException
366
481
 
482
+ ListAssociationsRequest.add_member(:chat_configuration, Shapes::ShapeRef.new(shape: ChatConfigurationArn, required: true, location_name: "ChatConfiguration"))
483
+ ListAssociationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAssociationsRequestMaxResultsInteger, location_name: "MaxResults"))
484
+ ListAssociationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListAssociationsRequestNextTokenString, location_name: "NextToken"))
485
+ ListAssociationsRequest.struct_class = Types::ListAssociationsRequest
486
+
487
+ ListAssociationsResult.add_member(:associations, Shapes::ShapeRef.new(shape: AssociationList, required: true, location_name: "Associations"))
488
+ ListAssociationsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: ListAssociationsResultNextTokenString, location_name: "NextToken"))
489
+ ListAssociationsResult.struct_class = Types::ListAssociationsResult
490
+
491
+ ListCustomActionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListCustomActionsRequestMaxResultsInteger, location_name: "MaxResults"))
492
+ ListCustomActionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListCustomActionsRequestNextTokenString, location_name: "NextToken"))
493
+ ListCustomActionsRequest.struct_class = Types::ListCustomActionsRequest
494
+
495
+ ListCustomActionsResult.add_member(:custom_actions, Shapes::ShapeRef.new(shape: CustomActionArnList, required: true, location_name: "CustomActions"))
496
+ ListCustomActionsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: ListCustomActionsResultNextTokenString, location_name: "NextToken"))
497
+ ListCustomActionsResult.struct_class = Types::ListCustomActionsResult
498
+
367
499
  ListMicrosoftTeamsConfiguredTeamsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
368
500
  ListMicrosoftTeamsConfiguredTeamsException.struct_class = Types::ListMicrosoftTeamsConfiguredTeamsException
369
501
 
@@ -497,6 +629,9 @@ module Aws::Chatbot
497
629
  TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
498
630
  TooManyTagsException.struct_class = Types::TooManyTagsException
499
631
 
632
+ UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
633
+ UnauthorizedException.struct_class = Types::UnauthorizedException
634
+
500
635
  UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
501
636
  UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
502
637
  UntagResourceRequest.struct_class = Types::UntagResourceRequest
@@ -527,6 +662,15 @@ module Aws::Chatbot
527
662
  UpdateChimeWebhookConfigurationResult.add_member(:webhook_configuration, Shapes::ShapeRef.new(shape: ChimeWebhookConfiguration, location_name: "WebhookConfiguration"))
528
663
  UpdateChimeWebhookConfigurationResult.struct_class = Types::UpdateChimeWebhookConfigurationResult
529
664
 
665
+ UpdateCustomActionRequest.add_member(:custom_action_arn, Shapes::ShapeRef.new(shape: CustomActionArn, required: true, location_name: "CustomActionArn"))
666
+ UpdateCustomActionRequest.add_member(:definition, Shapes::ShapeRef.new(shape: CustomActionDefinition, required: true, location_name: "Definition"))
667
+ UpdateCustomActionRequest.add_member(:alias_name, Shapes::ShapeRef.new(shape: CustomActionAliasName, location_name: "AliasName"))
668
+ UpdateCustomActionRequest.add_member(:attachments, Shapes::ShapeRef.new(shape: CustomActionAttachmentList, location_name: "Attachments"))
669
+ UpdateCustomActionRequest.struct_class = Types::UpdateCustomActionRequest
670
+
671
+ UpdateCustomActionResult.add_member(:custom_action_arn, Shapes::ShapeRef.new(shape: CustomActionArn, required: true, location_name: "CustomActionArn"))
672
+ UpdateCustomActionResult.struct_class = Types::UpdateCustomActionResult
673
+
530
674
  UpdateSlackChannelConfigurationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
531
675
  UpdateSlackChannelConfigurationException.struct_class = Types::UpdateSlackChannelConfigurationException
532
676
 
@@ -578,6 +722,17 @@ module Aws::Chatbot
578
722
  "uid" => "chatbot-2017-10-11",
579
723
  }
580
724
 
725
+ api.add_operation(:associate_to_configuration, Seahorse::Model::Operation.new.tap do |o|
726
+ o.name = "AssociateToConfiguration"
727
+ o.http_method = "POST"
728
+ o.http_request_uri = "/associate-to-configuration"
729
+ o.input = Shapes::ShapeRef.new(shape: AssociateToConfigurationRequest)
730
+ o.output = Shapes::ShapeRef.new(shape: AssociateToConfigurationResult)
731
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
732
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
733
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
734
+ end)
735
+
581
736
  api.add_operation(:create_chime_webhook_configuration, Seahorse::Model::Operation.new.tap do |o|
582
737
  o.name = "CreateChimeWebhookConfiguration"
583
738
  o.http_method = "POST"
@@ -591,6 +746,19 @@ module Aws::Chatbot
591
746
  o.errors << Shapes::ShapeRef.new(shape: CreateChimeWebhookConfigurationException)
592
747
  end)
593
748
 
749
+ api.add_operation(:create_custom_action, Seahorse::Model::Operation.new.tap do |o|
750
+ o.name = "CreateCustomAction"
751
+ o.http_method = "POST"
752
+ o.http_request_uri = "/create-custom-action"
753
+ o.input = Shapes::ShapeRef.new(shape: CreateCustomActionRequest)
754
+ o.output = Shapes::ShapeRef.new(shape: CreateCustomActionResult)
755
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
756
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
757
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
758
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
759
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
760
+ end)
761
+
594
762
  api.add_operation(:create_microsoft_teams_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
595
763
  o.name = "CreateMicrosoftTeamsChannelConfiguration"
596
764
  o.http_method = "POST"
@@ -629,6 +797,18 @@ module Aws::Chatbot
629
797
  o.errors << Shapes::ShapeRef.new(shape: DeleteChimeWebhookConfigurationException)
630
798
  end)
631
799
 
800
+ api.add_operation(:delete_custom_action, Seahorse::Model::Operation.new.tap do |o|
801
+ o.name = "DeleteCustomAction"
802
+ o.http_method = "POST"
803
+ o.http_request_uri = "/delete-custom-action"
804
+ o.input = Shapes::ShapeRef.new(shape: DeleteCustomActionRequest)
805
+ o.output = Shapes::ShapeRef.new(shape: DeleteCustomActionResult)
806
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
807
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
808
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
809
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
810
+ end)
811
+
632
812
  api.add_operation(:delete_microsoft_teams_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
633
813
  o.name = "DeleteMicrosoftTeamsChannelConfiguration"
634
814
  o.http_method = "POST"
@@ -763,6 +943,17 @@ module Aws::Chatbot
763
943
  )
764
944
  end)
765
945
 
946
+ api.add_operation(:disassociate_from_configuration, Seahorse::Model::Operation.new.tap do |o|
947
+ o.name = "DisassociateFromConfiguration"
948
+ o.http_method = "POST"
949
+ o.http_request_uri = "/disassociate-from-configuration"
950
+ o.input = Shapes::ShapeRef.new(shape: DisassociateFromConfigurationRequest)
951
+ o.output = Shapes::ShapeRef.new(shape: DisassociateFromConfigurationResult)
952
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
953
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
954
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
955
+ end)
956
+
766
957
  api.add_operation(:get_account_preferences, Seahorse::Model::Operation.new.tap do |o|
767
958
  o.name = "GetAccountPreferences"
768
959
  o.http_method = "POST"
@@ -773,6 +964,18 @@ module Aws::Chatbot
773
964
  o.errors << Shapes::ShapeRef.new(shape: GetAccountPreferencesException)
774
965
  end)
775
966
 
967
+ api.add_operation(:get_custom_action, Seahorse::Model::Operation.new.tap do |o|
968
+ o.name = "GetCustomAction"
969
+ o.http_method = "POST"
970
+ o.http_request_uri = "/get-custom-action"
971
+ o.input = Shapes::ShapeRef.new(shape: GetCustomActionRequest)
972
+ o.output = Shapes::ShapeRef.new(shape: GetCustomActionResult)
973
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
974
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
975
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
976
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
977
+ end)
978
+
776
979
  api.add_operation(:get_microsoft_teams_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
777
980
  o.name = "GetMicrosoftTeamsChannelConfiguration"
778
981
  o.http_method = "POST"
@@ -784,6 +987,37 @@ module Aws::Chatbot
784
987
  o.errors << Shapes::ShapeRef.new(shape: GetTeamsChannelConfigurationException)
785
988
  end)
786
989
 
990
+ api.add_operation(:list_associations, Seahorse::Model::Operation.new.tap do |o|
991
+ o.name = "ListAssociations"
992
+ o.http_method = "POST"
993
+ o.http_request_uri = "/list-associations"
994
+ o.input = Shapes::ShapeRef.new(shape: ListAssociationsRequest)
995
+ o.output = Shapes::ShapeRef.new(shape: ListAssociationsResult)
996
+ o[:pager] = Aws::Pager.new(
997
+ limit_key: "max_results",
998
+ tokens: {
999
+ "next_token" => "next_token"
1000
+ }
1001
+ )
1002
+ end)
1003
+
1004
+ api.add_operation(:list_custom_actions, Seahorse::Model::Operation.new.tap do |o|
1005
+ o.name = "ListCustomActions"
1006
+ o.http_method = "POST"
1007
+ o.http_request_uri = "/list-custom-actions"
1008
+ o.input = Shapes::ShapeRef.new(shape: ListCustomActionsRequest)
1009
+ o.output = Shapes::ShapeRef.new(shape: ListCustomActionsResult)
1010
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1011
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
1012
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1013
+ o[:pager] = Aws::Pager.new(
1014
+ limit_key: "max_results",
1015
+ tokens: {
1016
+ "next_token" => "next_token"
1017
+ }
1018
+ )
1019
+ end)
1020
+
787
1021
  api.add_operation(:list_microsoft_teams_channel_configurations, Seahorse::Model::Operation.new.tap do |o|
788
1022
  o.name = "ListMicrosoftTeamsChannelConfigurations"
789
1023
  o.http_method = "POST"
@@ -892,6 +1126,18 @@ module Aws::Chatbot
892
1126
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
893
1127
  end)
894
1128
 
1129
+ api.add_operation(:update_custom_action, Seahorse::Model::Operation.new.tap do |o|
1130
+ o.name = "UpdateCustomAction"
1131
+ o.http_method = "POST"
1132
+ o.http_request_uri = "/update-custom-action"
1133
+ o.input = Shapes::ShapeRef.new(shape: UpdateCustomActionRequest)
1134
+ o.output = Shapes::ShapeRef.new(shape: UpdateCustomActionResult)
1135
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1136
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1137
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
1138
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1139
+ end)
1140
+
895
1141
  api.add_operation(:update_microsoft_teams_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
896
1142
  o.name = "UpdateMicrosoftTeamsChannelConfiguration"
897
1143
  o.http_method = "POST"
@@ -52,15 +52,18 @@ module Aws::Chatbot
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end