@aws-sdk/client-chatbot 3.696.0 → 3.700.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.
- package/README.md +71 -7
- package/dist-cjs/Chatbot.js +16 -0
- package/dist-cjs/commands/AssociateToConfigurationCommand.js +26 -0
- package/dist-cjs/commands/CreateCustomActionCommand.js +26 -0
- package/dist-cjs/commands/DeleteCustomActionCommand.js +26 -0
- package/dist-cjs/commands/DisassociateFromConfigurationCommand.js +26 -0
- package/dist-cjs/commands/GetCustomActionCommand.js +26 -0
- package/dist-cjs/commands/ListAssociationsCommand.js +26 -0
- package/dist-cjs/commands/ListCustomActionsCommand.js +26 -0
- package/dist-cjs/commands/UpdateCustomActionCommand.js +26 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +60 -42
- package/dist-cjs/pagination/ListAssociationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListCustomActionsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +260 -8
- package/dist-es/Chatbot.js +16 -0
- package/dist-es/commands/AssociateToConfigurationCommand.js +22 -0
- package/dist-es/commands/CreateCustomActionCommand.js +22 -0
- package/dist-es/commands/DeleteCustomActionCommand.js +22 -0
- package/dist-es/commands/DisassociateFromConfigurationCommand.js +22 -0
- package/dist-es/commands/GetCustomActionCommand.js +22 -0
- package/dist-es/commands/ListAssociationsCommand.js +22 -0
- package/dist-es/commands/ListCustomActionsCommand.js +22 -0
- package/dist-es/commands/UpdateCustomActionCommand.js +22 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +53 -37
- package/dist-es/pagination/ListAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListCustomActionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +243 -7
- package/dist-types/Chatbot.d.ts +57 -0
- package/dist-types/ChatbotClient.d.ts +10 -2
- package/dist-types/commands/AssociateToConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/CreateCustomActionCommand.d.ts +158 -0
- package/dist-types/commands/DeleteCustomActionCommand.d.ts +92 -0
- package/dist-types/commands/DisassociateFromConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/GetCustomActionCommand.d.ts +128 -0
- package/dist-types/commands/ListAssociationsCommand.d.ts +98 -0
- package/dist-types/commands/ListCustomActionsCommand.d.ts +100 -0
- package/dist-types/commands/UpdateCustomActionCommand.d.ts +122 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +385 -40
- package/dist-types/pagination/ListAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListCustomActionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
- package/dist-types/ts3.4/Chatbot.d.ts +137 -0
- package/dist-types/ts3.4/ChatbotClient.d.ts +48 -0
- package/dist-types/ts3.4/commands/AssociateToConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCustomActionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCustomActionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateFromConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCustomActionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListCustomActionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCustomActionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +116 -22
- package/dist-types/ts3.4/pagination/ListAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCustomActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
- package/package.json +7 -5
package/dist-types/Chatbot.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { ChatbotClient } from "./ChatbotClient";
|
|
3
|
+
import { AssociateToConfigurationCommandInput, AssociateToConfigurationCommandOutput } from "./commands/AssociateToConfigurationCommand";
|
|
3
4
|
import { CreateChimeWebhookConfigurationCommandInput, CreateChimeWebhookConfigurationCommandOutput } from "./commands/CreateChimeWebhookConfigurationCommand";
|
|
5
|
+
import { CreateCustomActionCommandInput, CreateCustomActionCommandOutput } from "./commands/CreateCustomActionCommand";
|
|
4
6
|
import { CreateMicrosoftTeamsChannelConfigurationCommandInput, CreateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/CreateMicrosoftTeamsChannelConfigurationCommand";
|
|
5
7
|
import { CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput } from "./commands/CreateSlackChannelConfigurationCommand";
|
|
6
8
|
import { DeleteChimeWebhookConfigurationCommandInput, DeleteChimeWebhookConfigurationCommandOutput } from "./commands/DeleteChimeWebhookConfigurationCommand";
|
|
9
|
+
import { DeleteCustomActionCommandInput, DeleteCustomActionCommandOutput } from "./commands/DeleteCustomActionCommand";
|
|
7
10
|
import { DeleteMicrosoftTeamsChannelConfigurationCommandInput, DeleteMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/DeleteMicrosoftTeamsChannelConfigurationCommand";
|
|
8
11
|
import { DeleteMicrosoftTeamsConfiguredTeamCommandInput, DeleteMicrosoftTeamsConfiguredTeamCommandOutput } from "./commands/DeleteMicrosoftTeamsConfiguredTeamCommand";
|
|
9
12
|
import { DeleteMicrosoftTeamsUserIdentityCommandInput, DeleteMicrosoftTeamsUserIdentityCommandOutput } from "./commands/DeleteMicrosoftTeamsUserIdentityCommand";
|
|
@@ -14,8 +17,12 @@ import { DescribeChimeWebhookConfigurationsCommandInput, DescribeChimeWebhookCon
|
|
|
14
17
|
import { DescribeSlackChannelConfigurationsCommandInput, DescribeSlackChannelConfigurationsCommandOutput } from "./commands/DescribeSlackChannelConfigurationsCommand";
|
|
15
18
|
import { DescribeSlackUserIdentitiesCommandInput, DescribeSlackUserIdentitiesCommandOutput } from "./commands/DescribeSlackUserIdentitiesCommand";
|
|
16
19
|
import { DescribeSlackWorkspacesCommandInput, DescribeSlackWorkspacesCommandOutput } from "./commands/DescribeSlackWorkspacesCommand";
|
|
20
|
+
import { DisassociateFromConfigurationCommandInput, DisassociateFromConfigurationCommandOutput } from "./commands/DisassociateFromConfigurationCommand";
|
|
17
21
|
import { GetAccountPreferencesCommandInput, GetAccountPreferencesCommandOutput } from "./commands/GetAccountPreferencesCommand";
|
|
22
|
+
import { GetCustomActionCommandInput, GetCustomActionCommandOutput } from "./commands/GetCustomActionCommand";
|
|
18
23
|
import { GetMicrosoftTeamsChannelConfigurationCommandInput, GetMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/GetMicrosoftTeamsChannelConfigurationCommand";
|
|
24
|
+
import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "./commands/ListAssociationsCommand";
|
|
25
|
+
import { ListCustomActionsCommandInput, ListCustomActionsCommandOutput } from "./commands/ListCustomActionsCommand";
|
|
19
26
|
import { ListMicrosoftTeamsChannelConfigurationsCommandInput, ListMicrosoftTeamsChannelConfigurationsCommandOutput } from "./commands/ListMicrosoftTeamsChannelConfigurationsCommand";
|
|
20
27
|
import { ListMicrosoftTeamsConfiguredTeamsCommandInput, ListMicrosoftTeamsConfiguredTeamsCommandOutput } from "./commands/ListMicrosoftTeamsConfiguredTeamsCommand";
|
|
21
28
|
import { ListMicrosoftTeamsUserIdentitiesCommandInput, ListMicrosoftTeamsUserIdentitiesCommandOutput } from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
|
|
@@ -24,15 +31,28 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
24
31
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
25
32
|
import { UpdateAccountPreferencesCommandInput, UpdateAccountPreferencesCommandOutput } from "./commands/UpdateAccountPreferencesCommand";
|
|
26
33
|
import { UpdateChimeWebhookConfigurationCommandInput, UpdateChimeWebhookConfigurationCommandOutput } from "./commands/UpdateChimeWebhookConfigurationCommand";
|
|
34
|
+
import { UpdateCustomActionCommandInput, UpdateCustomActionCommandOutput } from "./commands/UpdateCustomActionCommand";
|
|
27
35
|
import { UpdateMicrosoftTeamsChannelConfigurationCommandInput, UpdateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/UpdateMicrosoftTeamsChannelConfigurationCommand";
|
|
28
36
|
import { UpdateSlackChannelConfigurationCommandInput, UpdateSlackChannelConfigurationCommandOutput } from "./commands/UpdateSlackChannelConfigurationCommand";
|
|
29
37
|
export interface Chatbot {
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link AssociateToConfigurationCommand}
|
|
40
|
+
*/
|
|
41
|
+
associateToConfiguration(args: AssociateToConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<AssociateToConfigurationCommandOutput>;
|
|
42
|
+
associateToConfiguration(args: AssociateToConfigurationCommandInput, cb: (err: any, data?: AssociateToConfigurationCommandOutput) => void): void;
|
|
43
|
+
associateToConfiguration(args: AssociateToConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateToConfigurationCommandOutput) => void): void;
|
|
30
44
|
/**
|
|
31
45
|
* @see {@link CreateChimeWebhookConfigurationCommand}
|
|
32
46
|
*/
|
|
33
47
|
createChimeWebhookConfiguration(args: CreateChimeWebhookConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<CreateChimeWebhookConfigurationCommandOutput>;
|
|
34
48
|
createChimeWebhookConfiguration(args: CreateChimeWebhookConfigurationCommandInput, cb: (err: any, data?: CreateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
35
49
|
createChimeWebhookConfiguration(args: CreateChimeWebhookConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link CreateCustomActionCommand}
|
|
52
|
+
*/
|
|
53
|
+
createCustomAction(args: CreateCustomActionCommandInput, options?: __HttpHandlerOptions): Promise<CreateCustomActionCommandOutput>;
|
|
54
|
+
createCustomAction(args: CreateCustomActionCommandInput, cb: (err: any, data?: CreateCustomActionCommandOutput) => void): void;
|
|
55
|
+
createCustomAction(args: CreateCustomActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCustomActionCommandOutput) => void): void;
|
|
36
56
|
/**
|
|
37
57
|
* @see {@link CreateMicrosoftTeamsChannelConfigurationCommand}
|
|
38
58
|
*/
|
|
@@ -51,6 +71,12 @@ export interface Chatbot {
|
|
|
51
71
|
deleteChimeWebhookConfiguration(args: DeleteChimeWebhookConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteChimeWebhookConfigurationCommandOutput>;
|
|
52
72
|
deleteChimeWebhookConfiguration(args: DeleteChimeWebhookConfigurationCommandInput, cb: (err: any, data?: DeleteChimeWebhookConfigurationCommandOutput) => void): void;
|
|
53
73
|
deleteChimeWebhookConfiguration(args: DeleteChimeWebhookConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteChimeWebhookConfigurationCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* @see {@link DeleteCustomActionCommand}
|
|
76
|
+
*/
|
|
77
|
+
deleteCustomAction(args: DeleteCustomActionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCustomActionCommandOutput>;
|
|
78
|
+
deleteCustomAction(args: DeleteCustomActionCommandInput, cb: (err: any, data?: DeleteCustomActionCommandOutput) => void): void;
|
|
79
|
+
deleteCustomAction(args: DeleteCustomActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCustomActionCommandOutput) => void): void;
|
|
54
80
|
/**
|
|
55
81
|
* @see {@link DeleteMicrosoftTeamsChannelConfigurationCommand}
|
|
56
82
|
*/
|
|
@@ -115,6 +141,12 @@ export interface Chatbot {
|
|
|
115
141
|
describeSlackWorkspaces(args: DescribeSlackWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSlackWorkspacesCommandOutput>;
|
|
116
142
|
describeSlackWorkspaces(args: DescribeSlackWorkspacesCommandInput, cb: (err: any, data?: DescribeSlackWorkspacesCommandOutput) => void): void;
|
|
117
143
|
describeSlackWorkspaces(args: DescribeSlackWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSlackWorkspacesCommandOutput) => void): void;
|
|
144
|
+
/**
|
|
145
|
+
* @see {@link DisassociateFromConfigurationCommand}
|
|
146
|
+
*/
|
|
147
|
+
disassociateFromConfiguration(args: DisassociateFromConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateFromConfigurationCommandOutput>;
|
|
148
|
+
disassociateFromConfiguration(args: DisassociateFromConfigurationCommandInput, cb: (err: any, data?: DisassociateFromConfigurationCommandOutput) => void): void;
|
|
149
|
+
disassociateFromConfiguration(args: DisassociateFromConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateFromConfigurationCommandOutput) => void): void;
|
|
118
150
|
/**
|
|
119
151
|
* @see {@link GetAccountPreferencesCommand}
|
|
120
152
|
*/
|
|
@@ -122,12 +154,31 @@ export interface Chatbot {
|
|
|
122
154
|
getAccountPreferences(args: GetAccountPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountPreferencesCommandOutput>;
|
|
123
155
|
getAccountPreferences(args: GetAccountPreferencesCommandInput, cb: (err: any, data?: GetAccountPreferencesCommandOutput) => void): void;
|
|
124
156
|
getAccountPreferences(args: GetAccountPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountPreferencesCommandOutput) => void): void;
|
|
157
|
+
/**
|
|
158
|
+
* @see {@link GetCustomActionCommand}
|
|
159
|
+
*/
|
|
160
|
+
getCustomAction(args: GetCustomActionCommandInput, options?: __HttpHandlerOptions): Promise<GetCustomActionCommandOutput>;
|
|
161
|
+
getCustomAction(args: GetCustomActionCommandInput, cb: (err: any, data?: GetCustomActionCommandOutput) => void): void;
|
|
162
|
+
getCustomAction(args: GetCustomActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCustomActionCommandOutput) => void): void;
|
|
125
163
|
/**
|
|
126
164
|
* @see {@link GetMicrosoftTeamsChannelConfigurationCommand}
|
|
127
165
|
*/
|
|
128
166
|
getMicrosoftTeamsChannelConfiguration(args: GetMicrosoftTeamsChannelConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetMicrosoftTeamsChannelConfigurationCommandOutput>;
|
|
129
167
|
getMicrosoftTeamsChannelConfiguration(args: GetMicrosoftTeamsChannelConfigurationCommandInput, cb: (err: any, data?: GetMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
130
168
|
getMicrosoftTeamsChannelConfiguration(args: GetMicrosoftTeamsChannelConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMicrosoftTeamsChannelConfigurationCommandOutput) => void): void;
|
|
169
|
+
/**
|
|
170
|
+
* @see {@link ListAssociationsCommand}
|
|
171
|
+
*/
|
|
172
|
+
listAssociations(args: ListAssociationsCommandInput, options?: __HttpHandlerOptions): Promise<ListAssociationsCommandOutput>;
|
|
173
|
+
listAssociations(args: ListAssociationsCommandInput, cb: (err: any, data?: ListAssociationsCommandOutput) => void): void;
|
|
174
|
+
listAssociations(args: ListAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssociationsCommandOutput) => void): void;
|
|
175
|
+
/**
|
|
176
|
+
* @see {@link ListCustomActionsCommand}
|
|
177
|
+
*/
|
|
178
|
+
listCustomActions(): Promise<ListCustomActionsCommandOutput>;
|
|
179
|
+
listCustomActions(args: ListCustomActionsCommandInput, options?: __HttpHandlerOptions): Promise<ListCustomActionsCommandOutput>;
|
|
180
|
+
listCustomActions(args: ListCustomActionsCommandInput, cb: (err: any, data?: ListCustomActionsCommandOutput) => void): void;
|
|
181
|
+
listCustomActions(args: ListCustomActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCustomActionsCommandOutput) => void): void;
|
|
131
182
|
/**
|
|
132
183
|
* @see {@link ListMicrosoftTeamsChannelConfigurationsCommand}
|
|
133
184
|
*/
|
|
@@ -180,6 +231,12 @@ export interface Chatbot {
|
|
|
180
231
|
updateChimeWebhookConfiguration(args: UpdateChimeWebhookConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateChimeWebhookConfigurationCommandOutput>;
|
|
181
232
|
updateChimeWebhookConfiguration(args: UpdateChimeWebhookConfigurationCommandInput, cb: (err: any, data?: UpdateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
182
233
|
updateChimeWebhookConfiguration(args: UpdateChimeWebhookConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateChimeWebhookConfigurationCommandOutput) => void): void;
|
|
234
|
+
/**
|
|
235
|
+
* @see {@link UpdateCustomActionCommand}
|
|
236
|
+
*/
|
|
237
|
+
updateCustomAction(args: UpdateCustomActionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCustomActionCommandOutput>;
|
|
238
|
+
updateCustomAction(args: UpdateCustomActionCommandInput, cb: (err: any, data?: UpdateCustomActionCommandOutput) => void): void;
|
|
239
|
+
updateCustomAction(args: UpdateCustomActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCustomActionCommandOutput) => void): void;
|
|
183
240
|
/**
|
|
184
241
|
* @see {@link UpdateMicrosoftTeamsChannelConfigurationCommand}
|
|
185
242
|
*/
|
|
@@ -7,10 +7,13 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
|
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { AssociateToConfigurationCommandInput, AssociateToConfigurationCommandOutput } from "./commands/AssociateToConfigurationCommand";
|
|
10
11
|
import { CreateChimeWebhookConfigurationCommandInput, CreateChimeWebhookConfigurationCommandOutput } from "./commands/CreateChimeWebhookConfigurationCommand";
|
|
12
|
+
import { CreateCustomActionCommandInput, CreateCustomActionCommandOutput } from "./commands/CreateCustomActionCommand";
|
|
11
13
|
import { CreateMicrosoftTeamsChannelConfigurationCommandInput, CreateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/CreateMicrosoftTeamsChannelConfigurationCommand";
|
|
12
14
|
import { CreateSlackChannelConfigurationCommandInput, CreateSlackChannelConfigurationCommandOutput } from "./commands/CreateSlackChannelConfigurationCommand";
|
|
13
15
|
import { DeleteChimeWebhookConfigurationCommandInput, DeleteChimeWebhookConfigurationCommandOutput } from "./commands/DeleteChimeWebhookConfigurationCommand";
|
|
16
|
+
import { DeleteCustomActionCommandInput, DeleteCustomActionCommandOutput } from "./commands/DeleteCustomActionCommand";
|
|
14
17
|
import { DeleteMicrosoftTeamsChannelConfigurationCommandInput, DeleteMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/DeleteMicrosoftTeamsChannelConfigurationCommand";
|
|
15
18
|
import { DeleteMicrosoftTeamsConfiguredTeamCommandInput, DeleteMicrosoftTeamsConfiguredTeamCommandOutput } from "./commands/DeleteMicrosoftTeamsConfiguredTeamCommand";
|
|
16
19
|
import { DeleteMicrosoftTeamsUserIdentityCommandInput, DeleteMicrosoftTeamsUserIdentityCommandOutput } from "./commands/DeleteMicrosoftTeamsUserIdentityCommand";
|
|
@@ -21,8 +24,12 @@ import { DescribeChimeWebhookConfigurationsCommandInput, DescribeChimeWebhookCon
|
|
|
21
24
|
import { DescribeSlackChannelConfigurationsCommandInput, DescribeSlackChannelConfigurationsCommandOutput } from "./commands/DescribeSlackChannelConfigurationsCommand";
|
|
22
25
|
import { DescribeSlackUserIdentitiesCommandInput, DescribeSlackUserIdentitiesCommandOutput } from "./commands/DescribeSlackUserIdentitiesCommand";
|
|
23
26
|
import { DescribeSlackWorkspacesCommandInput, DescribeSlackWorkspacesCommandOutput } from "./commands/DescribeSlackWorkspacesCommand";
|
|
27
|
+
import { DisassociateFromConfigurationCommandInput, DisassociateFromConfigurationCommandOutput } from "./commands/DisassociateFromConfigurationCommand";
|
|
24
28
|
import { GetAccountPreferencesCommandInput, GetAccountPreferencesCommandOutput } from "./commands/GetAccountPreferencesCommand";
|
|
29
|
+
import { GetCustomActionCommandInput, GetCustomActionCommandOutput } from "./commands/GetCustomActionCommand";
|
|
25
30
|
import { GetMicrosoftTeamsChannelConfigurationCommandInput, GetMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/GetMicrosoftTeamsChannelConfigurationCommand";
|
|
31
|
+
import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "./commands/ListAssociationsCommand";
|
|
32
|
+
import { ListCustomActionsCommandInput, ListCustomActionsCommandOutput } from "./commands/ListCustomActionsCommand";
|
|
26
33
|
import { ListMicrosoftTeamsChannelConfigurationsCommandInput, ListMicrosoftTeamsChannelConfigurationsCommandOutput } from "./commands/ListMicrosoftTeamsChannelConfigurationsCommand";
|
|
27
34
|
import { ListMicrosoftTeamsConfiguredTeamsCommandInput, ListMicrosoftTeamsConfiguredTeamsCommandOutput } from "./commands/ListMicrosoftTeamsConfiguredTeamsCommand";
|
|
28
35
|
import { ListMicrosoftTeamsUserIdentitiesCommandInput, ListMicrosoftTeamsUserIdentitiesCommandOutput } from "./commands/ListMicrosoftTeamsUserIdentitiesCommand";
|
|
@@ -31,6 +38,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
31
38
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
32
39
|
import { UpdateAccountPreferencesCommandInput, UpdateAccountPreferencesCommandOutput } from "./commands/UpdateAccountPreferencesCommand";
|
|
33
40
|
import { UpdateChimeWebhookConfigurationCommandInput, UpdateChimeWebhookConfigurationCommandOutput } from "./commands/UpdateChimeWebhookConfigurationCommand";
|
|
41
|
+
import { UpdateCustomActionCommandInput, UpdateCustomActionCommandOutput } from "./commands/UpdateCustomActionCommand";
|
|
34
42
|
import { UpdateMicrosoftTeamsChannelConfigurationCommandInput, UpdateMicrosoftTeamsChannelConfigurationCommandOutput } from "./commands/UpdateMicrosoftTeamsChannelConfigurationCommand";
|
|
35
43
|
import { UpdateSlackChannelConfigurationCommandInput, UpdateSlackChannelConfigurationCommandOutput } from "./commands/UpdateSlackChannelConfigurationCommand";
|
|
36
44
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -39,11 +47,11 @@ export { __Client };
|
|
|
39
47
|
/**
|
|
40
48
|
* @public
|
|
41
49
|
*/
|
|
42
|
-
export type ServiceInputTypes = CreateChimeWebhookConfigurationCommandInput | CreateMicrosoftTeamsChannelConfigurationCommandInput | CreateSlackChannelConfigurationCommandInput | DeleteChimeWebhookConfigurationCommandInput | DeleteMicrosoftTeamsChannelConfigurationCommandInput | DeleteMicrosoftTeamsConfiguredTeamCommandInput | DeleteMicrosoftTeamsUserIdentityCommandInput | DeleteSlackChannelConfigurationCommandInput | DeleteSlackUserIdentityCommandInput | DeleteSlackWorkspaceAuthorizationCommandInput | DescribeChimeWebhookConfigurationsCommandInput | DescribeSlackChannelConfigurationsCommandInput | DescribeSlackUserIdentitiesCommandInput | DescribeSlackWorkspacesCommandInput | GetAccountPreferencesCommandInput | GetMicrosoftTeamsChannelConfigurationCommandInput | ListMicrosoftTeamsChannelConfigurationsCommandInput | ListMicrosoftTeamsConfiguredTeamsCommandInput | ListMicrosoftTeamsUserIdentitiesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccountPreferencesCommandInput | UpdateChimeWebhookConfigurationCommandInput | UpdateMicrosoftTeamsChannelConfigurationCommandInput | UpdateSlackChannelConfigurationCommandInput;
|
|
50
|
+
export type ServiceInputTypes = AssociateToConfigurationCommandInput | CreateChimeWebhookConfigurationCommandInput | CreateCustomActionCommandInput | CreateMicrosoftTeamsChannelConfigurationCommandInput | CreateSlackChannelConfigurationCommandInput | DeleteChimeWebhookConfigurationCommandInput | DeleteCustomActionCommandInput | DeleteMicrosoftTeamsChannelConfigurationCommandInput | DeleteMicrosoftTeamsConfiguredTeamCommandInput | DeleteMicrosoftTeamsUserIdentityCommandInput | DeleteSlackChannelConfigurationCommandInput | DeleteSlackUserIdentityCommandInput | DeleteSlackWorkspaceAuthorizationCommandInput | DescribeChimeWebhookConfigurationsCommandInput | DescribeSlackChannelConfigurationsCommandInput | DescribeSlackUserIdentitiesCommandInput | DescribeSlackWorkspacesCommandInput | DisassociateFromConfigurationCommandInput | GetAccountPreferencesCommandInput | GetCustomActionCommandInput | GetMicrosoftTeamsChannelConfigurationCommandInput | ListAssociationsCommandInput | ListCustomActionsCommandInput | ListMicrosoftTeamsChannelConfigurationsCommandInput | ListMicrosoftTeamsConfiguredTeamsCommandInput | ListMicrosoftTeamsUserIdentitiesCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccountPreferencesCommandInput | UpdateChimeWebhookConfigurationCommandInput | UpdateCustomActionCommandInput | UpdateMicrosoftTeamsChannelConfigurationCommandInput | UpdateSlackChannelConfigurationCommandInput;
|
|
43
51
|
/**
|
|
44
52
|
* @public
|
|
45
53
|
*/
|
|
46
|
-
export type ServiceOutputTypes = CreateChimeWebhookConfigurationCommandOutput | CreateMicrosoftTeamsChannelConfigurationCommandOutput | CreateSlackChannelConfigurationCommandOutput | DeleteChimeWebhookConfigurationCommandOutput | DeleteMicrosoftTeamsChannelConfigurationCommandOutput | DeleteMicrosoftTeamsConfiguredTeamCommandOutput | DeleteMicrosoftTeamsUserIdentityCommandOutput | DeleteSlackChannelConfigurationCommandOutput | DeleteSlackUserIdentityCommandOutput | DeleteSlackWorkspaceAuthorizationCommandOutput | DescribeChimeWebhookConfigurationsCommandOutput | DescribeSlackChannelConfigurationsCommandOutput | DescribeSlackUserIdentitiesCommandOutput | DescribeSlackWorkspacesCommandOutput | GetAccountPreferencesCommandOutput | GetMicrosoftTeamsChannelConfigurationCommandOutput | ListMicrosoftTeamsChannelConfigurationsCommandOutput | ListMicrosoftTeamsConfiguredTeamsCommandOutput | ListMicrosoftTeamsUserIdentitiesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccountPreferencesCommandOutput | UpdateChimeWebhookConfigurationCommandOutput | UpdateMicrosoftTeamsChannelConfigurationCommandOutput | UpdateSlackChannelConfigurationCommandOutput;
|
|
54
|
+
export type ServiceOutputTypes = AssociateToConfigurationCommandOutput | CreateChimeWebhookConfigurationCommandOutput | CreateCustomActionCommandOutput | CreateMicrosoftTeamsChannelConfigurationCommandOutput | CreateSlackChannelConfigurationCommandOutput | DeleteChimeWebhookConfigurationCommandOutput | DeleteCustomActionCommandOutput | DeleteMicrosoftTeamsChannelConfigurationCommandOutput | DeleteMicrosoftTeamsConfiguredTeamCommandOutput | DeleteMicrosoftTeamsUserIdentityCommandOutput | DeleteSlackChannelConfigurationCommandOutput | DeleteSlackUserIdentityCommandOutput | DeleteSlackWorkspaceAuthorizationCommandOutput | DescribeChimeWebhookConfigurationsCommandOutput | DescribeSlackChannelConfigurationsCommandOutput | DescribeSlackUserIdentitiesCommandOutput | DescribeSlackWorkspacesCommandOutput | DisassociateFromConfigurationCommandOutput | GetAccountPreferencesCommandOutput | GetCustomActionCommandOutput | GetMicrosoftTeamsChannelConfigurationCommandOutput | ListAssociationsCommandOutput | ListCustomActionsCommandOutput | ListMicrosoftTeamsChannelConfigurationsCommandOutput | ListMicrosoftTeamsConfiguredTeamsCommandOutput | ListMicrosoftTeamsUserIdentitiesCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccountPreferencesCommandOutput | UpdateChimeWebhookConfigurationCommandOutput | UpdateCustomActionCommandOutput | UpdateMicrosoftTeamsChannelConfigurationCommandOutput | UpdateSlackChannelConfigurationCommandOutput;
|
|
47
55
|
/**
|
|
48
56
|
* @public
|
|
49
57
|
*/
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChatbotClient";
|
|
4
|
+
import { AssociateToConfigurationRequest, AssociateToConfigurationResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AssociateToConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AssociateToConfigurationCommandInput extends AssociateToConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AssociateToConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AssociateToConfigurationCommandOutput extends AssociateToConfigurationResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AssociateToConfigurationCommand_base: {
|
|
25
|
+
new (input: AssociateToConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateToConfigurationCommandInput, AssociateToConfigurationCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AssociateToConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateToConfigurationCommandInput, AssociateToConfigurationCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Links a resource (for example, a custom action) to a channel configuration.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ChatbotClient, AssociateToConfigurationCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, AssociateToConfigurationCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // AssociateToConfigurationRequest
|
|
38
|
+
* Resource: "STRING_VALUE", // required
|
|
39
|
+
* ChatConfiguration: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new AssociateToConfigurationCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param AssociateToConfigurationCommandInput - {@link AssociateToConfigurationCommandInput}
|
|
48
|
+
* @returns {@link AssociateToConfigurationCommandOutput}
|
|
49
|
+
* @see {@link AssociateToConfigurationCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link AssociateToConfigurationCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
54
|
+
* <p>Unexpected error during processing of request.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
57
|
+
* <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
60
|
+
* <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ChatbotServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
* @example Associate a custom action to a configuration
|
|
67
|
+
* ```javascript
|
|
68
|
+
* // Associate a custom action to a channel configuration, allowing it to be used in that channel
|
|
69
|
+
* const input = {
|
|
70
|
+
* "ChatConfiguration": "arn:aws:chatbot::1234567890:chat-configuration/slack-channel/my-channel",
|
|
71
|
+
* "Resource": "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
72
|
+
* };
|
|
73
|
+
* const command = new AssociateToConfigurationCommand(input);
|
|
74
|
+
* await client.send(command);
|
|
75
|
+
* // example id: example-1
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
export declare class AssociateToConfigurationCommand extends AssociateToConfigurationCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: AssociateToConfigurationRequest;
|
|
84
|
+
output: {};
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: AssociateToConfigurationCommandInput;
|
|
88
|
+
output: AssociateToConfigurationCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChatbotClient";
|
|
4
|
+
import { CreateCustomActionRequest, CreateCustomActionResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateCustomActionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateCustomActionCommandInput extends CreateCustomActionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateCustomActionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCustomActionCommandOutput extends CreateCustomActionResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateCustomActionCommand_base: {
|
|
25
|
+
new (input: CreateCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCustomActionCommandInput, CreateCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateCustomActionCommandInput, CreateCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a custom action that can be invoked as an alias or as a button on a notification.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ChatbotClient, CreateCustomActionCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, CreateCustomActionCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // CreateCustomActionRequest
|
|
38
|
+
* Definition: { // CustomActionDefinition
|
|
39
|
+
* CommandText: "STRING_VALUE", // required
|
|
40
|
+
* },
|
|
41
|
+
* AliasName: "STRING_VALUE",
|
|
42
|
+
* Attachments: [ // CustomActionAttachmentList
|
|
43
|
+
* { // CustomActionAttachment
|
|
44
|
+
* NotificationType: "STRING_VALUE",
|
|
45
|
+
* ButtonText: "STRING_VALUE",
|
|
46
|
+
* Criteria: [ // CustomActionAttachmentCriteriaList
|
|
47
|
+
* { // CustomActionAttachmentCriteria
|
|
48
|
+
* Operator: "HAS_VALUE" || "EQUALS", // required
|
|
49
|
+
* VariableName: "STRING_VALUE", // required
|
|
50
|
+
* Value: "STRING_VALUE",
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* Variables: { // CustomActionAttachmentVariables
|
|
54
|
+
* "<keys>": "STRING_VALUE",
|
|
55
|
+
* },
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* Tags: [ // TagList
|
|
59
|
+
* { // Tag
|
|
60
|
+
* TagKey: "STRING_VALUE", // required
|
|
61
|
+
* TagValue: "STRING_VALUE", // required
|
|
62
|
+
* },
|
|
63
|
+
* ],
|
|
64
|
+
* ClientToken: "STRING_VALUE",
|
|
65
|
+
* ActionName: "STRING_VALUE", // required
|
|
66
|
+
* };
|
|
67
|
+
* const command = new CreateCustomActionCommand(input);
|
|
68
|
+
* const response = await client.send(command);
|
|
69
|
+
* // { // CreateCustomActionResult
|
|
70
|
+
* // CustomActionArn: "STRING_VALUE", // required
|
|
71
|
+
* // };
|
|
72
|
+
*
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
75
|
+
* @param CreateCustomActionCommandInput - {@link CreateCustomActionCommandInput}
|
|
76
|
+
* @returns {@link CreateCustomActionCommandOutput}
|
|
77
|
+
* @see {@link CreateCustomActionCommandInput} for command's `input` shape.
|
|
78
|
+
* @see {@link CreateCustomActionCommandOutput} for command's `response` shape.
|
|
79
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ConflictException} (client fault)
|
|
82
|
+
* <p>There was an issue processing your request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
85
|
+
* <p>Unexpected error during processing of request.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
88
|
+
* <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
91
|
+
* <p>You have exceeded a service limit for AWS Chatbot.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
94
|
+
* <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ChatbotServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
* @example Create an alias that invokes a Lambda function
|
|
101
|
+
* ```javascript
|
|
102
|
+
* // Creates an alias that invokes a Lambda function from chat channels. You can use this alias by entering 'run invoke', after which you're prompted for the function name.
|
|
103
|
+
* const input = {
|
|
104
|
+
* "ActionName": "my-custom-action",
|
|
105
|
+
* "AliasName": "invoke",
|
|
106
|
+
* "Definition": {
|
|
107
|
+
* "CommandText": "lambda invoke $functionName"
|
|
108
|
+
* }
|
|
109
|
+
* };
|
|
110
|
+
* const command = new CreateCustomActionCommand(input);
|
|
111
|
+
* const response = await client.send(command);
|
|
112
|
+
* /* response ==
|
|
113
|
+
* {
|
|
114
|
+
* "CustomActionArn": "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
115
|
+
* }
|
|
116
|
+
* *\/
|
|
117
|
+
* // example id: example-1
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* @example Create a custom action to list alarms
|
|
121
|
+
* ```javascript
|
|
122
|
+
* // Creates a button on all Cloudwatch notifications that lists alarms in the ‘ALARM’ state.
|
|
123
|
+
* const input = {
|
|
124
|
+
* "ActionName": "describe-alarms",
|
|
125
|
+
* "Attachments": [
|
|
126
|
+
* {
|
|
127
|
+
* "ButtonText": "List alarms",
|
|
128
|
+
* "NotificationType": "CloudWatch"
|
|
129
|
+
* }
|
|
130
|
+
* ],
|
|
131
|
+
* "Definition": {
|
|
132
|
+
* "CommandText": "cloudwatch describe-alarms --state-value ALARM"
|
|
133
|
+
* }
|
|
134
|
+
* };
|
|
135
|
+
* const command = new CreateCustomActionCommand(input);
|
|
136
|
+
* const response = await client.send(command);
|
|
137
|
+
* /* response ==
|
|
138
|
+
* {
|
|
139
|
+
* "CustomActionArn": "arn:aws:chatbot::1234567890:custom-action/describe-alarms"
|
|
140
|
+
* }
|
|
141
|
+
* *\/
|
|
142
|
+
* // example id: example-2
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
export declare class CreateCustomActionCommand extends CreateCustomActionCommand_base {
|
|
147
|
+
/** @internal type navigation helper, not in runtime. */
|
|
148
|
+
protected static __types: {
|
|
149
|
+
api: {
|
|
150
|
+
input: CreateCustomActionRequest;
|
|
151
|
+
output: CreateCustomActionResult;
|
|
152
|
+
};
|
|
153
|
+
sdk: {
|
|
154
|
+
input: CreateCustomActionCommandInput;
|
|
155
|
+
output: CreateCustomActionCommandOutput;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChatbotClient";
|
|
4
|
+
import { DeleteCustomActionRequest, DeleteCustomActionResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteCustomActionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteCustomActionCommandInput extends DeleteCustomActionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteCustomActionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteCustomActionCommandOutput extends DeleteCustomActionResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteCustomActionCommand_base: {
|
|
25
|
+
new (input: DeleteCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCustomActionCommandInput, DeleteCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DeleteCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteCustomActionCommandInput, DeleteCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a custom action.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ChatbotClient, DeleteCustomActionCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, DeleteCustomActionCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // DeleteCustomActionRequest
|
|
38
|
+
* CustomActionArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new DeleteCustomActionCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // {};
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DeleteCustomActionCommandInput - {@link DeleteCustomActionCommandInput}
|
|
47
|
+
* @returns {@link DeleteCustomActionCommandOutput}
|
|
48
|
+
* @see {@link DeleteCustomActionCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DeleteCustomActionCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
53
|
+
* <p>Unexpected error during processing of request.</p>
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
56
|
+
* <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
59
|
+
* <p>We were unable to find the resource for your request</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
62
|
+
* <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ChatbotServiceException}
|
|
65
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
* @example Delete a custom action
|
|
69
|
+
* ```javascript
|
|
70
|
+
* //
|
|
71
|
+
* const input = {
|
|
72
|
+
* "CustomActionArn": "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
73
|
+
* };
|
|
74
|
+
* const command = new DeleteCustomActionCommand(input);
|
|
75
|
+
* await client.send(command);
|
|
76
|
+
* // example id: example-1
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare class DeleteCustomActionCommand extends DeleteCustomActionCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: DeleteCustomActionRequest;
|
|
85
|
+
output: {};
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: DeleteCustomActionCommandInput;
|
|
89
|
+
output: DeleteCustomActionCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ChatbotClient";
|
|
4
|
+
import { DisassociateFromConfigurationRequest, DisassociateFromConfigurationResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisassociateFromConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateFromConfigurationCommandInput extends DisassociateFromConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateFromConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateFromConfigurationCommandOutput extends DisassociateFromConfigurationResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisassociateFromConfigurationCommand_base: {
|
|
25
|
+
new (input: DisassociateFromConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateFromConfigurationCommandInput, DisassociateFromConfigurationCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DisassociateFromConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateFromConfigurationCommandInput, DisassociateFromConfigurationCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Unlink a resource, for example a custom action, from a channel configuration.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ChatbotClient, DisassociateFromConfigurationCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, DisassociateFromConfigurationCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // DisassociateFromConfigurationRequest
|
|
38
|
+
* Resource: "STRING_VALUE", // required
|
|
39
|
+
* ChatConfiguration: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DisassociateFromConfigurationCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // {};
|
|
44
|
+
*
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @param DisassociateFromConfigurationCommandInput - {@link DisassociateFromConfigurationCommandInput}
|
|
48
|
+
* @returns {@link DisassociateFromConfigurationCommandOutput}
|
|
49
|
+
* @see {@link DisassociateFromConfigurationCommandInput} for command's `input` shape.
|
|
50
|
+
* @see {@link DisassociateFromConfigurationCommandOutput} for command's `response` shape.
|
|
51
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
54
|
+
* <p>Unexpected error during processing of request.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
57
|
+
* <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
60
|
+
* <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ChatbotServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
* @example Disassociate a custom action from a configuration
|
|
67
|
+
* ```javascript
|
|
68
|
+
* //
|
|
69
|
+
* const input = {
|
|
70
|
+
* "ChatConfiguration": "arn:aws:chatbot::1234567890:chat-configuration/slack-channel/my-channel",
|
|
71
|
+
* "Resource": "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
72
|
+
* };
|
|
73
|
+
* const command = new DisassociateFromConfigurationCommand(input);
|
|
74
|
+
* await client.send(command);
|
|
75
|
+
* // example id: example-1
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
export declare class DisassociateFromConfigurationCommand extends DisassociateFromConfigurationCommand_base {
|
|
80
|
+
/** @internal type navigation helper, not in runtime. */
|
|
81
|
+
protected static __types: {
|
|
82
|
+
api: {
|
|
83
|
+
input: DisassociateFromConfigurationRequest;
|
|
84
|
+
output: {};
|
|
85
|
+
};
|
|
86
|
+
sdk: {
|
|
87
|
+
input: DisassociateFromConfigurationCommandInput;
|
|
88
|
+
output: DisassociateFromConfigurationCommandOutput;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}
|