@aws-sdk/client-bedrock-agent 3.613.0 → 3.614.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.
Files changed (108) hide show
  1. package/README.md +168 -0
  2. package/dist-cjs/index.js +2007 -14
  3. package/dist-es/BedrockAgent.js +42 -0
  4. package/dist-es/commands/CreateDataSourceCommand.js +2 -1
  5. package/dist-es/commands/CreateFlowAliasCommand.js +24 -0
  6. package/dist-es/commands/CreateFlowCommand.js +25 -0
  7. package/dist-es/commands/CreateFlowVersionCommand.js +25 -0
  8. package/dist-es/commands/CreatePromptCommand.js +25 -0
  9. package/dist-es/commands/CreatePromptVersionCommand.js +25 -0
  10. package/dist-es/commands/DeleteFlowAliasCommand.js +24 -0
  11. package/dist-es/commands/DeleteFlowCommand.js +24 -0
  12. package/dist-es/commands/DeleteFlowVersionCommand.js +24 -0
  13. package/dist-es/commands/DeletePromptCommand.js +24 -0
  14. package/dist-es/commands/GetDataSourceCommand.js +2 -1
  15. package/dist-es/commands/GetFlowAliasCommand.js +24 -0
  16. package/dist-es/commands/GetFlowCommand.js +25 -0
  17. package/dist-es/commands/GetFlowVersionCommand.js +25 -0
  18. package/dist-es/commands/GetPromptCommand.js +25 -0
  19. package/dist-es/commands/ListFlowAliasesCommand.js +24 -0
  20. package/dist-es/commands/ListFlowVersionsCommand.js +24 -0
  21. package/dist-es/commands/ListFlowsCommand.js +24 -0
  22. package/dist-es/commands/ListPromptsCommand.js +24 -0
  23. package/dist-es/commands/PrepareFlowCommand.js +24 -0
  24. package/dist-es/commands/UpdateDataSourceCommand.js +2 -1
  25. package/dist-es/commands/UpdateFlowAliasCommand.js +24 -0
  26. package/dist-es/commands/UpdateFlowCommand.js +25 -0
  27. package/dist-es/commands/UpdatePromptCommand.js +25 -0
  28. package/dist-es/commands/index.js +21 -0
  29. package/dist-es/models/models_0.js +418 -0
  30. package/dist-es/pagination/ListFlowAliasesPaginator.js +4 -0
  31. package/dist-es/pagination/ListFlowVersionsPaginator.js +4 -0
  32. package/dist-es/pagination/ListFlowsPaginator.js +4 -0
  33. package/dist-es/pagination/ListPromptsPaginator.js +4 -0
  34. package/dist-es/pagination/index.js +4 -0
  35. package/dist-es/protocols/Aws_restJson1.js +1041 -25
  36. package/dist-types/BedrockAgent.d.ts +149 -0
  37. package/dist-types/BedrockAgentClient.d.ts +23 -2
  38. package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +7 -3
  39. package/dist-types/commands/CreateAgentCommand.d.ts +18 -1
  40. package/dist-types/commands/CreateDataSourceCommand.d.ts +280 -6
  41. package/dist-types/commands/CreateFlowAliasCommand.d.ts +103 -0
  42. package/dist-types/commands/CreateFlowCommand.d.ts +318 -0
  43. package/dist-types/commands/CreateFlowVersionCommand.d.ts +203 -0
  44. package/dist-types/commands/CreatePromptCommand.d.ts +149 -0
  45. package/dist-types/commands/CreatePromptVersionCommand.d.ts +122 -0
  46. package/dist-types/commands/DeleteFlowAliasCommand.d.ts +80 -0
  47. package/dist-types/commands/DeleteFlowCommand.d.ts +79 -0
  48. package/dist-types/commands/DeleteFlowVersionCommand.d.ts +81 -0
  49. package/dist-types/commands/DeletePromptCommand.d.ts +80 -0
  50. package/dist-types/commands/GetAgentActionGroupCommand.d.ts +1 -1
  51. package/dist-types/commands/GetAgentCommand.d.ts +6 -0
  52. package/dist-types/commands/GetAgentVersionCommand.d.ts +6 -0
  53. package/dist-types/commands/GetDataSourceCommand.d.ts +139 -2
  54. package/dist-types/commands/GetFlowAliasCommand.d.ts +87 -0
  55. package/dist-types/commands/GetFlowCommand.d.ts +202 -0
  56. package/dist-types/commands/GetFlowVersionCommand.d.ts +196 -0
  57. package/dist-types/commands/GetPromptCommand.d.ts +112 -0
  58. package/dist-types/commands/ListFlowAliasesCommand.d.ts +93 -0
  59. package/dist-types/commands/ListFlowVersionsCommand.d.ts +86 -0
  60. package/dist-types/commands/ListFlowsCommand.d.ts +85 -0
  61. package/dist-types/commands/ListPromptsCommand.d.ts +88 -0
  62. package/dist-types/commands/PrepareFlowCommand.d.ts +82 -0
  63. package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +2 -2
  64. package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
  65. package/dist-types/commands/UpdateDataSourceCommand.d.ts +280 -6
  66. package/dist-types/commands/UpdateFlowAliasCommand.d.ts +100 -0
  67. package/dist-types/commands/UpdateFlowCommand.d.ts +318 -0
  68. package/dist-types/commands/UpdatePromptCommand.d.ts +149 -0
  69. package/dist-types/commands/index.d.ts +21 -0
  70. package/dist-types/models/models_0.d.ts +4252 -772
  71. package/dist-types/pagination/ListFlowAliasesPaginator.d.ts +7 -0
  72. package/dist-types/pagination/ListFlowVersionsPaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListFlowsPaginator.d.ts +7 -0
  74. package/dist-types/pagination/ListPromptsPaginator.d.ts +7 -0
  75. package/dist-types/pagination/index.d.ts +4 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +189 -0
  77. package/dist-types/ts3.4/BedrockAgent.d.ts +359 -0
  78. package/dist-types/ts3.4/BedrockAgentClient.d.ts +128 -2
  79. package/dist-types/ts3.4/commands/CreateFlowAliasCommand.d.ts +39 -0
  80. package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +36 -0
  81. package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +40 -0
  82. package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +36 -0
  83. package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +40 -0
  84. package/dist-types/ts3.4/commands/DeleteFlowAliasCommand.d.ts +39 -0
  85. package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +36 -0
  86. package/dist-types/ts3.4/commands/DeleteFlowVersionCommand.d.ts +40 -0
  87. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +36 -0
  88. package/dist-types/ts3.4/commands/GetFlowAliasCommand.d.ts +36 -0
  89. package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +32 -0
  90. package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +39 -0
  91. package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +36 -0
  92. package/dist-types/ts3.4/commands/ListFlowAliasesCommand.d.ts +39 -0
  93. package/dist-types/ts3.4/commands/ListFlowVersionsCommand.d.ts +39 -0
  94. package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +36 -0
  95. package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +36 -0
  96. package/dist-types/ts3.4/commands/PrepareFlowCommand.d.ts +36 -0
  97. package/dist-types/ts3.4/commands/UpdateFlowAliasCommand.d.ts +39 -0
  98. package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +36 -0
  99. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +36 -0
  100. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  101. package/dist-types/ts3.4/models/models_0.d.ts +1179 -0
  102. package/dist-types/ts3.4/pagination/ListFlowAliasesPaginator.d.ts +11 -0
  103. package/dist-types/ts3.4/pagination/ListFlowVersionsPaginator.d.ts +11 -0
  104. package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +11 -0
  105. package/dist-types/ts3.4/pagination/ListPromptsPaginator.d.ts +11 -0
  106. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  107. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +252 -0
  108. package/package.json +20 -20
@@ -0,0 +1,112 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
+ import { GetPromptRequest, GetPromptResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetPromptCommand}.
14
+ */
15
+ export interface GetPromptCommandInput extends GetPromptRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetPromptCommand}.
21
+ */
22
+ export interface GetPromptCommandOutput extends GetPromptResponse, __MetadataBearer {
23
+ }
24
+ declare const GetPromptCommand_base: {
25
+ new (input: GetPromptCommandInput): import("@smithy/smithy-client").CommandImpl<GetPromptCommandInput, GetPromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetPromptCommandInput): import("@smithy/smithy-client").CommandImpl<GetPromptCommandInput, GetPromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves information about a prompt or a version of it. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-view.html">View information about prompts using Prompt management</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-view.html">View information about a version of your prompt</a> in the Amazon Bedrock User Guide.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, GetPromptCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, GetPromptCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // GetPromptRequest
38
+ * promptIdentifier: "STRING_VALUE", // required
39
+ * promptVersion: "STRING_VALUE",
40
+ * };
41
+ * const command = new GetPromptCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetPromptResponse
44
+ * // name: "STRING_VALUE", // required
45
+ * // description: "STRING_VALUE",
46
+ * // customerEncryptionKeyArn: "STRING_VALUE",
47
+ * // defaultVariant: "STRING_VALUE",
48
+ * // variants: [ // PromptVariantList
49
+ * // { // PromptVariant
50
+ * // name: "STRING_VALUE", // required
51
+ * // templateType: "TEXT", // required
52
+ * // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
53
+ * // text: { // TextPromptTemplateConfiguration
54
+ * // text: "STRING_VALUE", // required
55
+ * // inputVariables: [ // PromptInputVariablesList
56
+ * // { // PromptInputVariable
57
+ * // name: "STRING_VALUE",
58
+ * // },
59
+ * // ],
60
+ * // },
61
+ * // },
62
+ * // modelId: "STRING_VALUE",
63
+ * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
64
+ * // text: { // PromptModelInferenceConfiguration
65
+ * // temperature: Number("float"),
66
+ * // topP: Number("float"),
67
+ * // topK: Number("int"),
68
+ * // maxTokens: Number("int"),
69
+ * // stopSequences: [ // StopSequences
70
+ * // "STRING_VALUE",
71
+ * // ],
72
+ * // },
73
+ * // },
74
+ * // },
75
+ * // ],
76
+ * // id: "STRING_VALUE", // required
77
+ * // arn: "STRING_VALUE", // required
78
+ * // version: "STRING_VALUE", // required
79
+ * // createdAt: new Date("TIMESTAMP"), // required
80
+ * // updatedAt: new Date("TIMESTAMP"), // required
81
+ * // };
82
+ *
83
+ * ```
84
+ *
85
+ * @param GetPromptCommandInput - {@link GetPromptCommandInput}
86
+ * @returns {@link GetPromptCommandOutput}
87
+ * @see {@link GetPromptCommandInput} for command's `input` shape.
88
+ * @see {@link GetPromptCommandOutput} for command's `response` shape.
89
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
90
+ *
91
+ * @throws {@link AccessDeniedException} (client fault)
92
+ * <p>The request is denied because of missing access permissions.</p>
93
+ *
94
+ * @throws {@link InternalServerException} (server fault)
95
+ * <p>An internal server error occurred. Retry your request.</p>
96
+ *
97
+ * @throws {@link ResourceNotFoundException} (client fault)
98
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
99
+ *
100
+ * @throws {@link ThrottlingException} (client fault)
101
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
102
+ *
103
+ * @throws {@link ValidationException} (client fault)
104
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
105
+ *
106
+ * @throws {@link BedrockAgentServiceException}
107
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
108
+ *
109
+ * @public
110
+ */
111
+ export declare class GetPromptCommand extends GetPromptCommand_base {
112
+ }
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
+ import { ListFlowAliasesRequest, ListFlowAliasesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListFlowAliasesCommand}.
14
+ */
15
+ export interface ListFlowAliasesCommandInput extends ListFlowAliasesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListFlowAliasesCommand}.
21
+ */
22
+ export interface ListFlowAliasesCommandOutput extends ListFlowAliasesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListFlowAliasesCommand_base: {
25
+ new (input: ListFlowAliasesCommandInput): import("@smithy/smithy-client").CommandImpl<ListFlowAliasesCommandInput, ListFlowAliasesCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListFlowAliasesCommandInput): import("@smithy/smithy-client").CommandImpl<ListFlowAliasesCommandInput, ListFlowAliasesCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of aliases for a flow.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, ListFlowAliasesCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, ListFlowAliasesCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // ListFlowAliasesRequest
38
+ * flowIdentifier: "STRING_VALUE", // required
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListFlowAliasesCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListFlowAliasesResponse
45
+ * // flowAliasSummaries: [ // FlowAliasSummaries // required
46
+ * // { // FlowAliasSummary
47
+ * // name: "STRING_VALUE", // required
48
+ * // description: "STRING_VALUE",
49
+ * // routingConfiguration: [ // FlowAliasRoutingConfiguration // required
50
+ * // { // FlowAliasRoutingConfigurationListItem
51
+ * // flowVersion: "STRING_VALUE",
52
+ * // },
53
+ * // ],
54
+ * // flowId: "STRING_VALUE", // required
55
+ * // id: "STRING_VALUE", // required
56
+ * // arn: "STRING_VALUE", // required
57
+ * // createdAt: new Date("TIMESTAMP"), // required
58
+ * // updatedAt: new Date("TIMESTAMP"), // required
59
+ * // },
60
+ * // ],
61
+ * // nextToken: "STRING_VALUE",
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param ListFlowAliasesCommandInput - {@link ListFlowAliasesCommandInput}
67
+ * @returns {@link ListFlowAliasesCommandOutput}
68
+ * @see {@link ListFlowAliasesCommandInput} for command's `input` shape.
69
+ * @see {@link ListFlowAliasesCommandOutput} for command's `response` shape.
70
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
71
+ *
72
+ * @throws {@link AccessDeniedException} (client fault)
73
+ * <p>The request is denied because of missing access permissions.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>An internal server error occurred. Retry your request.</p>
77
+ *
78
+ * @throws {@link ResourceNotFoundException} (client fault)
79
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
80
+ *
81
+ * @throws {@link ThrottlingException} (client fault)
82
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
83
+ *
84
+ * @throws {@link ValidationException} (client fault)
85
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
86
+ *
87
+ * @throws {@link BedrockAgentServiceException}
88
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
89
+ *
90
+ * @public
91
+ */
92
+ export declare class ListFlowAliasesCommand extends ListFlowAliasesCommand_base {
93
+ }
@@ -0,0 +1,86 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
+ import { ListFlowVersionsRequest, ListFlowVersionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListFlowVersionsCommand}.
14
+ */
15
+ export interface ListFlowVersionsCommandInput extends ListFlowVersionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListFlowVersionsCommand}.
21
+ */
22
+ export interface ListFlowVersionsCommandOutput extends ListFlowVersionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListFlowVersionsCommand_base: {
25
+ new (input: ListFlowVersionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFlowVersionsCommandInput, ListFlowVersionsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListFlowVersionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFlowVersionsCommandInput, ListFlowVersionsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of information about each flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html">Deploy a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, ListFlowVersionsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, ListFlowVersionsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // ListFlowVersionsRequest
38
+ * flowIdentifier: "STRING_VALUE", // required
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListFlowVersionsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListFlowVersionsResponse
45
+ * // flowVersionSummaries: [ // FlowVersionSummaries // required
46
+ * // { // FlowVersionSummary
47
+ * // id: "STRING_VALUE", // required
48
+ * // arn: "STRING_VALUE", // required
49
+ * // status: "Failed" || "Prepared" || "Preparing" || "NotPrepared", // required
50
+ * // createdAt: new Date("TIMESTAMP"), // required
51
+ * // version: "STRING_VALUE", // required
52
+ * // },
53
+ * // ],
54
+ * // nextToken: "STRING_VALUE",
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param ListFlowVersionsCommandInput - {@link ListFlowVersionsCommandInput}
60
+ * @returns {@link ListFlowVersionsCommandOutput}
61
+ * @see {@link ListFlowVersionsCommandInput} for command's `input` shape.
62
+ * @see {@link ListFlowVersionsCommandOutput} for command's `response` shape.
63
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>The request is denied because of missing access permissions.</p>
67
+ *
68
+ * @throws {@link InternalServerException} (server fault)
69
+ * <p>An internal server error occurred. Retry your request.</p>
70
+ *
71
+ * @throws {@link ResourceNotFoundException} (client fault)
72
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
79
+ *
80
+ * @throws {@link BedrockAgentServiceException}
81
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
82
+ *
83
+ * @public
84
+ */
85
+ export declare class ListFlowVersionsCommand extends ListFlowVersionsCommand_base {
86
+ }
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
+ import { ListFlowsRequest, ListFlowsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListFlowsCommand}.
14
+ */
15
+ export interface ListFlowsCommandInput extends ListFlowsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListFlowsCommand}.
21
+ */
22
+ export interface ListFlowsCommandOutput extends ListFlowsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListFlowsCommand_base: {
25
+ new (input: ListFlowsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFlowsCommandInput, ListFlowsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListFlowsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListFlowsCommandInput, ListFlowsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of flows and information about each flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-manage.html">Manage a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, ListFlowsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, ListFlowsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // ListFlowsRequest
38
+ * maxResults: Number("int"),
39
+ * nextToken: "STRING_VALUE",
40
+ * };
41
+ * const command = new ListFlowsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListFlowsResponse
44
+ * // flowSummaries: [ // FlowSummaries // required
45
+ * // { // FlowSummary
46
+ * // name: "STRING_VALUE", // required
47
+ * // description: "STRING_VALUE",
48
+ * // id: "STRING_VALUE", // required
49
+ * // arn: "STRING_VALUE", // required
50
+ * // status: "Failed" || "Prepared" || "Preparing" || "NotPrepared", // required
51
+ * // createdAt: new Date("TIMESTAMP"), // required
52
+ * // updatedAt: new Date("TIMESTAMP"), // required
53
+ * // version: "STRING_VALUE", // required
54
+ * // },
55
+ * // ],
56
+ * // nextToken: "STRING_VALUE",
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param ListFlowsCommandInput - {@link ListFlowsCommandInput}
62
+ * @returns {@link ListFlowsCommandOutput}
63
+ * @see {@link ListFlowsCommandInput} for command's `input` shape.
64
+ * @see {@link ListFlowsCommandOutput} for command's `response` shape.
65
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>The request is denied because of missing access permissions.</p>
69
+ *
70
+ * @throws {@link InternalServerException} (server fault)
71
+ * <p>An internal server error occurred. Retry your request.</p>
72
+ *
73
+ * @throws {@link ThrottlingException} (client fault)
74
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
78
+ *
79
+ * @throws {@link BedrockAgentServiceException}
80
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
81
+ *
82
+ * @public
83
+ */
84
+ export declare class ListFlowsCommand extends ListFlowsCommand_base {
85
+ }
@@ -0,0 +1,88 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
+ import { ListPromptsRequest, ListPromptsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPromptsCommand}.
14
+ */
15
+ export interface ListPromptsCommandInput extends ListPromptsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPromptsCommand}.
21
+ */
22
+ export interface ListPromptsCommandOutput extends ListPromptsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListPromptsCommand_base: {
25
+ new (input: ListPromptsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPromptsCommandInput, ListPromptsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListPromptsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListPromptsCommandInput, ListPromptsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of prompts from the Prompt management tool and information about each prompt. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-view.html">View information about prompts using Prompt management</a> in the Amazon Bedrock User Guide.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, ListPromptsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, ListPromptsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // ListPromptsRequest
38
+ * promptIdentifier: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * nextToken: "STRING_VALUE",
41
+ * };
42
+ * const command = new ListPromptsCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListPromptsResponse
45
+ * // promptSummaries: [ // PromptSummaries // required
46
+ * // { // PromptSummary
47
+ * // name: "STRING_VALUE", // required
48
+ * // description: "STRING_VALUE",
49
+ * // id: "STRING_VALUE", // required
50
+ * // arn: "STRING_VALUE", // required
51
+ * // version: "STRING_VALUE", // required
52
+ * // createdAt: new Date("TIMESTAMP"), // required
53
+ * // updatedAt: new Date("TIMESTAMP"), // required
54
+ * // },
55
+ * // ],
56
+ * // nextToken: "STRING_VALUE",
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param ListPromptsCommandInput - {@link ListPromptsCommandInput}
62
+ * @returns {@link ListPromptsCommandOutput}
63
+ * @see {@link ListPromptsCommandInput} for command's `input` shape.
64
+ * @see {@link ListPromptsCommandOutput} for command's `response` shape.
65
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
66
+ *
67
+ * @throws {@link AccessDeniedException} (client fault)
68
+ * <p>The request is denied because of missing access permissions.</p>
69
+ *
70
+ * @throws {@link InternalServerException} (server fault)
71
+ * <p>An internal server error occurred. Retry your request.</p>
72
+ *
73
+ * @throws {@link ResourceNotFoundException} (client fault)
74
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
78
+ *
79
+ * @throws {@link ValidationException} (client fault)
80
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
81
+ *
82
+ * @throws {@link BedrockAgentServiceException}
83
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
84
+ *
85
+ * @public
86
+ */
87
+ export declare class ListPromptsCommand extends ListPromptsCommand_base {
88
+ }
@@ -0,0 +1,82 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
+ import { PrepareFlowRequest, PrepareFlowResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PrepareFlowCommand}.
14
+ */
15
+ export interface PrepareFlowCommandInput extends PrepareFlowRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PrepareFlowCommand}.
21
+ */
22
+ export interface PrepareFlowCommandOutput extends PrepareFlowResponse, __MetadataBearer {
23
+ }
24
+ declare const PrepareFlowCommand_base: {
25
+ new (input: PrepareFlowCommandInput): import("@smithy/smithy-client").CommandImpl<PrepareFlowCommandInput, PrepareFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PrepareFlowCommandInput): import("@smithy/smithy-client").CommandImpl<PrepareFlowCommandInput, PrepareFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Prepares the <code>DRAFT</code> version of a flow so that it can be invoked. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html">Test a flow in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentClient, PrepareFlowCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, PrepareFlowCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // PrepareFlowRequest
38
+ * flowIdentifier: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new PrepareFlowCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // PrepareFlowResponse
43
+ * // id: "STRING_VALUE", // required
44
+ * // status: "Failed" || "Prepared" || "Preparing" || "NotPrepared", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param PrepareFlowCommandInput - {@link PrepareFlowCommandInput}
50
+ * @returns {@link PrepareFlowCommandOutput}
51
+ * @see {@link PrepareFlowCommandInput} for command's `input` shape.
52
+ * @see {@link PrepareFlowCommandOutput} for command's `response` shape.
53
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
54
+ *
55
+ * @throws {@link AccessDeniedException} (client fault)
56
+ * <p>The request is denied because of missing access permissions.</p>
57
+ *
58
+ * @throws {@link ConflictException} (client fault)
59
+ * <p>There was a conflict performing an operation.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>An internal server error occurred. Retry your request.</p>
63
+ *
64
+ * @throws {@link ResourceNotFoundException} (client fault)
65
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
66
+ *
67
+ * @throws {@link ServiceQuotaExceededException} (client fault)
68
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
75
+ *
76
+ * @throws {@link BedrockAgentServiceException}
77
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
78
+ *
79
+ * @public
80
+ */
81
+ export declare class PrepareFlowCommand extends PrepareFlowCommand_base {
82
+ }
@@ -40,7 +40,7 @@ declare const UpdateAgentActionGroupCommand_base: {
40
40
  * actionGroupId: "STRING_VALUE", // required
41
41
  * actionGroupName: "STRING_VALUE", // required
42
42
  * description: "STRING_VALUE",
43
- * parentActionGroupSignature: "AMAZON.UserInput",
43
+ * parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
44
44
  * actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
45
45
  * lambda: "STRING_VALUE",
46
46
  * customControl: "RETURN_CONTROL",
@@ -81,7 +81,7 @@ declare const UpdateAgentActionGroupCommand_base: {
81
81
  * // description: "STRING_VALUE",
82
82
  * // createdAt: new Date("TIMESTAMP"), // required
83
83
  * // updatedAt: new Date("TIMESTAMP"), // required
84
- * // parentActionSignature: "AMAZON.UserInput",
84
+ * // parentActionSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
85
85
  * // actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
86
86
  * // lambda: "STRING_VALUE",
87
87
  * // customControl: "RETURN_CONTROL",
@@ -68,6 +68,12 @@ declare const UpdateAgentCommand_base: {
68
68
  * guardrailIdentifier: "STRING_VALUE",
69
69
  * guardrailVersion: "STRING_VALUE",
70
70
  * },
71
+ * memoryConfiguration: { // MemoryConfiguration
72
+ * enabledMemoryTypes: [ // EnabledMemoryTypes // required
73
+ * "SESSION_SUMMARY",
74
+ * ],
75
+ * storageDays: Number("int"),
76
+ * },
71
77
  * };
72
78
  * const command = new UpdateAgentCommand(input);
73
79
  * const response = await client.send(command);
@@ -119,6 +125,12 @@ declare const UpdateAgentCommand_base: {
119
125
  * // guardrailIdentifier: "STRING_VALUE",
120
126
  * // guardrailVersion: "STRING_VALUE",
121
127
  * // },
128
+ * // memoryConfiguration: { // MemoryConfiguration
129
+ * // enabledMemoryTypes: [ // EnabledMemoryTypes // required
130
+ * // "SESSION_SUMMARY",
131
+ * // ],
132
+ * // storageDays: Number("int"),
133
+ * // },
122
134
  * // },
123
135
  * // };
124
136
  *