@aws-sdk/client-bedrock-agent 3.613.0 → 3.616.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 (115) hide show
  1. package/README.md +168 -0
  2. package/dist-cjs/index.js +2009 -16
  3. package/dist-es/BedrockAgent.js +42 -0
  4. package/dist-es/BedrockAgentClient.js +5 -5
  5. package/dist-es/commands/CreateDataSourceCommand.js +2 -1
  6. package/dist-es/commands/CreateFlowAliasCommand.js +24 -0
  7. package/dist-es/commands/CreateFlowCommand.js +25 -0
  8. package/dist-es/commands/CreateFlowVersionCommand.js +25 -0
  9. package/dist-es/commands/CreatePromptCommand.js +25 -0
  10. package/dist-es/commands/CreatePromptVersionCommand.js +25 -0
  11. package/dist-es/commands/DeleteFlowAliasCommand.js +24 -0
  12. package/dist-es/commands/DeleteFlowCommand.js +24 -0
  13. package/dist-es/commands/DeleteFlowVersionCommand.js +24 -0
  14. package/dist-es/commands/DeletePromptCommand.js +24 -0
  15. package/dist-es/commands/GetDataSourceCommand.js +2 -1
  16. package/dist-es/commands/GetFlowAliasCommand.js +24 -0
  17. package/dist-es/commands/GetFlowCommand.js +25 -0
  18. package/dist-es/commands/GetFlowVersionCommand.js +25 -0
  19. package/dist-es/commands/GetPromptCommand.js +25 -0
  20. package/dist-es/commands/ListFlowAliasesCommand.js +24 -0
  21. package/dist-es/commands/ListFlowVersionsCommand.js +24 -0
  22. package/dist-es/commands/ListFlowsCommand.js +24 -0
  23. package/dist-es/commands/ListPromptsCommand.js +24 -0
  24. package/dist-es/commands/PrepareFlowCommand.js +24 -0
  25. package/dist-es/commands/UpdateDataSourceCommand.js +2 -1
  26. package/dist-es/commands/UpdateFlowAliasCommand.js +24 -0
  27. package/dist-es/commands/UpdateFlowCommand.js +25 -0
  28. package/dist-es/commands/UpdatePromptCommand.js +25 -0
  29. package/dist-es/commands/index.js +21 -0
  30. package/dist-es/models/models_0.js +418 -0
  31. package/dist-es/pagination/ListFlowAliasesPaginator.js +4 -0
  32. package/dist-es/pagination/ListFlowVersionsPaginator.js +4 -0
  33. package/dist-es/pagination/ListFlowsPaginator.js +4 -0
  34. package/dist-es/pagination/ListPromptsPaginator.js +4 -0
  35. package/dist-es/pagination/index.js +4 -0
  36. package/dist-es/protocols/Aws_restJson1.js +1041 -25
  37. package/dist-types/BedrockAgent.d.ts +149 -0
  38. package/dist-types/BedrockAgentClient.d.ts +25 -4
  39. package/dist-types/commands/CreateAgentActionGroupCommand.d.ts +7 -3
  40. package/dist-types/commands/CreateAgentCommand.d.ts +18 -1
  41. package/dist-types/commands/CreateDataSourceCommand.d.ts +280 -6
  42. package/dist-types/commands/CreateFlowAliasCommand.d.ts +103 -0
  43. package/dist-types/commands/CreateFlowCommand.d.ts +318 -0
  44. package/dist-types/commands/CreateFlowVersionCommand.d.ts +203 -0
  45. package/dist-types/commands/CreatePromptCommand.d.ts +149 -0
  46. package/dist-types/commands/CreatePromptVersionCommand.d.ts +122 -0
  47. package/dist-types/commands/DeleteFlowAliasCommand.d.ts +80 -0
  48. package/dist-types/commands/DeleteFlowCommand.d.ts +79 -0
  49. package/dist-types/commands/DeleteFlowVersionCommand.d.ts +81 -0
  50. package/dist-types/commands/DeletePromptCommand.d.ts +80 -0
  51. package/dist-types/commands/GetAgentActionGroupCommand.d.ts +1 -1
  52. package/dist-types/commands/GetAgentCommand.d.ts +6 -0
  53. package/dist-types/commands/GetAgentVersionCommand.d.ts +6 -0
  54. package/dist-types/commands/GetDataSourceCommand.d.ts +139 -2
  55. package/dist-types/commands/GetFlowAliasCommand.d.ts +87 -0
  56. package/dist-types/commands/GetFlowCommand.d.ts +202 -0
  57. package/dist-types/commands/GetFlowVersionCommand.d.ts +196 -0
  58. package/dist-types/commands/GetPromptCommand.d.ts +112 -0
  59. package/dist-types/commands/ListFlowAliasesCommand.d.ts +93 -0
  60. package/dist-types/commands/ListFlowVersionsCommand.d.ts +86 -0
  61. package/dist-types/commands/ListFlowsCommand.d.ts +85 -0
  62. package/dist-types/commands/ListPromptsCommand.d.ts +88 -0
  63. package/dist-types/commands/PrepareFlowCommand.d.ts +82 -0
  64. package/dist-types/commands/UpdateAgentActionGroupCommand.d.ts +2 -2
  65. package/dist-types/commands/UpdateAgentCommand.d.ts +12 -0
  66. package/dist-types/commands/UpdateDataSourceCommand.d.ts +280 -6
  67. package/dist-types/commands/UpdateFlowAliasCommand.d.ts +100 -0
  68. package/dist-types/commands/UpdateFlowCommand.d.ts +318 -0
  69. package/dist-types/commands/UpdatePromptCommand.d.ts +149 -0
  70. package/dist-types/commands/index.d.ts +21 -0
  71. package/dist-types/models/models_0.d.ts +4252 -772
  72. package/dist-types/pagination/ListFlowAliasesPaginator.d.ts +7 -0
  73. package/dist-types/pagination/ListFlowVersionsPaginator.d.ts +7 -0
  74. package/dist-types/pagination/ListFlowsPaginator.d.ts +7 -0
  75. package/dist-types/pagination/ListPromptsPaginator.d.ts +7 -0
  76. package/dist-types/pagination/index.d.ts +4 -0
  77. package/dist-types/protocols/Aws_restJson1.d.ts +189 -0
  78. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  79. package/dist-types/runtimeConfig.d.ts +1 -1
  80. package/dist-types/runtimeConfig.native.d.ts +1 -1
  81. package/dist-types/ts3.4/BedrockAgent.d.ts +359 -0
  82. package/dist-types/ts3.4/BedrockAgentClient.d.ts +130 -4
  83. package/dist-types/ts3.4/commands/CreateFlowAliasCommand.d.ts +39 -0
  84. package/dist-types/ts3.4/commands/CreateFlowCommand.d.ts +36 -0
  85. package/dist-types/ts3.4/commands/CreateFlowVersionCommand.d.ts +40 -0
  86. package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +36 -0
  87. package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +40 -0
  88. package/dist-types/ts3.4/commands/DeleteFlowAliasCommand.d.ts +39 -0
  89. package/dist-types/ts3.4/commands/DeleteFlowCommand.d.ts +36 -0
  90. package/dist-types/ts3.4/commands/DeleteFlowVersionCommand.d.ts +40 -0
  91. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +36 -0
  92. package/dist-types/ts3.4/commands/GetFlowAliasCommand.d.ts +36 -0
  93. package/dist-types/ts3.4/commands/GetFlowCommand.d.ts +32 -0
  94. package/dist-types/ts3.4/commands/GetFlowVersionCommand.d.ts +39 -0
  95. package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +36 -0
  96. package/dist-types/ts3.4/commands/ListFlowAliasesCommand.d.ts +39 -0
  97. package/dist-types/ts3.4/commands/ListFlowVersionsCommand.d.ts +39 -0
  98. package/dist-types/ts3.4/commands/ListFlowsCommand.d.ts +36 -0
  99. package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +36 -0
  100. package/dist-types/ts3.4/commands/PrepareFlowCommand.d.ts +36 -0
  101. package/dist-types/ts3.4/commands/UpdateFlowAliasCommand.d.ts +39 -0
  102. package/dist-types/ts3.4/commands/UpdateFlowCommand.d.ts +36 -0
  103. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +36 -0
  104. package/dist-types/ts3.4/commands/index.d.ts +21 -0
  105. package/dist-types/ts3.4/models/models_0.d.ts +1179 -0
  106. package/dist-types/ts3.4/pagination/ListFlowAliasesPaginator.d.ts +11 -0
  107. package/dist-types/ts3.4/pagination/ListFlowVersionsPaginator.d.ts +11 -0
  108. package/dist-types/ts3.4/pagination/ListFlowsPaginator.d.ts +11 -0
  109. package/dist-types/ts3.4/pagination/ListPromptsPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  111. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +252 -0
  112. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  113. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  114. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  115. package/package.json +24 -24
@@ -0,0 +1,149 @@
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 { CreatePromptRequest, CreatePromptResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreatePromptCommand}.
14
+ */
15
+ export interface CreatePromptCommandInput extends CreatePromptRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePromptCommand}.
21
+ */
22
+ export interface CreatePromptCommandOutput extends CreatePromptResponse, __MetadataBearer {
23
+ }
24
+ declare const CreatePromptCommand_base: {
25
+ new (input: CreatePromptCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePromptCommandInput, CreatePromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreatePromptCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePromptCommandInput, CreatePromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a prompt in your prompt library that you can add to a flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html">Prompt management in Amazon Bedrock</a>, <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-create.html">Create a prompt using Prompt management</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows.html">Prompt flows 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, CreatePromptCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, CreatePromptCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // CreatePromptRequest
38
+ * name: "STRING_VALUE", // required
39
+ * description: "STRING_VALUE",
40
+ * customerEncryptionKeyArn: "STRING_VALUE",
41
+ * defaultVariant: "STRING_VALUE",
42
+ * variants: [ // PromptVariantList
43
+ * { // PromptVariant
44
+ * name: "STRING_VALUE", // required
45
+ * templateType: "TEXT", // required
46
+ * templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
47
+ * text: { // TextPromptTemplateConfiguration
48
+ * text: "STRING_VALUE", // required
49
+ * inputVariables: [ // PromptInputVariablesList
50
+ * { // PromptInputVariable
51
+ * name: "STRING_VALUE",
52
+ * },
53
+ * ],
54
+ * },
55
+ * },
56
+ * modelId: "STRING_VALUE",
57
+ * inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
58
+ * text: { // PromptModelInferenceConfiguration
59
+ * temperature: Number("float"),
60
+ * topP: Number("float"),
61
+ * topK: Number("int"),
62
+ * maxTokens: Number("int"),
63
+ * stopSequences: [ // StopSequences
64
+ * "STRING_VALUE",
65
+ * ],
66
+ * },
67
+ * },
68
+ * },
69
+ * ],
70
+ * clientToken: "STRING_VALUE",
71
+ * tags: { // TagsMap
72
+ * "<keys>": "STRING_VALUE",
73
+ * },
74
+ * };
75
+ * const command = new CreatePromptCommand(input);
76
+ * const response = await client.send(command);
77
+ * // { // CreatePromptResponse
78
+ * // name: "STRING_VALUE", // required
79
+ * // description: "STRING_VALUE",
80
+ * // customerEncryptionKeyArn: "STRING_VALUE",
81
+ * // defaultVariant: "STRING_VALUE",
82
+ * // variants: [ // PromptVariantList
83
+ * // { // PromptVariant
84
+ * // name: "STRING_VALUE", // required
85
+ * // templateType: "TEXT", // required
86
+ * // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
87
+ * // text: { // TextPromptTemplateConfiguration
88
+ * // text: "STRING_VALUE", // required
89
+ * // inputVariables: [ // PromptInputVariablesList
90
+ * // { // PromptInputVariable
91
+ * // name: "STRING_VALUE",
92
+ * // },
93
+ * // ],
94
+ * // },
95
+ * // },
96
+ * // modelId: "STRING_VALUE",
97
+ * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
98
+ * // text: { // PromptModelInferenceConfiguration
99
+ * // temperature: Number("float"),
100
+ * // topP: Number("float"),
101
+ * // topK: Number("int"),
102
+ * // maxTokens: Number("int"),
103
+ * // stopSequences: [ // StopSequences
104
+ * // "STRING_VALUE",
105
+ * // ],
106
+ * // },
107
+ * // },
108
+ * // },
109
+ * // ],
110
+ * // id: "STRING_VALUE", // required
111
+ * // arn: "STRING_VALUE", // required
112
+ * // version: "STRING_VALUE", // required
113
+ * // createdAt: new Date("TIMESTAMP"), // required
114
+ * // updatedAt: new Date("TIMESTAMP"), // required
115
+ * // };
116
+ *
117
+ * ```
118
+ *
119
+ * @param CreatePromptCommandInput - {@link CreatePromptCommandInput}
120
+ * @returns {@link CreatePromptCommandOutput}
121
+ * @see {@link CreatePromptCommandInput} for command's `input` shape.
122
+ * @see {@link CreatePromptCommandOutput} for command's `response` shape.
123
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
124
+ *
125
+ * @throws {@link AccessDeniedException} (client fault)
126
+ * <p>The request is denied because of missing access permissions.</p>
127
+ *
128
+ * @throws {@link ConflictException} (client fault)
129
+ * <p>There was a conflict performing an operation.</p>
130
+ *
131
+ * @throws {@link InternalServerException} (server fault)
132
+ * <p>An internal server error occurred. Retry your request.</p>
133
+ *
134
+ * @throws {@link ServiceQuotaExceededException} (client fault)
135
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
136
+ *
137
+ * @throws {@link ThrottlingException} (client fault)
138
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
139
+ *
140
+ * @throws {@link ValidationException} (client fault)
141
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
142
+ *
143
+ * @throws {@link BedrockAgentServiceException}
144
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
145
+ *
146
+ * @public
147
+ */
148
+ export declare class CreatePromptCommand extends CreatePromptCommand_base {
149
+ }
@@ -0,0 +1,122 @@
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 { CreatePromptVersionRequest, CreatePromptVersionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreatePromptVersionCommand}.
14
+ */
15
+ export interface CreatePromptVersionCommandInput extends CreatePromptVersionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePromptVersionCommand}.
21
+ */
22
+ export interface CreatePromptVersionCommandOutput extends CreatePromptVersionResponse, __MetadataBearer {
23
+ }
24
+ declare const CreatePromptVersionCommand_base: {
25
+ new (input: CreatePromptVersionCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePromptVersionCommandInput, CreatePromptVersionCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreatePromptVersionCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePromptVersionCommandInput, CreatePromptVersionCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a static snapshot of your prompt that can be deployed to production. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html">Deploy prompts using Prompt management by creating versions</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, CreatePromptVersionCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, CreatePromptVersionCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // CreatePromptVersionRequest
38
+ * promptIdentifier: "STRING_VALUE", // required
39
+ * description: "STRING_VALUE",
40
+ * clientToken: "STRING_VALUE",
41
+ * tags: { // TagsMap
42
+ * "<keys>": "STRING_VALUE",
43
+ * },
44
+ * };
45
+ * const command = new CreatePromptVersionCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // CreatePromptVersionResponse
48
+ * // name: "STRING_VALUE", // required
49
+ * // description: "STRING_VALUE",
50
+ * // customerEncryptionKeyArn: "STRING_VALUE",
51
+ * // defaultVariant: "STRING_VALUE",
52
+ * // variants: [ // PromptVariantList
53
+ * // { // PromptVariant
54
+ * // name: "STRING_VALUE", // required
55
+ * // templateType: "TEXT", // required
56
+ * // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
57
+ * // text: { // TextPromptTemplateConfiguration
58
+ * // text: "STRING_VALUE", // required
59
+ * // inputVariables: [ // PromptInputVariablesList
60
+ * // { // PromptInputVariable
61
+ * // name: "STRING_VALUE",
62
+ * // },
63
+ * // ],
64
+ * // },
65
+ * // },
66
+ * // modelId: "STRING_VALUE",
67
+ * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
68
+ * // text: { // PromptModelInferenceConfiguration
69
+ * // temperature: Number("float"),
70
+ * // topP: Number("float"),
71
+ * // topK: Number("int"),
72
+ * // maxTokens: Number("int"),
73
+ * // stopSequences: [ // StopSequences
74
+ * // "STRING_VALUE",
75
+ * // ],
76
+ * // },
77
+ * // },
78
+ * // },
79
+ * // ],
80
+ * // id: "STRING_VALUE", // required
81
+ * // arn: "STRING_VALUE", // required
82
+ * // version: "STRING_VALUE", // required
83
+ * // createdAt: new Date("TIMESTAMP"), // required
84
+ * // updatedAt: new Date("TIMESTAMP"), // required
85
+ * // };
86
+ *
87
+ * ```
88
+ *
89
+ * @param CreatePromptVersionCommandInput - {@link CreatePromptVersionCommandInput}
90
+ * @returns {@link CreatePromptVersionCommandOutput}
91
+ * @see {@link CreatePromptVersionCommandInput} for command's `input` shape.
92
+ * @see {@link CreatePromptVersionCommandOutput} for command's `response` shape.
93
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
94
+ *
95
+ * @throws {@link AccessDeniedException} (client fault)
96
+ * <p>The request is denied because of missing access permissions.</p>
97
+ *
98
+ * @throws {@link ConflictException} (client fault)
99
+ * <p>There was a conflict performing an operation.</p>
100
+ *
101
+ * @throws {@link InternalServerException} (server fault)
102
+ * <p>An internal server error occurred. Retry your request.</p>
103
+ *
104
+ * @throws {@link ResourceNotFoundException} (client fault)
105
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
106
+ *
107
+ * @throws {@link ServiceQuotaExceededException} (client fault)
108
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
109
+ *
110
+ * @throws {@link ThrottlingException} (client fault)
111
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
112
+ *
113
+ * @throws {@link ValidationException} (client fault)
114
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
115
+ *
116
+ * @throws {@link BedrockAgentServiceException}
117
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
118
+ *
119
+ * @public
120
+ */
121
+ export declare class CreatePromptVersionCommand extends CreatePromptVersionCommand_base {
122
+ }
@@ -0,0 +1,80 @@
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 { DeleteFlowAliasRequest, DeleteFlowAliasResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteFlowAliasCommand}.
14
+ */
15
+ export interface DeleteFlowAliasCommandInput extends DeleteFlowAliasRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteFlowAliasCommand}.
21
+ */
22
+ export interface DeleteFlowAliasCommandOutput extends DeleteFlowAliasResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteFlowAliasCommand_base: {
25
+ new (input: DeleteFlowAliasCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFlowAliasCommandInput, DeleteFlowAliasCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteFlowAliasCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFlowAliasCommandInput, DeleteFlowAliasCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes an alias of 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, DeleteFlowAliasCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, DeleteFlowAliasCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // DeleteFlowAliasRequest
38
+ * flowIdentifier: "STRING_VALUE", // required
39
+ * aliasIdentifier: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new DeleteFlowAliasCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // DeleteFlowAliasResponse
44
+ * // flowId: "STRING_VALUE", // required
45
+ * // id: "STRING_VALUE", // required
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param DeleteFlowAliasCommandInput - {@link DeleteFlowAliasCommandInput}
51
+ * @returns {@link DeleteFlowAliasCommandOutput}
52
+ * @see {@link DeleteFlowAliasCommandInput} for command's `input` shape.
53
+ * @see {@link DeleteFlowAliasCommandOutput} for command's `response` shape.
54
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>The request is denied because of missing access permissions.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>There was a conflict performing an operation.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>An internal server error occurred. Retry your request.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
73
+ *
74
+ * @throws {@link BedrockAgentServiceException}
75
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
76
+ *
77
+ * @public
78
+ */
79
+ export declare class DeleteFlowAliasCommand extends DeleteFlowAliasCommand_base {
80
+ }
@@ -0,0 +1,79 @@
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 { DeleteFlowRequest, DeleteFlowResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteFlowCommand}.
14
+ */
15
+ export interface DeleteFlowCommandInput extends DeleteFlowRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteFlowCommand}.
21
+ */
22
+ export interface DeleteFlowCommandOutput extends DeleteFlowResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteFlowCommand_base: {
25
+ new (input: DeleteFlowCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFlowCommandInput, DeleteFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteFlowCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFlowCommandInput, DeleteFlowCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes 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, DeleteFlowCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, DeleteFlowCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // DeleteFlowRequest
38
+ * flowIdentifier: "STRING_VALUE", // required
39
+ * skipResourceInUseCheck: true || false,
40
+ * };
41
+ * const command = new DeleteFlowCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // DeleteFlowResponse
44
+ * // id: "STRING_VALUE", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param DeleteFlowCommandInput - {@link DeleteFlowCommandInput}
50
+ * @returns {@link DeleteFlowCommandOutput}
51
+ * @see {@link DeleteFlowCommandInput} for command's `input` shape.
52
+ * @see {@link DeleteFlowCommandOutput} 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 ThrottlingException} (client fault)
68
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
72
+ *
73
+ * @throws {@link BedrockAgentServiceException}
74
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
75
+ *
76
+ * @public
77
+ */
78
+ export declare class DeleteFlowCommand extends DeleteFlowCommand_base {
79
+ }
@@ -0,0 +1,81 @@
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 { DeleteFlowVersionRequest, DeleteFlowVersionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteFlowVersionCommand}.
14
+ */
15
+ export interface DeleteFlowVersionCommandInput extends DeleteFlowVersionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteFlowVersionCommand}.
21
+ */
22
+ export interface DeleteFlowVersionCommandOutput extends DeleteFlowVersionResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteFlowVersionCommand_base: {
25
+ new (input: DeleteFlowVersionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFlowVersionCommandInput, DeleteFlowVersionCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteFlowVersionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteFlowVersionCommandInput, DeleteFlowVersionCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a version of 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, DeleteFlowVersionCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, DeleteFlowVersionCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // DeleteFlowVersionRequest
38
+ * flowIdentifier: "STRING_VALUE", // required
39
+ * flowVersion: "STRING_VALUE", // required
40
+ * skipResourceInUseCheck: true || false,
41
+ * };
42
+ * const command = new DeleteFlowVersionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // DeleteFlowVersionResponse
45
+ * // id: "STRING_VALUE", // required
46
+ * // version: "STRING_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param DeleteFlowVersionCommandInput - {@link DeleteFlowVersionCommandInput}
52
+ * @returns {@link DeleteFlowVersionCommandOutput}
53
+ * @see {@link DeleteFlowVersionCommandInput} for command's `input` shape.
54
+ * @see {@link DeleteFlowVersionCommandOutput} for command's `response` shape.
55
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>The request is denied because of missing access permissions.</p>
59
+ *
60
+ * @throws {@link ConflictException} (client fault)
61
+ * <p>There was a conflict performing an operation.</p>
62
+ *
63
+ * @throws {@link InternalServerException} (server fault)
64
+ * <p>An internal server error occurred. Retry your request.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
68
+ *
69
+ * @throws {@link ThrottlingException} (client fault)
70
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
74
+ *
75
+ * @throws {@link BedrockAgentServiceException}
76
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
77
+ *
78
+ * @public
79
+ */
80
+ export declare class DeleteFlowVersionCommand extends DeleteFlowVersionCommand_base {
81
+ }
@@ -0,0 +1,80 @@
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 { DeletePromptRequest, DeletePromptResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeletePromptCommand}.
14
+ */
15
+ export interface DeletePromptCommandInput extends DeletePromptRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeletePromptCommand}.
21
+ */
22
+ export interface DeletePromptCommandOutput extends DeletePromptResponse, __MetadataBearer {
23
+ }
24
+ declare const DeletePromptCommand_base: {
25
+ new (input: DeletePromptCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePromptCommandInput, DeletePromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeletePromptCommandInput): import("@smithy/smithy-client").CommandImpl<DeletePromptCommandInput, DeletePromptCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a prompt or a prompt version from the Prompt management tool. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-manage.html#prompt-management-delete.html">Delete prompts from the Prompt management tool</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html#prompt-management-versions-delete.html">Delete a version of a prompt from the Prompt management tool</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, DeletePromptCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
35
+ * // const { BedrockAgentClient, DeletePromptCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
36
+ * const client = new BedrockAgentClient(config);
37
+ * const input = { // DeletePromptRequest
38
+ * promptIdentifier: "STRING_VALUE", // required
39
+ * promptVersion: "STRING_VALUE",
40
+ * };
41
+ * const command = new DeletePromptCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // DeletePromptResponse
44
+ * // id: "STRING_VALUE", // required
45
+ * // version: "STRING_VALUE",
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param DeletePromptCommandInput - {@link DeletePromptCommandInput}
51
+ * @returns {@link DeletePromptCommandOutput}
52
+ * @see {@link DeletePromptCommandInput} for command's `input` shape.
53
+ * @see {@link DeletePromptCommandOutput} for command's `response` shape.
54
+ * @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>The request is denied because of missing access permissions.</p>
58
+ *
59
+ * @throws {@link ConflictException} (client fault)
60
+ * <p>There was a conflict performing an operation.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>An internal server error occurred. Retry your request.</p>
64
+ *
65
+ * @throws {@link ResourceNotFoundException} (client fault)
66
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
73
+ *
74
+ * @throws {@link BedrockAgentServiceException}
75
+ * <p>Base exception class for all service exceptions from BedrockAgent service.</p>
76
+ *
77
+ * @public
78
+ */
79
+ export declare class DeletePromptCommand extends DeletePromptCommand_base {
80
+ }
@@ -51,7 +51,7 @@ declare const GetAgentActionGroupCommand_base: {
51
51
  * // description: "STRING_VALUE",
52
52
  * // createdAt: new Date("TIMESTAMP"), // required
53
53
  * // updatedAt: new Date("TIMESTAMP"), // required
54
- * // parentActionSignature: "AMAZON.UserInput",
54
+ * // parentActionSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
55
55
  * // actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
56
56
  * // lambda: "STRING_VALUE",
57
57
  * // customControl: "RETURN_CONTROL",
@@ -87,6 +87,12 @@ declare const GetAgentCommand_base: {
87
87
  * // guardrailIdentifier: "STRING_VALUE",
88
88
  * // guardrailVersion: "STRING_VALUE",
89
89
  * // },
90
+ * // memoryConfiguration: { // MemoryConfiguration
91
+ * // enabledMemoryTypes: [ // EnabledMemoryTypes // required
92
+ * // "SESSION_SUMMARY",
93
+ * // ],
94
+ * // storageDays: Number("int"),
95
+ * // },
90
96
  * // },
91
97
  * // };
92
98
  *
@@ -86,6 +86,12 @@ declare const GetAgentVersionCommand_base: {
86
86
  * // guardrailIdentifier: "STRING_VALUE",
87
87
  * // guardrailVersion: "STRING_VALUE",
88
88
  * // },
89
+ * // memoryConfiguration: { // MemoryConfiguration
90
+ * // enabledMemoryTypes: [ // EnabledMemoryTypes // required
91
+ * // "SESSION_SUMMARY",
92
+ * // ],
93
+ * // storageDays: Number("int"),
94
+ * // },
89
95
  * // },
90
96
  * // };
91
97
  *