@aws-sdk/client-bedrock 3.1046.0 → 3.1048.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 +35 -0
- package/dist-cjs/endpoint/endpointResolver.js +2 -2
- package/dist-cjs/index.js +100 -20
- package/dist-cjs/models/errors.js +14 -14
- package/dist-cjs/runtimeConfig.browser.js +5 -5
- package/dist-cjs/runtimeConfig.js +2 -3
- package/dist-cjs/schemas/schemas_0.js +192 -46
- package/dist-es/Bedrock.js +12 -0
- package/dist-es/BedrockClient.js +1 -4
- package/dist-es/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/CreateAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/GetAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/ListAdvancedPromptOptimizationJobsCommand.js +16 -0
- package/dist-es/commands/StopAdvancedPromptOptimizationJobCommand.js +16 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/enums.js +16 -7
- package/dist-es/models/errors.js +12 -12
- package/dist-es/pagination/ListAdvancedPromptOptimizationJobsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/runtimeConfig.browser.js +1 -1
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeExtensions.js +1 -1
- package/dist-es/schemas/schemas_0.js +180 -34
- package/dist-types/Bedrock.d.ts +43 -0
- package/dist-types/BedrockClient.d.ts +8 -4
- package/dist-types/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +102 -0
- package/dist-types/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +131 -0
- package/dist-types/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +120 -0
- package/dist-types/commands/GetGuardrailCommand.d.ts +1 -2
- package/dist-types/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +100 -0
- package/dist-types/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/enums.d.ts +40 -23
- package/dist-types/models/errors.d.ts +12 -12
- package/dist-types/models/models_0.d.ts +3481 -3544
- package/dist-types/models/models_1.d.ts +417 -2
- package/dist-types/pagination/ListAdvancedPromptOptimizationJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +22 -0
- package/dist-types/ts3.4/Bedrock.d.ts +117 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +31 -3
- package/dist-types/ts3.4/commands/BatchDeleteAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/CreateGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateGuardrailVersionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteGuardrailCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetGuardrailCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListAdvancedPromptOptimizationJobsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/StopAdvancedPromptOptimizationJobCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +20 -9
- package/dist-types/ts3.4/models/errors.d.ts +7 -7
- package/dist-types/ts3.4/models/models_0.d.ts +90 -107
- package/dist-types/ts3.4/models/models_1.d.ts +114 -7
- package/dist-types/ts3.4/pagination/ListAdvancedPromptOptimizationJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
- package/package.json +7 -15
package/dist-types/Bedrock.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { BedrockClient } from "./BedrockClient";
|
|
3
|
+
import { type BatchDeleteAdvancedPromptOptimizationJobCommandInput, type BatchDeleteAdvancedPromptOptimizationJobCommandOutput } from "./commands/BatchDeleteAdvancedPromptOptimizationJobCommand";
|
|
3
4
|
import { type BatchDeleteEvaluationJobCommandInput, type BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
4
5
|
import { type CancelAutomatedReasoningPolicyBuildWorkflowCommandInput, type CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
6
|
+
import { type CreateAdvancedPromptOptimizationJobCommandInput, type CreateAdvancedPromptOptimizationJobCommandOutput } from "./commands/CreateAdvancedPromptOptimizationJobCommand";
|
|
5
7
|
import { type CreateAutomatedReasoningPolicyCommandInput, type CreateAutomatedReasoningPolicyCommandOutput } from "./commands/CreateAutomatedReasoningPolicyCommand";
|
|
6
8
|
import { type CreateAutomatedReasoningPolicyTestCaseCommandInput, type CreateAutomatedReasoningPolicyTestCaseCommandOutput } from "./commands/CreateAutomatedReasoningPolicyTestCaseCommand";
|
|
7
9
|
import { type CreateAutomatedReasoningPolicyVersionCommandInput, type CreateAutomatedReasoningPolicyVersionCommandOutput } from "./commands/CreateAutomatedReasoningPolicyVersionCommand";
|
|
@@ -36,6 +38,7 @@ import { type DeleteProvisionedModelThroughputCommandInput, type DeleteProvision
|
|
|
36
38
|
import { type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
37
39
|
import { type DeregisterMarketplaceModelEndpointCommandInput, type DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
38
40
|
import { type ExportAutomatedReasoningPolicyVersionCommandInput, type ExportAutomatedReasoningPolicyVersionCommandOutput } from "./commands/ExportAutomatedReasoningPolicyVersionCommand";
|
|
41
|
+
import { type GetAdvancedPromptOptimizationJobCommandInput, type GetAdvancedPromptOptimizationJobCommandOutput } from "./commands/GetAdvancedPromptOptimizationJobCommand";
|
|
39
42
|
import { type GetAutomatedReasoningPolicyAnnotationsCommandInput, type GetAutomatedReasoningPolicyAnnotationsCommandOutput } from "./commands/GetAutomatedReasoningPolicyAnnotationsCommand";
|
|
40
43
|
import { type GetAutomatedReasoningPolicyBuildWorkflowCommandInput, type GetAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/GetAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
41
44
|
import { type GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput, type GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput } from "./commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand";
|
|
@@ -61,6 +64,7 @@ import { type GetPromptRouterCommandInput, type GetPromptRouterCommandOutput } f
|
|
|
61
64
|
import { type GetProvisionedModelThroughputCommandInput, type GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
62
65
|
import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
63
66
|
import { type GetUseCaseForModelAccessCommandInput, type GetUseCaseForModelAccessCommandOutput } from "./commands/GetUseCaseForModelAccessCommand";
|
|
67
|
+
import { type ListAdvancedPromptOptimizationJobsCommandInput, type ListAdvancedPromptOptimizationJobsCommandOutput } from "./commands/ListAdvancedPromptOptimizationJobsCommand";
|
|
64
68
|
import { type ListAutomatedReasoningPoliciesCommandInput, type ListAutomatedReasoningPoliciesCommandOutput } from "./commands/ListAutomatedReasoningPoliciesCommand";
|
|
65
69
|
import { type ListAutomatedReasoningPolicyBuildWorkflowsCommandInput, type ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput } from "./commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
66
70
|
import { type ListAutomatedReasoningPolicyTestCasesCommandInput, type ListAutomatedReasoningPolicyTestCasesCommandOutput } from "./commands/ListAutomatedReasoningPolicyTestCasesCommand";
|
|
@@ -89,6 +93,7 @@ import { type PutUseCaseForModelAccessCommandInput, type PutUseCaseForModelAcces
|
|
|
89
93
|
import { type RegisterMarketplaceModelEndpointCommandInput, type RegisterMarketplaceModelEndpointCommandOutput } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
90
94
|
import { type StartAutomatedReasoningPolicyBuildWorkflowCommandInput, type StartAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/StartAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
91
95
|
import { type StartAutomatedReasoningPolicyTestWorkflowCommandInput, type StartAutomatedReasoningPolicyTestWorkflowCommandOutput } from "./commands/StartAutomatedReasoningPolicyTestWorkflowCommand";
|
|
96
|
+
import { type StopAdvancedPromptOptimizationJobCommandInput, type StopAdvancedPromptOptimizationJobCommandOutput } from "./commands/StopAdvancedPromptOptimizationJobCommand";
|
|
92
97
|
import { type StopEvaluationJobCommandInput, type StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
|
|
93
98
|
import { type StopModelCustomizationJobCommandInput, type StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
|
|
94
99
|
import { type StopModelInvocationJobCommandInput, type StopModelInvocationJobCommandOutput } from "./commands/StopModelInvocationJobCommand";
|
|
@@ -102,6 +107,12 @@ import { type UpdateGuardrailCommandInput, type UpdateGuardrailCommandOutput } f
|
|
|
102
107
|
import { type UpdateMarketplaceModelEndpointCommandInput, type UpdateMarketplaceModelEndpointCommandOutput } from "./commands/UpdateMarketplaceModelEndpointCommand";
|
|
103
108
|
import { type UpdateProvisionedModelThroughputCommandInput, type UpdateProvisionedModelThroughputCommandOutput } from "./commands/UpdateProvisionedModelThroughputCommand";
|
|
104
109
|
export interface Bedrock {
|
|
110
|
+
/**
|
|
111
|
+
* @see {@link BatchDeleteAdvancedPromptOptimizationJobCommand}
|
|
112
|
+
*/
|
|
113
|
+
batchDeleteAdvancedPromptOptimizationJob(args: BatchDeleteAdvancedPromptOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<BatchDeleteAdvancedPromptOptimizationJobCommandOutput>;
|
|
114
|
+
batchDeleteAdvancedPromptOptimizationJob(args: BatchDeleteAdvancedPromptOptimizationJobCommandInput, cb: (err: any, data?: BatchDeleteAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
115
|
+
batchDeleteAdvancedPromptOptimizationJob(args: BatchDeleteAdvancedPromptOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchDeleteAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
105
116
|
/**
|
|
106
117
|
* @see {@link BatchDeleteEvaluationJobCommand}
|
|
107
118
|
*/
|
|
@@ -114,6 +125,12 @@ export interface Bedrock {
|
|
|
114
125
|
cancelAutomatedReasoningPolicyBuildWorkflow(args: CancelAutomatedReasoningPolicyBuildWorkflowCommandInput, options?: __HttpHandlerOptions): Promise<CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput>;
|
|
115
126
|
cancelAutomatedReasoningPolicyBuildWorkflow(args: CancelAutomatedReasoningPolicyBuildWorkflowCommandInput, cb: (err: any, data?: CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput) => void): void;
|
|
116
127
|
cancelAutomatedReasoningPolicyBuildWorkflow(args: CancelAutomatedReasoningPolicyBuildWorkflowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput) => void): void;
|
|
128
|
+
/**
|
|
129
|
+
* @see {@link CreateAdvancedPromptOptimizationJobCommand}
|
|
130
|
+
*/
|
|
131
|
+
createAdvancedPromptOptimizationJob(args: CreateAdvancedPromptOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateAdvancedPromptOptimizationJobCommandOutput>;
|
|
132
|
+
createAdvancedPromptOptimizationJob(args: CreateAdvancedPromptOptimizationJobCommandInput, cb: (err: any, data?: CreateAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
133
|
+
createAdvancedPromptOptimizationJob(args: CreateAdvancedPromptOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
117
134
|
/**
|
|
118
135
|
* @see {@link CreateAutomatedReasoningPolicyCommand}
|
|
119
136
|
*/
|
|
@@ -319,6 +336,12 @@ export interface Bedrock {
|
|
|
319
336
|
exportAutomatedReasoningPolicyVersion(args: ExportAutomatedReasoningPolicyVersionCommandInput, options?: __HttpHandlerOptions): Promise<ExportAutomatedReasoningPolicyVersionCommandOutput>;
|
|
320
337
|
exportAutomatedReasoningPolicyVersion(args: ExportAutomatedReasoningPolicyVersionCommandInput, cb: (err: any, data?: ExportAutomatedReasoningPolicyVersionCommandOutput) => void): void;
|
|
321
338
|
exportAutomatedReasoningPolicyVersion(args: ExportAutomatedReasoningPolicyVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportAutomatedReasoningPolicyVersionCommandOutput) => void): void;
|
|
339
|
+
/**
|
|
340
|
+
* @see {@link GetAdvancedPromptOptimizationJobCommand}
|
|
341
|
+
*/
|
|
342
|
+
getAdvancedPromptOptimizationJob(args: GetAdvancedPromptOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<GetAdvancedPromptOptimizationJobCommandOutput>;
|
|
343
|
+
getAdvancedPromptOptimizationJob(args: GetAdvancedPromptOptimizationJobCommandInput, cb: (err: any, data?: GetAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
344
|
+
getAdvancedPromptOptimizationJob(args: GetAdvancedPromptOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
322
345
|
/**
|
|
323
346
|
* @see {@link GetAutomatedReasoningPolicyCommand}
|
|
324
347
|
*/
|
|
@@ -471,6 +494,13 @@ export interface Bedrock {
|
|
|
471
494
|
getUseCaseForModelAccess(args: GetUseCaseForModelAccessCommandInput, options?: __HttpHandlerOptions): Promise<GetUseCaseForModelAccessCommandOutput>;
|
|
472
495
|
getUseCaseForModelAccess(args: GetUseCaseForModelAccessCommandInput, cb: (err: any, data?: GetUseCaseForModelAccessCommandOutput) => void): void;
|
|
473
496
|
getUseCaseForModelAccess(args: GetUseCaseForModelAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUseCaseForModelAccessCommandOutput) => void): void;
|
|
497
|
+
/**
|
|
498
|
+
* @see {@link ListAdvancedPromptOptimizationJobsCommand}
|
|
499
|
+
*/
|
|
500
|
+
listAdvancedPromptOptimizationJobs(): Promise<ListAdvancedPromptOptimizationJobsCommandOutput>;
|
|
501
|
+
listAdvancedPromptOptimizationJobs(args: ListAdvancedPromptOptimizationJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListAdvancedPromptOptimizationJobsCommandOutput>;
|
|
502
|
+
listAdvancedPromptOptimizationJobs(args: ListAdvancedPromptOptimizationJobsCommandInput, cb: (err: any, data?: ListAdvancedPromptOptimizationJobsCommandOutput) => void): void;
|
|
503
|
+
listAdvancedPromptOptimizationJobs(args: ListAdvancedPromptOptimizationJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAdvancedPromptOptimizationJobsCommandOutput) => void): void;
|
|
474
504
|
/**
|
|
475
505
|
* @see {@link ListAutomatedReasoningPoliciesCommand}
|
|
476
506
|
*/
|
|
@@ -655,6 +685,12 @@ export interface Bedrock {
|
|
|
655
685
|
startAutomatedReasoningPolicyTestWorkflow(args: StartAutomatedReasoningPolicyTestWorkflowCommandInput, options?: __HttpHandlerOptions): Promise<StartAutomatedReasoningPolicyTestWorkflowCommandOutput>;
|
|
656
686
|
startAutomatedReasoningPolicyTestWorkflow(args: StartAutomatedReasoningPolicyTestWorkflowCommandInput, cb: (err: any, data?: StartAutomatedReasoningPolicyTestWorkflowCommandOutput) => void): void;
|
|
657
687
|
startAutomatedReasoningPolicyTestWorkflow(args: StartAutomatedReasoningPolicyTestWorkflowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAutomatedReasoningPolicyTestWorkflowCommandOutput) => void): void;
|
|
688
|
+
/**
|
|
689
|
+
* @see {@link StopAdvancedPromptOptimizationJobCommand}
|
|
690
|
+
*/
|
|
691
|
+
stopAdvancedPromptOptimizationJob(args: StopAdvancedPromptOptimizationJobCommandInput, options?: __HttpHandlerOptions): Promise<StopAdvancedPromptOptimizationJobCommandOutput>;
|
|
692
|
+
stopAdvancedPromptOptimizationJob(args: StopAdvancedPromptOptimizationJobCommandInput, cb: (err: any, data?: StopAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
693
|
+
stopAdvancedPromptOptimizationJob(args: StopAdvancedPromptOptimizationJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopAdvancedPromptOptimizationJobCommandOutput) => void): void;
|
|
658
694
|
/**
|
|
659
695
|
* @see {@link StopEvaluationJobCommand}
|
|
660
696
|
*/
|
|
@@ -727,6 +763,13 @@ export interface Bedrock {
|
|
|
727
763
|
updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProvisionedModelThroughputCommandOutput>;
|
|
728
764
|
updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, cb: (err: any, data?: UpdateProvisionedModelThroughputCommandOutput) => void): void;
|
|
729
765
|
updateProvisionedModelThroughput(args: UpdateProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProvisionedModelThroughputCommandOutput) => void): void;
|
|
766
|
+
/**
|
|
767
|
+
* @see {@link ListAdvancedPromptOptimizationJobsCommand}
|
|
768
|
+
* @param args - command input.
|
|
769
|
+
* @param paginationConfig - optional pagination config.
|
|
770
|
+
* @returns AsyncIterable of {@link ListAdvancedPromptOptimizationJobsCommandOutput}.
|
|
771
|
+
*/
|
|
772
|
+
paginateListAdvancedPromptOptimizationJobs(args?: ListAdvancedPromptOptimizationJobsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAdvancedPromptOptimizationJobsCommandOutput>;
|
|
730
773
|
/**
|
|
731
774
|
* @see {@link ListAutomatedReasoningPoliciesCommand}
|
|
732
775
|
* @param args - command input.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/
|
|
2
|
-
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
3
2
|
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
4
3
|
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
5
4
|
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
@@ -7,8 +6,10 @@ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/cor
|
|
|
7
6
|
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
8
7
|
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
8
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import type { BatchDeleteAdvancedPromptOptimizationJobCommandInput, BatchDeleteAdvancedPromptOptimizationJobCommandOutput } from "./commands/BatchDeleteAdvancedPromptOptimizationJobCommand";
|
|
10
10
|
import type { BatchDeleteEvaluationJobCommandInput, BatchDeleteEvaluationJobCommandOutput } from "./commands/BatchDeleteEvaluationJobCommand";
|
|
11
11
|
import type { CancelAutomatedReasoningPolicyBuildWorkflowCommandInput, CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/CancelAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
12
|
+
import type { CreateAdvancedPromptOptimizationJobCommandInput, CreateAdvancedPromptOptimizationJobCommandOutput } from "./commands/CreateAdvancedPromptOptimizationJobCommand";
|
|
12
13
|
import type { CreateAutomatedReasoningPolicyCommandInput, CreateAutomatedReasoningPolicyCommandOutput } from "./commands/CreateAutomatedReasoningPolicyCommand";
|
|
13
14
|
import type { CreateAutomatedReasoningPolicyTestCaseCommandInput, CreateAutomatedReasoningPolicyTestCaseCommandOutput } from "./commands/CreateAutomatedReasoningPolicyTestCaseCommand";
|
|
14
15
|
import type { CreateAutomatedReasoningPolicyVersionCommandInput, CreateAutomatedReasoningPolicyVersionCommandOutput } from "./commands/CreateAutomatedReasoningPolicyVersionCommand";
|
|
@@ -43,6 +44,7 @@ import type { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedMod
|
|
|
43
44
|
import type { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
44
45
|
import type { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
45
46
|
import type { ExportAutomatedReasoningPolicyVersionCommandInput, ExportAutomatedReasoningPolicyVersionCommandOutput } from "./commands/ExportAutomatedReasoningPolicyVersionCommand";
|
|
47
|
+
import type { GetAdvancedPromptOptimizationJobCommandInput, GetAdvancedPromptOptimizationJobCommandOutput } from "./commands/GetAdvancedPromptOptimizationJobCommand";
|
|
46
48
|
import type { GetAutomatedReasoningPolicyAnnotationsCommandInput, GetAutomatedReasoningPolicyAnnotationsCommandOutput } from "./commands/GetAutomatedReasoningPolicyAnnotationsCommand";
|
|
47
49
|
import type { GetAutomatedReasoningPolicyBuildWorkflowCommandInput, GetAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/GetAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
48
50
|
import type { GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput, GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput } from "./commands/GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommand";
|
|
@@ -68,6 +70,7 @@ import type { GetPromptRouterCommandInput, GetPromptRouterCommandOutput } from "
|
|
|
68
70
|
import type { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
69
71
|
import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
70
72
|
import type { GetUseCaseForModelAccessCommandInput, GetUseCaseForModelAccessCommandOutput } from "./commands/GetUseCaseForModelAccessCommand";
|
|
73
|
+
import type { ListAdvancedPromptOptimizationJobsCommandInput, ListAdvancedPromptOptimizationJobsCommandOutput } from "./commands/ListAdvancedPromptOptimizationJobsCommand";
|
|
71
74
|
import type { ListAutomatedReasoningPoliciesCommandInput, ListAutomatedReasoningPoliciesCommandOutput } from "./commands/ListAutomatedReasoningPoliciesCommand";
|
|
72
75
|
import type { ListAutomatedReasoningPolicyBuildWorkflowsCommandInput, ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput } from "./commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
73
76
|
import type { ListAutomatedReasoningPolicyTestCasesCommandInput, ListAutomatedReasoningPolicyTestCasesCommandOutput } from "./commands/ListAutomatedReasoningPolicyTestCasesCommand";
|
|
@@ -96,6 +99,7 @@ import type { PutUseCaseForModelAccessCommandInput, PutUseCaseForModelAccessComm
|
|
|
96
99
|
import type { RegisterMarketplaceModelEndpointCommandInput, RegisterMarketplaceModelEndpointCommandOutput } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
97
100
|
import type { StartAutomatedReasoningPolicyBuildWorkflowCommandInput, StartAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/StartAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
98
101
|
import type { StartAutomatedReasoningPolicyTestWorkflowCommandInput, StartAutomatedReasoningPolicyTestWorkflowCommandOutput } from "./commands/StartAutomatedReasoningPolicyTestWorkflowCommand";
|
|
102
|
+
import type { StopAdvancedPromptOptimizationJobCommandInput, StopAdvancedPromptOptimizationJobCommandOutput } from "./commands/StopAdvancedPromptOptimizationJobCommand";
|
|
99
103
|
import type { StopEvaluationJobCommandInput, StopEvaluationJobCommandOutput } from "./commands/StopEvaluationJobCommand";
|
|
100
104
|
import type { StopModelCustomizationJobCommandInput, StopModelCustomizationJobCommandOutput } from "./commands/StopModelCustomizationJobCommand";
|
|
101
105
|
import type { StopModelInvocationJobCommandInput, StopModelInvocationJobCommandOutput } from "./commands/StopModelInvocationJobCommand";
|
|
@@ -114,11 +118,11 @@ export { __Client };
|
|
|
114
118
|
/**
|
|
115
119
|
* @public
|
|
116
120
|
*/
|
|
117
|
-
export type ServiceInputTypes = BatchDeleteEvaluationJobCommandInput | CancelAutomatedReasoningPolicyBuildWorkflowCommandInput | CreateAutomatedReasoningPolicyCommandInput | CreateAutomatedReasoningPolicyTestCaseCommandInput | CreateAutomatedReasoningPolicyVersionCommandInput | CreateCustomModelCommandInput | CreateCustomModelDeploymentCommandInput | CreateEvaluationJobCommandInput | CreateFoundationModelAgreementCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteAutomatedReasoningPolicyBuildWorkflowCommandInput | DeleteAutomatedReasoningPolicyCommandInput | DeleteAutomatedReasoningPolicyTestCaseCommandInput | DeleteCustomModelCommandInput | DeleteCustomModelDeploymentCommandInput | DeleteEnforcedGuardrailConfigurationCommandInput | DeleteFoundationModelAgreementCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeleteResourcePolicyCommandInput | DeregisterMarketplaceModelEndpointCommandInput | ExportAutomatedReasoningPolicyVersionCommandInput | GetAutomatedReasoningPolicyAnnotationsCommandInput | GetAutomatedReasoningPolicyBuildWorkflowCommandInput | GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput | GetAutomatedReasoningPolicyCommandInput | GetAutomatedReasoningPolicyNextScenarioCommandInput | GetAutomatedReasoningPolicyTestCaseCommandInput | GetAutomatedReasoningPolicyTestResultCommandInput | GetCustomModelCommandInput | GetCustomModelDeploymentCommandInput | GetEvaluationJobCommandInput | GetFoundationModelAvailabilityCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | GetResourcePolicyCommandInput | GetUseCaseForModelAccessCommandInput | ListAutomatedReasoningPoliciesCommandInput | ListAutomatedReasoningPolicyBuildWorkflowsCommandInput | ListAutomatedReasoningPolicyTestCasesCommandInput | ListAutomatedReasoningPolicyTestResultsCommandInput | ListCustomModelDeploymentsCommandInput | ListCustomModelsCommandInput | ListEnforcedGuardrailsConfigurationCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelAgreementOffersCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutEnforcedGuardrailConfigurationCommandInput | PutModelInvocationLoggingConfigurationCommandInput | PutResourcePolicyCommandInput | PutUseCaseForModelAccessCommandInput | RegisterMarketplaceModelEndpointCommandInput | StartAutomatedReasoningPolicyBuildWorkflowCommandInput | StartAutomatedReasoningPolicyTestWorkflowCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAutomatedReasoningPolicyAnnotationsCommandInput | UpdateAutomatedReasoningPolicyCommandInput | UpdateAutomatedReasoningPolicyTestCaseCommandInput | UpdateCustomModelDeploymentCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
121
|
+
export type ServiceInputTypes = BatchDeleteAdvancedPromptOptimizationJobCommandInput | BatchDeleteEvaluationJobCommandInput | CancelAutomatedReasoningPolicyBuildWorkflowCommandInput | CreateAdvancedPromptOptimizationJobCommandInput | CreateAutomatedReasoningPolicyCommandInput | CreateAutomatedReasoningPolicyTestCaseCommandInput | CreateAutomatedReasoningPolicyVersionCommandInput | CreateCustomModelCommandInput | CreateCustomModelDeploymentCommandInput | CreateEvaluationJobCommandInput | CreateFoundationModelAgreementCommandInput | CreateGuardrailCommandInput | CreateGuardrailVersionCommandInput | CreateInferenceProfileCommandInput | CreateMarketplaceModelEndpointCommandInput | CreateModelCopyJobCommandInput | CreateModelCustomizationJobCommandInput | CreateModelImportJobCommandInput | CreateModelInvocationJobCommandInput | CreatePromptRouterCommandInput | CreateProvisionedModelThroughputCommandInput | DeleteAutomatedReasoningPolicyBuildWorkflowCommandInput | DeleteAutomatedReasoningPolicyCommandInput | DeleteAutomatedReasoningPolicyTestCaseCommandInput | DeleteCustomModelCommandInput | DeleteCustomModelDeploymentCommandInput | DeleteEnforcedGuardrailConfigurationCommandInput | DeleteFoundationModelAgreementCommandInput | DeleteGuardrailCommandInput | DeleteImportedModelCommandInput | DeleteInferenceProfileCommandInput | DeleteMarketplaceModelEndpointCommandInput | DeleteModelInvocationLoggingConfigurationCommandInput | DeletePromptRouterCommandInput | DeleteProvisionedModelThroughputCommandInput | DeleteResourcePolicyCommandInput | DeregisterMarketplaceModelEndpointCommandInput | ExportAutomatedReasoningPolicyVersionCommandInput | GetAdvancedPromptOptimizationJobCommandInput | GetAutomatedReasoningPolicyAnnotationsCommandInput | GetAutomatedReasoningPolicyBuildWorkflowCommandInput | GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandInput | GetAutomatedReasoningPolicyCommandInput | GetAutomatedReasoningPolicyNextScenarioCommandInput | GetAutomatedReasoningPolicyTestCaseCommandInput | GetAutomatedReasoningPolicyTestResultCommandInput | GetCustomModelCommandInput | GetCustomModelDeploymentCommandInput | GetEvaluationJobCommandInput | GetFoundationModelAvailabilityCommandInput | GetFoundationModelCommandInput | GetGuardrailCommandInput | GetImportedModelCommandInput | GetInferenceProfileCommandInput | GetMarketplaceModelEndpointCommandInput | GetModelCopyJobCommandInput | GetModelCustomizationJobCommandInput | GetModelImportJobCommandInput | GetModelInvocationJobCommandInput | GetModelInvocationLoggingConfigurationCommandInput | GetPromptRouterCommandInput | GetProvisionedModelThroughputCommandInput | GetResourcePolicyCommandInput | GetUseCaseForModelAccessCommandInput | ListAdvancedPromptOptimizationJobsCommandInput | ListAutomatedReasoningPoliciesCommandInput | ListAutomatedReasoningPolicyBuildWorkflowsCommandInput | ListAutomatedReasoningPolicyTestCasesCommandInput | ListAutomatedReasoningPolicyTestResultsCommandInput | ListCustomModelDeploymentsCommandInput | ListCustomModelsCommandInput | ListEnforcedGuardrailsConfigurationCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelAgreementOffersCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutEnforcedGuardrailConfigurationCommandInput | PutModelInvocationLoggingConfigurationCommandInput | PutResourcePolicyCommandInput | PutUseCaseForModelAccessCommandInput | RegisterMarketplaceModelEndpointCommandInput | StartAutomatedReasoningPolicyBuildWorkflowCommandInput | StartAutomatedReasoningPolicyTestWorkflowCommandInput | StopAdvancedPromptOptimizationJobCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAutomatedReasoningPolicyAnnotationsCommandInput | UpdateAutomatedReasoningPolicyCommandInput | UpdateAutomatedReasoningPolicyTestCaseCommandInput | UpdateCustomModelDeploymentCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
118
122
|
/**
|
|
119
123
|
* @public
|
|
120
124
|
*/
|
|
121
|
-
export type ServiceOutputTypes = BatchDeleteEvaluationJobCommandOutput | CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput | CreateAutomatedReasoningPolicyCommandOutput | CreateAutomatedReasoningPolicyTestCaseCommandOutput | CreateAutomatedReasoningPolicyVersionCommandOutput | CreateCustomModelCommandOutput | CreateCustomModelDeploymentCommandOutput | CreateEvaluationJobCommandOutput | CreateFoundationModelAgreementCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteAutomatedReasoningPolicyBuildWorkflowCommandOutput | DeleteAutomatedReasoningPolicyCommandOutput | DeleteAutomatedReasoningPolicyTestCaseCommandOutput | DeleteCustomModelCommandOutput | DeleteCustomModelDeploymentCommandOutput | DeleteEnforcedGuardrailConfigurationCommandOutput | DeleteFoundationModelAgreementCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeleteResourcePolicyCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | ExportAutomatedReasoningPolicyVersionCommandOutput | GetAutomatedReasoningPolicyAnnotationsCommandOutput | GetAutomatedReasoningPolicyBuildWorkflowCommandOutput | GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput | GetAutomatedReasoningPolicyCommandOutput | GetAutomatedReasoningPolicyNextScenarioCommandOutput | GetAutomatedReasoningPolicyTestCaseCommandOutput | GetAutomatedReasoningPolicyTestResultCommandOutput | GetCustomModelCommandOutput | GetCustomModelDeploymentCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelAvailabilityCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | GetResourcePolicyCommandOutput | GetUseCaseForModelAccessCommandOutput | ListAutomatedReasoningPoliciesCommandOutput | ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput | ListAutomatedReasoningPolicyTestCasesCommandOutput | ListAutomatedReasoningPolicyTestResultsCommandOutput | ListCustomModelDeploymentsCommandOutput | ListCustomModelsCommandOutput | ListEnforcedGuardrailsConfigurationCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelAgreementOffersCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutEnforcedGuardrailConfigurationCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | PutResourcePolicyCommandOutput | PutUseCaseForModelAccessCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StartAutomatedReasoningPolicyBuildWorkflowCommandOutput | StartAutomatedReasoningPolicyTestWorkflowCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAutomatedReasoningPolicyAnnotationsCommandOutput | UpdateAutomatedReasoningPolicyCommandOutput | UpdateAutomatedReasoningPolicyTestCaseCommandOutput | UpdateCustomModelDeploymentCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
125
|
+
export type ServiceOutputTypes = BatchDeleteAdvancedPromptOptimizationJobCommandOutput | BatchDeleteEvaluationJobCommandOutput | CancelAutomatedReasoningPolicyBuildWorkflowCommandOutput | CreateAdvancedPromptOptimizationJobCommandOutput | CreateAutomatedReasoningPolicyCommandOutput | CreateAutomatedReasoningPolicyTestCaseCommandOutput | CreateAutomatedReasoningPolicyVersionCommandOutput | CreateCustomModelCommandOutput | CreateCustomModelDeploymentCommandOutput | CreateEvaluationJobCommandOutput | CreateFoundationModelAgreementCommandOutput | CreateGuardrailCommandOutput | CreateGuardrailVersionCommandOutput | CreateInferenceProfileCommandOutput | CreateMarketplaceModelEndpointCommandOutput | CreateModelCopyJobCommandOutput | CreateModelCustomizationJobCommandOutput | CreateModelImportJobCommandOutput | CreateModelInvocationJobCommandOutput | CreatePromptRouterCommandOutput | CreateProvisionedModelThroughputCommandOutput | DeleteAutomatedReasoningPolicyBuildWorkflowCommandOutput | DeleteAutomatedReasoningPolicyCommandOutput | DeleteAutomatedReasoningPolicyTestCaseCommandOutput | DeleteCustomModelCommandOutput | DeleteCustomModelDeploymentCommandOutput | DeleteEnforcedGuardrailConfigurationCommandOutput | DeleteFoundationModelAgreementCommandOutput | DeleteGuardrailCommandOutput | DeleteImportedModelCommandOutput | DeleteInferenceProfileCommandOutput | DeleteMarketplaceModelEndpointCommandOutput | DeleteModelInvocationLoggingConfigurationCommandOutput | DeletePromptRouterCommandOutput | DeleteProvisionedModelThroughputCommandOutput | DeleteResourcePolicyCommandOutput | DeregisterMarketplaceModelEndpointCommandOutput | ExportAutomatedReasoningPolicyVersionCommandOutput | GetAdvancedPromptOptimizationJobCommandOutput | GetAutomatedReasoningPolicyAnnotationsCommandOutput | GetAutomatedReasoningPolicyBuildWorkflowCommandOutput | GetAutomatedReasoningPolicyBuildWorkflowResultAssetsCommandOutput | GetAutomatedReasoningPolicyCommandOutput | GetAutomatedReasoningPolicyNextScenarioCommandOutput | GetAutomatedReasoningPolicyTestCaseCommandOutput | GetAutomatedReasoningPolicyTestResultCommandOutput | GetCustomModelCommandOutput | GetCustomModelDeploymentCommandOutput | GetEvaluationJobCommandOutput | GetFoundationModelAvailabilityCommandOutput | GetFoundationModelCommandOutput | GetGuardrailCommandOutput | GetImportedModelCommandOutput | GetInferenceProfileCommandOutput | GetMarketplaceModelEndpointCommandOutput | GetModelCopyJobCommandOutput | GetModelCustomizationJobCommandOutput | GetModelImportJobCommandOutput | GetModelInvocationJobCommandOutput | GetModelInvocationLoggingConfigurationCommandOutput | GetPromptRouterCommandOutput | GetProvisionedModelThroughputCommandOutput | GetResourcePolicyCommandOutput | GetUseCaseForModelAccessCommandOutput | ListAdvancedPromptOptimizationJobsCommandOutput | ListAutomatedReasoningPoliciesCommandOutput | ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput | ListAutomatedReasoningPolicyTestCasesCommandOutput | ListAutomatedReasoningPolicyTestResultsCommandOutput | ListCustomModelDeploymentsCommandOutput | ListCustomModelsCommandOutput | ListEnforcedGuardrailsConfigurationCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelAgreementOffersCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutEnforcedGuardrailConfigurationCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | PutResourcePolicyCommandOutput | PutUseCaseForModelAccessCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StartAutomatedReasoningPolicyBuildWorkflowCommandOutput | StartAutomatedReasoningPolicyTestWorkflowCommandOutput | StopAdvancedPromptOptimizationJobCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAutomatedReasoningPolicyAnnotationsCommandOutput | UpdateAutomatedReasoningPolicyCommandOutput | UpdateAutomatedReasoningPolicyTestCaseCommandOutput | UpdateCustomModelDeploymentCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
122
126
|
/**
|
|
123
127
|
* @public
|
|
124
128
|
*/
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import type { BatchDeleteAdvancedPromptOptimizationJobRequest, BatchDeleteAdvancedPromptOptimizationJobResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchDeleteAdvancedPromptOptimizationJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchDeleteAdvancedPromptOptimizationJobCommandInput extends BatchDeleteAdvancedPromptOptimizationJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchDeleteAdvancedPromptOptimizationJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchDeleteAdvancedPromptOptimizationJobCommandOutput extends BatchDeleteAdvancedPromptOptimizationJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchDeleteAdvancedPromptOptimizationJobCommand_base: {
|
|
25
|
+
new (input: BatchDeleteAdvancedPromptOptimizationJobCommandInput): import("@smithy/core/client").CommandImpl<BatchDeleteAdvancedPromptOptimizationJobCommandInput, BatchDeleteAdvancedPromptOptimizationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: BatchDeleteAdvancedPromptOptimizationJobCommandInput): import("@smithy/core/client").CommandImpl<BatchDeleteAdvancedPromptOptimizationJobCommandInput, BatchDeleteAdvancedPromptOptimizationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Batch delete the specified advanced prompt optimization jobs.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockClient, BatchDeleteAdvancedPromptOptimizationJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, BatchDeleteAdvancedPromptOptimizationJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
39
|
+
* const config = {}; // type is BedrockClientConfig
|
|
40
|
+
* const client = new BedrockClient(config);
|
|
41
|
+
* const input = { // BatchDeleteAdvancedPromptOptimizationJobRequest
|
|
42
|
+
* jobIdentifiers: [ // AdvancedPromptOptimizationJobIdentifiers // required
|
|
43
|
+
* "STRING_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* };
|
|
46
|
+
* const command = new BatchDeleteAdvancedPromptOptimizationJobCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // BatchDeleteAdvancedPromptOptimizationJobResponse
|
|
49
|
+
* // errors: [ // BatchDeleteAdvancedPromptOptimizationJobErrors // required
|
|
50
|
+
* // { // BatchDeleteAdvancedPromptOptimizationJobError
|
|
51
|
+
* // jobIdentifier: "STRING_VALUE", // required
|
|
52
|
+
* // code: "STRING_VALUE", // required
|
|
53
|
+
* // message: "STRING_VALUE",
|
|
54
|
+
* // },
|
|
55
|
+
* // ],
|
|
56
|
+
* // advancedPromptOptimizationJobs: [ // BatchDeleteAdvancedPromptOptimizationJobItems // required
|
|
57
|
+
* // { // BatchDeleteAdvancedPromptOptimizationJobItem
|
|
58
|
+
* // jobIdentifier: "STRING_VALUE", // required
|
|
59
|
+
* // jobStatus: "InProgress" || "Completed" || "Failed" || "PartiallyCompleted" || "Stopping" || "Stopped" || "Deleting", // required
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param BatchDeleteAdvancedPromptOptimizationJobCommandInput - {@link BatchDeleteAdvancedPromptOptimizationJobCommandInput}
|
|
67
|
+
* @returns {@link BatchDeleteAdvancedPromptOptimizationJobCommandOutput}
|
|
68
|
+
* @see {@link BatchDeleteAdvancedPromptOptimizationJobCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link BatchDeleteAdvancedPromptOptimizationJobCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient'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 ThrottlingException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link BedrockServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
export declare class BatchDeleteAdvancedPromptOptimizationJobCommand extends BatchDeleteAdvancedPromptOptimizationJobCommand_base {
|
|
91
|
+
/** @internal type navigation helper, not in runtime. */
|
|
92
|
+
protected static __types: {
|
|
93
|
+
api: {
|
|
94
|
+
input: BatchDeleteAdvancedPromptOptimizationJobRequest;
|
|
95
|
+
output: BatchDeleteAdvancedPromptOptimizationJobResponse;
|
|
96
|
+
};
|
|
97
|
+
sdk: {
|
|
98
|
+
input: BatchDeleteAdvancedPromptOptimizationJobCommandInput;
|
|
99
|
+
output: BatchDeleteAdvancedPromptOptimizationJobCommandOutput;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import type { CreateAdvancedPromptOptimizationJobRequest, CreateAdvancedPromptOptimizationJobResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateAdvancedPromptOptimizationJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateAdvancedPromptOptimizationJobCommandInput extends CreateAdvancedPromptOptimizationJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateAdvancedPromptOptimizationJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateAdvancedPromptOptimizationJobCommandOutput extends CreateAdvancedPromptOptimizationJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateAdvancedPromptOptimizationJobCommand_base: {
|
|
25
|
+
new (input: CreateAdvancedPromptOptimizationJobCommandInput): import("@smithy/core/client").CommandImpl<CreateAdvancedPromptOptimizationJobCommandInput, CreateAdvancedPromptOptimizationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateAdvancedPromptOptimizationJobCommandInput): import("@smithy/core/client").CommandImpl<CreateAdvancedPromptOptimizationJobCommandInput, CreateAdvancedPromptOptimizationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Creates an asynchronous batch job for advanced prompt optimization.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockClient, CreateAdvancedPromptOptimizationJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, CreateAdvancedPromptOptimizationJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
39
|
+
* const config = {}; // type is BedrockClientConfig
|
|
40
|
+
* const client = new BedrockClient(config);
|
|
41
|
+
* const input = { // CreateAdvancedPromptOptimizationJobRequest
|
|
42
|
+
* jobName: "STRING_VALUE", // required
|
|
43
|
+
* jobDescription: "STRING_VALUE",
|
|
44
|
+
* clientToken: "STRING_VALUE",
|
|
45
|
+
* inputConfig: { // AdvancedPromptOptimizationInputConfig
|
|
46
|
+
* s3Uri: "STRING_VALUE", // required
|
|
47
|
+
* },
|
|
48
|
+
* outputConfig: { // AdvancedPromptOptimizationOutputConfig
|
|
49
|
+
* s3Uri: "STRING_VALUE", // required
|
|
50
|
+
* },
|
|
51
|
+
* encryptionKeyArn: "STRING_VALUE",
|
|
52
|
+
* tags: [ // TagList
|
|
53
|
+
* { // Tag
|
|
54
|
+
* key: "STRING_VALUE", // required
|
|
55
|
+
* value: "STRING_VALUE", // required
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* modelConfigurations: [ // ModelConfigurations // required
|
|
59
|
+
* { // ModelConfiguration
|
|
60
|
+
* modelId: "STRING_VALUE", // required
|
|
61
|
+
* inferenceConfig: { // InferenceConfiguration
|
|
62
|
+
* maxTokens: Number("int"),
|
|
63
|
+
* temperature: Number("float"),
|
|
64
|
+
* topP: Number("float"),
|
|
65
|
+
* stopSequences: [ // NonEmptyStringList
|
|
66
|
+
* "STRING_VALUE",
|
|
67
|
+
* ],
|
|
68
|
+
* },
|
|
69
|
+
* additionalModelRequestFields: { // AdditionalModelRequestFields
|
|
70
|
+
* "<keys>": "DOCUMENT_VALUE",
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
74
|
+
* };
|
|
75
|
+
* const command = new CreateAdvancedPromptOptimizationJobCommand(input);
|
|
76
|
+
* const response = await client.send(command);
|
|
77
|
+
* // { // CreateAdvancedPromptOptimizationJobResponse
|
|
78
|
+
* // jobArn: "STRING_VALUE", // required
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param CreateAdvancedPromptOptimizationJobCommandInput - {@link CreateAdvancedPromptOptimizationJobCommandInput}
|
|
84
|
+
* @returns {@link CreateAdvancedPromptOptimizationJobCommandOutput}
|
|
85
|
+
* @see {@link CreateAdvancedPromptOptimizationJobCommandInput} for command's `input` shape.
|
|
86
|
+
* @see {@link CreateAdvancedPromptOptimizationJobCommandOutput} for command's `response` shape.
|
|
87
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
90
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ConflictException} (client fault)
|
|
93
|
+
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link InternalServerException} (server fault)
|
|
96
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
99
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
102
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
105
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link TooManyTagsException} (client fault)
|
|
108
|
+
* <p>The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request. </p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ValidationException} (client fault)
|
|
111
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link BedrockServiceException}
|
|
114
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
export declare class CreateAdvancedPromptOptimizationJobCommand extends CreateAdvancedPromptOptimizationJobCommand_base {
|
|
120
|
+
/** @internal type navigation helper, not in runtime. */
|
|
121
|
+
protected static __types: {
|
|
122
|
+
api: {
|
|
123
|
+
input: CreateAdvancedPromptOptimizationJobRequest;
|
|
124
|
+
output: CreateAdvancedPromptOptimizationJobResponse;
|
|
125
|
+
};
|
|
126
|
+
sdk: {
|
|
127
|
+
input: CreateAdvancedPromptOptimizationJobCommandInput;
|
|
128
|
+
output: CreateAdvancedPromptOptimizationJobCommandOutput;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import type { CreateGuardrailRequest, CreateGuardrailResponse } from "../models/
|
|
4
|
+
import type { CreateGuardrailRequest, CreateGuardrailResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import type { CreateGuardrailVersionRequest, CreateGuardrailVersionResponse } from "../models/
|
|
4
|
+
import type { CreateGuardrailVersionRequest, CreateGuardrailVersionResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import type { DeleteGuardrailRequest, DeleteGuardrailResponse } from "../models/
|
|
4
|
+
import type { DeleteGuardrailRequest, DeleteGuardrailResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import type { GetAdvancedPromptOptimizationJobRequest, GetAdvancedPromptOptimizationJobResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAdvancedPromptOptimizationJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAdvancedPromptOptimizationJobCommandInput extends GetAdvancedPromptOptimizationJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAdvancedPromptOptimizationJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAdvancedPromptOptimizationJobCommandOutput extends GetAdvancedPromptOptimizationJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAdvancedPromptOptimizationJobCommand_base: {
|
|
25
|
+
new (input: GetAdvancedPromptOptimizationJobCommandInput): import("@smithy/core/client").CommandImpl<GetAdvancedPromptOptimizationJobCommandInput, GetAdvancedPromptOptimizationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAdvancedPromptOptimizationJobCommandInput): import("@smithy/core/client").CommandImpl<GetAdvancedPromptOptimizationJobCommandInput, GetAdvancedPromptOptimizationJobCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the details and status of an advanced prompt optimization job.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BedrockClient, GetAdvancedPromptOptimizationJobCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
37
|
+
* // const { BedrockClient, GetAdvancedPromptOptimizationJobCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
38
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
39
|
+
* const config = {}; // type is BedrockClientConfig
|
|
40
|
+
* const client = new BedrockClient(config);
|
|
41
|
+
* const input = { // GetAdvancedPromptOptimizationJobRequest
|
|
42
|
+
* jobIdentifier: "STRING_VALUE", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new GetAdvancedPromptOptimizationJobCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // { // GetAdvancedPromptOptimizationJobResponse
|
|
47
|
+
* // jobArn: "STRING_VALUE", // required
|
|
48
|
+
* // jobName: "STRING_VALUE", // required
|
|
49
|
+
* // jobDescription: "STRING_VALUE",
|
|
50
|
+
* // jobStatus: "InProgress" || "Completed" || "Failed" || "PartiallyCompleted" || "Stopping" || "Stopped" || "Deleting", // required
|
|
51
|
+
* // inputConfig: { // AdvancedPromptOptimizationInputConfig
|
|
52
|
+
* // s3Uri: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // outputConfig: { // AdvancedPromptOptimizationOutputConfig
|
|
55
|
+
* // s3Uri: "STRING_VALUE", // required
|
|
56
|
+
* // },
|
|
57
|
+
* // encryptionKeyArn: "STRING_VALUE",
|
|
58
|
+
* // creationTime: new Date("TIMESTAMP"), // required
|
|
59
|
+
* // lastModifiedTime: new Date("TIMESTAMP"),
|
|
60
|
+
* // failureMessage: "STRING_VALUE",
|
|
61
|
+
* // modelConfigurations: [ // ModelConfigurations // required
|
|
62
|
+
* // { // ModelConfiguration
|
|
63
|
+
* // modelId: "STRING_VALUE", // required
|
|
64
|
+
* // inferenceConfig: { // InferenceConfiguration
|
|
65
|
+
* // maxTokens: Number("int"),
|
|
66
|
+
* // temperature: Number("float"),
|
|
67
|
+
* // topP: Number("float"),
|
|
68
|
+
* // stopSequences: [ // NonEmptyStringList
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // },
|
|
72
|
+
* // additionalModelRequestFields: { // AdditionalModelRequestFields
|
|
73
|
+
* // "<keys>": "DOCUMENT_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // },
|
|
76
|
+
* // ],
|
|
77
|
+
* // };
|
|
78
|
+
*
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* @param GetAdvancedPromptOptimizationJobCommandInput - {@link GetAdvancedPromptOptimizationJobCommandInput}
|
|
82
|
+
* @returns {@link GetAdvancedPromptOptimizationJobCommandOutput}
|
|
83
|
+
* @see {@link GetAdvancedPromptOptimizationJobCommandInput} for command's `input` shape.
|
|
84
|
+
* @see {@link GetAdvancedPromptOptimizationJobCommandOutput} for command's `response` shape.
|
|
85
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
88
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link InternalServerException} (server fault)
|
|
91
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
94
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
97
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ValidationException} (client fault)
|
|
100
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link BedrockServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export declare class GetAdvancedPromptOptimizationJobCommand extends GetAdvancedPromptOptimizationJobCommand_base {
|
|
109
|
+
/** @internal type navigation helper, not in runtime. */
|
|
110
|
+
protected static __types: {
|
|
111
|
+
api: {
|
|
112
|
+
input: GetAdvancedPromptOptimizationJobRequest;
|
|
113
|
+
output: GetAdvancedPromptOptimizationJobResponse;
|
|
114
|
+
};
|
|
115
|
+
sdk: {
|
|
116
|
+
input: GetAdvancedPromptOptimizationJobCommandInput;
|
|
117
|
+
output: GetAdvancedPromptOptimizationJobCommandOutput;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
-
import type { GetGuardrailRequest } from "../models/
|
|
5
|
-
import type { GetGuardrailResponse } from "../models/models_1";
|
|
4
|
+
import type { GetGuardrailRequest, GetGuardrailResponse } from "../models/models_1";
|
|
6
5
|
/**
|
|
7
6
|
* @public
|
|
8
7
|
*/
|