aws-sdk 2.1603.0 → 2.1605.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/apis/bedrock-2023-04-20.min.json +1059 -90
  3. package/apis/bedrock-2023-04-20.paginators.json +12 -0
  4. package/apis/bedrock-agent-2023-06-05.min.json +105 -52
  5. package/apis/bedrock-agent-runtime-2023-07-26.min.json +265 -58
  6. package/apis/bedrock-runtime-2023-09-30.min.json +24 -0
  7. package/apis/ce-2017-10-25.min.json +2 -1
  8. package/apis/ec2-2016-11-15.min.json +139 -82
  9. package/apis/metadata.json +3 -0
  10. package/apis/payment-cryptography-2021-09-14.min.json +219 -189
  11. package/apis/payment-cryptography-2021-09-14.waiters2.json +5 -0
  12. package/apis/route53profiles-2018-05-10.examples.json +5 -0
  13. package/apis/route53profiles-2018-05-10.min.json +598 -0
  14. package/apis/route53profiles-2018-05-10.paginators.json +22 -0
  15. package/apis/sagemaker-2017-07-24.min.json +87 -63
  16. package/apis/servicediscovery-2017-03-14.examples.json +86 -0
  17. package/apis/transfer-2018-11-05.min.json +32 -3
  18. package/apis/workspaces-web-2020-07-08.min.json +84 -43
  19. package/clients/all.d.ts +1 -0
  20. package/clients/all.js +2 -1
  21. package/clients/bedrock.d.ts +1082 -118
  22. package/clients/bedrockagent.d.ts +80 -2
  23. package/clients/bedrockagentruntime.d.ts +252 -5
  24. package/clients/bedrockruntime.d.ts +37 -10
  25. package/clients/costexplorer.d.ts +11 -7
  26. package/clients/ec2.d.ts +103 -39
  27. package/clients/paymentcryptography.d.ts +175 -147
  28. package/clients/paymentcryptography.js +1 -0
  29. package/clients/pi.d.ts +5 -5
  30. package/clients/rds.d.ts +1 -1
  31. package/clients/redshiftserverless.d.ts +5 -5
  32. package/clients/route53profiles.d.ts +614 -0
  33. package/clients/route53profiles.js +18 -0
  34. package/clients/sagemaker.d.ts +17 -10
  35. package/clients/servicediscovery.d.ts +4 -4
  36. package/clients/transfer.d.ts +44 -5
  37. package/clients/workspacesweb.d.ts +89 -23
  38. package/dist/aws-sdk-core-react-native.js +2 -2
  39. package/dist/aws-sdk-react-native.js +297 -253
  40. package/dist/aws-sdk.js +147 -86
  41. package/dist/aws-sdk.min.js +70 -70
  42. package/lib/config_service_placeholders.d.ts +2 -0
  43. package/lib/core.js +1 -1
  44. package/package.json +1 -1
@@ -13,31 +13,33 @@ declare class BedrockRuntime extends Service {
13
13
  constructor(options?: BedrockRuntime.Types.ClientConfiguration)
14
14
  config: Config & BedrockRuntime.Types.ClientConfiguration;
15
15
  /**
16
- * Invokes the specified Bedrock model to run inference using the input provided in the request body. You use InvokeModel to run inference for text models, image models, and embedding models. For more information, see Run inference in the Bedrock User Guide. For example requests, see Examples (after the Errors section).
16
+ * Invokes the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. You use model inference to generate text, images, and embeddings. For example code, see Invoke model code examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
17
17
  */
18
18
  invokeModel(params: BedrockRuntime.Types.InvokeModelRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.InvokeModelResponse) => void): Request<BedrockRuntime.Types.InvokeModelResponse, AWSError>;
19
19
  /**
20
- * Invokes the specified Bedrock model to run inference using the input provided in the request body. You use InvokeModel to run inference for text models, image models, and embedding models. For more information, see Run inference in the Bedrock User Guide. For example requests, see Examples (after the Errors section).
20
+ * Invokes the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. You use model inference to generate text, images, and embeddings. For example code, see Invoke model code examples in the Amazon Bedrock User Guide. This operation requires permission for the bedrock:InvokeModel action.
21
21
  */
22
22
  invokeModel(callback?: (err: AWSError, data: BedrockRuntime.Types.InvokeModelResponse) => void): Request<BedrockRuntime.Types.InvokeModelResponse, AWSError>;
23
23
  /**
24
- * Invoke the specified Bedrock model to run inference using the input provided. Return the response in a stream. For more information, see Run inference in the Bedrock User Guide. For an example request and response, see Examples (after the Errors section).
24
+ * Invoke the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. The response is returned in a stream. To see if a model supports streaming, call GetFoundationModel and check the responseStreamingSupported field in the response. The CLI doesn't support InvokeModelWithResponseStream. For example code, see Invoke model with streaming code example in the Amazon Bedrock User Guide. This operation requires permissions to perform the bedrock:InvokeModelWithResponseStream action.
25
25
  */
26
26
  invokeModelWithResponseStream(params: BedrockRuntime.Types.InvokeModelWithResponseStreamRequest, callback?: (err: AWSError, data: BedrockRuntime.Types.InvokeModelWithResponseStreamResponse) => void): Request<BedrockRuntime.Types.InvokeModelWithResponseStreamResponse, AWSError>;
27
27
  /**
28
- * Invoke the specified Bedrock model to run inference using the input provided. Return the response in a stream. For more information, see Run inference in the Bedrock User Guide. For an example request and response, see Examples (after the Errors section).
28
+ * Invoke the specified Amazon Bedrock model to run inference using the prompt and inference parameters provided in the request body. The response is returned in a stream. To see if a model supports streaming, call GetFoundationModel and check the responseStreamingSupported field in the response. The CLI doesn't support InvokeModelWithResponseStream. For example code, see Invoke model with streaming code example in the Amazon Bedrock User Guide. This operation requires permissions to perform the bedrock:InvokeModelWithResponseStream action.
29
29
  */
30
30
  invokeModelWithResponseStream(callback?: (err: AWSError, data: BedrockRuntime.Types.InvokeModelWithResponseStreamResponse) => void): Request<BedrockRuntime.Types.InvokeModelWithResponseStreamResponse, AWSError>;
31
31
  }
32
32
  declare namespace BedrockRuntime {
33
33
  export type Body = Buffer|Uint8Array|Blob|string;
34
+ export type GuardrailIdentifier = string;
35
+ export type GuardrailVersion = string;
34
36
  export interface InternalServerException {
35
37
  message?: NonBlankString;
36
38
  }
37
39
  export type InvokeModelIdentifier = string;
38
40
  export interface InvokeModelRequest {
39
41
  /**
40
- * Input data in the format specified in the content-type request header. To see the format and content of this field for different models, refer to Inference parameters.
42
+ * The prompt and inference parameters in the format specified in the contentType in the header. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
41
43
  */
42
44
  body: Body;
43
45
  /**
@@ -49,13 +51,25 @@ declare namespace BedrockRuntime {
49
51
  */
50
52
  accept?: MimeType;
51
53
  /**
52
- * Identifier of the model.
54
+ * The unique identifier of the model to invoke to run inference. The modelId to provide depends on the type of model that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.
53
55
  */
54
56
  modelId: InvokeModelIdentifier;
57
+ /**
58
+ * Specifies whether to enable or disable the Bedrock trace. If enabled, you can see the full Bedrock trace.
59
+ */
60
+ trace?: Trace;
61
+ /**
62
+ * The unique identifier of the guardrail that you want to use. If you don't provide a value, no guardrail is applied to the invocation. An error will be thrown in the following situations. You don't provide a guardrail identifier but you specify the amazon-bedrock-guardrailConfig field in the request body. You enable the guardrail but the contentType isn't application/json. You provide a guardrail identifier, but guardrailVersion isn't specified.
63
+ */
64
+ guardrailIdentifier?: GuardrailIdentifier;
65
+ /**
66
+ * The version number for the guardrail. The value can also be DRAFT.
67
+ */
68
+ guardrailVersion?: GuardrailVersion;
55
69
  }
56
70
  export interface InvokeModelResponse {
57
71
  /**
58
- * Inference response from the model in the format specified in the content-type header field. To see the format and content of this field for different models, refer to Inference parameters.
72
+ * Inference response from the model in the format specified in the contentType header. To see the format and content of the request and response bodies for different models, refer to Inference parameters.
59
73
  */
60
74
  body: Body;
61
75
  /**
@@ -65,7 +79,7 @@ declare namespace BedrockRuntime {
65
79
  }
66
80
  export interface InvokeModelWithResponseStreamRequest {
67
81
  /**
68
- * Inference input in the format specified by the content-type. To see the format and content of this field for different models, refer to Inference parameters.
82
+ * The prompt and inference parameters in the format specified in the contentType in the header. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.
69
83
  */
70
84
  body: Body;
71
85
  /**
@@ -77,13 +91,25 @@ declare namespace BedrockRuntime {
77
91
  */
78
92
  accept?: MimeType;
79
93
  /**
80
- * Id of the model to invoke using the streaming request.
94
+ * The unique identifier of the model to invoke to run inference. The modelId to provide depends on the type of model that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide.
81
95
  */
82
96
  modelId: InvokeModelIdentifier;
97
+ /**
98
+ * Specifies whether to enable or disable the Bedrock trace. If enabled, you can see the full Bedrock trace.
99
+ */
100
+ trace?: Trace;
101
+ /**
102
+ * The unique identifier of the guardrail that you want to use. If you don't provide a value, no guardrail is applied to the invocation. An error is thrown in the following situations. You don't provide a guardrail identifier but you specify the amazon-bedrock-guardrailConfig field in the request body. You enable the guardrail but the contentType isn't application/json. You provide a guardrail identifier, but guardrailVersion isn't specified.
103
+ */
104
+ guardrailIdentifier?: GuardrailIdentifier;
105
+ /**
106
+ * The version number for the guardrail. The value can also be DRAFT.
107
+ */
108
+ guardrailVersion?: GuardrailVersion;
83
109
  }
84
110
  export interface InvokeModelWithResponseStreamResponse {
85
111
  /**
86
- * Inference response from the model in the format specified by Content-Type. To see the format and content of this field for different models, refer to Inference parameters.
112
+ * Inference response from the model in the format specified by the contentType header. To see the format and content of this field for different models, refer to Inference parameters.
87
113
  */
88
114
  body: ResponseStream;
89
115
  /**
@@ -119,6 +145,7 @@ declare namespace BedrockRuntime {
119
145
  export interface ThrottlingException {
120
146
  message?: NonBlankString;
121
147
  }
148
+ export type Trace = "ENABLED"|"DISABLED"|string;
122
149
  export interface ValidationException {
123
150
  message?: NonBlankString;
124
151
  }
@@ -108,11 +108,11 @@ declare class CostExplorer extends Service {
108
108
  */
109
109
  getCostAndUsage(callback?: (err: AWSError, data: CostExplorer.Types.GetCostAndUsageResponse) => void): Request<CostExplorer.Types.GetCostAndUsageResponse, AWSError>;
110
110
  /**
111
- * Retrieves cost and usage metrics with resources for your account. You can specify which cost and usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts. This API is currently available for the Amazon Elastic Compute Cloud Compute service only. This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information about how to access the Settings page, see Controlling Access for Cost Explorer in the Billing and Cost Management User Guide.
111
+ * Retrieves cost and usage metrics with resources for your account. You can specify which cost and usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts. Hourly granularity is only available for EC2-Instances (Elastic Compute Cloud) resource-level data. All other resource-level data is available at daily granularity. This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information about how to access the Settings page, see Controlling Access for Cost Explorer in the Billing and Cost Management User Guide.
112
112
  */
113
113
  getCostAndUsageWithResources(params: CostExplorer.Types.GetCostAndUsageWithResourcesRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetCostAndUsageWithResourcesResponse) => void): Request<CostExplorer.Types.GetCostAndUsageWithResourcesResponse, AWSError>;
114
114
  /**
115
- * Retrieves cost and usage metrics with resources for your account. You can specify which cost and usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts. This API is currently available for the Amazon Elastic Compute Cloud Compute service only. This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information about how to access the Settings page, see Controlling Access for Cost Explorer in the Billing and Cost Management User Guide.
115
+ * Retrieves cost and usage metrics with resources for your account. You can specify which cost and usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts. Hourly granularity is only available for EC2-Instances (Elastic Compute Cloud) resource-level data. All other resource-level data is available at daily granularity. This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information about how to access the Settings page, see Controlling Access for Cost Explorer in the Billing and Cost Management User Guide.
116
116
  */
117
117
  getCostAndUsageWithResources(callback?: (err: AWSError, data: CostExplorer.Types.GetCostAndUsageWithResourcesResponse) => void): Request<CostExplorer.Types.GetCostAndUsageWithResourcesResponse, AWSError>;
118
118
  /**
@@ -2678,13 +2678,17 @@ declare namespace CostExplorer {
2678
2678
  export type ReservationPurchaseRecommendationDetails = ReservationPurchaseRecommendationDetail[];
2679
2679
  export interface ReservationPurchaseRecommendationMetadata {
2680
2680
  /**
2681
- * The ID for this specific recommendation.
2681
+ * The ID for the recommendation.
2682
2682
  */
2683
2683
  RecommendationId?: GenericString;
2684
2684
  /**
2685
- * The timestamp for when Amazon Web Services made this recommendation.
2685
+ * The timestamp for when Amazon Web Services made the recommendation.
2686
2686
  */
2687
2687
  GenerationTimestamp?: GenericString;
2688
+ /**
2689
+ * Additional metadata that might be applicable to the recommendation.
2690
+ */
2691
+ AdditionalMetadata?: GenericString;
2688
2692
  }
2689
2693
  export interface ReservationPurchaseRecommendationSummary {
2690
2694
  /**
@@ -2806,15 +2810,15 @@ declare namespace CostExplorer {
2806
2810
  export type RightsizingRecommendationList = RightsizingRecommendation[];
2807
2811
  export interface RightsizingRecommendationMetadata {
2808
2812
  /**
2809
- * The ID for this specific recommendation.
2813
+ * The ID for the recommendation.
2810
2814
  */
2811
2815
  RecommendationId?: GenericString;
2812
2816
  /**
2813
- * The timestamp for when Amazon Web Services made this recommendation.
2817
+ * The timestamp for when Amazon Web Services made the recommendation.
2814
2818
  */
2815
2819
  GenerationTimestamp?: GenericString;
2816
2820
  /**
2817
- * The number of days of previous usage that Amazon Web Services considers when making this recommendation.
2821
+ * The number of days of previous usage that Amazon Web Services considers when making the recommendation.
2818
2822
  */
2819
2823
  LookbackPeriodInDays?: LookbackPeriodInDays;
2820
2824
  /**