Skip to content

Commit 632626f

Browse files
author
awstools
committed
feat(client-bedrock-agent): Releasing the support for Action User Confirmation.
1 parent f7b618c commit 632626f

File tree

8 files changed

+110
-57
lines changed

8 files changed

+110
-57
lines changed

clients/client-bedrock-agent/src/commands/CreateAgentActionGroupCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export interface CreateAgentActionGroupCommandOutput extends CreateAgentActionGr
7676
* required: true || false,
7777
* },
7878
* },
79+
* requireConfirmation: "ENABLED" || "DISABLED",
7980
* },
8081
* ],
8182
* },
@@ -116,6 +117,7 @@ export interface CreateAgentActionGroupCommandOutput extends CreateAgentActionGr
116117
* // required: true || false,
117118
* // },
118119
* // },
120+
* // requireConfirmation: "ENABLED" || "DISABLED",
119121
* // },
120122
* // ],
121123
* // },

clients/client-bedrock-agent/src/commands/DeletePromptCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface DeletePromptCommandInput extends DeletePromptRequest {}
2828
export interface DeletePromptCommandOutput extends DeletePromptResponse, __MetadataBearer {}
2929

3030
/**
31-
* <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+
* <p>Deletes a prompt or a version of it, depending on whether you include the <code>promptVersion</code> field or not. 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>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-bedrock-agent/src/commands/GetAgentActionGroupCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export interface GetAgentActionGroupCommandOutput extends GetAgentActionGroupRes
8080
* // required: true || false,
8181
* // },
8282
* // },
83+
* // requireConfirmation: "ENABLED" || "DISABLED",
8384
* // },
8485
* // ],
8586
* // },

clients/client-bedrock-agent/src/commands/GetPromptCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface GetPromptCommandInput extends GetPromptRequest {}
2828
export interface GetPromptCommandOutput extends GetPromptResponse, __MetadataBearer {}
2929

3030
/**
31-
* <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+
* <p>Retrieves information about the working draft (<code>DRAFT</code> version) of a prompt or a version of it, depending on whether you include the <code>promptVersion</code> field or not. 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>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-bedrock-agent/src/commands/ListPromptsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ListPromptsCommandInput extends ListPromptsRequest {}
2828
export interface ListPromptsCommandOutput extends ListPromptsResponse, __MetadataBearer {}
2929

3030
/**
31-
* <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+
* <p>Returns either information about the working draft (<code>DRAFT</code> version) of each prompt in an account, or information about of all versions of a prompt, depending on whether you include the <code>promptIdentifier</code> field or not. 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>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-bedrock-agent/src/commands/UpdateAgentActionGroupCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface UpdateAgentActionGroupCommandOutput extends UpdateAgentActionGr
7171
* required: true || false,
7272
* },
7373
* },
74+
* requireConfirmation: "ENABLED" || "DISABLED",
7475
* },
7576
* ],
7677
* },
@@ -111,6 +112,7 @@ export interface UpdateAgentActionGroupCommandOutput extends UpdateAgentActionGr
111112
* // required: true || false,
112113
* // },
113114
* // },
115+
* // requireConfirmation: "ENABLED" || "DISABLED",
114116
* // },
115117
* // ],
116118
* // },

clients/client-bedrock-agent/src/models/models_0.ts

Lines changed: 50 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,20 @@ export interface ParameterDetail {
264264
required?: boolean;
265265
}
266266

267+
/**
268+
* @public
269+
* @enum
270+
*/
271+
export const RequireConfirmation = {
272+
DISABLED: "DISABLED",
273+
ENABLED: "ENABLED",
274+
} as const;
275+
276+
/**
277+
* @public
278+
*/
279+
export type RequireConfirmation = (typeof RequireConfirmation)[keyof typeof RequireConfirmation];
280+
267281
/**
268282
* <p>Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.</p>
269283
* <p>This data type is used in the following API operations:</p>
@@ -314,6 +328,12 @@ export interface Function {
314328
* @public
315329
*/
316330
parameters?: Record<string, ParameterDetail>;
331+
332+
/**
333+
* <p>Contains information if user confirmation is required to invoke the function.</p>
334+
* @public
335+
*/
336+
requireConfirmation?: RequireConfirmation;
317337
}
318338

319339
/**
@@ -2487,7 +2507,7 @@ export interface ConfluenceSourceConfiguration {
24872507

24882508
/**
24892509
* <p>The Amazon Resource Name of an Secrets Manager secret that
2490-
* stores your authentication credentials for your SharePoint site/sites.
2510+
* stores your authentication credentials for your Confluence instance URL.
24912511
* For more information on the key-value pairs that must be included in
24922512
* your secret, depending on your authentication type, see
24932513
* <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/confluence-data-source-connector.html#configuration-confluence-connector">Confluence connection configuration</a>.</p>
@@ -2588,7 +2608,7 @@ export interface SalesforceSourceConfiguration {
25882608

25892609
/**
25902610
* <p>The Amazon Resource Name of an Secrets Manager secret that
2591-
* stores your authentication credentials for your SharePoint site/sites.
2611+
* stores your authentication credentials for your Salesforce instance URL.
25922612
* For more information on the key-value pairs that must be included in
25932613
* your secret, depending on your authentication type, see
25942614
* <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/salesforce-data-source-connector.html#configuration-salesforce-connector">Salesforce connection configuration</a>.</p>
@@ -3342,14 +3362,16 @@ export interface CreateDataSourceRequest {
33423362
* <p>You can set the data deletion policy to:</p>
33433363
* <ul>
33443364
* <li>
3345-
* <p>DELETE: Deletes all underlying data belonging to
3346-
* the data source from the vector store upon deletion of a knowledge base or data
3347-
* source resource. Note that the vector store itself is not deleted, only the
3348-
* underlying data. This flag is ignored if an Amazon Web Services account is deleted.</p>
3365+
* <p>DELETE: Deletes all data from your data source that’s converted
3366+
* into vector embeddings upon deletion of a knowledge base or data source resource.
3367+
* Note that the <b>vector store itself is not deleted</b>,
3368+
* only the data. This flag is ignored if an Amazon Web Services account is deleted.</p>
33493369
* </li>
33503370
* <li>
3351-
* <p>RETAIN: Retains all underlying data in your
3352-
* vector store upon deletion of a knowledge base or data source resource.</p>
3371+
* <p>RETAIN: Retains all data from your data source that’s converted
3372+
* into vector embeddings upon deletion of a knowledge base or data source resource.
3373+
* Note that the <b>vector store itself is not deleted</b>
3374+
* if you delete a knowledge base or data source resource.</p>
33533375
* </li>
33543376
* </ul>
33553377
* @public
@@ -5108,7 +5130,7 @@ export interface GetFlowAliasRequest {
51085130
*/
51095131
export interface GetFlowAliasResponse {
51105132
/**
5111-
* <p>The name of the flow alias.</p>
5133+
* <p>The name of the alias.</p>
51125134
* @public
51135135
*/
51145136
name: string | undefined;
@@ -5150,7 +5172,7 @@ export interface GetFlowAliasResponse {
51505172
createdAt: Date | undefined;
51515173

51525174
/**
5153-
* <p>The time at which the flow alias was last updated.</p>
5175+
* <p>The time at which the alias was last updated.</p>
51545176
* @public
51555177
*/
51565178
updatedAt: Date | undefined;
@@ -5223,7 +5245,7 @@ export interface FlowAliasSummary {
52235245
id: string | undefined;
52245246

52255247
/**
5226-
* <p>The Amazon Resource Name (ARN) of the flow alias.</p>
5248+
* <p>The Amazon Resource Name (ARN) of the alias.</p>
52275249
* @public
52285250
*/
52295251
arn: string | undefined;
@@ -5246,7 +5268,7 @@ export interface FlowAliasSummary {
52465268
*/
52475269
export interface ListFlowAliasesResponse {
52485270
/**
5249-
* <p>A list, each member of which contains information about a flow alias.</p>
5271+
* <p>A list, each member of which contains information about an alias.</p>
52505272
* @public
52515273
*/
52525274
flowAliasSummaries: FlowAliasSummary[] | undefined;
@@ -5263,13 +5285,13 @@ export interface ListFlowAliasesResponse {
52635285
*/
52645286
export interface UpdateFlowAliasRequest {
52655287
/**
5266-
* <p>The name of the flow alias.</p>
5288+
* <p>The name of the alias.</p>
52675289
* @public
52685290
*/
52695291
name: string | undefined;
52705292

52715293
/**
5272-
* <p>A description for the flow alias.</p>
5294+
* <p>A description for the alias.</p>
52735295
* @public
52745296
*/
52755297
description?: string;
@@ -5298,7 +5320,7 @@ export interface UpdateFlowAliasRequest {
52985320
*/
52995321
export interface UpdateFlowAliasResponse {
53005322
/**
5301-
* <p>The name of the flow alias.</p>
5323+
* <p>The name of the alias.</p>
53025324
* @public
53035325
*/
53045326
name: string | undefined;
@@ -5340,7 +5362,7 @@ export interface UpdateFlowAliasResponse {
53405362
createdAt: Date | undefined;
53415363

53425364
/**
5343-
* <p>The time at which the flow alias was last updated.</p>
5365+
* <p>The time at which the alias was last updated.</p>
53445366
* @public
53455367
*/
53465368
updatedAt: Date | undefined;
@@ -5375,13 +5397,13 @@ export interface CreateFlowVersionRequest {
53755397
*/
53765398
export interface CreateFlowVersionResponse {
53775399
/**
5378-
* <p>The name of the flow version.</p>
5400+
* <p>The name of the version.</p>
53795401
* @public
53805402
*/
53815403
name: string | undefined;
53825404

53835405
/**
5384-
* <p>The description of the flow version.</p>
5406+
* <p>The description of the version.</p>
53855407
* @public
53865408
*/
53875409
description?: string;
@@ -5497,7 +5519,7 @@ export interface GetFlowVersionRequest {
54975519
*/
54985520
export interface GetFlowVersionResponse {
54995521
/**
5500-
* <p>The name of the flow version.</p>
5522+
* <p>The name of the version.</p>
55015523
* @public
55025524
*/
55035525
name: string | undefined;
@@ -5581,7 +5603,7 @@ export interface ListFlowVersionsRequest {
55815603
}
55825604

55835605
/**
5584-
* <p>Contains information about the flow version.</p>
5606+
* <p>Contains information about a version of a flow.</p>
55855607
* <p>This data type is used in the following API operations:</p>
55865608
* <ul>
55875609
* <li>
@@ -5612,7 +5634,7 @@ export interface FlowVersionSummary {
56125634
status: FlowStatus | undefined;
56135635

56145636
/**
5615-
* <p>The time at the flow version was created.</p>
5637+
* <p>The time at the version was created.</p>
56165638
* @public
56175639
*/
56185640
createdAt: Date | undefined;
@@ -7599,13 +7621,13 @@ export interface CreatePromptVersionRequest {
75997621
*/
76007622
export interface CreatePromptVersionResponse {
76017623
/**
7602-
* <p>The name of the prompt version.</p>
7624+
* <p>The name of the prompt.</p>
76037625
* @public
76047626
*/
76057627
name: string | undefined;
76067628

76077629
/**
7608-
* <p>A description for the prompt version.</p>
7630+
* <p>A description for the version.</p>
76097631
* @public
76107632
*/
76117633
description?: string;
@@ -7670,7 +7692,7 @@ export interface DeletePromptRequest {
76707692
promptIdentifier: string | undefined;
76717693

76727694
/**
7673-
* <p>The version of the prompt to delete.</p>
7695+
* <p>The version of the prompt to delete. To delete the prompt, omit this field.</p>
76747696
* @public
76757697
*/
76767698
promptVersion?: string;
@@ -7704,7 +7726,7 @@ export interface GetPromptRequest {
77047726
promptIdentifier: string | undefined;
77057727

77067728
/**
7707-
* <p>The version of the prompt about which you want to retrieve information.</p>
7729+
* <p>The version of the prompt about which you want to retrieve information. Omit this field to return information about the working draft of the prompt.</p>
77087730
* @public
77097731
*/
77107732
promptVersion?: string;
@@ -7751,7 +7773,7 @@ export interface GetPromptResponse {
77517773
id: string | undefined;
77527774

77537775
/**
7754-
* <p>The Amazon Resource Name (ARN) of the prompt.</p>
7776+
* <p>The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).</p>
77557777
* @public
77567778
*/
77577779
arn: string | undefined;
@@ -7780,7 +7802,7 @@ export interface GetPromptResponse {
77807802
*/
77817803
export interface ListPromptsRequest {
77827804
/**
7783-
* <p>The unique identifier of the prompt.</p>
7805+
* <p>The unique identifier of the prompt for whose versions you want to return information. Omit this field to list information about all prompts in an account.</p>
77847806
* @public
77857807
*/
77867808
promptIdentifier?: string;
@@ -7830,7 +7852,7 @@ export interface PromptSummary {
78307852
id: string | undefined;
78317853

78327854
/**
7833-
* <p>The Amazon Resource Name (ARN) of the prompt.</p>
7855+
* <p>The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).</p>
78347856
* @public
78357857
*/
78367858
arn: string | undefined;

0 commit comments

Comments
 (0)