aws-sdk 2.1448.0 → 2.1449.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/CHANGELOG.md +16 -1
- package/README.md +1 -1
- package/apis/chime-sdk-media-pipelines-2021-07-15.min.json +39 -21
- package/apis/cloudhsm-2014-05-30.min.json +60 -20
- package/apis/connectcampaigns-2021-01-30.min.json +103 -90
- package/apis/connectparticipant-2018-09-07.min.json +62 -0
- package/apis/customer-profiles-2020-08-15.min.json +269 -118
- package/apis/grafana-2020-08-18.min.json +2 -1
- package/apis/health-2016-08-04.min.json +116 -34
- package/apis/kafkaconnect-2021-09-14.min.json +38 -36
- package/apis/payment-cryptography-data-2022-02-03.min.json +29 -16
- package/apis/runtime.sagemaker-2017-05-13.min.json +104 -0
- package/clients/chimesdkmediapipelines.d.ts +28 -2
- package/clients/cloudwatchevents.d.ts +2 -2
- package/clients/connectcampaigns.d.ts +30 -23
- package/clients/connectparticipant.d.ts +71 -2
- package/clients/customerprofiles.d.ts +56 -52
- package/clients/ecs.d.ts +14 -14
- package/clients/health.d.ts +86 -2
- package/clients/ivs.d.ts +4 -4
- package/clients/kafkaconnect.d.ts +6 -8
- package/clients/paymentcryptographydata.d.ts +8 -6
- package/clients/sagemakerruntime.d.ts +86 -8
- package/dist/aws-sdk-core-react-native.js +1 -1
- package/dist/aws-sdk-react-native.js +11 -11
- package/dist/aws-sdk.js +63 -23
- package/dist/aws-sdk.min.js +89 -89
- package/lib/core.js +1 -1
- package/package.json +1 -1
package/clients/ivs.d.ts
CHANGED
@@ -407,7 +407,7 @@ declare namespace IVS {
|
|
407
407
|
*/
|
408
408
|
tags?: Tags;
|
409
409
|
/**
|
410
|
-
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately.
|
410
|
+
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types.
|
411
411
|
*/
|
412
412
|
type?: ChannelType;
|
413
413
|
}
|
@@ -451,7 +451,7 @@ declare namespace IVS {
|
|
451
451
|
*/
|
452
452
|
tags?: Tags;
|
453
453
|
/**
|
454
|
-
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately.
|
454
|
+
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types.
|
455
455
|
*/
|
456
456
|
type?: ChannelType;
|
457
457
|
}
|
@@ -487,7 +487,7 @@ declare namespace IVS {
|
|
487
487
|
*/
|
488
488
|
tags?: Tags;
|
489
489
|
/**
|
490
|
-
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately.
|
490
|
+
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types.
|
491
491
|
*/
|
492
492
|
type?: ChannelType;
|
493
493
|
}
|
@@ -1257,7 +1257,7 @@ declare namespace IVS {
|
|
1257
1257
|
*/
|
1258
1258
|
recordingConfigurationArn?: ChannelRecordingConfigurationArn;
|
1259
1259
|
/**
|
1260
|
-
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately.
|
1260
|
+
* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For details, see Channel Types.
|
1261
1261
|
*/
|
1262
1262
|
type?: ChannelType;
|
1263
1263
|
}
|
@@ -316,7 +316,7 @@ declare namespace KafkaConnect {
|
|
316
316
|
/**
|
317
317
|
* A map of keys to values that represent the configuration for the connector.
|
318
318
|
*/
|
319
|
-
connectorConfiguration:
|
319
|
+
connectorConfiguration: __sensitive__mapOf__string;
|
320
320
|
/**
|
321
321
|
* A summary description of the connector.
|
322
322
|
*/
|
@@ -420,7 +420,7 @@ declare namespace KafkaConnect {
|
|
420
420
|
/**
|
421
421
|
* Base64 encoded contents of connect-distributed.properties file.
|
422
422
|
*/
|
423
|
-
propertiesFileContent:
|
423
|
+
propertiesFileContent: __sensitiveString;
|
424
424
|
}
|
425
425
|
export interface CreateWorkerConfigurationResponse {
|
426
426
|
/**
|
@@ -590,7 +590,7 @@ declare namespace KafkaConnect {
|
|
590
590
|
/**
|
591
591
|
* A map of keys to values that represent the configuration for the connector.
|
592
592
|
*/
|
593
|
-
connectorConfiguration?:
|
593
|
+
connectorConfiguration?: __sensitive__mapOf__string;
|
594
594
|
/**
|
595
595
|
* A summary description of the connector.
|
596
596
|
*/
|
@@ -991,10 +991,6 @@ declare namespace KafkaConnect {
|
|
991
991
|
*/
|
992
992
|
message?: __string;
|
993
993
|
}
|
994
|
-
export type SyntheticCreateConnectorRequest__mapOf__string = {[key: string]: __string};
|
995
|
-
export type SyntheticCreateWorkerConfigurationRequest__string = string;
|
996
|
-
export type SyntheticDescribeConnectorResponse__mapOf__string = {[key: string]: __string};
|
997
|
-
export type SyntheticWorkerConfigurationRevisionDescription__string = string;
|
998
994
|
export interface UpdateConnectorRequest {
|
999
995
|
/**
|
1000
996
|
* The target capacity.
|
@@ -1071,7 +1067,7 @@ declare namespace KafkaConnect {
|
|
1071
1067
|
/**
|
1072
1068
|
* Base64 encoded contents of the connect-distributed.properties file.
|
1073
1069
|
*/
|
1074
|
-
propertiesFileContent?:
|
1070
|
+
propertiesFileContent?: __sensitiveString;
|
1075
1071
|
/**
|
1076
1072
|
* The description of a revision of the worker configuration.
|
1077
1073
|
*/
|
@@ -1154,6 +1150,8 @@ declare namespace KafkaConnect {
|
|
1154
1150
|
export type __listOf__string = __string[];
|
1155
1151
|
export type __long = number;
|
1156
1152
|
export type __longMin1 = number;
|
1153
|
+
export type __sensitiveString = string;
|
1154
|
+
export type __sensitive__mapOf__string = {[key: string]: __string};
|
1157
1155
|
export type __string = string;
|
1158
1156
|
export type __stringMax1024 = string;
|
1159
1157
|
export type __stringMin1Max128 = string;
|
@@ -390,7 +390,7 @@ declare namespace PaymentCryptographyData {
|
|
390
390
|
/**
|
391
391
|
* The key check value (KCV) of the encryption key. The KCV is used to check if all parties holding a given key have the same key or to detect that a key has changed. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram.
|
392
392
|
*/
|
393
|
-
KeyCheckValue
|
393
|
+
KeyCheckValue?: KeyCheckValue;
|
394
394
|
}
|
395
395
|
export interface EncryptionDecryptionAttributes {
|
396
396
|
Asymmetric?: AsymmetricEncryptionAttributes;
|
@@ -449,7 +449,7 @@ declare namespace PaymentCryptographyData {
|
|
449
449
|
/**
|
450
450
|
* The data for which a MAC is under generation.
|
451
451
|
*/
|
452
|
-
MessageData:
|
452
|
+
MessageData: HexEvenLengthBetween2And4096;
|
453
453
|
}
|
454
454
|
export interface GenerateMacOutput {
|
455
455
|
/**
|
@@ -517,8 +517,11 @@ declare namespace PaymentCryptographyData {
|
|
517
517
|
*/
|
518
518
|
PinData: PinData;
|
519
519
|
}
|
520
|
+
export type HexEvenLengthBetween16And32 = string;
|
520
521
|
export type HexEvenLengthBetween16And4064 = string;
|
521
522
|
export type HexEvenLengthBetween16And4096 = string;
|
523
|
+
export type HexEvenLengthBetween2And4096 = string;
|
524
|
+
export type HexEvenLengthBetween4And128 = string;
|
522
525
|
export type HexLength16Or32 = string;
|
523
526
|
export type HexLengthBetween10And24 = string;
|
524
527
|
export type HexLengthBetween16And32 = string;
|
@@ -526,7 +529,6 @@ declare namespace PaymentCryptographyData {
|
|
526
529
|
export type HexLengthBetween2And1024 = string;
|
527
530
|
export type HexLengthBetween2And160 = string;
|
528
531
|
export type HexLengthBetween2And4 = string;
|
529
|
-
export type HexLengthBetween2And4096 = string;
|
530
532
|
export type HexLengthBetween2And8 = string;
|
531
533
|
export type HexLengthBetween4And128 = string;
|
532
534
|
export type HexLengthEquals1 = string;
|
@@ -898,7 +900,7 @@ declare namespace PaymentCryptographyData {
|
|
898
900
|
/**
|
899
901
|
* The encrypted PIN block data that Amazon Web Services Payment Cryptography translates.
|
900
902
|
*/
|
901
|
-
EncryptedPinBlock:
|
903
|
+
EncryptedPinBlock: HexEvenLengthBetween16And32;
|
902
904
|
/**
|
903
905
|
* The attributes and values to use for incoming DUKPT encryption key for PIN block tranlation.
|
904
906
|
*/
|
@@ -1040,7 +1042,7 @@ declare namespace PaymentCryptographyData {
|
|
1040
1042
|
/**
|
1041
1043
|
* The MAC being verified.
|
1042
1044
|
*/
|
1043
|
-
Mac:
|
1045
|
+
Mac: HexEvenLengthBetween4And128;
|
1044
1046
|
/**
|
1045
1047
|
* The length of the MAC.
|
1046
1048
|
*/
|
@@ -1048,7 +1050,7 @@ declare namespace PaymentCryptographyData {
|
|
1048
1050
|
/**
|
1049
1051
|
* The data on for which MAC is under verification.
|
1050
1052
|
*/
|
1051
|
-
MessageData:
|
1053
|
+
MessageData: HexEvenLengthBetween2And4096;
|
1052
1054
|
/**
|
1053
1055
|
* The attributes and data values to use for MAC verification within Amazon Web Services Payment Cryptography.
|
1054
1056
|
*/
|
@@ -4,6 +4,7 @@ import {AWSError} from '../lib/error';
|
|
4
4
|
import {Service} from '../lib/service';
|
5
5
|
import {ServiceConfigurationOptions} from '../lib/service';
|
6
6
|
import {ConfigBase as Config} from '../lib/config-base';
|
7
|
+
import {EventStream} from '../lib/event-stream/event-stream';
|
7
8
|
interface Blob {}
|
8
9
|
declare class SageMakerRuntime extends Service {
|
9
10
|
/**
|
@@ -20,26 +21,38 @@ declare class SageMakerRuntime extends Service {
|
|
20
21
|
*/
|
21
22
|
invokeEndpoint(callback?: (err: AWSError, data: SageMakerRuntime.Types.InvokeEndpointOutput) => void): Request<SageMakerRuntime.Types.InvokeEndpointOutput, AWSError>;
|
22
23
|
/**
|
23
|
-
* After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner. Inference requests sent to this API are enqueued for asynchronous processing. The processing of the inference request may or may not complete before you receive a response from this API. The response from this API will not contain the result of the inference request but contain information about where you can locate it. Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.
|
24
|
+
* After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner. Inference requests sent to this API are enqueued for asynchronous processing. The processing of the inference request may or may not complete before you receive a response from this API. The response from this API will not contain the result of the inference request but contain information about where you can locate it. Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax. Calls to InvokeEndpointAsync are authenticated by using Amazon Web Services Signature Version 4. For information, see Authenticating Requests (Amazon Web Services Signature Version 4) in the Amazon S3 API Reference.
|
24
25
|
*/
|
25
26
|
invokeEndpointAsync(params: SageMakerRuntime.Types.InvokeEndpointAsyncInput, callback?: (err: AWSError, data: SageMakerRuntime.Types.InvokeEndpointAsyncOutput) => void): Request<SageMakerRuntime.Types.InvokeEndpointAsyncOutput, AWSError>;
|
26
27
|
/**
|
27
|
-
* After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner. Inference requests sent to this API are enqueued for asynchronous processing. The processing of the inference request may or may not complete before you receive a response from this API. The response from this API will not contain the result of the inference request but contain information about where you can locate it. Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax.
|
28
|
+
* After you deploy a model into production using Amazon SageMaker hosting services, your client applications use this API to get inferences from the model hosted at the specified endpoint in an asynchronous manner. Inference requests sent to this API are enqueued for asynchronous processing. The processing of the inference request may or may not complete before you receive a response from this API. The response from this API will not contain the result of the inference request but contain information about where you can locate it. Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax. Calls to InvokeEndpointAsync are authenticated by using Amazon Web Services Signature Version 4. For information, see Authenticating Requests (Amazon Web Services Signature Version 4) in the Amazon S3 API Reference.
|
28
29
|
*/
|
29
30
|
invokeEndpointAsync(callback?: (err: AWSError, data: SageMakerRuntime.Types.InvokeEndpointAsyncOutput) => void): Request<SageMakerRuntime.Types.InvokeEndpointAsyncOutput, AWSError>;
|
31
|
+
/**
|
32
|
+
* Invokes a model at the specified endpoint to return the inference response as a stream. The inference stream provides the response payload incrementally as a series of parts. Before you can get an inference stream, you must have access to a model that's deployed using Amazon SageMaker hosting services, and the container for that model must support inference streaming. For more information that can help you use this API, see the following sections in the Amazon SageMaker Developer Guide: For information about how to add streaming support to a model, see How Containers Serve Requests. For information about how to process the streaming response, see Invoke real-time endpoints. Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax. Calls to InvokeEndpointWithResponseStream are authenticated by using Amazon Web Services Signature Version 4. For information, see Authenticating Requests (Amazon Web Services Signature Version 4) in the Amazon S3 API Reference.
|
33
|
+
*/
|
34
|
+
invokeEndpointWithResponseStream(params: SageMakerRuntime.Types.InvokeEndpointWithResponseStreamInput, callback?: (err: AWSError, data: SageMakerRuntime.Types.InvokeEndpointWithResponseStreamOutput) => void): Request<SageMakerRuntime.Types.InvokeEndpointWithResponseStreamOutput, AWSError>;
|
35
|
+
/**
|
36
|
+
* Invokes a model at the specified endpoint to return the inference response as a stream. The inference stream provides the response payload incrementally as a series of parts. Before you can get an inference stream, you must have access to a model that's deployed using Amazon SageMaker hosting services, and the container for that model must support inference streaming. For more information that can help you use this API, see the following sections in the Amazon SageMaker Developer Guide: For information about how to add streaming support to a model, see How Containers Serve Requests. For information about how to process the streaming response, see Invoke real-time endpoints. Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add additional headers. You should not rely on the behavior of headers outside those enumerated in the request syntax. Calls to InvokeEndpointWithResponseStream are authenticated by using Amazon Web Services Signature Version 4. For information, see Authenticating Requests (Amazon Web Services Signature Version 4) in the Amazon S3 API Reference.
|
37
|
+
*/
|
38
|
+
invokeEndpointWithResponseStream(callback?: (err: AWSError, data: SageMakerRuntime.Types.InvokeEndpointWithResponseStreamOutput) => void): Request<SageMakerRuntime.Types.InvokeEndpointWithResponseStreamOutput, AWSError>;
|
30
39
|
}
|
31
40
|
declare namespace SageMakerRuntime {
|
32
41
|
export type BodyBlob = Buffer|Uint8Array|Blob|string;
|
33
42
|
export type CustomAttributesHeader = string;
|
34
43
|
export type EnableExplanationsHeader = string;
|
35
44
|
export type EndpointName = string;
|
45
|
+
export type ErrorCode = string;
|
36
46
|
export type Header = string;
|
37
47
|
export type InferenceId = string;
|
38
48
|
export type InputLocationHeader = string;
|
49
|
+
export interface InternalStreamFailure {
|
50
|
+
Message?: Message;
|
51
|
+
}
|
39
52
|
export type InvocationTimeoutSecondsHeader = number;
|
40
53
|
export interface InvokeEndpointAsyncInput {
|
41
54
|
/**
|
42
|
-
* The name of the endpoint that you specified when you created the endpoint using the
|
55
|
+
* The name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API.
|
43
56
|
*/
|
44
57
|
EndpointName: EndpointName;
|
45
58
|
/**
|
@@ -47,7 +60,7 @@ declare namespace SageMakerRuntime {
|
|
47
60
|
*/
|
48
61
|
ContentType?: Header;
|
49
62
|
/**
|
50
|
-
* The desired MIME type of the inference
|
63
|
+
* The desired MIME type of the inference response from the model container.
|
51
64
|
*/
|
52
65
|
Accept?: Header;
|
53
66
|
/**
|
@@ -87,7 +100,7 @@ declare namespace SageMakerRuntime {
|
|
87
100
|
}
|
88
101
|
export interface InvokeEndpointInput {
|
89
102
|
/**
|
90
|
-
* The name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API.
|
103
|
+
* The name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API.
|
91
104
|
*/
|
92
105
|
EndpointName: EndpointName;
|
93
106
|
/**
|
@@ -99,11 +112,11 @@ declare namespace SageMakerRuntime {
|
|
99
112
|
*/
|
100
113
|
ContentType?: Header;
|
101
114
|
/**
|
102
|
-
* The desired MIME type of the inference
|
115
|
+
* The desired MIME type of the inference response from the model container.
|
103
116
|
*/
|
104
117
|
Accept?: Header;
|
105
118
|
/**
|
106
|
-
* Provides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded verbatim. You could use this value, for example, to provide an ID that you can use to track a request or to provide other metadata that a service endpoint was programmed to process. The value must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1). The code in your model is responsible for setting or updating any custom attributes in the response. If your code does not set this value in the response, an empty value is returned. For example, if a custom attribute represents the trace ID, your model can prepend the custom attribute with Trace ID: in your post-processing function.
|
119
|
+
* Provides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded verbatim. You could use this value, for example, to provide an ID that you can use to track a request or to provide other metadata that a service endpoint was programmed to process. The value must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1). The code in your model is responsible for setting or updating any custom attributes in the response. If your code does not set this value in the response, an empty value is returned. For example, if a custom attribute represents the trace ID, your model can prepend the custom attribute with Trace ID: in your post-processing function. This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK.
|
107
120
|
*/
|
108
121
|
CustomAttributes?: CustomAttributesHeader;
|
109
122
|
/**
|
@@ -133,7 +146,56 @@ declare namespace SageMakerRuntime {
|
|
133
146
|
*/
|
134
147
|
Body: BodyBlob;
|
135
148
|
/**
|
136
|
-
* The MIME type of the inference returned
|
149
|
+
* The MIME type of the inference returned from the model container.
|
150
|
+
*/
|
151
|
+
ContentType?: Header;
|
152
|
+
/**
|
153
|
+
* Identifies the production variant that was invoked.
|
154
|
+
*/
|
155
|
+
InvokedProductionVariant?: Header;
|
156
|
+
/**
|
157
|
+
* Provides additional information in the response about the inference returned by a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded verbatim. You could use this value, for example, to return an ID received in the CustomAttributes header of a request or other metadata that a service endpoint was programmed to produce. The value must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1). If the customer wants the custom attribute returned, the model must set the custom attribute to be included on the way back. The code in your model is responsible for setting or updating any custom attributes in the response. If your code does not set this value in the response, an empty value is returned. For example, if a custom attribute represents the trace ID, your model can prepend the custom attribute with Trace ID: in your post-processing function. This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK.
|
158
|
+
*/
|
159
|
+
CustomAttributes?: CustomAttributesHeader;
|
160
|
+
}
|
161
|
+
export interface InvokeEndpointWithResponseStreamInput {
|
162
|
+
/**
|
163
|
+
* The name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API.
|
164
|
+
*/
|
165
|
+
EndpointName: EndpointName;
|
166
|
+
/**
|
167
|
+
* Provides input data, in the format specified in the ContentType request header. Amazon SageMaker passes all of the data in the body to the model. For information about the format of the request body, see Common Data Formats-Inference.
|
168
|
+
*/
|
169
|
+
Body: BodyBlob;
|
170
|
+
/**
|
171
|
+
* The MIME type of the input data in the request body.
|
172
|
+
*/
|
173
|
+
ContentType?: Header;
|
174
|
+
/**
|
175
|
+
* The desired MIME type of the inference response from the model container.
|
176
|
+
*/
|
177
|
+
Accept?: Header;
|
178
|
+
/**
|
179
|
+
* Provides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded verbatim. You could use this value, for example, to provide an ID that you can use to track a request or to provide other metadata that a service endpoint was programmed to process. The value must consist of no more than 1024 visible US-ASCII characters as specified in Section 3.3.6. Field Value Components of the Hypertext Transfer Protocol (HTTP/1.1). The code in your model is responsible for setting or updating any custom attributes in the response. If your code does not set this value in the response, an empty value is returned. For example, if a custom attribute represents the trace ID, your model can prepend the custom attribute with Trace ID: in your post-processing function. This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK.
|
180
|
+
*/
|
181
|
+
CustomAttributes?: CustomAttributesHeader;
|
182
|
+
/**
|
183
|
+
* Specify the production variant to send the inference request to when invoking an endpoint that is running two or more variants. Note that this parameter overrides the default behavior for the endpoint, which is to distribute the invocation traffic based on the variant weights. For information about how to use variant targeting to perform a/b testing, see Test models in production
|
184
|
+
*/
|
185
|
+
TargetVariant?: TargetVariantHeader;
|
186
|
+
/**
|
187
|
+
* If the endpoint hosts multiple containers and is configured to use direct invocation, this parameter specifies the host name of the container to invoke.
|
188
|
+
*/
|
189
|
+
TargetContainerHostname?: TargetContainerHostnameHeader;
|
190
|
+
/**
|
191
|
+
* An identifier that you assign to your request.
|
192
|
+
*/
|
193
|
+
InferenceId?: InferenceId;
|
194
|
+
}
|
195
|
+
export interface InvokeEndpointWithResponseStreamOutput {
|
196
|
+
Body: ResponseStream;
|
197
|
+
/**
|
198
|
+
* The MIME type of the inference returned from the model container.
|
137
199
|
*/
|
138
200
|
ContentType?: Header;
|
139
201
|
/**
|
@@ -145,7 +207,23 @@ declare namespace SageMakerRuntime {
|
|
145
207
|
*/
|
146
208
|
CustomAttributes?: CustomAttributesHeader;
|
147
209
|
}
|
210
|
+
export type Message = string;
|
211
|
+
export interface ModelStreamError {
|
212
|
+
Message?: Message;
|
213
|
+
/**
|
214
|
+
* This error can have the following error codes: ModelInvocationTimeExceeded The model failed to finish sending the response within the timeout period allowed by Amazon SageMaker. StreamBroken The Transmission Control Protocol (TCP) connection between the client and the model was reset or closed.
|
215
|
+
*/
|
216
|
+
ErrorCode?: ErrorCode;
|
217
|
+
}
|
218
|
+
export type PartBlob = Buffer|Uint8Array|Blob|string;
|
219
|
+
export interface PayloadPart {
|
220
|
+
/**
|
221
|
+
* A blob that contains part of the response for your streaming inference request.
|
222
|
+
*/
|
223
|
+
Bytes?: Buffer;
|
224
|
+
}
|
148
225
|
export type RequestTTLSecondsHeader = number;
|
226
|
+
export type ResponseStream = EventStream<{PayloadPart?:PayloadPart,ModelStreamError?:ModelStreamError,InternalStreamFailure?:InternalStreamFailure}>;
|
149
227
|
export type TargetContainerHostnameHeader = string;
|
150
228
|
export type TargetModelHeader = string;
|
151
229
|
export type TargetVariantHeader = string;
|