@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
|
@@ -56,7 +56,8 @@ import {
|
|
|
56
56
|
GuardrailContextualGroundingPolicyConfig,
|
|
57
57
|
GuardrailCrossRegionConfig,
|
|
58
58
|
GuardrailCrossRegionDetails,
|
|
59
|
-
|
|
59
|
+
GuardrailPiiEntity,
|
|
60
|
+
GuardrailRegex,
|
|
60
61
|
GuardrailSensitiveInformationPolicyConfig,
|
|
61
62
|
GuardrailTopicPolicyConfig,
|
|
62
63
|
GuardrailWordPolicyConfig,
|
|
@@ -72,6 +73,10 @@ import {
|
|
|
72
73
|
VectorSearchRerankingConfiguration,
|
|
73
74
|
VpcConfig,
|
|
74
75
|
} from "./models_0";
|
|
76
|
+
export interface GuardrailSensitiveInformationPolicy {
|
|
77
|
+
piiEntities?: GuardrailPiiEntity[] | undefined;
|
|
78
|
+
regexes?: GuardrailRegex[] | undefined;
|
|
79
|
+
}
|
|
75
80
|
export interface GuardrailTopicsTier {
|
|
76
81
|
tierName: GuardrailTopicsTierName | undefined;
|
|
77
82
|
}
|
|
@@ -723,6 +728,23 @@ export interface UpdateProvisionedModelThroughputRequest {
|
|
|
723
728
|
desiredModelId?: string | undefined;
|
|
724
729
|
}
|
|
725
730
|
export interface UpdateProvisionedModelThroughputResponse {}
|
|
731
|
+
export interface DeleteResourcePolicyRequest {
|
|
732
|
+
resourceArn: string | undefined;
|
|
733
|
+
}
|
|
734
|
+
export interface DeleteResourcePolicyResponse {}
|
|
735
|
+
export interface GetResourcePolicyRequest {
|
|
736
|
+
resourceArn: string | undefined;
|
|
737
|
+
}
|
|
738
|
+
export interface GetResourcePolicyResponse {
|
|
739
|
+
resourcePolicy?: string | undefined;
|
|
740
|
+
}
|
|
741
|
+
export interface PutResourcePolicyRequest {
|
|
742
|
+
resourceArn: string | undefined;
|
|
743
|
+
resourcePolicy: string | undefined;
|
|
744
|
+
}
|
|
745
|
+
export interface PutResourcePolicyResponse {
|
|
746
|
+
resourceArn?: string | undefined;
|
|
747
|
+
}
|
|
726
748
|
export interface CreateFoundationModelAgreementRequest {
|
|
727
749
|
offerToken: string | undefined;
|
|
728
750
|
modelId: string | undefined;
|
|
@@ -176,6 +176,8 @@ export declare var DeletePromptRouterRequest$: StaticStructureSchema;
|
|
|
176
176
|
export declare var DeletePromptRouterResponse$: StaticStructureSchema;
|
|
177
177
|
export declare var DeleteProvisionedModelThroughputRequest$: StaticStructureSchema;
|
|
178
178
|
export declare var DeleteProvisionedModelThroughputResponse$: StaticStructureSchema;
|
|
179
|
+
export declare var DeleteResourcePolicyRequest$: StaticStructureSchema;
|
|
180
|
+
export declare var DeleteResourcePolicyResponse$: StaticStructureSchema;
|
|
179
181
|
export declare var DeregisterMarketplaceModelEndpointRequest$: StaticStructureSchema;
|
|
180
182
|
export declare var DeregisterMarketplaceModelEndpointResponse$: StaticStructureSchema;
|
|
181
183
|
export declare var DimensionalPriceRate$: StaticStructureSchema;
|
|
@@ -248,6 +250,8 @@ export declare var GetPromptRouterRequest$: StaticStructureSchema;
|
|
|
248
250
|
export declare var GetPromptRouterResponse$: StaticStructureSchema;
|
|
249
251
|
export declare var GetProvisionedModelThroughputRequest$: StaticStructureSchema;
|
|
250
252
|
export declare var GetProvisionedModelThroughputResponse$: StaticStructureSchema;
|
|
253
|
+
export declare var GetResourcePolicyRequest$: StaticStructureSchema;
|
|
254
|
+
export declare var GetResourcePolicyResponse$: StaticStructureSchema;
|
|
251
255
|
export declare var GetUseCaseForModelAccessRequest$: StaticStructureSchema;
|
|
252
256
|
export declare var GetUseCaseForModelAccessResponse$: StaticStructureSchema;
|
|
253
257
|
export declare var GuardrailAutomatedReasoningPolicy$: StaticStructureSchema;
|
|
@@ -365,6 +369,8 @@ export declare var PutEnforcedGuardrailConfigurationRequest$: StaticStructureSch
|
|
|
365
369
|
export declare var PutEnforcedGuardrailConfigurationResponse$: StaticStructureSchema;
|
|
366
370
|
export declare var PutModelInvocationLoggingConfigurationRequest$: StaticStructureSchema;
|
|
367
371
|
export declare var PutModelInvocationLoggingConfigurationResponse$: StaticStructureSchema;
|
|
372
|
+
export declare var PutResourcePolicyRequest$: StaticStructureSchema;
|
|
373
|
+
export declare var PutResourcePolicyResponse$: StaticStructureSchema;
|
|
368
374
|
export declare var PutUseCaseForModelAccessRequest$: StaticStructureSchema;
|
|
369
375
|
export declare var PutUseCaseForModelAccessResponse$: StaticStructureSchema;
|
|
370
376
|
export declare var QueryTransformationConfiguration$: StaticStructureSchema;
|
|
@@ -381,6 +387,7 @@ export declare var S3Config$: StaticStructureSchema;
|
|
|
381
387
|
export declare var S3DataSource$: StaticStructureSchema;
|
|
382
388
|
export declare var S3ObjectDoc$: StaticStructureSchema;
|
|
383
389
|
export declare var SageMakerEndpoint$: StaticStructureSchema;
|
|
390
|
+
export declare var SelectiveContentGuarding$: StaticStructureSchema;
|
|
384
391
|
export declare var StartAutomatedReasoningPolicyBuildWorkflowRequest$: StaticStructureSchema;
|
|
385
392
|
export declare var StartAutomatedReasoningPolicyBuildWorkflowResponse$: StaticStructureSchema;
|
|
386
393
|
export declare var StartAutomatedReasoningPolicyTestWorkflowRequest$: StaticStructureSchema;
|
|
@@ -491,6 +498,7 @@ export declare var DeleteMarketplaceModelEndpoint$: StaticOperationSchema;
|
|
|
491
498
|
export declare var DeleteModelInvocationLoggingConfiguration$: StaticOperationSchema;
|
|
492
499
|
export declare var DeletePromptRouter$: StaticOperationSchema;
|
|
493
500
|
export declare var DeleteProvisionedModelThroughput$: StaticOperationSchema;
|
|
501
|
+
export declare var DeleteResourcePolicy$: StaticOperationSchema;
|
|
494
502
|
export declare var DeregisterMarketplaceModelEndpoint$: StaticOperationSchema;
|
|
495
503
|
export declare var ExportAutomatedReasoningPolicyVersion$: StaticOperationSchema;
|
|
496
504
|
export declare var GetAutomatedReasoningPolicy$: StaticOperationSchema;
|
|
@@ -516,6 +524,7 @@ export declare var GetModelInvocationJob$: StaticOperationSchema;
|
|
|
516
524
|
export declare var GetModelInvocationLoggingConfiguration$: StaticOperationSchema;
|
|
517
525
|
export declare var GetPromptRouter$: StaticOperationSchema;
|
|
518
526
|
export declare var GetProvisionedModelThroughput$: StaticOperationSchema;
|
|
527
|
+
export declare var GetResourcePolicy$: StaticOperationSchema;
|
|
519
528
|
export declare var GetUseCaseForModelAccess$: StaticOperationSchema;
|
|
520
529
|
export declare var ListAutomatedReasoningPolicies$: StaticOperationSchema;
|
|
521
530
|
export declare var ListAutomatedReasoningPolicyBuildWorkflows$: StaticOperationSchema;
|
|
@@ -540,6 +549,7 @@ export declare var ListProvisionedModelThroughputs$: StaticOperationSchema;
|
|
|
540
549
|
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
541
550
|
export declare var PutEnforcedGuardrailConfiguration$: StaticOperationSchema;
|
|
542
551
|
export declare var PutModelInvocationLoggingConfiguration$: StaticOperationSchema;
|
|
552
|
+
export declare var PutResourcePolicy$: StaticOperationSchema;
|
|
543
553
|
export declare var PutUseCaseForModelAccess$: StaticOperationSchema;
|
|
544
554
|
export declare var RegisterMarketplaceModelEndpoint$: StaticOperationSchema;
|
|
545
555
|
export declare var StartAutomatedReasoningPolicyBuildWorkflow$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1024.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.9",
|
|
29
29
|
"@aws-sdk/middleware-user-agent": "^3.972.28",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.10",
|
|
31
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
+
"@aws-sdk/token-providers": "3.1024.0",
|
|
32
32
|
"@aws-sdk/types": "^3.973.6",
|
|
33
33
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|