@aws-sdk/client-personalize 3.58.0 → 3.72.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 +27 -0
- package/README.md +2 -2
- package/dist-cjs/Personalize.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +72 -4
- package/dist-cjs/protocols/Aws_json1_1.js +315 -2
- package/dist-es/Personalize.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +52 -0
- package/dist-es/protocols/Aws_json1_1.js +403 -47
- package/dist-types/Personalize.d.ts +113 -89
- package/dist-types/PersonalizeClient.d.ts +5 -2
- package/dist-types/commands/CreateBatchInferenceJobCommand.d.ts +3 -1
- package/dist-types/commands/CreateBatchSegmentJobCommand.d.ts +2 -1
- package/dist-types/commands/CreateCampaignCommand.d.ts +5 -6
- package/dist-types/commands/CreateDatasetCommand.d.ts +8 -6
- package/dist-types/commands/CreateDatasetExportJobCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatasetGroupCommand.d.ts +7 -7
- package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +3 -3
- package/dist-types/commands/CreateEventTrackerCommand.d.ts +4 -4
- package/dist-types/commands/CreateFilterCommand.d.ts +1 -1
- package/dist-types/commands/CreateRecommenderCommand.d.ts +5 -5
- package/dist-types/commands/CreateSchemaCommand.d.ts +4 -4
- package/dist-types/commands/CreateSolutionCommand.d.ts +10 -10
- package/dist-types/commands/CreateSolutionVersionCommand.d.ts +9 -10
- package/dist-types/commands/DeleteCampaignCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEventTrackerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSchemaCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSolutionCommand.d.ts +2 -2
- package/dist-types/commands/DescribeCampaignCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetExportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeEventTrackerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRecipeCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSchemaCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSolutionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSolutionVersionCommand.d.ts +2 -1
- package/dist-types/commands/ListCampaignsCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetExportJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListDatasetGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListDatasetsCommand.d.ts +1 -1
- package/dist-types/commands/ListEventTrackersCommand.d.ts +1 -1
- package/dist-types/commands/ListSchemasCommand.d.ts +1 -1
- package/dist-types/commands/ListSolutionVersionsCommand.d.ts +1 -2
- package/dist-types/commands/ListSolutionsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateCampaignCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +199 -34
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Personalize.d.ts +15 -0
- package/dist-types/ts3.4/PersonalizeClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +97 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/package.json +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeAws_json1_1ListSchemasCommand = exports.serializeAws_json1_1ListRecommendersCommand = exports.serializeAws_json1_1ListRecipesCommand = exports.serializeAws_json1_1ListFiltersCommand = exports.serializeAws_json1_1ListEventTrackersCommand = exports.serializeAws_json1_1ListDatasetsCommand = exports.serializeAws_json1_1ListDatasetImportJobsCommand = exports.serializeAws_json1_1ListDatasetGroupsCommand = exports.serializeAws_json1_1ListDatasetExportJobsCommand = exports.serializeAws_json1_1ListCampaignsCommand = exports.serializeAws_json1_1ListBatchSegmentJobsCommand = exports.serializeAws_json1_1ListBatchInferenceJobsCommand = exports.serializeAws_json1_1GetSolutionMetricsCommand = exports.serializeAws_json1_1DescribeSolutionVersionCommand = exports.serializeAws_json1_1DescribeSolutionCommand = exports.serializeAws_json1_1DescribeSchemaCommand = exports.serializeAws_json1_1DescribeRecommenderCommand = exports.serializeAws_json1_1DescribeRecipeCommand = exports.serializeAws_json1_1DescribeFilterCommand = exports.serializeAws_json1_1DescribeFeatureTransformationCommand = exports.serializeAws_json1_1DescribeEventTrackerCommand = exports.serializeAws_json1_1DescribeDatasetImportJobCommand = exports.serializeAws_json1_1DescribeDatasetGroupCommand = exports.serializeAws_json1_1DescribeDatasetExportJobCommand = exports.serializeAws_json1_1DescribeDatasetCommand = exports.serializeAws_json1_1DescribeCampaignCommand = exports.serializeAws_json1_1DescribeBatchSegmentJobCommand = exports.serializeAws_json1_1DescribeBatchInferenceJobCommand = exports.serializeAws_json1_1DescribeAlgorithmCommand = exports.serializeAws_json1_1DeleteSolutionCommand = exports.serializeAws_json1_1DeleteSchemaCommand = exports.serializeAws_json1_1DeleteRecommenderCommand = exports.serializeAws_json1_1DeleteFilterCommand = exports.serializeAws_json1_1DeleteEventTrackerCommand = exports.serializeAws_json1_1DeleteDatasetGroupCommand = exports.serializeAws_json1_1DeleteDatasetCommand = exports.serializeAws_json1_1DeleteCampaignCommand = exports.serializeAws_json1_1CreateSolutionVersionCommand = exports.serializeAws_json1_1CreateSolutionCommand = exports.serializeAws_json1_1CreateSchemaCommand = exports.serializeAws_json1_1CreateRecommenderCommand = exports.serializeAws_json1_1CreateFilterCommand = exports.serializeAws_json1_1CreateEventTrackerCommand = exports.serializeAws_json1_1CreateDatasetImportJobCommand = exports.serializeAws_json1_1CreateDatasetGroupCommand = exports.serializeAws_json1_1CreateDatasetExportJobCommand = exports.serializeAws_json1_1CreateDatasetCommand = exports.serializeAws_json1_1CreateCampaignCommand = exports.serializeAws_json1_1CreateBatchSegmentJobCommand = exports.serializeAws_json1_1CreateBatchInferenceJobCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateRecommenderCommand = exports.deserializeAws_json1_1UpdateCampaignCommand = exports.deserializeAws_json1_1StopSolutionVersionCreationCommand = exports.deserializeAws_json1_1ListSolutionVersionsCommand = exports.deserializeAws_json1_1ListSolutionsCommand = exports.deserializeAws_json1_1ListSchemasCommand = exports.deserializeAws_json1_1ListRecommendersCommand = exports.deserializeAws_json1_1ListRecipesCommand = exports.deserializeAws_json1_1ListFiltersCommand = exports.deserializeAws_json1_1ListEventTrackersCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1ListDatasetExportJobsCommand = exports.deserializeAws_json1_1ListCampaignsCommand = exports.deserializeAws_json1_1ListBatchSegmentJobsCommand = exports.deserializeAws_json1_1ListBatchInferenceJobsCommand = exports.deserializeAws_json1_1GetSolutionMetricsCommand = exports.deserializeAws_json1_1DescribeSolutionVersionCommand = exports.deserializeAws_json1_1DescribeSolutionCommand = exports.deserializeAws_json1_1DescribeSchemaCommand = exports.deserializeAws_json1_1DescribeRecommenderCommand = exports.deserializeAws_json1_1DescribeRecipeCommand = exports.deserializeAws_json1_1DescribeFilterCommand = exports.deserializeAws_json1_1DescribeFeatureTransformationCommand = exports.deserializeAws_json1_1DescribeEventTrackerCommand = exports.deserializeAws_json1_1DescribeDatasetImportJobCommand = exports.deserializeAws_json1_1DescribeDatasetGroupCommand = exports.deserializeAws_json1_1DescribeDatasetExportJobCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = exports.deserializeAws_json1_1DescribeCampaignCommand = exports.deserializeAws_json1_1DescribeBatchSegmentJobCommand = exports.deserializeAws_json1_1DescribeBatchInferenceJobCommand = exports.deserializeAws_json1_1DescribeAlgorithmCommand = exports.deserializeAws_json1_1DeleteSolutionCommand = exports.deserializeAws_json1_1DeleteSchemaCommand = exports.deserializeAws_json1_1DeleteRecommenderCommand = exports.deserializeAws_json1_1DeleteFilterCommand = exports.deserializeAws_json1_1DeleteEventTrackerCommand = exports.deserializeAws_json1_1DeleteDatasetGroupCommand = exports.deserializeAws_json1_1DeleteDatasetCommand = exports.deserializeAws_json1_1DeleteCampaignCommand = exports.deserializeAws_json1_1CreateSolutionVersionCommand = exports.deserializeAws_json1_1CreateSolutionCommand = exports.deserializeAws_json1_1CreateSchemaCommand = exports.deserializeAws_json1_1CreateRecommenderCommand = exports.deserializeAws_json1_1CreateFilterCommand = exports.deserializeAws_json1_1CreateEventTrackerCommand = exports.deserializeAws_json1_1CreateDatasetImportJobCommand = exports.deserializeAws_json1_1CreateDatasetGroupCommand = exports.deserializeAws_json1_1CreateDatasetExportJobCommand = exports.deserializeAws_json1_1CreateDatasetCommand = exports.deserializeAws_json1_1CreateCampaignCommand = exports.deserializeAws_json1_1CreateBatchSegmentJobCommand = exports.deserializeAws_json1_1CreateBatchInferenceJobCommand = exports.serializeAws_json1_1UpdateRecommenderCommand = exports.serializeAws_json1_1UpdateCampaignCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopSolutionVersionCreationCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListSolutionVersionsCommand = exports.serializeAws_json1_1ListSolutionsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateRecommenderCommand = exports.deserializeAws_json1_1UpdateCampaignCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopSolutionVersionCreationCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSolutionVersionsCommand = exports.deserializeAws_json1_1ListSolutionsCommand = exports.deserializeAws_json1_1ListSchemasCommand = exports.deserializeAws_json1_1ListRecommendersCommand = exports.deserializeAws_json1_1ListRecipesCommand = exports.deserializeAws_json1_1ListFiltersCommand = exports.deserializeAws_json1_1ListEventTrackersCommand = exports.deserializeAws_json1_1ListDatasetsCommand = exports.deserializeAws_json1_1ListDatasetImportJobsCommand = exports.deserializeAws_json1_1ListDatasetGroupsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -527,6 +527,16 @@ const serializeAws_json1_1ListSolutionVersionsCommand = async (input, context) =
|
|
|
527
527
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
528
528
|
};
|
|
529
529
|
exports.serializeAws_json1_1ListSolutionVersionsCommand = serializeAws_json1_1ListSolutionVersionsCommand;
|
|
530
|
+
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
531
|
+
const headers = {
|
|
532
|
+
"content-type": "application/x-amz-json-1.1",
|
|
533
|
+
"x-amz-target": "AmazonPersonalize.ListTagsForResource",
|
|
534
|
+
};
|
|
535
|
+
let body;
|
|
536
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
537
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
538
|
+
};
|
|
539
|
+
exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
|
|
530
540
|
const serializeAws_json1_1StopSolutionVersionCreationCommand = async (input, context) => {
|
|
531
541
|
const headers = {
|
|
532
542
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -537,6 +547,26 @@ const serializeAws_json1_1StopSolutionVersionCreationCommand = async (input, con
|
|
|
537
547
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
538
548
|
};
|
|
539
549
|
exports.serializeAws_json1_1StopSolutionVersionCreationCommand = serializeAws_json1_1StopSolutionVersionCreationCommand;
|
|
550
|
+
const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
551
|
+
const headers = {
|
|
552
|
+
"content-type": "application/x-amz-json-1.1",
|
|
553
|
+
"x-amz-target": "AmazonPersonalize.TagResource",
|
|
554
|
+
};
|
|
555
|
+
let body;
|
|
556
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
557
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
558
|
+
};
|
|
559
|
+
exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand;
|
|
560
|
+
const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
561
|
+
const headers = {
|
|
562
|
+
"content-type": "application/x-amz-json-1.1",
|
|
563
|
+
"x-amz-target": "AmazonPersonalize.UntagResource",
|
|
564
|
+
};
|
|
565
|
+
let body;
|
|
566
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
567
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
568
|
+
};
|
|
569
|
+
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
540
570
|
const serializeAws_json1_1UpdateCampaignCommand = async (input, context) => {
|
|
541
571
|
const headers = {
|
|
542
572
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -595,6 +625,9 @@ const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output,
|
|
|
595
625
|
case "ResourceNotFoundException":
|
|
596
626
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
597
627
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
628
|
+
case "TooManyTagsException":
|
|
629
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
630
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
598
631
|
default:
|
|
599
632
|
const parsedBody = parsedOutput.body;
|
|
600
633
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -643,6 +676,9 @@ const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, c
|
|
|
643
676
|
case "ResourceNotFoundException":
|
|
644
677
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
645
678
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
679
|
+
case "TooManyTagsException":
|
|
680
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
681
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
646
682
|
default:
|
|
647
683
|
const parsedBody = parsedOutput.body;
|
|
648
684
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -691,6 +727,9 @@ const deserializeAws_json1_1CreateCampaignCommandError = async (output, context)
|
|
|
691
727
|
case "ResourceNotFoundException":
|
|
692
728
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
693
729
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
730
|
+
case "TooManyTagsException":
|
|
731
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
732
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
694
733
|
default:
|
|
695
734
|
const parsedBody = parsedOutput.body;
|
|
696
735
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -739,6 +778,9 @@ const deserializeAws_json1_1CreateDatasetCommandError = async (output, context)
|
|
|
739
778
|
case "ResourceNotFoundException":
|
|
740
779
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
741
780
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
781
|
+
case "TooManyTagsException":
|
|
782
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
783
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
742
784
|
default:
|
|
743
785
|
const parsedBody = parsedOutput.body;
|
|
744
786
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -787,6 +829,9 @@ const deserializeAws_json1_1CreateDatasetExportJobCommandError = async (output,
|
|
|
787
829
|
case "ResourceNotFoundException":
|
|
788
830
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
789
831
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
832
|
+
case "TooManyTagsException":
|
|
833
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
834
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
790
835
|
default:
|
|
791
836
|
const parsedBody = parsedOutput.body;
|
|
792
837
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -829,6 +874,9 @@ const deserializeAws_json1_1CreateDatasetGroupCommandError = async (output, cont
|
|
|
829
874
|
case "ResourceAlreadyExistsException":
|
|
830
875
|
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
831
876
|
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
877
|
+
case "TooManyTagsException":
|
|
878
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
879
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
832
880
|
default:
|
|
833
881
|
const parsedBody = parsedOutput.body;
|
|
834
882
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -877,6 +925,9 @@ const deserializeAws_json1_1CreateDatasetImportJobCommandError = async (output,
|
|
|
877
925
|
case "ResourceNotFoundException":
|
|
878
926
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
879
927
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
928
|
+
case "TooManyTagsException":
|
|
929
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
930
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
880
931
|
default:
|
|
881
932
|
const parsedBody = parsedOutput.body;
|
|
882
933
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -925,6 +976,9 @@ const deserializeAws_json1_1CreateEventTrackerCommandError = async (output, cont
|
|
|
925
976
|
case "ResourceNotFoundException":
|
|
926
977
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
927
978
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
979
|
+
case "TooManyTagsException":
|
|
980
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
981
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
928
982
|
default:
|
|
929
983
|
const parsedBody = parsedOutput.body;
|
|
930
984
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -970,6 +1024,9 @@ const deserializeAws_json1_1CreateFilterCommandError = async (output, context) =
|
|
|
970
1024
|
case "ResourceNotFoundException":
|
|
971
1025
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
972
1026
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1027
|
+
case "TooManyTagsException":
|
|
1028
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1029
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
973
1030
|
default:
|
|
974
1031
|
const parsedBody = parsedOutput.body;
|
|
975
1032
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -1015,6 +1072,9 @@ const deserializeAws_json1_1CreateRecommenderCommandError = async (output, conte
|
|
|
1015
1072
|
case "ResourceNotFoundException":
|
|
1016
1073
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1017
1074
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1075
|
+
case "TooManyTagsException":
|
|
1076
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1077
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1018
1078
|
default:
|
|
1019
1079
|
const parsedBody = parsedOutput.body;
|
|
1020
1080
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -1105,6 +1165,9 @@ const deserializeAws_json1_1CreateSolutionCommandError = async (output, context)
|
|
|
1105
1165
|
case "ResourceNotFoundException":
|
|
1106
1166
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1107
1167
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1168
|
+
case "TooManyTagsException":
|
|
1169
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1170
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1108
1171
|
default:
|
|
1109
1172
|
const parsedBody = parsedOutput.body;
|
|
1110
1173
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -1150,6 +1213,9 @@ const deserializeAws_json1_1CreateSolutionVersionCommandError = async (output, c
|
|
|
1150
1213
|
case "ResourceNotFoundException":
|
|
1151
1214
|
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1152
1215
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1216
|
+
case "TooManyTagsException":
|
|
1217
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
1218
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1153
1219
|
default:
|
|
1154
1220
|
const parsedBody = parsedOutput.body;
|
|
1155
1221
|
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
@@ -2681,6 +2747,48 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
|
|
|
2681
2747
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2682
2748
|
}
|
|
2683
2749
|
};
|
|
2750
|
+
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
2751
|
+
if (output.statusCode >= 300) {
|
|
2752
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
2753
|
+
}
|
|
2754
|
+
const data = await parseBody(output.body, context);
|
|
2755
|
+
let contents = {};
|
|
2756
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2757
|
+
const response = {
|
|
2758
|
+
$metadata: deserializeMetadata(output),
|
|
2759
|
+
...contents,
|
|
2760
|
+
};
|
|
2761
|
+
return Promise.resolve(response);
|
|
2762
|
+
};
|
|
2763
|
+
exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand;
|
|
2764
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
2765
|
+
const parsedOutput = {
|
|
2766
|
+
...output,
|
|
2767
|
+
body: await parseBody(output.body, context),
|
|
2768
|
+
};
|
|
2769
|
+
let response;
|
|
2770
|
+
let errorCode = "UnknownError";
|
|
2771
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2772
|
+
switch (errorCode) {
|
|
2773
|
+
case "InvalidInputException":
|
|
2774
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
2775
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2776
|
+
case "ResourceInUseException":
|
|
2777
|
+
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2778
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2779
|
+
case "ResourceNotFoundException":
|
|
2780
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2781
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2782
|
+
default:
|
|
2783
|
+
const parsedBody = parsedOutput.body;
|
|
2784
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2785
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2786
|
+
$fault: "client",
|
|
2787
|
+
$metadata: deserializeMetadata(output),
|
|
2788
|
+
});
|
|
2789
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2790
|
+
}
|
|
2791
|
+
};
|
|
2684
2792
|
const deserializeAws_json1_1StopSolutionVersionCreationCommand = async (output, context) => {
|
|
2685
2793
|
if (output.statusCode >= 300) {
|
|
2686
2794
|
return deserializeAws_json1_1StopSolutionVersionCreationCommandError(output, context);
|
|
@@ -2720,6 +2828,99 @@ const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (out
|
|
|
2720
2828
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2721
2829
|
}
|
|
2722
2830
|
};
|
|
2831
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
2832
|
+
if (output.statusCode >= 300) {
|
|
2833
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
2834
|
+
}
|
|
2835
|
+
const data = await parseBody(output.body, context);
|
|
2836
|
+
let contents = {};
|
|
2837
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2838
|
+
const response = {
|
|
2839
|
+
$metadata: deserializeMetadata(output),
|
|
2840
|
+
...contents,
|
|
2841
|
+
};
|
|
2842
|
+
return Promise.resolve(response);
|
|
2843
|
+
};
|
|
2844
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
2845
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
2846
|
+
const parsedOutput = {
|
|
2847
|
+
...output,
|
|
2848
|
+
body: await parseBody(output.body, context),
|
|
2849
|
+
};
|
|
2850
|
+
let response;
|
|
2851
|
+
let errorCode = "UnknownError";
|
|
2852
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
|
+
switch (errorCode) {
|
|
2854
|
+
case "InvalidInputException":
|
|
2855
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
2856
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2857
|
+
case "LimitExceededException":
|
|
2858
|
+
case "com.amazonaws.personalize#LimitExceededException":
|
|
2859
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2860
|
+
case "ResourceInUseException":
|
|
2861
|
+
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2862
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2863
|
+
case "ResourceNotFoundException":
|
|
2864
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2865
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2866
|
+
case "TooManyTagsException":
|
|
2867
|
+
case "com.amazonaws.personalize#TooManyTagsException":
|
|
2868
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2869
|
+
default:
|
|
2870
|
+
const parsedBody = parsedOutput.body;
|
|
2871
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2872
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2873
|
+
$fault: "client",
|
|
2874
|
+
$metadata: deserializeMetadata(output),
|
|
2875
|
+
});
|
|
2876
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2877
|
+
}
|
|
2878
|
+
};
|
|
2879
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
2880
|
+
if (output.statusCode >= 300) {
|
|
2881
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
2882
|
+
}
|
|
2883
|
+
const data = await parseBody(output.body, context);
|
|
2884
|
+
let contents = {};
|
|
2885
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2886
|
+
const response = {
|
|
2887
|
+
$metadata: deserializeMetadata(output),
|
|
2888
|
+
...contents,
|
|
2889
|
+
};
|
|
2890
|
+
return Promise.resolve(response);
|
|
2891
|
+
};
|
|
2892
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
2893
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
2894
|
+
const parsedOutput = {
|
|
2895
|
+
...output,
|
|
2896
|
+
body: await parseBody(output.body, context),
|
|
2897
|
+
};
|
|
2898
|
+
let response;
|
|
2899
|
+
let errorCode = "UnknownError";
|
|
2900
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
|
+
switch (errorCode) {
|
|
2902
|
+
case "InvalidInputException":
|
|
2903
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
2904
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
2905
|
+
case "ResourceInUseException":
|
|
2906
|
+
case "com.amazonaws.personalize#ResourceInUseException":
|
|
2907
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
2908
|
+
case "ResourceNotFoundException":
|
|
2909
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2910
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2911
|
+
case "TooManyTagKeysException":
|
|
2912
|
+
case "com.amazonaws.personalize#TooManyTagKeysException":
|
|
2913
|
+
throw await deserializeAws_json1_1TooManyTagKeysExceptionResponse(parsedOutput, context);
|
|
2914
|
+
default:
|
|
2915
|
+
const parsedBody = parsedOutput.body;
|
|
2916
|
+
response = new PersonalizeServiceException_1.PersonalizeServiceException({
|
|
2917
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2918
|
+
$fault: "client",
|
|
2919
|
+
$metadata: deserializeMetadata(output),
|
|
2920
|
+
});
|
|
2921
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2922
|
+
}
|
|
2923
|
+
};
|
|
2723
2924
|
const deserializeAws_json1_1UpdateCampaignCommand = async (output, context) => {
|
|
2724
2925
|
if (output.statusCode >= 300) {
|
|
2725
2926
|
return deserializeAws_json1_1UpdateCampaignCommandError(output, context);
|
|
@@ -2858,6 +3059,24 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
2858
3059
|
});
|
|
2859
3060
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2860
3061
|
};
|
|
3062
|
+
const deserializeAws_json1_1TooManyTagKeysExceptionResponse = async (parsedOutput, context) => {
|
|
3063
|
+
const body = parsedOutput.body;
|
|
3064
|
+
const deserialized = deserializeAws_json1_1TooManyTagKeysException(body, context);
|
|
3065
|
+
const exception = new models_0_1.TooManyTagKeysException({
|
|
3066
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3067
|
+
...deserialized,
|
|
3068
|
+
});
|
|
3069
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3070
|
+
};
|
|
3071
|
+
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
3072
|
+
const body = parsedOutput.body;
|
|
3073
|
+
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
3074
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
3075
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3076
|
+
...deserialized,
|
|
3077
|
+
});
|
|
3078
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3079
|
+
};
|
|
2861
3080
|
const serializeAws_json1_1ArnList = (input, context) => {
|
|
2862
3081
|
return input
|
|
2863
3082
|
.filter((e) => e != null)
|
|
@@ -2979,6 +3198,7 @@ const serializeAws_json1_1CreateBatchInferenceJobRequest = (input, context) => {
|
|
|
2979
3198
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
2980
3199
|
...(input.solutionVersionArn !== undefined &&
|
|
2981
3200
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
3201
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2982
3202
|
};
|
|
2983
3203
|
};
|
|
2984
3204
|
const serializeAws_json1_1CreateBatchSegmentJobRequest = (input, context) => {
|
|
@@ -2993,6 +3213,7 @@ const serializeAws_json1_1CreateBatchSegmentJobRequest = (input, context) => {
|
|
|
2993
3213
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
2994
3214
|
...(input.solutionVersionArn !== undefined &&
|
|
2995
3215
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
3216
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
2996
3217
|
};
|
|
2997
3218
|
};
|
|
2998
3219
|
const serializeAws_json1_1CreateCampaignRequest = (input, context) => {
|
|
@@ -3006,6 +3227,7 @@ const serializeAws_json1_1CreateCampaignRequest = (input, context) => {
|
|
|
3006
3227
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3007
3228
|
...(input.solutionVersionArn !== undefined &&
|
|
3008
3229
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
3230
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3009
3231
|
};
|
|
3010
3232
|
};
|
|
3011
3233
|
const serializeAws_json1_1CreateDatasetExportJobRequest = (input, context) => {
|
|
@@ -3016,6 +3238,7 @@ const serializeAws_json1_1CreateDatasetExportJobRequest = (input, context) => {
|
|
|
3016
3238
|
...(input.jobOutput !== undefined &&
|
|
3017
3239
|
input.jobOutput !== null && { jobOutput: serializeAws_json1_1DatasetExportJobOutput(input.jobOutput, context) }),
|
|
3018
3240
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
3241
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3019
3242
|
};
|
|
3020
3243
|
};
|
|
3021
3244
|
const serializeAws_json1_1CreateDatasetGroupRequest = (input, context) => {
|
|
@@ -3024,6 +3247,7 @@ const serializeAws_json1_1CreateDatasetGroupRequest = (input, context) => {
|
|
|
3024
3247
|
...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
|
|
3025
3248
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3026
3249
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
3250
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3027
3251
|
};
|
|
3028
3252
|
};
|
|
3029
3253
|
const serializeAws_json1_1CreateDatasetImportJobRequest = (input, context) => {
|
|
@@ -3033,6 +3257,7 @@ const serializeAws_json1_1CreateDatasetImportJobRequest = (input, context) => {
|
|
|
3033
3257
|
...(input.datasetArn !== undefined && input.datasetArn !== null && { datasetArn: input.datasetArn }),
|
|
3034
3258
|
...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
|
|
3035
3259
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
3260
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3036
3261
|
};
|
|
3037
3262
|
};
|
|
3038
3263
|
const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
|
|
@@ -3042,6 +3267,7 @@ const serializeAws_json1_1CreateDatasetRequest = (input, context) => {
|
|
|
3042
3267
|
...(input.datasetType !== undefined && input.datasetType !== null && { datasetType: input.datasetType }),
|
|
3043
3268
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3044
3269
|
...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
|
|
3270
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3045
3271
|
};
|
|
3046
3272
|
};
|
|
3047
3273
|
const serializeAws_json1_1CreateEventTrackerRequest = (input, context) => {
|
|
@@ -3049,6 +3275,7 @@ const serializeAws_json1_1CreateEventTrackerRequest = (input, context) => {
|
|
|
3049
3275
|
...(input.datasetGroupArn !== undefined &&
|
|
3050
3276
|
input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
|
|
3051
3277
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3278
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3052
3279
|
};
|
|
3053
3280
|
};
|
|
3054
3281
|
const serializeAws_json1_1CreateFilterRequest = (input, context) => {
|
|
@@ -3058,6 +3285,7 @@ const serializeAws_json1_1CreateFilterRequest = (input, context) => {
|
|
|
3058
3285
|
...(input.filterExpression !== undefined &&
|
|
3059
3286
|
input.filterExpression !== null && { filterExpression: input.filterExpression }),
|
|
3060
3287
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3288
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3061
3289
|
};
|
|
3062
3290
|
};
|
|
3063
3291
|
const serializeAws_json1_1CreateRecommenderRequest = (input, context) => {
|
|
@@ -3070,6 +3298,7 @@ const serializeAws_json1_1CreateRecommenderRequest = (input, context) => {
|
|
|
3070
3298
|
input.recommenderConfig !== null && {
|
|
3071
3299
|
recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
|
|
3072
3300
|
}),
|
|
3301
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3073
3302
|
};
|
|
3074
3303
|
};
|
|
3075
3304
|
const serializeAws_json1_1CreateSchemaRequest = (input, context) => {
|
|
@@ -3092,11 +3321,13 @@ const serializeAws_json1_1CreateSolutionRequest = (input, context) => {
|
|
|
3092
3321
|
input.solutionConfig !== null && {
|
|
3093
3322
|
solutionConfig: serializeAws_json1_1SolutionConfig(input.solutionConfig, context),
|
|
3094
3323
|
}),
|
|
3324
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3095
3325
|
};
|
|
3096
3326
|
};
|
|
3097
3327
|
const serializeAws_json1_1CreateSolutionVersionRequest = (input, context) => {
|
|
3098
3328
|
return {
|
|
3099
3329
|
...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
|
|
3330
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3100
3331
|
...(input.trainingMode !== undefined && input.trainingMode !== null && { trainingMode: input.trainingMode }),
|
|
3101
3332
|
};
|
|
3102
3333
|
};
|
|
@@ -3440,6 +3671,11 @@ const serializeAws_json1_1ListSolutionVersionsRequest = (input, context) => {
|
|
|
3440
3671
|
...(input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }),
|
|
3441
3672
|
};
|
|
3442
3673
|
};
|
|
3674
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
3675
|
+
return {
|
|
3676
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3443
3679
|
const serializeAws_json1_1OptimizationObjective = (input, context) => {
|
|
3444
3680
|
return {
|
|
3445
3681
|
...(input.itemAttribute !== undefined && input.itemAttribute !== null && { itemAttribute: input.itemAttribute }),
|
|
@@ -3493,6 +3729,45 @@ const serializeAws_json1_1StopSolutionVersionCreationRequest = (input, context)
|
|
|
3493
3729
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
3494
3730
|
};
|
|
3495
3731
|
};
|
|
3732
|
+
const serializeAws_json1_1Tag = (input, context) => {
|
|
3733
|
+
return {
|
|
3734
|
+
...(input.tagKey !== undefined && input.tagKey !== null && { tagKey: input.tagKey }),
|
|
3735
|
+
...(input.tagValue !== undefined && input.tagValue !== null && { tagValue: input.tagValue }),
|
|
3736
|
+
};
|
|
3737
|
+
};
|
|
3738
|
+
const serializeAws_json1_1TagKeys = (input, context) => {
|
|
3739
|
+
return input
|
|
3740
|
+
.filter((e) => e != null)
|
|
3741
|
+
.map((entry) => {
|
|
3742
|
+
if (entry === null) {
|
|
3743
|
+
return null;
|
|
3744
|
+
}
|
|
3745
|
+
return entry;
|
|
3746
|
+
});
|
|
3747
|
+
};
|
|
3748
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
3749
|
+
return {
|
|
3750
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3751
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) }),
|
|
3752
|
+
};
|
|
3753
|
+
};
|
|
3754
|
+
const serializeAws_json1_1Tags = (input, context) => {
|
|
3755
|
+
return input
|
|
3756
|
+
.filter((e) => e != null)
|
|
3757
|
+
.map((entry) => {
|
|
3758
|
+
if (entry === null) {
|
|
3759
|
+
return null;
|
|
3760
|
+
}
|
|
3761
|
+
return serializeAws_json1_1Tag(entry, context);
|
|
3762
|
+
});
|
|
3763
|
+
};
|
|
3764
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
3765
|
+
return {
|
|
3766
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3767
|
+
...(input.tagKeys !== undefined &&
|
|
3768
|
+
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeys(input.tagKeys, context) }),
|
|
3769
|
+
};
|
|
3770
|
+
};
|
|
3496
3771
|
const serializeAws_json1_1UpdateCampaignRequest = (input, context) => {
|
|
3497
3772
|
return {
|
|
3498
3773
|
...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
|
|
@@ -4614,6 +4889,11 @@ const deserializeAws_json1_1ListSolutionVersionsResponse = (output, context) =>
|
|
|
4614
4889
|
: undefined,
|
|
4615
4890
|
};
|
|
4616
4891
|
};
|
|
4892
|
+
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
4893
|
+
return {
|
|
4894
|
+
tags: output.tags !== undefined && output.tags !== null ? deserializeAws_json1_1Tags(output.tags, context) : undefined,
|
|
4895
|
+
};
|
|
4896
|
+
};
|
|
4617
4897
|
const deserializeAws_json1_1Metrics = (output, context) => {
|
|
4618
4898
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4619
4899
|
if (value === null) {
|
|
@@ -4912,6 +5192,36 @@ const deserializeAws_json1_1SolutionVersionSummary = (output, context) => {
|
|
|
4912
5192
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4913
5193
|
};
|
|
4914
5194
|
};
|
|
5195
|
+
const deserializeAws_json1_1Tag = (output, context) => {
|
|
5196
|
+
return {
|
|
5197
|
+
tagKey: (0, smithy_client_1.expectString)(output.tagKey),
|
|
5198
|
+
tagValue: (0, smithy_client_1.expectString)(output.tagValue),
|
|
5199
|
+
};
|
|
5200
|
+
};
|
|
5201
|
+
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
5202
|
+
return {};
|
|
5203
|
+
};
|
|
5204
|
+
const deserializeAws_json1_1Tags = (output, context) => {
|
|
5205
|
+
const retVal = (output || [])
|
|
5206
|
+
.filter((e) => e != null)
|
|
5207
|
+
.map((entry) => {
|
|
5208
|
+
if (entry === null) {
|
|
5209
|
+
return null;
|
|
5210
|
+
}
|
|
5211
|
+
return deserializeAws_json1_1Tag(entry, context);
|
|
5212
|
+
});
|
|
5213
|
+
return retVal;
|
|
5214
|
+
};
|
|
5215
|
+
const deserializeAws_json1_1TooManyTagKeysException = (output, context) => {
|
|
5216
|
+
return {
|
|
5217
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
5218
|
+
};
|
|
5219
|
+
};
|
|
5220
|
+
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
5221
|
+
return {
|
|
5222
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
5223
|
+
};
|
|
5224
|
+
};
|
|
4915
5225
|
const deserializeAws_json1_1TunedHPOParams = (output, context) => {
|
|
4916
5226
|
return {
|
|
4917
5227
|
algorithmHyperParameters: output.algorithmHyperParameters !== undefined && output.algorithmHyperParameters !== null
|
|
@@ -4919,6 +5229,9 @@ const deserializeAws_json1_1TunedHPOParams = (output, context) => {
|
|
|
4919
5229
|
: undefined,
|
|
4920
5230
|
};
|
|
4921
5231
|
};
|
|
5232
|
+
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
5233
|
+
return {};
|
|
5234
|
+
};
|
|
4922
5235
|
const deserializeAws_json1_1UpdateCampaignResponse = (output, context) => {
|
|
4923
5236
|
return {
|
|
4924
5237
|
campaignArn: (0, smithy_client_1.expectString)(output.campaignArn),
|
package/dist-es/Personalize.js
CHANGED
|
@@ -51,7 +51,10 @@ import { ListRecommendersCommand, } from "./commands/ListRecommendersCommand";
|
|
|
51
51
|
import { ListSchemasCommand } from "./commands/ListSchemasCommand";
|
|
52
52
|
import { ListSolutionsCommand, } from "./commands/ListSolutionsCommand";
|
|
53
53
|
import { ListSolutionVersionsCommand, } from "./commands/ListSolutionVersionsCommand";
|
|
54
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
54
55
|
import { StopSolutionVersionCreationCommand, } from "./commands/StopSolutionVersionCreationCommand";
|
|
56
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
57
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
55
58
|
import { UpdateCampaignCommand, } from "./commands/UpdateCampaignCommand";
|
|
56
59
|
import { UpdateRecommenderCommand, } from "./commands/UpdateRecommenderCommand";
|
|
57
60
|
import { PersonalizeClient } from "./PersonalizeClient";
|
|
@@ -788,6 +791,20 @@ var Personalize = (function (_super) {
|
|
|
788
791
|
return this.send(command, optionsOrCb);
|
|
789
792
|
}
|
|
790
793
|
};
|
|
794
|
+
Personalize.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
795
|
+
var command = new ListTagsForResourceCommand(args);
|
|
796
|
+
if (typeof optionsOrCb === "function") {
|
|
797
|
+
this.send(command, optionsOrCb);
|
|
798
|
+
}
|
|
799
|
+
else if (typeof cb === "function") {
|
|
800
|
+
if (typeof optionsOrCb !== "object")
|
|
801
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
802
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
return this.send(command, optionsOrCb);
|
|
806
|
+
}
|
|
807
|
+
};
|
|
791
808
|
Personalize.prototype.stopSolutionVersionCreation = function (args, optionsOrCb, cb) {
|
|
792
809
|
var command = new StopSolutionVersionCreationCommand(args);
|
|
793
810
|
if (typeof optionsOrCb === "function") {
|
|
@@ -802,6 +819,34 @@ var Personalize = (function (_super) {
|
|
|
802
819
|
return this.send(command, optionsOrCb);
|
|
803
820
|
}
|
|
804
821
|
};
|
|
822
|
+
Personalize.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
823
|
+
var command = new TagResourceCommand(args);
|
|
824
|
+
if (typeof optionsOrCb === "function") {
|
|
825
|
+
this.send(command, optionsOrCb);
|
|
826
|
+
}
|
|
827
|
+
else if (typeof cb === "function") {
|
|
828
|
+
if (typeof optionsOrCb !== "object")
|
|
829
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
830
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
return this.send(command, optionsOrCb);
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
Personalize.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
837
|
+
var command = new UntagResourceCommand(args);
|
|
838
|
+
if (typeof optionsOrCb === "function") {
|
|
839
|
+
this.send(command, optionsOrCb);
|
|
840
|
+
}
|
|
841
|
+
else if (typeof cb === "function") {
|
|
842
|
+
if (typeof optionsOrCb !== "object")
|
|
843
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
844
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
845
|
+
}
|
|
846
|
+
else {
|
|
847
|
+
return this.send(command, optionsOrCb);
|
|
848
|
+
}
|
|
849
|
+
};
|
|
805
850
|
Personalize.prototype.updateCampaign = function (args, optionsOrCb, cb) {
|
|
806
851
|
var command = new UpdateCampaignCommand(args);
|
|
807
852
|
if (typeof optionsOrCb === "function") {
|