aws-sdk 2.1381.0 → 2.1383.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.
@@ -5818,7 +5818,7 @@ declare namespace SageMaker {
5818
5818
  */
5819
5819
  RoleArn: RoleArn;
5820
5820
  /**
5821
- * An array of Channel objects. Each channel is a named input source. InputDataConfig describes the input data and its location. Algorithms can accept input data from one or more channels. For example, an algorithm might have two channels of input data, training_data and validation_data. The configuration for each channel provides the S3, EFS, or FSx location where the input data is stored. It also provides information about the stored data: the MIME type, compression method, and whether the data is wrapped in RecordIO format. Depending on the input mode that the algorithm supports, SageMaker either copies input data files from an S3 bucket to a local directory in the Docker container, or makes it available as input streams. For example, if you specify an EFS location, input data files are available as input streams. They do not need to be downloaded.
5821
+ * An array of Channel objects. Each channel is a named input source. InputDataConfig describes the input data and its location. Algorithms can accept input data from one or more channels. For example, an algorithm might have two channels of input data, training_data and validation_data. The configuration for each channel provides the S3, EFS, or FSx location where the input data is stored. It also provides information about the stored data: the MIME type, compression method, and whether the data is wrapped in RecordIO format. Depending on the input mode that the algorithm supports, SageMaker either copies input data files from an S3 bucket to a local directory in the Docker container, or makes it available as input streams. For example, if you specify an EFS location, input data files are available as input streams. They do not need to be downloaded. Your input must be in the same Amazon Web Services region as your training job.
5822
5822
  */
5823
5823
  InputDataConfig?: InputDataConfig;
5824
5824
  /**
@@ -12346,6 +12346,14 @@ declare namespace SageMaker {
12346
12346
  * The recommendation ID which uniquely identifies each recommendation.
12347
12347
  */
12348
12348
  RecommendationId?: String;
12349
+ /**
12350
+ * A timestamp that shows when the benchmark completed.
12351
+ */
12352
+ InvocationEndTime?: InvocationEndTime;
12353
+ /**
12354
+ * A timestamp that shows when the benchmark started.
12355
+ */
12356
+ InvocationStartTime?: InvocationStartTime;
12349
12357
  }
12350
12358
  export type InferenceRecommendations = InferenceRecommendation[];
12351
12359
  export interface InferenceRecommendationsJob {
@@ -12389,6 +12397,18 @@ declare namespace SageMaker {
12389
12397
  * If the job fails, provides information why the job failed.
12390
12398
  */
12391
12399
  FailureReason?: FailureReason;
12400
+ /**
12401
+ * The name of the created model.
12402
+ */
12403
+ ModelName?: ModelName;
12404
+ /**
12405
+ * The Amazon Simple Storage Service (Amazon S3) path where the sample payload is stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
12406
+ */
12407
+ SamplePayloadUrl?: S3Uri;
12408
+ /**
12409
+ * The Amazon Resource Name (ARN) of a versioned model package.
12410
+ */
12411
+ ModelPackageVersionArn?: ModelPackageArn;
12392
12412
  }
12393
12413
  export interface InferenceRecommendationsJobStep {
12394
12414
  /**
@@ -12511,6 +12531,8 @@ declare namespace SageMaker {
12511
12531
  }
12512
12532
  export type IntegerParameterRanges = IntegerParameterRange[];
12513
12533
  export type IntegerValue = number;
12534
+ export type InvocationEndTime = Date;
12535
+ export type InvocationStartTime = Date;
12514
12536
  export type InvocationsMaxRetries = number;
12515
12537
  export type InvocationsTimeoutInSeconds = number;
12516
12538
  export type IotRoleAlias = string;
@@ -14309,6 +14331,14 @@ declare namespace SageMaker {
14309
14331
  * The maximum number of recommendations to return in the response.
14310
14332
  */
14311
14333
  MaxResults?: MaxResults;
14334
+ /**
14335
+ * A filter that returns only jobs that were created for this model.
14336
+ */
14337
+ ModelNameEquals?: ModelName;
14338
+ /**
14339
+ * A filter that returns only jobs that were created for this versioned model package.
14340
+ */
14341
+ ModelPackageVersionArnEquals?: ModelPackageArn;
14312
14342
  }
14313
14343
  export interface ListInferenceRecommendationsJobsResponse {
14314
14344
  /**
@@ -19068,6 +19098,14 @@ declare namespace SageMaker {
19068
19098
  */
19069
19099
  FailureReason?: RecommendationFailureReason;
19070
19100
  EndpointMetrics?: InferenceMetrics;
19101
+ /**
19102
+ * A timestamp that shows when the benchmark completed.
19103
+ */
19104
+ InvocationEndTime?: InvocationEndTime;
19105
+ /**
19106
+ * A timestamp that shows when the benchmark started.
19107
+ */
19108
+ InvocationStartTime?: InvocationStartTime;
19071
19109
  }
19072
19110
  export interface RecommendationJobInputConfig {
19073
19111
  /**
@@ -19424,7 +19462,7 @@ declare namespace SageMaker {
19424
19462
  */
19425
19463
  S3DataType: S3DataType;
19426
19464
  /**
19427
- * Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest. For example: A key name prefix might look like this: s3://bucketname/exampleprefix A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri. Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf.
19465
+ * Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest. For example: A key name prefix might look like this: s3://bucketname/exampleprefix A manifest might look like this: s3://bucketname/example.manifest A manifest is an S3 object which is a JSON file consisting of an array of elements. The first element is a prefix which is followed by one or more suffixes. SageMaker appends the suffix elements to the prefix to get a full set of S3Uri. Note that the prefix must be a valid non-empty S3Uri that precludes users from specifying a manifest whose individual S3Uri is sourced from different S3 buckets. The following code example shows a valid manifest format: [ {"prefix": "s3://customer_bucket/some/prefix/"}, "relative/path/to/custdata-1", "relative/path/custdata-2", ... "relative/path/custdata-N" ] This JSON is equivalent to the following S3Uri list: s3://customer_bucket/some/prefix/relative/path/to/custdata-1 s3://customer_bucket/some/prefix/relative/path/custdata-2 ... s3://customer_bucket/some/prefix/relative/path/custdata-N The complete set of S3Uri in this manifest is the input data for the channel for this data source. The object that each S3Uri points to must be readable by the IAM role that SageMaker uses to perform tasks on your behalf. Your input bucket must be located in same Amazon Web Services region as your training job.
19428
19466
  */
19429
19467
  S3Uri: S3Uri;
19430
19468
  /**
@@ -19733,7 +19771,7 @@ declare namespace SageMaker {
19733
19771
  export type SortTrialsBy = "Name"|"CreationTime"|string;
19734
19772
  export interface SourceAlgorithm {
19735
19773
  /**
19736
- * The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix). The model artifacts must be in an S3 bucket that is in the same region as the algorithm.
19774
+ * The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix). The model artifacts must be in an S3 bucket that is in the same Amazon Web Services region as the algorithm.
19737
19775
  */
19738
19776
  ModelDataUrl?: Url;
19739
19777
  /**
@@ -20257,7 +20295,7 @@ declare namespace SageMaker {
20257
20295
  */
20258
20296
  RoleArn?: RoleArn;
20259
20297
  /**
20260
- * An array of Channel objects that describes each data input channel.
20298
+ * An array of Channel objects that describes each data input channel. Your input must be in the same Amazon Web Services region as your training job.
20261
20299
  */
20262
20300
  InputDataConfig?: InputDataConfig;
20263
20301
  /**
@@ -131,6 +131,14 @@ declare class Translate extends Service {
131
131
  * Associates a specific tag with a resource. A tag is a key-value pair that adds as a metadata to a resource. For more information, see Tagging your resources.
132
132
  */
133
133
  tagResource(callback?: (err: AWSError, data: Translate.Types.TagResourceResponse) => void): Request<Translate.Types.TagResourceResponse, AWSError>;
134
+ /**
135
+ * Translates the input document from the source language to the target language. This synchronous operation supports plain text or HTML for the input document. TranslateDocument supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as “en” (English). TranslateDocument does not support language auto-detection. If you set the Formality parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
136
+ */
137
+ translateDocument(params: Translate.Types.TranslateDocumentRequest, callback?: (err: AWSError, data: Translate.Types.TranslateDocumentResponse) => void): Request<Translate.Types.TranslateDocumentResponse, AWSError>;
138
+ /**
139
+ * Translates the input document from the source language to the target language. This synchronous operation supports plain text or HTML for the input document. TranslateDocument supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as “en” (English). TranslateDocument does not support language auto-detection. If you set the Formality parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
140
+ */
141
+ translateDocument(callback?: (err: AWSError, data: Translate.Types.TranslateDocumentResponse) => void): Request<Translate.Types.TranslateDocumentResponse, AWSError>;
134
142
  /**
135
143
  * Translates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.
136
144
  */
@@ -241,6 +249,17 @@ declare namespace Translate {
241
249
  export type Description = string;
242
250
  export type Directionality = "UNI"|"MULTI"|string;
243
251
  export type DisplayLanguageCode = "de"|"en"|"es"|"fr"|"it"|"ja"|"ko"|"pt"|"zh"|"zh-TW"|string;
252
+ export interface Document {
253
+ /**
254
+ * The Contentfield type is Binary large object (blob). This object contains the document content converted into base64-encoded binary data. If you use one of the AWS SDKs, the SDK performs the Base64-encoding on this field before sending the request.
255
+ */
256
+ Content: DocumentContent;
257
+ /**
258
+ * Describes the format of the document. You can specify one of the following: text/html - The input data consists of HTML content. Amazon Translate translates only the text in the HTML element. text/plain - The input data consists of unformatted text. Amazon Translate translates every character in the content.
259
+ */
260
+ ContentType: ContentType;
261
+ }
262
+ export type DocumentContent = Buffer|Uint8Array|Blob|string;
244
263
  export interface EncryptionKey {
245
264
  /**
246
265
  * The type of encryption key used by Amazon Translate to encrypt this object.
@@ -861,27 +880,65 @@ declare namespace Translate {
861
880
  */
862
881
  DataAccessRoleArn?: IamRoleArn;
863
882
  /**
864
- * Settings that configure the translation output.
883
+ * Settings that modify the translation output.
865
884
  */
866
885
  Settings?: TranslationSettings;
867
886
  }
868
887
  export type TextTranslationJobPropertiesList = TextTranslationJobProperties[];
869
888
  export type Timestamp = Date;
889
+ export interface TranslateDocumentRequest {
890
+ /**
891
+ * The content and content type for the document to be translated. The document size must not exceed 100 KB.
892
+ */
893
+ Document: Document;
894
+ /**
895
+ * The name of a terminology list file to add to the translation job. This file provides source terms and the desired translation for each term. A terminology list can contain a maximum of 256 terms. You can use one custom terminology resource in your translation request. Use the ListTerminologies operation to get the available terminology lists. For more information about custom terminology lists, see Custom terminology.
896
+ */
897
+ TerminologyNames?: ResourceNameList;
898
+ /**
899
+ * The language code for the language of the source text. Do not use auto, because TranslateDocument does not support language auto-detection. For a list of supported language codes, see Supported languages.
900
+ */
901
+ SourceLanguageCode: LanguageCodeString;
902
+ /**
903
+ * The language code requested for the translated document. For a list of supported language codes, see Supported languages.
904
+ */
905
+ TargetLanguageCode: LanguageCodeString;
906
+ Settings?: TranslationSettings;
907
+ }
908
+ export interface TranslateDocumentResponse {
909
+ /**
910
+ * The document containing the translated content. The document format matches the source document format.
911
+ */
912
+ TranslatedDocument: TranslatedDocument;
913
+ /**
914
+ * The language code of the source document.
915
+ */
916
+ SourceLanguageCode: LanguageCodeString;
917
+ /**
918
+ * The language code of the translated document.
919
+ */
920
+ TargetLanguageCode: LanguageCodeString;
921
+ /**
922
+ * The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
923
+ */
924
+ AppliedTerminologies?: AppliedTerminologyList;
925
+ AppliedSettings?: TranslationSettings;
926
+ }
870
927
  export interface TranslateTextRequest {
871
928
  /**
872
929
  * The text to translate. The text string can be a maximum of 10,000 bytes long. Depending on your character set, this may be fewer than 10,000 characters.
873
930
  */
874
931
  Text: BoundedLengthString;
875
932
  /**
876
- * The name of the terminology list file to be used in the TranslateText request. You can use 1 terminology list at most in a TranslateText request. Terminology lists can contain a maximum of 256 terms.
933
+ * The name of a terminology list file to add to the translation job. This file provides source terms and the desired translation for each term. A terminology list can contain a maximum of 256 terms. You can use one custom terminology resource in your translation request. Use the ListTerminologies operation to get the available terminology lists. For more information about custom terminology lists, see Custom terminology.
877
934
  */
878
935
  TerminologyNames?: ResourceNameList;
879
936
  /**
880
- * The language code for the language of the source text. The language must be a language supported by Amazon Translate. For a list of language codes, see Supported languages. To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language. If you specify auto, you must send the TranslateText request in a region that supports Amazon Comprehend. Otherwise, the request returns an error indicating that autodetect is not supported.
937
+ * The language code for the language of the source text. For a list of language codes, see Supported languages. To have Amazon Translate determine the source language of your text, you can specify auto in the SourceLanguageCode field. If you specify auto, Amazon Translate will call Amazon Comprehend to determine the source language. If you specify auto, you must send the TranslateText request in a region that supports Amazon Comprehend. Otherwise, the request returns an error indicating that autodetect is not supported.
881
938
  */
882
939
  SourceLanguageCode: LanguageCodeString;
883
940
  /**
884
- * The language code requested for the language of the target text. The language must be a language supported by Amazon Translate.
941
+ * The language code requested for the language of the target text. For a list of language codes, see Supported languages.
885
942
  */
886
943
  TargetLanguageCode: LanguageCodeString;
887
944
  /**
@@ -907,10 +964,17 @@ declare namespace Translate {
907
964
  */
908
965
  AppliedTerminologies?: AppliedTerminologyList;
909
966
  /**
910
- * Settings that configure the translation output.
967
+ * Optional settings that modify the translation output.
911
968
  */
912
969
  AppliedSettings?: TranslationSettings;
913
970
  }
971
+ export interface TranslatedDocument {
972
+ /**
973
+ * The document containing the translated content.
974
+ */
975
+ Content: TranslatedDocumentContent;
976
+ }
977
+ export type TranslatedDocumentContent = Buffer|Uint8Array|Blob|string;
914
978
  export type TranslatedTextString = string;
915
979
  export interface TranslationSettings {
916
980
  /**
@@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
83
83
  /**
84
84
  * @constant
85
85
  */
86
- VERSION: '2.1381.0',
86
+ VERSION: '2.1383.0',
87
87
 
88
88
  /**
89
89
  * @api private