@aws-sdk/client-bedrock 3.828.0 → 3.830.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +218 -153
  3. package/dist-es/Bedrock.js +2 -0
  4. package/dist-es/commands/CreateCustomModelCommand.js +22 -0
  5. package/dist-es/commands/CreateEvaluationJobCommand.js +1 -1
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/models_0.js +105 -141
  8. package/dist-es/models/models_1.js +43 -1
  9. package/dist-es/protocols/Aws_restJson1.js +39 -1
  10. package/dist-types/Bedrock.d.ts +7 -0
  11. package/dist-types/BedrockClient.d.ts +3 -2
  12. package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +1 -3
  13. package/dist-types/commands/CreateCustomModelCommand.d.ts +143 -0
  14. package/dist-types/commands/CreateEvaluationJobCommand.d.ts +2 -1
  15. package/dist-types/commands/CreateGuardrailCommand.d.ts +2 -34
  16. package/dist-types/commands/CreateGuardrailVersionCommand.d.ts +1 -2
  17. package/dist-types/commands/CreateInferenceProfileCommand.d.ts +1 -2
  18. package/dist-types/commands/CreateMarketplaceModelEndpointCommand.d.ts +1 -2
  19. package/dist-types/commands/CreateModelCopyJobCommand.d.ts +1 -2
  20. package/dist-types/commands/CreateModelCustomizationJobCommand.d.ts +3 -12
  21. package/dist-types/commands/CreateModelImportJobCommand.d.ts +2 -5
  22. package/dist-types/commands/CreateModelInvocationJobCommand.d.ts +1 -2
  23. package/dist-types/commands/CreatePromptRouterCommand.d.ts +1 -2
  24. package/dist-types/commands/CreateProvisionedModelThroughputCommand.d.ts +1 -2
  25. package/dist-types/commands/DeleteGuardrailCommand.d.ts +1 -9
  26. package/dist-types/commands/DeleteImportedModelCommand.d.ts +1 -3
  27. package/dist-types/commands/DeregisterMarketplaceModelEndpointCommand.d.ts +1 -3
  28. package/dist-types/commands/GetCustomModelCommand.d.ts +6 -4
  29. package/dist-types/commands/GetModelCustomizationJobCommand.d.ts +3 -4
  30. package/dist-types/commands/GetModelImportJobCommand.d.ts +1 -3
  31. package/dist-types/commands/GetModelInvocationJobCommand.d.ts +1 -2
  32. package/dist-types/commands/ListCustomModelsCommand.d.ts +4 -3
  33. package/dist-types/commands/ListGuardrailsCommand.d.ts +1 -2
  34. package/dist-types/commands/ListImportedModelsCommand.d.ts +1 -3
  35. package/dist-types/commands/ListMarketplaceModelEndpointsCommand.d.ts +1 -2
  36. package/dist-types/commands/ListModelCopyJobsCommand.d.ts +1 -2
  37. package/dist-types/commands/ListModelCustomizationJobsCommand.d.ts +3 -5
  38. package/dist-types/commands/ListModelImportJobsCommand.d.ts +1 -3
  39. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
  40. package/dist-types/commands/RegisterMarketplaceModelEndpointCommand.d.ts +1 -2
  41. package/dist-types/commands/TagResourceCommand.d.ts +2 -3
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateGuardrailCommand.d.ts +1 -37
  44. package/dist-types/commands/UpdateMarketplaceModelEndpointCommand.d.ts +1 -2
  45. package/dist-types/commands/index.d.ts +1 -0
  46. package/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  47. package/dist-types/models/models_0.d.ts +1188 -2462
  48. package/dist-types/models/models_1.d.ts +153 -3
  49. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  50. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  51. package/dist-types/runtimeConfig.native.d.ts +2 -2
  52. package/dist-types/ts3.4/Bedrock.d.ts +17 -0
  53. package/dist-types/ts3.4/BedrockClient.d.ts +6 -0
  54. package/dist-types/ts3.4/commands/CreateCustomModelCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/CreateEvaluationJobCommand.d.ts +2 -4
  56. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  58. package/dist-types/ts3.4/models/models_0.d.ts +255 -308
  59. package/dist-types/ts3.4/models/models_1.d.ts +79 -1
  60. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  61. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  62. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  63. package/package.json +2 -2
@@ -27,8 +27,7 @@ declare const ListTagsForResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>List the tags associated with the specified resource.</p>
31
- * <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
30
+ * <p>List the tags associated with the specified resource.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -27,8 +27,7 @@ declare const RegisterMarketplaceModelEndpointCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with
31
- * Amazon Bedrock APIs.</p>
30
+ * <p>Registers an existing Amazon SageMaker endpoint with Amazon Bedrock Marketplace, allowing it to be used with Amazon Bedrock APIs.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const TagResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Associate tags with a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
30
+ * <p>Associate tags with a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -68,8 +68,7 @@ declare const TagResourceCommand_base: {
68
68
  * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
69
69
  *
70
70
  * @throws {@link TooManyTagsException} (client fault)
71
- * <p>The request contains more tags than can be associated with a resource (50 tags per resource).
72
- * The maximum number of tags includes both existing tags and those included in your current request. </p>
71
+ * <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>
73
72
  *
74
73
  * @throws {@link ValidationException} (client fault)
75
74
  * <p>Input validation failed. Check your request parameters and retry the request.</p>
@@ -27,7 +27,7 @@ declare const UntagResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Remove one or more tags from a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
30
+ * <p>Remove one or more tags from a resource. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Tagging resources</a> in the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html">Amazon Bedrock User Guide</a>.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,43 +27,7 @@ declare const UpdateGuardrailCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates a guardrail with the values you specify.</p>
31
- * <ul>
32
- * <li>
33
- * <p>Specify a <code>name</code> and optional <code>description</code>.</p>
34
- * </li>
35
- * <li>
36
- * <p>Specify messages for when the guardrail successfully blocks a prompt or a model response in the <code>blockedInputMessaging</code> and <code>blockedOutputsMessaging</code> fields.</p>
37
- * </li>
38
- * <li>
39
- * <p>Specify topics for the guardrail to deny in the <code>topicPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailTopicConfig.html">GuardrailTopicConfig</a> object in the <code>topicsConfig</code> list pertains to one topic.</p>
40
- * <ul>
41
- * <li>
42
- * <p>Give a <code>name</code> and <code>description</code> so that the guardrail can properly identify the topic.</p>
43
- * </li>
44
- * <li>
45
- * <p>Specify <code>DENY</code> in the <code>type</code> field.</p>
46
- * </li>
47
- * <li>
48
- * <p>(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the <code>examples</code> list.</p>
49
- * </li>
50
- * </ul>
51
- * </li>
52
- * <li>
53
- * <p>Specify filter strengths for the harmful categories defined in Amazon Bedrock in the <code>contentPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a> object in the <code>filtersConfig</code> list pertains to a harmful category. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-content-filters">Content filters</a>. For more information about the fields in a content filter, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p>
54
- * <ul>
55
- * <li>
56
- * <p>Specify the category in the <code>type</code> field.</p>
57
- * </li>
58
- * <li>
59
- * <p>Specify the strength of the filter for prompts in the <code>inputStrength</code> field and for model responses in the <code>strength</code> field of the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p>
60
- * </li>
61
- * </ul>
62
- * </li>
63
- * <li>
64
- * <p>(Optional) For security, include the ARN of a KMS key in the <code>kmsKeyId</code> field.</p>
65
- * </li>
66
- * </ul>
30
+ * <p>Updates a guardrail with the values you specify.</p> <ul> <li> <p>Specify a <code>name</code> and optional <code>description</code>.</p> </li> <li> <p>Specify messages for when the guardrail successfully blocks a prompt or a model response in the <code>blockedInputMessaging</code> and <code>blockedOutputsMessaging</code> fields.</p> </li> <li> <p>Specify topics for the guardrail to deny in the <code>topicPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailTopicConfig.html">GuardrailTopicConfig</a> object in the <code>topicsConfig</code> list pertains to one topic.</p> <ul> <li> <p>Give a <code>name</code> and <code>description</code> so that the guardrail can properly identify the topic.</p> </li> <li> <p>Specify <code>DENY</code> in the <code>type</code> field.</p> </li> <li> <p>(Optional) Provide up to five prompts that you would categorize as belonging to the topic in the <code>examples</code> list.</p> </li> </ul> </li> <li> <p>Specify filter strengths for the harmful categories defined in Amazon Bedrock in the <code>contentPolicyConfig</code> object. Each <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a> object in the <code>filtersConfig</code> list pertains to a harmful category. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-content-filters">Content filters</a>. For more information about the fields in a content filter, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p> <ul> <li> <p>Specify the category in the <code>type</code> field.</p> </li> <li> <p>Specify the strength of the filter for prompts in the <code>inputStrength</code> field and for model responses in the <code>strength</code> field of the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_GuardrailContentFilterConfig.html">GuardrailContentFilterConfig</a>.</p> </li> </ul> </li> <li> <p>(Optional) For security, include the ARN of a KMS key in the <code>kmsKeyId</code> field.</p> </li> </ul>
67
31
  * @example
68
32
  * Use a bare-bones client and the command you need to make an API call.
69
33
  * ```javascript
@@ -27,8 +27,7 @@ declare const UpdateMarketplaceModelEndpointCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates the configuration of an existing endpoint for a model from Amazon Bedrock
31
- * Marketplace.</p>
30
+ * <p>Updates the configuration of an existing endpoint for a model from Amazon Bedrock Marketplace.</p>
32
31
  * @example
33
32
  * Use a bare-bones client and the command you need to make an API call.
34
33
  * ```javascript
@@ -1,4 +1,5 @@
1
1
  export * from "./BatchDeleteEvaluationJobCommand";
2
+ export * from "./CreateCustomModelCommand";
2
3
  export * from "./CreateEvaluationJobCommand";
3
4
  export * from "./CreateGuardrailCommand";
4
5
  export * from "./CreateGuardrailVersionCommand";
@@ -3,9 +3,9 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provi
3
3
  * @public
4
4
  */
5
5
  export interface ClientInputEndpointParameters {
6
- region?: string | Provider<string>;
7
- useDualstackEndpoint?: boolean | Provider<boolean>;
8
- useFipsEndpoint?: boolean | Provider<boolean>;
6
+ region?: string | undefined | Provider<string | undefined>;
7
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
9
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
10
  }
11
11
  export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
@@ -31,8 +31,8 @@ export declare const commonParams: {
31
31
  };
32
32
  };
33
33
  export interface EndpointParameters extends __EndpointParameters {
34
- Region?: string;
35
- UseDualStack?: boolean;
36
- UseFIPS?: boolean;
37
- Endpoint?: string;
34
+ Region?: string | undefined;
35
+ UseDualStack?: boolean | undefined;
36
+ UseFIPS?: boolean | undefined;
37
+ Endpoint?: string | undefined;
38
38
  }