@aws-sdk/client-bedrock 3.1022.0 → 3.1024.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 +21 -0
- package/dist-cjs/index.js +47 -0
- package/dist-cjs/schemas/schemas_0.js +73 -15
- package/dist-es/Bedrock.js +6 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +16 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +16 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +64 -6
- package/dist-types/Bedrock.d.ts +21 -0
- package/dist-types/BedrockClient.d.ts +5 -2
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +87 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +89 -0
- package/dist-types/commands/ListEnforcedGuardrailsConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/PutEnforcedGuardrailConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +90 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +26 -19
- package/dist-types/models/models_1.d.ts +77 -1
- package/dist-types/schemas/schemas_0.d.ts +10 -0
- package/dist-types/ts3.4/Bedrock.d.ts +51 -0
- package/dist-types/ts3.4/BedrockClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -5
- package/dist-types/ts3.4/models/models_1.d.ts +23 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
- package/package.json +2 -2
|
@@ -280,6 +280,9 @@ const _DPR = "DimensionalPriceRate";
|
|
|
280
280
|
const _DPRR = "DeletePromptRouterRequest";
|
|
281
281
|
const _DPRRe = "DeletePromptRouterResponse";
|
|
282
282
|
const _DPRe = "DeletePromptRouter";
|
|
283
|
+
const _DRP = "DeleteResourcePolicy";
|
|
284
|
+
const _DRPR = "DeleteResourcePolicyRequest";
|
|
285
|
+
const _DRPRe = "DeleteResourcePolicyResponse";
|
|
283
286
|
const _EARPV = "ExportAutomatedReasoningPolicyVersion";
|
|
284
287
|
const _EARPVR = "ExportAutomatedReasoningPolicyVersionRequest";
|
|
285
288
|
const _EARPVRx = "ExportAutomatedReasoningPolicyVersionResponse";
|
|
@@ -434,6 +437,9 @@ const _GPRRe = "GetPromptRouterResponse";
|
|
|
434
437
|
const _GR = "GuardrailRegex";
|
|
435
438
|
const _GRC = "GuardrailRegexConfig";
|
|
436
439
|
const _GRCu = "GuardrailRegexesConfig";
|
|
440
|
+
const _GRP = "GetResourcePolicy";
|
|
441
|
+
const _GRPR = "GetResourcePolicyRequest";
|
|
442
|
+
const _GRPRe = "GetResourcePolicyResponse";
|
|
437
443
|
const _GRu = "GuardrailRegexes";
|
|
438
444
|
const _GS = "GuardrailSummary";
|
|
439
445
|
const _GSIP = "GuardrailSensitiveInformationPolicy";
|
|
@@ -590,6 +596,9 @@ const _PMILCRu = "PutModelInvocationLoggingConfigurationResponse";
|
|
|
590
596
|
const _PMS = "ProvisionedModelSummary";
|
|
591
597
|
const _PMSr = "ProvisionedModelSummaries";
|
|
592
598
|
const _PRD = "PromptRouterDescription";
|
|
599
|
+
const _PRP = "PutResourcePolicy";
|
|
600
|
+
const _PRPR = "PutResourcePolicyRequest";
|
|
601
|
+
const _PRPRu = "PutResourcePolicyResponse";
|
|
593
602
|
const _PRS = "PromptRouterSummary";
|
|
594
603
|
const _PRSr = "PromptRouterSummaries";
|
|
595
604
|
const _PRTM = "PromptRouterTargetModel";
|
|
@@ -630,6 +639,7 @@ const _SARPTW = "StartAutomatedReasoningPolicyTestWorkflow";
|
|
|
630
639
|
const _SARPTWR = "StartAutomatedReasoningPolicyTestWorkflowRequest";
|
|
631
640
|
const _SARPTWRt = "StartAutomatedReasoningPolicyTestWorkflowResponse";
|
|
632
641
|
const _SC = "S3Config";
|
|
642
|
+
const _SCG = "SelectiveContentGuarding";
|
|
633
643
|
const _SD = "StatusDetails";
|
|
634
644
|
const _SDS = "S3DataSource";
|
|
635
645
|
const _SEJ = "StopEvaluationJob";
|
|
@@ -1108,7 +1118,8 @@ const _rA = "roleArn";
|
|
|
1108
1118
|
const _rAGC = "retrieveAndGenerateConfig";
|
|
1109
1119
|
const _rAGSC = "retrieveAndGenerateSourceConfig";
|
|
1110
1120
|
const _rARN = "resourceARN";
|
|
1111
|
-
const _rAe = "
|
|
1121
|
+
const _rAe = "resourceArn";
|
|
1122
|
+
const _rAeg = "regionAvailability";
|
|
1112
1123
|
const _rC = "ruleCount";
|
|
1113
1124
|
const _rCS = "ragConfigSummary";
|
|
1114
1125
|
const _rCa = "rateCard";
|
|
@@ -1126,6 +1137,7 @@ const _rIu = "ruleIds";
|
|
|
1126
1137
|
const _rM = "ratingMethod";
|
|
1127
1138
|
const _rMF = "requestMetadataFilters";
|
|
1128
1139
|
const _rN = "resourceName";
|
|
1140
|
+
const _rP = "resourcePolicy";
|
|
1129
1141
|
const _rPD = "refundPolicyDescription";
|
|
1130
1142
|
const _rQD = "responseQualityDifference";
|
|
1131
1143
|
const _rR = "ruleReports";
|
|
@@ -1141,6 +1153,7 @@ const _sAI = "sourceAccountId";
|
|
|
1141
1153
|
const _sB = "sortBy";
|
|
1142
1154
|
const _sBO = "s3BucketOwner";
|
|
1143
1155
|
const _sC = "s3Config";
|
|
1156
|
+
const _sCG = "selectiveContentGuarding";
|
|
1144
1157
|
const _sCo = "sourceContent";
|
|
1145
1158
|
const _sCt = "stringContains";
|
|
1146
1159
|
const _sD = "statusDetails";
|
|
@@ -1184,6 +1197,7 @@ const _se = "server";
|
|
|
1184
1197
|
const _so = "sources";
|
|
1185
1198
|
const _st = "status";
|
|
1186
1199
|
const _sta = "statements";
|
|
1200
|
+
const _sy = "system";
|
|
1187
1201
|
const _t = "translation";
|
|
1188
1202
|
const _tA = "translationAmbiguous";
|
|
1189
1203
|
const _tC = "typeCount";
|
|
@@ -1407,13 +1421,13 @@ var PromptRouterDescription = [0, n0, _PRD, 8, 0];
|
|
|
1407
1421
|
var TextPromptTemplate = [0, n0, _TPT, 8, 0];
|
|
1408
1422
|
export var AccountEnforcedGuardrailInferenceInputConfiguration$ = [3, n0, _AEGIIC,
|
|
1409
1423
|
0,
|
|
1410
|
-
[_gI, _gV,
|
|
1411
|
-
[0, 0,
|
|
1424
|
+
[_gI, _gV, _sCG, _mE],
|
|
1425
|
+
[0, 0, () => SelectiveContentGuarding$, () => ModelEnforcement$], 2
|
|
1412
1426
|
];
|
|
1413
1427
|
export var AccountEnforcedGuardrailOutputConfiguration$ = [3, n0, _AEGOC,
|
|
1414
1428
|
0,
|
|
1415
|
-
[_cI, _gA, _gIu, _iT, _gV, _cA, _cB, _uA, _uB, _o, _mE],
|
|
1416
|
-
[0, 0, 0, 0, 0, 5, 0, 5, 0, 0, () => ModelEnforcement$]
|
|
1429
|
+
[_cI, _gA, _gIu, _iT, _sCG, _gV, _cA, _cB, _uA, _uB, _o, _mE],
|
|
1430
|
+
[0, 0, 0, 0, () => SelectiveContentGuarding$, 0, 5, 0, 5, 0, 0, () => ModelEnforcement$]
|
|
1417
1431
|
];
|
|
1418
1432
|
export var AgreementAvailability$ = [3, n0, _AA,
|
|
1419
1433
|
0,
|
|
@@ -2200,6 +2214,16 @@ export var DeleteProvisionedModelThroughputResponse$ = [3, n0, _DPMTRe,
|
|
|
2200
2214
|
[],
|
|
2201
2215
|
[]
|
|
2202
2216
|
];
|
|
2217
|
+
export var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
|
|
2218
|
+
0,
|
|
2219
|
+
[_rAe],
|
|
2220
|
+
[[0, 1]], 1
|
|
2221
|
+
];
|
|
2222
|
+
export var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
|
|
2223
|
+
0,
|
|
2224
|
+
[],
|
|
2225
|
+
[]
|
|
2226
|
+
];
|
|
2203
2227
|
export var DeregisterMarketplaceModelEndpointRequest$ = [3, n0, _DMMERer,
|
|
2204
2228
|
0,
|
|
2205
2229
|
[_eA],
|
|
@@ -2437,7 +2461,7 @@ export var GetFoundationModelAvailabilityRequest$ = [3, n0, _GFMAR,
|
|
|
2437
2461
|
];
|
|
2438
2462
|
export var GetFoundationModelAvailabilityResponse$ = [3, n0, _GFMARe,
|
|
2439
2463
|
0,
|
|
2440
|
-
[_mIo, _aA, _aSu, _eAn,
|
|
2464
|
+
[_mIo, _aA, _aSu, _eAn, _rAeg],
|
|
2441
2465
|
[0, () => AgreementAvailability$, 0, 0, 0], 5
|
|
2442
2466
|
];
|
|
2443
2467
|
export var GetFoundationModelRequest$ = [3, n0, _GFMR,
|
|
@@ -2560,6 +2584,16 @@ export var GetProvisionedModelThroughputResponse$ = [3, n0, _GPMTRe,
|
|
|
2560
2584
|
[_mU, _dMU, _pMN, _pMA, _mA, _dMA, _fMA, _st, _cTr, _lMT, _fMa, _cD, _cET],
|
|
2561
2585
|
[1, 1, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 5], 10
|
|
2562
2586
|
];
|
|
2587
|
+
export var GetResourcePolicyRequest$ = [3, n0, _GRPR,
|
|
2588
|
+
0,
|
|
2589
|
+
[_rAe],
|
|
2590
|
+
[[0, 1]], 1
|
|
2591
|
+
];
|
|
2592
|
+
export var GetResourcePolicyResponse$ = [3, n0, _GRPRe,
|
|
2593
|
+
0,
|
|
2594
|
+
[_rP],
|
|
2595
|
+
[0]
|
|
2596
|
+
];
|
|
2563
2597
|
export var GetUseCaseForModelAccessRequest$ = [3, n0, _GUCFMAR,
|
|
2564
2598
|
0,
|
|
2565
2599
|
[],
|
|
@@ -3145,6 +3179,16 @@ export var PutModelInvocationLoggingConfigurationResponse$ = [3, n0, _PMILCRu,
|
|
|
3145
3179
|
[],
|
|
3146
3180
|
[]
|
|
3147
3181
|
];
|
|
3182
|
+
export var PutResourcePolicyRequest$ = [3, n0, _PRPR,
|
|
3183
|
+
0,
|
|
3184
|
+
[_rAe, _rP],
|
|
3185
|
+
[0, 0], 2
|
|
3186
|
+
];
|
|
3187
|
+
export var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
|
|
3188
|
+
0,
|
|
3189
|
+
[_rAe],
|
|
3190
|
+
[0]
|
|
3191
|
+
];
|
|
3148
3192
|
export var PutUseCaseForModelAccessRequest$ = [3, n0, _PUCFMAR,
|
|
3149
3193
|
0,
|
|
3150
3194
|
[_fD],
|
|
@@ -3225,6 +3269,11 @@ export var SageMakerEndpoint$ = [3, n0, _SME,
|
|
|
3225
3269
|
[_iIC, _iTn, _eRx, _kEK, _vp],
|
|
3226
3270
|
[1, 0, 0, 0, () => VpcConfig$], 3
|
|
3227
3271
|
];
|
|
3272
|
+
export var SelectiveContentGuarding$ = [3, n0, _SCG,
|
|
3273
|
+
0,
|
|
3274
|
+
[_sy, _me],
|
|
3275
|
+
[0, 0]
|
|
3276
|
+
];
|
|
3228
3277
|
export var StartAutomatedReasoningPolicyBuildWorkflowRequest$ = [3, n0, _SARPBWR,
|
|
3229
3278
|
0,
|
|
3230
3279
|
[_pA, _bWT, _sCo, _cRT],
|
|
@@ -4086,6 +4135,9 @@ export var DeletePromptRouter$ = [9, n0, _DPRe,
|
|
|
4086
4135
|
export var DeleteProvisionedModelThroughput$ = [9, n0, _DPMT,
|
|
4087
4136
|
{ [_ht]: ["DELETE", "/provisioned-model-throughput/{provisionedModelId}", 200] }, () => DeleteProvisionedModelThroughputRequest$, () => DeleteProvisionedModelThroughputResponse$
|
|
4088
4137
|
];
|
|
4138
|
+
export var DeleteResourcePolicy$ = [9, n0, _DRP,
|
|
4139
|
+
{ [_ht]: ["DELETE", "/resource-policy/{resourceArn}", 200] }, () => DeleteResourcePolicyRequest$, () => DeleteResourcePolicyResponse$
|
|
4140
|
+
];
|
|
4089
4141
|
export var DeregisterMarketplaceModelEndpoint$ = [9, n0, _DMMEe,
|
|
4090
4142
|
{ [_ht]: ["DELETE", "/marketplace-model/endpoints/{endpointArn}/registration", 200] }, () => DeregisterMarketplaceModelEndpointRequest$, () => DeregisterMarketplaceModelEndpointResponse$
|
|
4091
4143
|
];
|
|
@@ -4161,6 +4213,9 @@ export var GetPromptRouter$ = [9, n0, _GPR,
|
|
|
4161
4213
|
export var GetProvisionedModelThroughput$ = [9, n0, _GPMT,
|
|
4162
4214
|
{ [_ht]: ["GET", "/provisioned-model-throughput/{provisionedModelId}", 200] }, () => GetProvisionedModelThroughputRequest$, () => GetProvisionedModelThroughputResponse$
|
|
4163
4215
|
];
|
|
4216
|
+
export var GetResourcePolicy$ = [9, n0, _GRP,
|
|
4217
|
+
{ [_ht]: ["GET", "/resource-policy/{resourceArn}", 200] }, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
|
|
4218
|
+
];
|
|
4164
4219
|
export var GetUseCaseForModelAccess$ = [9, n0, _GUCFMA,
|
|
4165
4220
|
{ [_ht]: ["GET", "/use-case-for-model-access", 200] }, () => GetUseCaseForModelAccessRequest$, () => GetUseCaseForModelAccessResponse$
|
|
4166
4221
|
];
|
|
@@ -4233,6 +4288,9 @@ export var PutEnforcedGuardrailConfiguration$ = [9, n0, _PEGC,
|
|
|
4233
4288
|
export var PutModelInvocationLoggingConfiguration$ = [9, n0, _PMILC,
|
|
4234
4289
|
{ [_ht]: ["PUT", "/logging/modelinvocations", 200] }, () => PutModelInvocationLoggingConfigurationRequest$, () => PutModelInvocationLoggingConfigurationResponse$
|
|
4235
4290
|
];
|
|
4291
|
+
export var PutResourcePolicy$ = [9, n0, _PRP,
|
|
4292
|
+
{ [_ht]: ["POST", "/resource-policy", 201] }, () => PutResourcePolicyRequest$, () => PutResourcePolicyResponse$
|
|
4293
|
+
];
|
|
4236
4294
|
export var PutUseCaseForModelAccess$ = [9, n0, _PUCFMA,
|
|
4237
4295
|
{ [_ht]: ["POST", "/use-case-for-model-access", 201] }, () => PutUseCaseForModelAccessRequest$, () => PutUseCaseForModelAccessResponse$
|
|
4238
4296
|
];
|
package/dist-types/Bedrock.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { type DeleteMarketplaceModelEndpointCommandInput, type DeleteMarketplace
|
|
|
33
33
|
import { type DeleteModelInvocationLoggingConfigurationCommandInput, type DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
34
34
|
import { type DeletePromptRouterCommandInput, type DeletePromptRouterCommandOutput } from "./commands/DeletePromptRouterCommand";
|
|
35
35
|
import { type DeleteProvisionedModelThroughputCommandInput, type DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
|
|
36
|
+
import { type DeleteResourcePolicyCommandInput, type DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
36
37
|
import { type DeregisterMarketplaceModelEndpointCommandInput, type DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
37
38
|
import { type ExportAutomatedReasoningPolicyVersionCommandInput, type ExportAutomatedReasoningPolicyVersionCommandOutput } from "./commands/ExportAutomatedReasoningPolicyVersionCommand";
|
|
38
39
|
import { type GetAutomatedReasoningPolicyAnnotationsCommandInput, type GetAutomatedReasoningPolicyAnnotationsCommandOutput } from "./commands/GetAutomatedReasoningPolicyAnnotationsCommand";
|
|
@@ -58,6 +59,7 @@ import { type GetModelInvocationJobCommandInput, type GetModelInvocationJobComma
|
|
|
58
59
|
import { type GetModelInvocationLoggingConfigurationCommandInput, type GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
59
60
|
import { type GetPromptRouterCommandInput, type GetPromptRouterCommandOutput } from "./commands/GetPromptRouterCommand";
|
|
60
61
|
import { type GetProvisionedModelThroughputCommandInput, type GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
62
|
+
import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
61
63
|
import { type GetUseCaseForModelAccessCommandInput, type GetUseCaseForModelAccessCommandOutput } from "./commands/GetUseCaseForModelAccessCommand";
|
|
62
64
|
import { type ListAutomatedReasoningPoliciesCommandInput, type ListAutomatedReasoningPoliciesCommandOutput } from "./commands/ListAutomatedReasoningPoliciesCommand";
|
|
63
65
|
import { type ListAutomatedReasoningPolicyBuildWorkflowsCommandInput, type ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput } from "./commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
@@ -82,6 +84,7 @@ import { type ListProvisionedModelThroughputsCommandInput, type ListProvisionedM
|
|
|
82
84
|
import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
83
85
|
import { type PutEnforcedGuardrailConfigurationCommandInput, type PutEnforcedGuardrailConfigurationCommandOutput } from "./commands/PutEnforcedGuardrailConfigurationCommand";
|
|
84
86
|
import { type PutModelInvocationLoggingConfigurationCommandInput, type PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
|
|
87
|
+
import { type PutResourcePolicyCommandInput, type PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
85
88
|
import { type PutUseCaseForModelAccessCommandInput, type PutUseCaseForModelAccessCommandOutput } from "./commands/PutUseCaseForModelAccessCommand";
|
|
86
89
|
import { type RegisterMarketplaceModelEndpointCommandInput, type RegisterMarketplaceModelEndpointCommandOutput } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
87
90
|
import { type StartAutomatedReasoningPolicyBuildWorkflowCommandInput, type StartAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/StartAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
@@ -298,6 +301,12 @@ export interface Bedrock {
|
|
|
298
301
|
deleteProvisionedModelThroughput(args: DeleteProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProvisionedModelThroughputCommandOutput>;
|
|
299
302
|
deleteProvisionedModelThroughput(args: DeleteProvisionedModelThroughputCommandInput, cb: (err: any, data?: DeleteProvisionedModelThroughputCommandOutput) => void): void;
|
|
300
303
|
deleteProvisionedModelThroughput(args: DeleteProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProvisionedModelThroughputCommandOutput) => void): void;
|
|
304
|
+
/**
|
|
305
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
306
|
+
*/
|
|
307
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
308
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
309
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
301
310
|
/**
|
|
302
311
|
* @see {@link DeregisterMarketplaceModelEndpointCommand}
|
|
303
312
|
*/
|
|
@@ -449,6 +458,12 @@ export interface Bedrock {
|
|
|
449
458
|
getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, options?: __HttpHandlerOptions): Promise<GetProvisionedModelThroughputCommandOutput>;
|
|
450
459
|
getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, cb: (err: any, data?: GetProvisionedModelThroughputCommandOutput) => void): void;
|
|
451
460
|
getProvisionedModelThroughput(args: GetProvisionedModelThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProvisionedModelThroughputCommandOutput) => void): void;
|
|
461
|
+
/**
|
|
462
|
+
* @see {@link GetResourcePolicyCommand}
|
|
463
|
+
*/
|
|
464
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
465
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
466
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
452
467
|
/**
|
|
453
468
|
* @see {@link GetUseCaseForModelAccessCommand}
|
|
454
469
|
*/
|
|
@@ -610,6 +625,12 @@ export interface Bedrock {
|
|
|
610
625
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<PutModelInvocationLoggingConfigurationCommandOutput>;
|
|
611
626
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, cb: (err: any, data?: PutModelInvocationLoggingConfigurationCommandOutput) => void): void;
|
|
612
627
|
putModelInvocationLoggingConfiguration(args: PutModelInvocationLoggingConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutModelInvocationLoggingConfigurationCommandOutput) => void): void;
|
|
628
|
+
/**
|
|
629
|
+
* @see {@link PutResourcePolicyCommand}
|
|
630
|
+
*/
|
|
631
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
632
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
633
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
613
634
|
/**
|
|
614
635
|
* @see {@link PutUseCaseForModelAccessCommand}
|
|
615
636
|
*/
|
|
@@ -40,6 +40,7 @@ import type { DeleteMarketplaceModelEndpointCommandInput, DeleteMarketplaceModel
|
|
|
40
40
|
import type { DeleteModelInvocationLoggingConfigurationCommandInput, DeleteModelInvocationLoggingConfigurationCommandOutput } from "./commands/DeleteModelInvocationLoggingConfigurationCommand";
|
|
41
41
|
import type { DeletePromptRouterCommandInput, DeletePromptRouterCommandOutput } from "./commands/DeletePromptRouterCommand";
|
|
42
42
|
import type { DeleteProvisionedModelThroughputCommandInput, DeleteProvisionedModelThroughputCommandOutput } from "./commands/DeleteProvisionedModelThroughputCommand";
|
|
43
|
+
import type { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
43
44
|
import type { DeregisterMarketplaceModelEndpointCommandInput, DeregisterMarketplaceModelEndpointCommandOutput } from "./commands/DeregisterMarketplaceModelEndpointCommand";
|
|
44
45
|
import type { ExportAutomatedReasoningPolicyVersionCommandInput, ExportAutomatedReasoningPolicyVersionCommandOutput } from "./commands/ExportAutomatedReasoningPolicyVersionCommand";
|
|
45
46
|
import type { GetAutomatedReasoningPolicyAnnotationsCommandInput, GetAutomatedReasoningPolicyAnnotationsCommandOutput } from "./commands/GetAutomatedReasoningPolicyAnnotationsCommand";
|
|
@@ -65,6 +66,7 @@ import type { GetModelInvocationJobCommandInput, GetModelInvocationJobCommandOut
|
|
|
65
66
|
import type { GetModelInvocationLoggingConfigurationCommandInput, GetModelInvocationLoggingConfigurationCommandOutput } from "./commands/GetModelInvocationLoggingConfigurationCommand";
|
|
66
67
|
import type { GetPromptRouterCommandInput, GetPromptRouterCommandOutput } from "./commands/GetPromptRouterCommand";
|
|
67
68
|
import type { GetProvisionedModelThroughputCommandInput, GetProvisionedModelThroughputCommandOutput } from "./commands/GetProvisionedModelThroughputCommand";
|
|
69
|
+
import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
68
70
|
import type { GetUseCaseForModelAccessCommandInput, GetUseCaseForModelAccessCommandOutput } from "./commands/GetUseCaseForModelAccessCommand";
|
|
69
71
|
import type { ListAutomatedReasoningPoliciesCommandInput, ListAutomatedReasoningPoliciesCommandOutput } from "./commands/ListAutomatedReasoningPoliciesCommand";
|
|
70
72
|
import type { ListAutomatedReasoningPolicyBuildWorkflowsCommandInput, ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput } from "./commands/ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
@@ -89,6 +91,7 @@ import type { ListProvisionedModelThroughputsCommandInput, ListProvisionedModelT
|
|
|
89
91
|
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
90
92
|
import type { PutEnforcedGuardrailConfigurationCommandInput, PutEnforcedGuardrailConfigurationCommandOutput } from "./commands/PutEnforcedGuardrailConfigurationCommand";
|
|
91
93
|
import type { PutModelInvocationLoggingConfigurationCommandInput, PutModelInvocationLoggingConfigurationCommandOutput } from "./commands/PutModelInvocationLoggingConfigurationCommand";
|
|
94
|
+
import type { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
92
95
|
import type { PutUseCaseForModelAccessCommandInput, PutUseCaseForModelAccessCommandOutput } from "./commands/PutUseCaseForModelAccessCommand";
|
|
93
96
|
import type { RegisterMarketplaceModelEndpointCommandInput, RegisterMarketplaceModelEndpointCommandOutput } from "./commands/RegisterMarketplaceModelEndpointCommand";
|
|
94
97
|
import type { StartAutomatedReasoningPolicyBuildWorkflowCommandInput, StartAutomatedReasoningPolicyBuildWorkflowCommandOutput } from "./commands/StartAutomatedReasoningPolicyBuildWorkflowCommand";
|
|
@@ -111,11 +114,11 @@ export { __Client };
|
|
|
111
114
|
/**
|
|
112
115
|
* @public
|
|
113
116
|
*/
|
|
114
|
-
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 | 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 | GetUseCaseForModelAccessCommandInput | ListAutomatedReasoningPoliciesCommandInput | ListAutomatedReasoningPolicyBuildWorkflowsCommandInput | ListAutomatedReasoningPolicyTestCasesCommandInput | ListAutomatedReasoningPolicyTestResultsCommandInput | ListCustomModelDeploymentsCommandInput | ListCustomModelsCommandInput | ListEnforcedGuardrailsConfigurationCommandInput | ListEvaluationJobsCommandInput | ListFoundationModelAgreementOffersCommandInput | ListFoundationModelsCommandInput | ListGuardrailsCommandInput | ListImportedModelsCommandInput | ListInferenceProfilesCommandInput | ListMarketplaceModelEndpointsCommandInput | ListModelCopyJobsCommandInput | ListModelCustomizationJobsCommandInput | ListModelImportJobsCommandInput | ListModelInvocationJobsCommandInput | ListPromptRoutersCommandInput | ListProvisionedModelThroughputsCommandInput | ListTagsForResourceCommandInput | PutEnforcedGuardrailConfigurationCommandInput | PutModelInvocationLoggingConfigurationCommandInput | PutUseCaseForModelAccessCommandInput | RegisterMarketplaceModelEndpointCommandInput | StartAutomatedReasoningPolicyBuildWorkflowCommandInput | StartAutomatedReasoningPolicyTestWorkflowCommandInput | StopEvaluationJobCommandInput | StopModelCustomizationJobCommandInput | StopModelInvocationJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAutomatedReasoningPolicyAnnotationsCommandInput | UpdateAutomatedReasoningPolicyCommandInput | UpdateAutomatedReasoningPolicyTestCaseCommandInput | UpdateCustomModelDeploymentCommandInput | UpdateGuardrailCommandInput | UpdateMarketplaceModelEndpointCommandInput | UpdateProvisionedModelThroughputCommandInput;
|
|
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;
|
|
115
118
|
/**
|
|
116
119
|
* @public
|
|
117
120
|
*/
|
|
118
|
-
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 | 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 | GetUseCaseForModelAccessCommandOutput | ListAutomatedReasoningPoliciesCommandOutput | ListAutomatedReasoningPolicyBuildWorkflowsCommandOutput | ListAutomatedReasoningPolicyTestCasesCommandOutput | ListAutomatedReasoningPolicyTestResultsCommandOutput | ListCustomModelDeploymentsCommandOutput | ListCustomModelsCommandOutput | ListEnforcedGuardrailsConfigurationCommandOutput | ListEvaluationJobsCommandOutput | ListFoundationModelAgreementOffersCommandOutput | ListFoundationModelsCommandOutput | ListGuardrailsCommandOutput | ListImportedModelsCommandOutput | ListInferenceProfilesCommandOutput | ListMarketplaceModelEndpointsCommandOutput | ListModelCopyJobsCommandOutput | ListModelCustomizationJobsCommandOutput | ListModelImportJobsCommandOutput | ListModelInvocationJobsCommandOutput | ListPromptRoutersCommandOutput | ListProvisionedModelThroughputsCommandOutput | ListTagsForResourceCommandOutput | PutEnforcedGuardrailConfigurationCommandOutput | PutModelInvocationLoggingConfigurationCommandOutput | PutUseCaseForModelAccessCommandOutput | RegisterMarketplaceModelEndpointCommandOutput | StartAutomatedReasoningPolicyBuildWorkflowCommandOutput | StartAutomatedReasoningPolicyTestWorkflowCommandOutput | StopEvaluationJobCommandOutput | StopModelCustomizationJobCommandOutput | StopModelInvocationJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAutomatedReasoningPolicyAnnotationsCommandOutput | UpdateAutomatedReasoningPolicyCommandOutput | UpdateAutomatedReasoningPolicyTestCaseCommandOutput | UpdateCustomModelDeploymentCommandOutput | UpdateGuardrailCommandOutput | UpdateMarketplaceModelEndpointCommandOutput | UpdateProvisionedModelThroughputCommandOutput;
|
|
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;
|
|
119
122
|
/**
|
|
120
123
|
* @public
|
|
121
124
|
*/
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import type { DeleteResourcePolicyRequest, DeleteResourcePolicyResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteResourcePolicyCommand_base: {
|
|
25
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes a previously created Bedrock resource policy.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
37
|
+
* const config = {}; // type is BedrockClientConfig
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // DeleteResourcePolicyRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteResourcePolicyCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput}
|
|
49
|
+
* @returns {@link DeleteResourcePolicyCommandOutput}
|
|
50
|
+
* @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
61
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
64
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ValidationException} (client fault)
|
|
67
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link BedrockServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class DeleteResourcePolicyCommand extends DeleteResourcePolicyCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: DeleteResourcePolicyRequest;
|
|
80
|
+
output: {};
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: DeleteResourcePolicyCommandInput;
|
|
84
|
+
output: DeleteResourcePolicyCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import type { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetResourcePolicyCommand_base: {
|
|
25
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Gets the resource policy document for a Bedrock resource</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, GetResourcePolicyCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, GetResourcePolicyCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
37
|
+
* const config = {}; // type is BedrockClientConfig
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // GetResourcePolicyRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetResourcePolicyCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetResourcePolicyResponse
|
|
45
|
+
* // resourcePolicy: "STRING_VALUE",
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
|
|
51
|
+
* @returns {@link GetResourcePolicyCommandOutput}
|
|
52
|
+
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient'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 InternalServerException} (server fault)
|
|
60
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
66
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ValidationException} (client fault)
|
|
69
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link BedrockServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
73
|
+
*
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
78
|
+
/** @internal type navigation helper, not in runtime. */
|
|
79
|
+
protected static __types: {
|
|
80
|
+
api: {
|
|
81
|
+
input: GetResourcePolicyRequest;
|
|
82
|
+
output: GetResourcePolicyResponse;
|
|
83
|
+
};
|
|
84
|
+
sdk: {
|
|
85
|
+
input: GetResourcePolicyCommandInput;
|
|
86
|
+
output: GetResourcePolicyCommandOutput;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -48,6 +48,10 @@ declare const ListEnforcedGuardrailsConfigurationCommand_base: {
|
|
|
48
48
|
* // guardrailArn: "STRING_VALUE",
|
|
49
49
|
* // guardrailId: "STRING_VALUE",
|
|
50
50
|
* // inputTags: "HONOR" || "IGNORE",
|
|
51
|
+
* // selectiveContentGuarding: { // SelectiveContentGuarding
|
|
52
|
+
* // system: "SELECTIVE" || "COMPREHENSIVE",
|
|
53
|
+
* // messages: "SELECTIVE" || "COMPREHENSIVE",
|
|
54
|
+
* // },
|
|
51
55
|
* // guardrailVersion: "STRING_VALUE",
|
|
52
56
|
* // createdAt: new Date("TIMESTAMP"),
|
|
53
57
|
* // createdBy: "STRING_VALUE",
|
|
@@ -41,7 +41,10 @@ declare const PutEnforcedGuardrailConfigurationCommand_base: {
|
|
|
41
41
|
* guardrailInferenceConfig: { // AccountEnforcedGuardrailInferenceInputConfiguration
|
|
42
42
|
* guardrailIdentifier: "STRING_VALUE", // required
|
|
43
43
|
* guardrailVersion: "STRING_VALUE", // required
|
|
44
|
-
*
|
|
44
|
+
* selectiveContentGuarding: { // SelectiveContentGuarding
|
|
45
|
+
* system: "SELECTIVE" || "COMPREHENSIVE",
|
|
46
|
+
* messages: "SELECTIVE" || "COMPREHENSIVE",
|
|
47
|
+
* },
|
|
45
48
|
* modelEnforcement: { // ModelEnforcement
|
|
46
49
|
* includedModels: [ // IncludedModelsList // required
|
|
47
50
|
* "STRING_VALUE",
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockClient";
|
|
4
|
+
import type { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_1";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link PutResourcePolicyCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link PutResourcePolicyCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const PutResourcePolicyCommand_base: {
|
|
25
|
+
new (input: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: PutResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput, BedrockClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Adds a resource policy for a Bedrock resource.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockClient, PutResourcePolicyCommand } from "@aws-sdk/client-bedrock"; // ES Modules import
|
|
35
|
+
* // const { BedrockClient, PutResourcePolicyCommand } = require("@aws-sdk/client-bedrock"); // CommonJS import
|
|
36
|
+
* // import type { BedrockClientConfig } from "@aws-sdk/client-bedrock";
|
|
37
|
+
* const config = {}; // type is BedrockClientConfig
|
|
38
|
+
* const client = new BedrockClient(config);
|
|
39
|
+
* const input = { // PutResourcePolicyRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* resourcePolicy: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new PutResourcePolicyCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // PutResourcePolicyResponse
|
|
46
|
+
* // resourceArn: "STRING_VALUE",
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput}
|
|
52
|
+
* @returns {@link PutResourcePolicyCommandOutput}
|
|
53
|
+
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link BedrockClientResolvedConfig | config} for BedrockClient'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>Error occurred because of a conflict while 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 ThrottlingException} (client fault)
|
|
67
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link BedrockServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from Bedrock service.</p>
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
export declare class PutResourcePolicyCommand extends PutResourcePolicyCommand_base {
|
|
79
|
+
/** @internal type navigation helper, not in runtime. */
|
|
80
|
+
protected static __types: {
|
|
81
|
+
api: {
|
|
82
|
+
input: PutResourcePolicyRequest;
|
|
83
|
+
output: PutResourcePolicyResponse;
|
|
84
|
+
};
|
|
85
|
+
sdk: {
|
|
86
|
+
input: PutResourcePolicyCommandInput;
|
|
87
|
+
output: PutResourcePolicyCommandOutput;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./DeleteMarketplaceModelEndpointCommand";
|
|
|
31
31
|
export * from "./DeleteModelInvocationLoggingConfigurationCommand";
|
|
32
32
|
export * from "./DeletePromptRouterCommand";
|
|
33
33
|
export * from "./DeleteProvisionedModelThroughputCommand";
|
|
34
|
+
export * from "./DeleteResourcePolicyCommand";
|
|
34
35
|
export * from "./DeregisterMarketplaceModelEndpointCommand";
|
|
35
36
|
export * from "./ExportAutomatedReasoningPolicyVersionCommand";
|
|
36
37
|
export * from "./GetAutomatedReasoningPolicyAnnotationsCommand";
|
|
@@ -56,6 +57,7 @@ export * from "./GetModelInvocationJobCommand";
|
|
|
56
57
|
export * from "./GetModelInvocationLoggingConfigurationCommand";
|
|
57
58
|
export * from "./GetPromptRouterCommand";
|
|
58
59
|
export * from "./GetProvisionedModelThroughputCommand";
|
|
60
|
+
export * from "./GetResourcePolicyCommand";
|
|
59
61
|
export * from "./GetUseCaseForModelAccessCommand";
|
|
60
62
|
export * from "./ListAutomatedReasoningPoliciesCommand";
|
|
61
63
|
export * from "./ListAutomatedReasoningPolicyBuildWorkflowsCommand";
|
|
@@ -80,6 +82,7 @@ export * from "./ListProvisionedModelThroughputsCommand";
|
|
|
80
82
|
export * from "./ListTagsForResourceCommand";
|
|
81
83
|
export * from "./PutEnforcedGuardrailConfigurationCommand";
|
|
82
84
|
export * from "./PutModelInvocationLoggingConfigurationCommand";
|
|
85
|
+
export * from "./PutResourcePolicyCommand";
|
|
83
86
|
export * from "./PutUseCaseForModelAccessCommand";
|
|
84
87
|
export * from "./RegisterMarketplaceModelEndpointCommand";
|
|
85
88
|
export * from "./StartAutomatedReasoningPolicyBuildWorkflowCommand";
|