aws-sdk 2.1360.0 → 2.1361.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.
@@ -84,11 +84,11 @@ declare class Comprehend extends Service {
84
84
  */
85
85
  createDataset(callback?: (err: AWSError, data: Comprehend.Types.CreateDatasetResponse) => void): Request<Comprehend.Types.CreateDatasetResponse, AWSError>;
86
86
  /**
87
- * Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that labeled with the categories that you want to use. After the classifier is trained you can use it to categorize a set of labeled documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide.
87
+ * Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that are labeled with the categories that you want to use. For more information, see Training classifier models in the Comprehend Developer Guide.
88
88
  */
89
89
  createDocumentClassifier(params: Comprehend.Types.CreateDocumentClassifierRequest, callback?: (err: AWSError, data: Comprehend.Types.CreateDocumentClassifierResponse) => void): Request<Comprehend.Types.CreateDocumentClassifierResponse, AWSError>;
90
90
  /**
91
- * Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that labeled with the categories that you want to use. After the classifier is trained you can use it to categorize a set of labeled documents into the categories. For more information, see Document Classification in the Comprehend Developer Guide.
91
+ * Creates a new document classifier that you can use to categorize documents. To create a classifier, you provide a set of training documents that are labeled with the categories that you want to use. For more information, see Training classifier models in the Comprehend Developer Guide.
92
92
  */
93
93
  createDocumentClassifier(callback?: (err: AWSError, data: Comprehend.Types.CreateDocumentClassifierResponse) => void): Request<Comprehend.Types.CreateDocumentClassifierResponse, AWSError>;
94
94
  /**
@@ -1078,6 +1078,10 @@ declare namespace Comprehend {
1078
1078
  * Page-level errors that the system detected while processing the input document. The field is empty if the system encountered no errors.
1079
1079
  */
1080
1080
  Errors?: ListOfErrors;
1081
+ /**
1082
+ * Warnings detected while processing the input document. The response includes a warning if there is a mismatch between the input document type and the model type associated with the endpoint that you specified. The response can also include warnings for individual pages that have a mismatch. The field is empty if the system generated no warnings.
1083
+ */
1084
+ Warnings?: ListOfWarnings;
1081
1085
  }
1082
1086
  export type ClientRequestTokenString = string;
1083
1087
  export type ComprehendArn = string;
@@ -1161,7 +1165,7 @@ declare namespace Comprehend {
1161
1165
  */
1162
1166
  InputDataConfig: DocumentClassifierInputDataConfig;
1163
1167
  /**
1164
- * Enables the addition of output results configuration parameters for custom classifier jobs.
1168
+ * Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native classifier model.
1165
1169
  */
1166
1170
  OutputDataConfig?: DocumentClassifierOutputDataConfig;
1167
1171
  /**
@@ -2001,6 +2005,17 @@ declare namespace Comprehend {
2001
2005
  export type DocumentClassifierArn = string;
2002
2006
  export type DocumentClassifierAugmentedManifestsList = AugmentedManifestsListItem[];
2003
2007
  export type DocumentClassifierDataFormat = "COMPREHEND_CSV"|"AUGMENTED_MANIFEST"|string;
2008
+ export type DocumentClassifierDocumentTypeFormat = "PLAIN_TEXT_DOCUMENT"|"SEMI_STRUCTURED_DOCUMENT"|string;
2009
+ export interface DocumentClassifierDocuments {
2010
+ /**
2011
+ * The S3 URI location of the training documents specified in the S3Uri CSV file.
2012
+ */
2013
+ S3Uri: S3Uri;
2014
+ /**
2015
+ * The S3 URI location of the test documents included in the TestS3Uri CSV file. This field is not required if you do not specify a test CSV file.
2016
+ */
2017
+ TestS3Uri?: S3Uri;
2018
+ }
2004
2019
  export type DocumentClassifierEndpointArn = string;
2005
2020
  export interface DocumentClassifierFilter {
2006
2021
  /**
@@ -2041,11 +2056,20 @@ declare namespace Comprehend {
2041
2056
  * A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth. This parameter is required if you set DataFormat to AUGMENTED_MANIFEST.
2042
2057
  */
2043
2058
  AugmentedManifests?: DocumentClassifierAugmentedManifestsList;
2059
+ /**
2060
+ * The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native model.
2061
+ */
2062
+ DocumentType?: DocumentClassifierDocumentTypeFormat;
2063
+ /**
2064
+ * The S3 location of the training documents. This parameter is required in a request to create a native classifier model.
2065
+ */
2066
+ Documents?: DocumentClassifierDocuments;
2067
+ DocumentReaderConfig?: DocumentReaderConfig;
2044
2068
  }
2045
2069
  export type DocumentClassifierMode = "MULTI_CLASS"|"MULTI_LABEL"|string;
2046
2070
  export interface DocumentClassifierOutputDataConfig {
2047
2071
  /**
2048
- * When you use the OutputDataConfig object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix. The URI must be in the same Region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file. When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the confusion matrix.
2072
+ * When you use the OutputDataConfig object while creating a custom classifier, you specify the Amazon S3 location where you want to write the confusion matrix and other output files. The URI must be in the same Region as the API endpoint that you are calling. The location is used as the prefix for the actual location of this output file. When the custom classifier job is finished, the service creates the output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the confusion matrix.
2049
2073
  */
2050
2074
  S3Uri?: S3Uri;
2051
2075
  /**
@@ -2067,7 +2091,7 @@ declare namespace Comprehend {
2067
2091
  */
2068
2092
  LanguageCode?: LanguageCode;
2069
2093
  /**
2070
- * The status of the document classifier. If the status is TRAINED the classifier is ready to use. If the status is FAILED you can see additional information about why the classifier wasn't trained in the Message field.
2094
+ * The status of the document classifier. If the status is TRAINED the classifier is ready to use. If the status is TRAINED_WITH_WARNINGS the classifier training succeeded, but you should review the warnings returned in the CreateDocumentClassifier response. If the status is FAILED you can see additional information about why the classifier wasn't trained in the Message field.
2071
2095
  */
2072
2096
  Status?: ModelStatus;
2073
2097
  /**
@@ -3507,6 +3531,7 @@ declare namespace Comprehend {
3507
3531
  export type ListOfRelationships = RelationshipsListItem[];
3508
3532
  export type ListOfSyntaxTokens = SyntaxToken[];
3509
3533
  export type ListOfTargetedSentimentEntities = TargetedSentimentEntity[];
3534
+ export type ListOfWarnings = WarningsListItem[];
3510
3535
  export interface ListPiiEntitiesDetectionJobsRequest {
3511
3536
  /**
3512
3537
  * Filters the jobs that are returned. You can filter jobs on their name, status, or the date and time that they were submitted. You can only set one filter at a time.
@@ -3643,6 +3668,7 @@ declare namespace Comprehend {
3643
3668
  KmsKeyId?: KmsKeyId;
3644
3669
  }
3645
3670
  export type PageBasedErrorCode = "TEXTRACT_BAD_PAGE"|"TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED"|"PAGE_CHARACTERS_EXCEEDED"|"PAGE_SIZE_EXCEEDED"|"INTERNAL_SERVER_ERROR"|string;
3671
+ export type PageBasedWarningCode = "INFERENCING_PLAINTEXT_WITH_NATIVE_TRAINED_MODEL"|"INFERENCING_NATIVE_DOCUMENT_WITH_PLAINTEXT_TRAINED_MODEL"|string;
3646
3672
  export interface PartOfSpeechTag {
3647
3673
  /**
3648
3674
  * Identifies the part of speech that the token represents.
@@ -4868,6 +4894,20 @@ declare namespace Comprehend {
4868
4894
  */
4869
4895
  Subnets: Subnets;
4870
4896
  }
4897
+ export interface WarningsListItem {
4898
+ /**
4899
+ * Page number in the input document.
4900
+ */
4901
+ Page?: Integer;
4902
+ /**
4903
+ * The type of warning.
4904
+ */
4905
+ WarnCode?: PageBasedWarningCode;
4906
+ /**
4907
+ * Text message associated with the warning.
4908
+ */
4909
+ WarnMessage?: String;
4910
+ }
4871
4911
  /**
4872
4912
  * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
4873
4913
  */
package/clients/ecs.d.ts CHANGED
@@ -277,11 +277,11 @@ declare class ECS extends Service {
277
277
  */
278
278
  listTasks(callback?: (err: AWSError, data: ECS.Types.ListTasksResponse) => void): Request<ECS.Types.ListTasksResponse, AWSError>;
279
279
  /**
280
- * Modifies an account setting. Account settings are set on a per-Region basis. If you change the root user account setting, the default settings are reset for users and roles that do not have specified individual account settings. For more information, see Account Settings in the Amazon Elastic Container Service Developer Guide. When serviceLongArnFormat, taskLongArnFormat, or containerInstanceLongArnFormat are specified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging. When awsvpcTrunking is specified, the elastic network interface (ENI) limit for any new container instances that support the feature is changed. If awsvpcTrunking is turned on, any new container instances that support the feature are launched have the increased ENI limits available to them. For more information, see Elastic Network Interface Trunking in the Amazon Elastic Container Service Developer Guide. When containerInsights is specified, the default setting indicating whether Amazon Web Services CloudWatch Container Insights is turned on for your clusters is changed. If containerInsights is turned on, any new clusters that are created will have Container Insights turned on unless you disable it during cluster creation. For more information, see CloudWatch Container Insights in the Amazon Elastic Container Service Developer Guide.
280
+ * Modifies an account setting. Account settings are set on a per-Region basis. If you change the root user account setting, the default settings are reset for users and roles that do not have specified individual account settings. For more information, see Account Settings in the Amazon Elastic Container Service Developer Guide. When serviceLongArnFormat, taskLongArnFormat, or containerInstanceLongArnFormat are specified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging. When awsvpcTrunking is specified, the elastic network interface (ENI) limit for any new container instances that support the feature is changed. If awsvpcTrunking is turned on, any new container instances that support the feature are launched have the increased ENI limits available to them. For more information, see Elastic Network Interface Trunking in the Amazon Elastic Container Service Developer Guide. When containerInsights is specified, the default setting indicating whether Amazon Web Services CloudWatch Container Insights is turned on for your clusters is changed. If containerInsights is turned on, any new clusters that are created will have Container Insights turned on unless you disable it during cluster creation. For more information, see CloudWatch Container Insights in the Amazon Elastic Container Service Developer Guide. Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.
281
281
  */
282
282
  putAccountSetting(params: ECS.Types.PutAccountSettingRequest, callback?: (err: AWSError, data: ECS.Types.PutAccountSettingResponse) => void): Request<ECS.Types.PutAccountSettingResponse, AWSError>;
283
283
  /**
284
- * Modifies an account setting. Account settings are set on a per-Region basis. If you change the root user account setting, the default settings are reset for users and roles that do not have specified individual account settings. For more information, see Account Settings in the Amazon Elastic Container Service Developer Guide. When serviceLongArnFormat, taskLongArnFormat, or containerInstanceLongArnFormat are specified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging. When awsvpcTrunking is specified, the elastic network interface (ENI) limit for any new container instances that support the feature is changed. If awsvpcTrunking is turned on, any new container instances that support the feature are launched have the increased ENI limits available to them. For more information, see Elastic Network Interface Trunking in the Amazon Elastic Container Service Developer Guide. When containerInsights is specified, the default setting indicating whether Amazon Web Services CloudWatch Container Insights is turned on for your clusters is changed. If containerInsights is turned on, any new clusters that are created will have Container Insights turned on unless you disable it during cluster creation. For more information, see CloudWatch Container Insights in the Amazon Elastic Container Service Developer Guide.
284
+ * Modifies an account setting. Account settings are set on a per-Region basis. If you change the root user account setting, the default settings are reset for users and roles that do not have specified individual account settings. For more information, see Account Settings in the Amazon Elastic Container Service Developer Guide. When serviceLongArnFormat, taskLongArnFormat, or containerInstanceLongArnFormat are specified, the Amazon Resource Name (ARN) and resource ID format of the resource type for a specified user, role, or the root user for an account is affected. The opt-in and opt-out account setting must be set for each Amazon ECS resource separately. The ARN and resource ID format of a resource is defined by the opt-in status of the user or role that created the resource. You must turn on this setting to use Amazon ECS features such as resource tagging. When awsvpcTrunking is specified, the elastic network interface (ENI) limit for any new container instances that support the feature is changed. If awsvpcTrunking is turned on, any new container instances that support the feature are launched have the increased ENI limits available to them. For more information, see Elastic Network Interface Trunking in the Amazon Elastic Container Service Developer Guide. When containerInsights is specified, the default setting indicating whether Amazon Web Services CloudWatch Container Insights is turned on for your clusters is changed. If containerInsights is turned on, any new clusters that are created will have Container Insights turned on unless you disable it during cluster creation. For more information, see CloudWatch Container Insights in the Amazon Elastic Container Service Developer Guide. Amazon ECS is introducing tagging authorization for resource creation. Users must have permissions for actions that create the resource, such as ecsCreateCluster. If tags are specified when you create a resource, Amazon Web Services performs additional authorization to verify if users or roles have permissions to create tags. Therefore, you must grant explicit permissions to use the ecs:TagResource action. For more information, see Grant permission to tag resources on creation in the Amazon ECS Developer Guide.
285
285
  */
286
286
  putAccountSetting(callback?: (err: AWSError, data: ECS.Types.PutAccountSettingResponse) => void): Request<ECS.Types.PutAccountSettingResponse, AWSError>;
287
287
  /**
@@ -2778,7 +2778,7 @@ declare namespace ECS {
2778
2778
  export type ProxyConfigurationType = "APPMESH"|string;
2779
2779
  export interface PutAccountSettingDefaultRequest {
2780
2780
  /**
2781
- * The resource name for which to modify the account setting. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If awsvpcTrunking is specified, the ENI limit for your Amazon ECS container instances is affected. If containerInsights is specified, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. When you specify fargateFIPSMode for the name and enabled for the value, Fargate uses FIPS-140 compliant cryptographic algorithms on your tasks. For more information about FIPS-140 compliance with Fargate, see Amazon Web Services Fargate Federal Information Processing Standard (FIPS) 140-2 compliance in the Amazon Elastic Container Service Developer Guide.
2781
+ * The resource name for which to modify the account setting. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If awsvpcTrunking is specified, the ENI limit for your Amazon ECS container instances is affected. If containerInsights is specified, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If tagResourceAuthorization is specified, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide. When you specify fargateFIPSMode for the name and enabled for the value, Fargate uses FIPS-140 compliant cryptographic algorithms on your tasks. For more information about FIPS-140 compliance with Fargate, see Amazon Web Services Fargate Federal Information Processing Standard (FIPS) 140-2 compliance in the Amazon Elastic Container Service Developer Guide.
2782
2782
  */
2783
2783
  name: SettingName;
2784
2784
  /**
@@ -2794,7 +2794,7 @@ declare namespace ECS {
2794
2794
  }
2795
2795
  export interface PutAccountSettingRequest {
2796
2796
  /**
2797
- * The Amazon ECS resource name for which to modify the account setting. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If awsvpcTrunking is specified, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If containerInsights is specified, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If fargateFIPSMode is specified, Fargate FIPS 140 compliance is affected.
2797
+ * The Amazon ECS resource name for which to modify the account setting. If serviceLongArnFormat is specified, the ARN for your Amazon ECS services is affected. If taskLongArnFormat is specified, the ARN and resource ID for your Amazon ECS tasks is affected. If containerInstanceLongArnFormat is specified, the ARN and resource ID for your Amazon ECS container instances is affected. If awsvpcTrunking is specified, the elastic network interface (ENI) limit for your Amazon ECS container instances is affected. If containerInsights is specified, the default setting for Amazon Web Services CloudWatch Container Insights for your clusters is affected. If fargateFIPSMode is specified, Fargate FIPS 140 compliance is affected. If tagResourceAuthorization is specified, the opt-in option for tagging resources on creation is affected. For information about the opt-in timeline, see Tagging authorization timeline in the Amazon ECS Developer Guide.
2798
2798
  */
2799
2799
  name: SettingName;
2800
2800
  /**
@@ -2954,7 +2954,7 @@ declare namespace ECS {
2954
2954
  */
2955
2955
  inferenceAccelerators?: InferenceAccelerators;
2956
2956
  /**
2957
- * The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate. For more information, see Fargate task storage in the Amazon ECS User Guide for Fargate. For tasks using the Fargate launch type, the task requires the following platforms: Linux platform version 1.4.0 or later.
2957
+ * The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate. For more information, see Fargate task storage in the Amazon ECS User Guide for Fargate. For tasks using the Fargate launch type, the task requires the following platforms: Linux platform version 1.4.0 or later. Windows platform version 1.0.0 or later.
2958
2958
  */
2959
2959
  ephemeralStorage?: EphemeralStorage;
2960
2960
  /**
@@ -3380,7 +3380,7 @@ declare namespace ECS {
3380
3380
  */
3381
3381
  principalArn?: String;
3382
3382
  }
3383
- export type SettingName = "serviceLongArnFormat"|"taskLongArnFormat"|"containerInstanceLongArnFormat"|"awsvpcTrunking"|"containerInsights"|"fargateFIPSMode"|string;
3383
+ export type SettingName = "serviceLongArnFormat"|"taskLongArnFormat"|"containerInstanceLongArnFormat"|"awsvpcTrunking"|"containerInsights"|"fargateFIPSMode"|"tagResourceAuthorization"|string;
3384
3384
  export type Settings = Setting[];
3385
3385
  export type SortOrder = "ASC"|"DESC"|string;
3386
3386
  export type StabilityStatus = "STEADY_STATE"|"STABILIZING"|string;
@@ -3398,7 +3398,7 @@ declare namespace ECS {
3398
3398
  */
3399
3399
  enableECSManagedTags?: Boolean;
3400
3400
  /**
3401
- * Whether or not the execute command functionality is turned on for the task. If true, this enables execute command functionality on all containers in the task.
3401
+ * Whether or not the execute command functionality is turned on for the task. If true, this turns on the execute command functionality on all containers in the task.
3402
3402
  */
3403
3403
  enableExecuteCommand?: Boolean;
3404
3404
  /**