@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
|
@@ -0,0 +1,128 @@
|
|
|
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 { GetCustomActionRequest, GetCustomActionResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetCustomActionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetCustomActionCommandInput extends GetCustomActionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetCustomActionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetCustomActionCommandOutput extends GetCustomActionResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetCustomActionCommand_base: {
|
|
25
|
+
new (input: GetCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<GetCustomActionCommandInput, GetCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<GetCustomActionCommandInput, GetCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Returns 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, GetCustomActionCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, GetCustomActionCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // GetCustomActionRequest
|
|
38
|
+
* CustomActionArn: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetCustomActionCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetCustomActionResult
|
|
43
|
+
* // CustomAction: { // CustomAction
|
|
44
|
+
* // CustomActionArn: "STRING_VALUE", // required
|
|
45
|
+
* // Definition: { // CustomActionDefinition
|
|
46
|
+
* // CommandText: "STRING_VALUE", // required
|
|
47
|
+
* // },
|
|
48
|
+
* // AliasName: "STRING_VALUE",
|
|
49
|
+
* // Attachments: [ // CustomActionAttachmentList
|
|
50
|
+
* // { // CustomActionAttachment
|
|
51
|
+
* // NotificationType: "STRING_VALUE",
|
|
52
|
+
* // ButtonText: "STRING_VALUE",
|
|
53
|
+
* // Criteria: [ // CustomActionAttachmentCriteriaList
|
|
54
|
+
* // { // CustomActionAttachmentCriteria
|
|
55
|
+
* // Operator: "HAS_VALUE" || "EQUALS", // required
|
|
56
|
+
* // VariableName: "STRING_VALUE", // required
|
|
57
|
+
* // Value: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // Variables: { // CustomActionAttachmentVariables
|
|
61
|
+
* // "<keys>": "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // },
|
|
64
|
+
* // ],
|
|
65
|
+
* // ActionName: "STRING_VALUE",
|
|
66
|
+
* // },
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param GetCustomActionCommandInput - {@link GetCustomActionCommandInput}
|
|
72
|
+
* @returns {@link GetCustomActionCommandOutput}
|
|
73
|
+
* @see {@link GetCustomActionCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link GetCustomActionCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
78
|
+
* <p>Unexpected error during processing of request.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
81
|
+
* <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
84
|
+
* <p>We were unable to find the resource for your request</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
87
|
+
* <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ChatbotServiceException}
|
|
90
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
* @example Get a custom action
|
|
94
|
+
* ```javascript
|
|
95
|
+
* //
|
|
96
|
+
* const input = {
|
|
97
|
+
* "CustomActionArn": "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
98
|
+
* };
|
|
99
|
+
* const command = new GetCustomActionCommand(input);
|
|
100
|
+
* const response = await client.send(command);
|
|
101
|
+
* /* response ==
|
|
102
|
+
* {
|
|
103
|
+
* "CustomAction": {
|
|
104
|
+
* "ActionName": "my-custom-action",
|
|
105
|
+
* "CustomActionArn": "arn:aws:chatbot::1234567890:custom-action/my-custom-action",
|
|
106
|
+
* "Definition": {
|
|
107
|
+
* "CommandText": "lambda invoke $functionName"
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
* }
|
|
111
|
+
* *\/
|
|
112
|
+
* // example id: example-1
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
export declare class GetCustomActionCommand extends GetCustomActionCommand_base {
|
|
117
|
+
/** @internal type navigation helper, not in runtime. */
|
|
118
|
+
protected static __types: {
|
|
119
|
+
api: {
|
|
120
|
+
input: GetCustomActionRequest;
|
|
121
|
+
output: GetCustomActionResult;
|
|
122
|
+
};
|
|
123
|
+
sdk: {
|
|
124
|
+
input: GetCustomActionCommandInput;
|
|
125
|
+
output: GetCustomActionCommandOutput;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { ListAssociationsRequest, ListAssociationsResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAssociationsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAssociationsCommandInput extends ListAssociationsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAssociationsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAssociationsCommandOutput extends ListAssociationsResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAssociationsCommand_base: {
|
|
25
|
+
new (input: ListAssociationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAssociationsCommandInput, ListAssociationsCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListAssociationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAssociationsCommandInput, ListAssociationsCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists resources associated with 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, ListAssociationsCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, ListAssociationsCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // ListAssociationsRequest
|
|
38
|
+
* ChatConfiguration: "STRING_VALUE", // required
|
|
39
|
+
* MaxResults: Number("int"),
|
|
40
|
+
* NextToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListAssociationsCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListAssociationsResult
|
|
45
|
+
* // Associations: [ // AssociationList // required
|
|
46
|
+
* // { // AssociationListing
|
|
47
|
+
* // Resource: "STRING_VALUE", // required
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // NextToken: "STRING_VALUE",
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param ListAssociationsCommandInput - {@link ListAssociationsCommandInput}
|
|
56
|
+
* @returns {@link ListAssociationsCommandOutput}
|
|
57
|
+
* @see {@link ListAssociationsCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link ListAssociationsCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ChatbotServiceException}
|
|
62
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
* @example List custom actions associated with a configuration
|
|
66
|
+
* ```javascript
|
|
67
|
+
* //
|
|
68
|
+
* const input = {
|
|
69
|
+
* "ChatConfiguration": "arn:aws:chatbot::1234567890:chat-configuration/slack-channel/my-channel"
|
|
70
|
+
* };
|
|
71
|
+
* const command = new ListAssociationsCommand(input);
|
|
72
|
+
* const response = await client.send(command);
|
|
73
|
+
* /* response ==
|
|
74
|
+
* {
|
|
75
|
+
* "Associations": [
|
|
76
|
+
* {
|
|
77
|
+
* "Resource": "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
78
|
+
* }
|
|
79
|
+
* ]
|
|
80
|
+
* }
|
|
81
|
+
* *\/
|
|
82
|
+
* // example id: example-1
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
export declare class ListAssociationsCommand extends ListAssociationsCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: ListAssociationsRequest;
|
|
91
|
+
output: ListAssociationsResult;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: ListAssociationsCommandInput;
|
|
95
|
+
output: ListAssociationsCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 { ListCustomActionsRequest, ListCustomActionsResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListCustomActionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListCustomActionsCommandInput extends ListCustomActionsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListCustomActionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListCustomActionsCommandOutput extends ListCustomActionsResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListCustomActionsCommand_base: {
|
|
25
|
+
new (input: ListCustomActionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListCustomActionsCommandInput, ListCustomActionsCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListCustomActionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListCustomActionsCommandInput, ListCustomActionsCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists custom actions defined in this account.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ChatbotClient, ListCustomActionsCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, ListCustomActionsCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // ListCustomActionsRequest
|
|
38
|
+
* MaxResults: Number("int"),
|
|
39
|
+
* NextToken: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListCustomActionsCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListCustomActionsResult
|
|
44
|
+
* // CustomActions: [ // CustomActionArnList // required
|
|
45
|
+
* // "STRING_VALUE",
|
|
46
|
+
* // ],
|
|
47
|
+
* // NextToken: "STRING_VALUE",
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param ListCustomActionsCommandInput - {@link ListCustomActionsCommandInput}
|
|
53
|
+
* @returns {@link ListCustomActionsCommandOutput}
|
|
54
|
+
* @see {@link ListCustomActionsCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link ListCustomActionsCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
59
|
+
* <p>Unexpected error during processing of request.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
62
|
+
* <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
65
|
+
* <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ChatbotServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
* @example List custom actions
|
|
72
|
+
* ```javascript
|
|
73
|
+
* //
|
|
74
|
+
* const input = {};
|
|
75
|
+
* const command = new ListCustomActionsCommand(input);
|
|
76
|
+
* const response = await client.send(command);
|
|
77
|
+
* /* response ==
|
|
78
|
+
* {
|
|
79
|
+
* "CustomActions": [
|
|
80
|
+
* "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
81
|
+
* ]
|
|
82
|
+
* }
|
|
83
|
+
* *\/
|
|
84
|
+
* // example id: example-1
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
export declare class ListCustomActionsCommand extends ListCustomActionsCommand_base {
|
|
89
|
+
/** @internal type navigation helper, not in runtime. */
|
|
90
|
+
protected static __types: {
|
|
91
|
+
api: {
|
|
92
|
+
input: ListCustomActionsRequest;
|
|
93
|
+
output: ListCustomActionsResult;
|
|
94
|
+
};
|
|
95
|
+
sdk: {
|
|
96
|
+
input: ListCustomActionsCommandInput;
|
|
97
|
+
output: ListCustomActionsCommandOutput;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { UpdateCustomActionRequest, UpdateCustomActionResult } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateCustomActionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateCustomActionCommandInput extends UpdateCustomActionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateCustomActionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateCustomActionCommandOutput extends UpdateCustomActionResult, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateCustomActionCommand_base: {
|
|
25
|
+
new (input: UpdateCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCustomActionCommandInput, UpdateCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateCustomActionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateCustomActionCommandInput, UpdateCustomActionCommandOutput, ChatbotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates 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, UpdateCustomActionCommand } from "@aws-sdk/client-chatbot"; // ES Modules import
|
|
35
|
+
* // const { ChatbotClient, UpdateCustomActionCommand } = require("@aws-sdk/client-chatbot"); // CommonJS import
|
|
36
|
+
* const client = new ChatbotClient(config);
|
|
37
|
+
* const input = { // UpdateCustomActionRequest
|
|
38
|
+
* CustomActionArn: "STRING_VALUE", // required
|
|
39
|
+
* Definition: { // CustomActionDefinition
|
|
40
|
+
* CommandText: "STRING_VALUE", // required
|
|
41
|
+
* },
|
|
42
|
+
* AliasName: "STRING_VALUE",
|
|
43
|
+
* Attachments: [ // CustomActionAttachmentList
|
|
44
|
+
* { // CustomActionAttachment
|
|
45
|
+
* NotificationType: "STRING_VALUE",
|
|
46
|
+
* ButtonText: "STRING_VALUE",
|
|
47
|
+
* Criteria: [ // CustomActionAttachmentCriteriaList
|
|
48
|
+
* { // CustomActionAttachmentCriteria
|
|
49
|
+
* Operator: "HAS_VALUE" || "EQUALS", // required
|
|
50
|
+
* VariableName: "STRING_VALUE", // required
|
|
51
|
+
* Value: "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* Variables: { // CustomActionAttachmentVariables
|
|
55
|
+
* "<keys>": "STRING_VALUE",
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* };
|
|
60
|
+
* const command = new UpdateCustomActionCommand(input);
|
|
61
|
+
* const response = await client.send(command);
|
|
62
|
+
* // { // UpdateCustomActionResult
|
|
63
|
+
* // CustomActionArn: "STRING_VALUE", // required
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @param UpdateCustomActionCommandInput - {@link UpdateCustomActionCommandInput}
|
|
69
|
+
* @returns {@link UpdateCustomActionCommandOutput}
|
|
70
|
+
* @see {@link UpdateCustomActionCommandInput} for command's `input` shape.
|
|
71
|
+
* @see {@link UpdateCustomActionCommandOutput} for command's `response` shape.
|
|
72
|
+
* @see {@link ChatbotClientResolvedConfig | config} for ChatbotClient's `config` shape.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InternalServiceError} (server fault)
|
|
75
|
+
* <p>Unexpected error during processing of request.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link InvalidRequestException} (client fault)
|
|
78
|
+
* <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
81
|
+
* <p>We were unable to find the resource for your request</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
84
|
+
* <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ChatbotServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from Chatbot service.</p>
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
* @example Update the command definition of an existing action
|
|
91
|
+
* ```javascript
|
|
92
|
+
* // Updates the command text of a custom action without altering the existing alias name or attachment criteria
|
|
93
|
+
* const input = {
|
|
94
|
+
* "CustomActionArn": "arn:aws:chatbot::1234567890:custom-action/my-custom-action",
|
|
95
|
+
* "Definition": {
|
|
96
|
+
* "CommandText": "lambda invoke MyNewFunction"
|
|
97
|
+
* }
|
|
98
|
+
* };
|
|
99
|
+
* const command = new UpdateCustomActionCommand(input);
|
|
100
|
+
* const response = await client.send(command);
|
|
101
|
+
* /* response ==
|
|
102
|
+
* {
|
|
103
|
+
* "CustomActionArn": "arn:aws:chatbot::1234567890:custom-action/my-custom-action"
|
|
104
|
+
* }
|
|
105
|
+
* *\/
|
|
106
|
+
* // example id: example-1
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
export declare class UpdateCustomActionCommand extends UpdateCustomActionCommand_base {
|
|
111
|
+
/** @internal type navigation helper, not in runtime. */
|
|
112
|
+
protected static __types: {
|
|
113
|
+
api: {
|
|
114
|
+
input: UpdateCustomActionRequest;
|
|
115
|
+
output: UpdateCustomActionResult;
|
|
116
|
+
};
|
|
117
|
+
sdk: {
|
|
118
|
+
input: UpdateCustomActionCommandInput;
|
|
119
|
+
output: UpdateCustomActionCommandOutput;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
export * from "./AssociateToConfigurationCommand";
|
|
1
2
|
export * from "./CreateChimeWebhookConfigurationCommand";
|
|
3
|
+
export * from "./CreateCustomActionCommand";
|
|
2
4
|
export * from "./CreateMicrosoftTeamsChannelConfigurationCommand";
|
|
3
5
|
export * from "./CreateSlackChannelConfigurationCommand";
|
|
4
6
|
export * from "./DeleteChimeWebhookConfigurationCommand";
|
|
7
|
+
export * from "./DeleteCustomActionCommand";
|
|
5
8
|
export * from "./DeleteMicrosoftTeamsChannelConfigurationCommand";
|
|
6
9
|
export * from "./DeleteMicrosoftTeamsConfiguredTeamCommand";
|
|
7
10
|
export * from "./DeleteMicrosoftTeamsUserIdentityCommand";
|
|
@@ -12,8 +15,12 @@ export * from "./DescribeChimeWebhookConfigurationsCommand";
|
|
|
12
15
|
export * from "./DescribeSlackChannelConfigurationsCommand";
|
|
13
16
|
export * from "./DescribeSlackUserIdentitiesCommand";
|
|
14
17
|
export * from "./DescribeSlackWorkspacesCommand";
|
|
18
|
+
export * from "./DisassociateFromConfigurationCommand";
|
|
15
19
|
export * from "./GetAccountPreferencesCommand";
|
|
20
|
+
export * from "./GetCustomActionCommand";
|
|
16
21
|
export * from "./GetMicrosoftTeamsChannelConfigurationCommand";
|
|
22
|
+
export * from "./ListAssociationsCommand";
|
|
23
|
+
export * from "./ListCustomActionsCommand";
|
|
17
24
|
export * from "./ListMicrosoftTeamsChannelConfigurationsCommand";
|
|
18
25
|
export * from "./ListMicrosoftTeamsConfiguredTeamsCommand";
|
|
19
26
|
export * from "./ListMicrosoftTeamsUserIdentitiesCommand";
|
|
@@ -22,5 +29,6 @@ export * from "./TagResourceCommand";
|
|
|
22
29
|
export * from "./UntagResourceCommand";
|
|
23
30
|
export * from "./UpdateAccountPreferencesCommand";
|
|
24
31
|
export * from "./UpdateChimeWebhookConfigurationCommand";
|
|
32
|
+
export * from "./UpdateCustomActionCommand";
|
|
25
33
|
export * from "./UpdateMicrosoftTeamsChannelConfigurationCommand";
|
|
26
34
|
export * from "./UpdateSlackChannelConfigurationCommand";
|