@aws-sdk/client-macie2 3.31.0 → 3.32.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 +11 -0
- package/Macie2.ts +38 -1
- package/Macie2Client.ts +6 -0
- package/commands/ListInvitationsCommand.ts +1 -1
- package/commands/ListManagedDataIdentifiersCommand.ts +97 -0
- package/dist/cjs/Macie2.js +15 -0
- package/dist/cjs/Macie2.js.map +1 -1
- package/dist/cjs/Macie2Client.js +13 -13
- package/dist/cjs/Macie2Client.js.map +1 -1
- package/dist/cjs/commands/AcceptInvitationCommand.js +3 -3
- package/dist/cjs/commands/AcceptInvitationCommand.js.map +1 -1
- package/dist/cjs/commands/BatchGetCustomDataIdentifiersCommand.js +3 -3
- package/dist/cjs/commands/BatchGetCustomDataIdentifiersCommand.js.map +1 -1
- package/dist/cjs/commands/CreateClassificationJobCommand.js +3 -3
- package/dist/cjs/commands/CreateClassificationJobCommand.js.map +1 -1
- package/dist/cjs/commands/CreateCustomDataIdentifierCommand.js +3 -3
- package/dist/cjs/commands/CreateCustomDataIdentifierCommand.js.map +1 -1
- package/dist/cjs/commands/CreateFindingsFilterCommand.js +3 -3
- package/dist/cjs/commands/CreateFindingsFilterCommand.js.map +1 -1
- package/dist/cjs/commands/CreateInvitationsCommand.js +3 -3
- package/dist/cjs/commands/CreateInvitationsCommand.js.map +1 -1
- package/dist/cjs/commands/CreateMemberCommand.js +3 -3
- package/dist/cjs/commands/CreateMemberCommand.js.map +1 -1
- package/dist/cjs/commands/CreateSampleFindingsCommand.js +3 -3
- package/dist/cjs/commands/CreateSampleFindingsCommand.js.map +1 -1
- package/dist/cjs/commands/DeclineInvitationsCommand.js +3 -3
- package/dist/cjs/commands/DeclineInvitationsCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCustomDataIdentifierCommand.js +3 -3
- package/dist/cjs/commands/DeleteCustomDataIdentifierCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteFindingsFilterCommand.js +3 -3
- package/dist/cjs/commands/DeleteFindingsFilterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteInvitationsCommand.js +3 -3
- package/dist/cjs/commands/DeleteInvitationsCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMemberCommand.js +3 -3
- package/dist/cjs/commands/DeleteMemberCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeBucketsCommand.js +3 -3
- package/dist/cjs/commands/DescribeBucketsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeClassificationJobCommand.js +3 -3
- package/dist/cjs/commands/DescribeClassificationJobCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
- package/dist/cjs/commands/DescribeOrganizationConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/DisableMacieCommand.js +3 -3
- package/dist/cjs/commands/DisableMacieCommand.js.map +1 -1
- package/dist/cjs/commands/DisableOrganizationAdminAccountCommand.js +3 -3
- package/dist/cjs/commands/DisableOrganizationAdminAccountCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateFromAdministratorAccountCommand.js +3 -3
- package/dist/cjs/commands/DisassociateFromAdministratorAccountCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateFromMasterAccountCommand.js +3 -3
- package/dist/cjs/commands/DisassociateFromMasterAccountCommand.js.map +1 -1
- package/dist/cjs/commands/DisassociateMemberCommand.js +3 -3
- package/dist/cjs/commands/DisassociateMemberCommand.js.map +1 -1
- package/dist/cjs/commands/EnableMacieCommand.js +3 -3
- package/dist/cjs/commands/EnableMacieCommand.js.map +1 -1
- package/dist/cjs/commands/EnableOrganizationAdminAccountCommand.js +3 -3
- package/dist/cjs/commands/EnableOrganizationAdminAccountCommand.js.map +1 -1
- package/dist/cjs/commands/GetAdministratorAccountCommand.js +3 -3
- package/dist/cjs/commands/GetAdministratorAccountCommand.js.map +1 -1
- package/dist/cjs/commands/GetBucketStatisticsCommand.js +3 -3
- package/dist/cjs/commands/GetBucketStatisticsCommand.js.map +1 -1
- package/dist/cjs/commands/GetClassificationExportConfigurationCommand.js +3 -3
- package/dist/cjs/commands/GetClassificationExportConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/GetCustomDataIdentifierCommand.js +3 -3
- package/dist/cjs/commands/GetCustomDataIdentifierCommand.js.map +1 -1
- package/dist/cjs/commands/GetFindingStatisticsCommand.js +3 -3
- package/dist/cjs/commands/GetFindingStatisticsCommand.js.map +1 -1
- package/dist/cjs/commands/GetFindingsCommand.js +3 -3
- package/dist/cjs/commands/GetFindingsCommand.js.map +1 -1
- package/dist/cjs/commands/GetFindingsFilterCommand.js +3 -3
- package/dist/cjs/commands/GetFindingsFilterCommand.js.map +1 -1
- package/dist/cjs/commands/GetFindingsPublicationConfigurationCommand.js +3 -3
- package/dist/cjs/commands/GetFindingsPublicationConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/GetInvitationsCountCommand.js +3 -3
- package/dist/cjs/commands/GetInvitationsCountCommand.js.map +1 -1
- package/dist/cjs/commands/GetMacieSessionCommand.js +3 -3
- package/dist/cjs/commands/GetMacieSessionCommand.js.map +1 -1
- package/dist/cjs/commands/GetMasterAccountCommand.js +3 -3
- package/dist/cjs/commands/GetMasterAccountCommand.js.map +1 -1
- package/dist/cjs/commands/GetMemberCommand.js +3 -3
- package/dist/cjs/commands/GetMemberCommand.js.map +1 -1
- package/dist/cjs/commands/GetUsageStatisticsCommand.js +3 -3
- package/dist/cjs/commands/GetUsageStatisticsCommand.js.map +1 -1
- package/dist/cjs/commands/GetUsageTotalsCommand.js +3 -3
- package/dist/cjs/commands/GetUsageTotalsCommand.js.map +1 -1
- package/dist/cjs/commands/ListClassificationJobsCommand.js +3 -3
- package/dist/cjs/commands/ListClassificationJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListCustomDataIdentifiersCommand.js +3 -3
- package/dist/cjs/commands/ListCustomDataIdentifiersCommand.js.map +1 -1
- package/dist/cjs/commands/ListFindingsCommand.js +3 -3
- package/dist/cjs/commands/ListFindingsCommand.js.map +1 -1
- package/dist/cjs/commands/ListFindingsFiltersCommand.js +3 -3
- package/dist/cjs/commands/ListFindingsFiltersCommand.js.map +1 -1
- package/dist/cjs/commands/ListInvitationsCommand.js +4 -4
- package/dist/cjs/commands/ListInvitationsCommand.js.map +1 -1
- package/dist/cjs/commands/ListManagedDataIdentifiersCommand.js +61 -0
- package/dist/cjs/commands/ListManagedDataIdentifiersCommand.js.map +1 -0
- package/dist/cjs/commands/ListMembersCommand.js +3 -3
- package/dist/cjs/commands/ListMembersCommand.js.map +1 -1
- package/dist/cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
- package/dist/cjs/commands/ListOrganizationAdminAccountsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/PutClassificationExportConfigurationCommand.js +3 -3
- package/dist/cjs/commands/PutClassificationExportConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/PutFindingsPublicationConfigurationCommand.js +3 -3
- package/dist/cjs/commands/PutFindingsPublicationConfigurationCommand.js.map +1 -1
- package/dist/cjs/commands/SearchResourcesCommand.js +3 -3
- package/dist/cjs/commands/SearchResourcesCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/TestCustomDataIdentifierCommand.js +3 -3
- package/dist/cjs/commands/TestCustomDataIdentifierCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateClassificationJobCommand.js +3 -3
- package/dist/cjs/commands/UpdateClassificationJobCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateFindingsFilterCommand.js +3 -3
- package/dist/cjs/commands/UpdateFindingsFilterCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateMacieSessionCommand.js +3 -3
- package/dist/cjs/commands/UpdateMacieSessionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateMemberSessionCommand.js +3 -3
- package/dist/cjs/commands/UpdateMemberSessionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
- package/dist/cjs/commands/UpdateOrganizationConfigurationCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +71 -70
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +39 -5
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +481 -384
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/Macie2.js +15 -0
- package/dist/es/Macie2.js.map +1 -1
- package/dist/es/Macie2Client.js.map +1 -1
- package/dist/es/commands/ListInvitationsCommand.js +1 -1
- package/dist/es/commands/ListManagedDataIdentifiersCommand.js +65 -0
- package/dist/es/commands/ListManagedDataIdentifiersCommand.js.map +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/models_0.js +28 -0
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/pagination/DescribeBucketsPaginator.js +4 -4
- package/dist/es/pagination/DescribeBucketsPaginator.js.map +1 -1
- package/dist/es/pagination/GetUsageStatisticsPaginator.js +4 -4
- package/dist/es/pagination/GetUsageStatisticsPaginator.js.map +1 -1
- package/dist/es/pagination/ListClassificationJobsPaginator.js +4 -4
- package/dist/es/pagination/ListClassificationJobsPaginator.js.map +1 -1
- package/dist/es/pagination/ListCustomDataIdentifiersPaginator.js +4 -4
- package/dist/es/pagination/ListCustomDataIdentifiersPaginator.js.map +1 -1
- package/dist/es/pagination/ListFindingsFiltersPaginator.js +4 -4
- package/dist/es/pagination/ListFindingsFiltersPaginator.js.map +1 -1
- package/dist/es/pagination/ListFindingsPaginator.js +4 -4
- package/dist/es/pagination/ListFindingsPaginator.js.map +1 -1
- package/dist/es/pagination/ListInvitationsPaginator.js +4 -4
- package/dist/es/pagination/ListInvitationsPaginator.js.map +1 -1
- package/dist/es/pagination/ListMembersPaginator.js +4 -4
- package/dist/es/pagination/ListMembersPaginator.js.map +1 -1
- package/dist/es/pagination/ListOrganizationAdminAccountsPaginator.js +4 -4
- package/dist/es/pagination/ListOrganizationAdminAccountsPaginator.js.map +1 -1
- package/dist/es/pagination/SearchResourcesPaginator.js +4 -4
- package/dist/es/pagination/SearchResourcesPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +110 -2
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/types/Macie2.d.ts +8 -1
- package/dist/types/Macie2Client.d.ts +3 -2
- package/dist/types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist/types/commands/ListManagedDataIdentifiersCommand.d.ts +35 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/models_0.d.ts +93 -24
- package/dist/types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist/types/ts3.4/Macie2.d.ts +8 -1
- package/dist/types/ts3.4/Macie2Client.d.ts +3 -2
- package/dist/types/ts3.4/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist/types/ts3.4/commands/ListManagedDataIdentifiersCommand.d.ts +35 -0
- package/dist/types/ts3.4/index.d.ts +1 -0
- package/dist/types/ts3.4/models/models_0.d.ts +93 -24
- package/dist/types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/index.ts +1 -0
- package/models/models_0.ts +112 -24
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +124 -0
- package/tsconfig.json +1 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchResourcesCommand = exports.serializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1PutClassificationExportConfigurationCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.serializeAws_restJson1ListMembersCommand = exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = exports.serializeAws_restJson1ListInvitationsCommand = exports.serializeAws_restJson1ListFindingsFiltersCommand = exports.serializeAws_restJson1ListFindingsCommand = exports.serializeAws_restJson1ListCustomDataIdentifiersCommand = exports.serializeAws_restJson1ListClassificationJobsCommand = exports.serializeAws_restJson1GetUsageTotalsCommand = exports.serializeAws_restJson1GetUsageStatisticsCommand = exports.serializeAws_restJson1GetMemberCommand = exports.serializeAws_restJson1GetMasterAccountCommand = exports.serializeAws_restJson1GetMacieSessionCommand = exports.serializeAws_restJson1GetInvitationsCountCommand = exports.serializeAws_restJson1GetFindingStatisticsCommand = exports.serializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.serializeAws_restJson1GetFindingsFilterCommand = exports.serializeAws_restJson1GetFindingsCommand = exports.serializeAws_restJson1GetCustomDataIdentifierCommand = exports.serializeAws_restJson1GetClassificationExportConfigurationCommand = exports.serializeAws_restJson1GetBucketStatisticsCommand = exports.serializeAws_restJson1GetAdministratorAccountCommand = exports.serializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.serializeAws_restJson1EnableMacieCommand = exports.serializeAws_restJson1DisassociateMemberCommand = exports.serializeAws_restJson1DisassociateFromMasterAccountCommand = exports.serializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.serializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.serializeAws_restJson1DisableMacieCommand = exports.serializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.serializeAws_restJson1DescribeClassificationJobCommand = exports.serializeAws_restJson1DescribeBucketsCommand = exports.serializeAws_restJson1DeleteMemberCommand = exports.serializeAws_restJson1DeleteInvitationsCommand = exports.serializeAws_restJson1DeleteFindingsFilterCommand = exports.serializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.serializeAws_restJson1DeclineInvitationsCommand = exports.serializeAws_restJson1CreateSampleFindingsCommand = exports.serializeAws_restJson1CreateMemberCommand = exports.serializeAws_restJson1CreateInvitationsCommand = exports.serializeAws_restJson1CreateFindingsFilterCommand = exports.serializeAws_restJson1CreateCustomDataIdentifierCommand = exports.serializeAws_restJson1CreateClassificationJobCommand = exports.serializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.serializeAws_restJson1AcceptInvitationCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = exports.deserializeAws_restJson1ListInvitationsCommand = exports.deserializeAws_restJson1ListFindingsFiltersCommand = exports.deserializeAws_restJson1ListFindingsCommand = exports.deserializeAws_restJson1ListCustomDataIdentifiersCommand = exports.deserializeAws_restJson1ListClassificationJobsCommand = exports.deserializeAws_restJson1GetUsageTotalsCommand = exports.deserializeAws_restJson1GetUsageStatisticsCommand = exports.deserializeAws_restJson1GetMemberCommand = exports.deserializeAws_restJson1GetMasterAccountCommand = exports.deserializeAws_restJson1GetMacieSessionCommand = exports.deserializeAws_restJson1GetInvitationsCountCommand = exports.deserializeAws_restJson1GetFindingStatisticsCommand = exports.deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1GetFindingsFilterCommand = exports.deserializeAws_restJson1GetFindingsCommand = exports.deserializeAws_restJson1GetCustomDataIdentifierCommand = exports.deserializeAws_restJson1GetClassificationExportConfigurationCommand = exports.deserializeAws_restJson1GetBucketStatisticsCommand = exports.deserializeAws_restJson1GetAdministratorAccountCommand = exports.deserializeAws_restJson1EnableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1EnableMacieCommand = exports.deserializeAws_restJson1DisassociateMemberCommand = exports.deserializeAws_restJson1DisassociateFromMasterAccountCommand = exports.deserializeAws_restJson1DisassociateFromAdministratorAccountCommand = exports.deserializeAws_restJson1DisableOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DisableMacieCommand = exports.deserializeAws_restJson1DescribeOrganizationConfigurationCommand = exports.deserializeAws_restJson1DescribeClassificationJobCommand = exports.deserializeAws_restJson1DescribeBucketsCommand = exports.deserializeAws_restJson1DeleteMemberCommand = exports.deserializeAws_restJson1DeleteInvitationsCommand = exports.deserializeAws_restJson1DeleteFindingsFilterCommand = exports.deserializeAws_restJson1DeleteCustomDataIdentifierCommand = exports.deserializeAws_restJson1DeclineInvitationsCommand = exports.deserializeAws_restJson1CreateSampleFindingsCommand = exports.deserializeAws_restJson1CreateMemberCommand = exports.deserializeAws_restJson1CreateInvitationsCommand = exports.deserializeAws_restJson1CreateFindingsFilterCommand = exports.deserializeAws_restJson1CreateCustomDataIdentifierCommand = exports.deserializeAws_restJson1CreateClassificationJobCommand = exports.deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = exports.deserializeAws_restJson1AcceptInvitationCommand = exports.serializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.serializeAws_restJson1UpdateMemberSessionCommand = exports.serializeAws_restJson1UpdateMacieSessionCommand = exports.serializeAws_restJson1UpdateFindingsFilterCommand = exports.serializeAws_restJson1UpdateClassificationJobCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TestCustomDataIdentifierCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateOrganizationConfigurationCommand = exports.deserializeAws_restJson1UpdateMemberSessionCommand = exports.deserializeAws_restJson1UpdateMacieSessionCommand = exports.deserializeAws_restJson1UpdateFindingsFilterCommand = exports.deserializeAws_restJson1UpdateClassificationJobCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TestCustomDataIdentifierCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchResourcesCommand = exports.deserializeAws_restJson1PutFindingsPublicationConfigurationCommand = exports.deserializeAws_restJson1PutClassificationExportConfigurationCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListOrganizationAdminAccountsCommand = exports.deserializeAws_restJson1ListMembersCommand = 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 uuid_1 = require("uuid");
|
|
@@ -61,7 +61,7 @@ const serializeAws_restJson1CreateClassificationJobCommand = async (input, conte
|
|
|
61
61
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
|
|
62
62
|
let body;
|
|
63
63
|
body = JSON.stringify({
|
|
64
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
64
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
65
65
|
...(input.customDataIdentifierIds !== undefined &&
|
|
66
66
|
input.customDataIdentifierIds !== null && {
|
|
67
67
|
customDataIdentifierIds: serializeAws_restJson1__listOf__string(input.customDataIdentifierIds, context),
|
|
@@ -69,6 +69,14 @@ const serializeAws_restJson1CreateClassificationJobCommand = async (input, conte
|
|
|
69
69
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
70
70
|
...(input.initialRun !== undefined && input.initialRun !== null && { initialRun: input.initialRun }),
|
|
71
71
|
...(input.jobType !== undefined && input.jobType !== null && { jobType: input.jobType }),
|
|
72
|
+
...(input.managedDataIdentifierIds !== undefined &&
|
|
73
|
+
input.managedDataIdentifierIds !== null && {
|
|
74
|
+
managedDataIdentifierIds: serializeAws_restJson1__listOf__string(input.managedDataIdentifierIds, context),
|
|
75
|
+
}),
|
|
76
|
+
...(input.managedDataIdentifierSelector !== undefined &&
|
|
77
|
+
input.managedDataIdentifierSelector !== null && {
|
|
78
|
+
managedDataIdentifierSelector: input.managedDataIdentifierSelector,
|
|
79
|
+
}),
|
|
72
80
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
73
81
|
...(input.s3JobDefinition !== undefined &&
|
|
74
82
|
input.s3JobDefinition !== null && {
|
|
@@ -102,7 +110,7 @@ const serializeAws_restJson1CreateCustomDataIdentifierCommand = async (input, co
|
|
|
102
110
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/custom-data-identifiers";
|
|
103
111
|
let body;
|
|
104
112
|
body = JSON.stringify({
|
|
105
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
113
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
106
114
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
107
115
|
...(input.ignoreWords !== undefined &&
|
|
108
116
|
input.ignoreWords !== null && {
|
|
@@ -137,7 +145,7 @@ const serializeAws_restJson1CreateFindingsFilterCommand = async (input, context)
|
|
|
137
145
|
let body;
|
|
138
146
|
body = JSON.stringify({
|
|
139
147
|
...(input.action !== undefined && input.action !== null && { action: input.action }),
|
|
140
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
148
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
141
149
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
142
150
|
...(input.findingCriteria !== undefined &&
|
|
143
151
|
input.findingCriteria !== null && {
|
|
@@ -261,7 +269,7 @@ const serializeAws_restJson1DeleteCustomDataIdentifierCommand = async (input, co
|
|
|
261
269
|
if (labelValue.length <= 0) {
|
|
262
270
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
263
271
|
}
|
|
264
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
272
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
265
273
|
}
|
|
266
274
|
else {
|
|
267
275
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -287,7 +295,7 @@ const serializeAws_restJson1DeleteFindingsFilterCommand = async (input, context)
|
|
|
287
295
|
if (labelValue.length <= 0) {
|
|
288
296
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
289
297
|
}
|
|
290
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
298
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
291
299
|
}
|
|
292
300
|
else {
|
|
293
301
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -335,7 +343,7 @@ const serializeAws_restJson1DeleteMemberCommand = async (input, context) => {
|
|
|
335
343
|
if (labelValue.length <= 0) {
|
|
336
344
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
337
345
|
}
|
|
338
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
346
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
339
347
|
}
|
|
340
348
|
else {
|
|
341
349
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -389,7 +397,7 @@ const serializeAws_restJson1DescribeClassificationJobCommand = async (input, con
|
|
|
389
397
|
if (labelValue.length <= 0) {
|
|
390
398
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
391
399
|
}
|
|
392
|
-
resolvedPath = resolvedPath.replace("{jobId}",
|
|
400
|
+
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
393
401
|
}
|
|
394
402
|
else {
|
|
395
403
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -511,7 +519,7 @@ const serializeAws_restJson1DisassociateMemberCommand = async (input, context) =
|
|
|
511
519
|
if (labelValue.length <= 0) {
|
|
512
520
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
513
521
|
}
|
|
514
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
522
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
515
523
|
}
|
|
516
524
|
else {
|
|
517
525
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -537,7 +545,7 @@ const serializeAws_restJson1EnableMacieCommand = async (input, context) => {
|
|
|
537
545
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/macie";
|
|
538
546
|
let body;
|
|
539
547
|
body = JSON.stringify({
|
|
540
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
548
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
541
549
|
...(input.findingPublishingFrequency !== undefined &&
|
|
542
550
|
input.findingPublishingFrequency !== null && { findingPublishingFrequency: input.findingPublishingFrequency }),
|
|
543
551
|
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
@@ -564,7 +572,7 @@ const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input
|
|
|
564
572
|
body = JSON.stringify({
|
|
565
573
|
...(input.adminAccountId !== undefined &&
|
|
566
574
|
input.adminAccountId !== null && { adminAccountId: input.adminAccountId }),
|
|
567
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
575
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
568
576
|
});
|
|
569
577
|
return new protocol_http_1.HttpRequest({
|
|
570
578
|
protocol,
|
|
@@ -645,7 +653,7 @@ const serializeAws_restJson1GetCustomDataIdentifierCommand = async (input, conte
|
|
|
645
653
|
if (labelValue.length <= 0) {
|
|
646
654
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
647
655
|
}
|
|
648
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
656
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
649
657
|
}
|
|
650
658
|
else {
|
|
651
659
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -695,7 +703,7 @@ const serializeAws_restJson1GetFindingsFilterCommand = async (input, context) =>
|
|
|
695
703
|
if (labelValue.length <= 0) {
|
|
696
704
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
697
705
|
}
|
|
698
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
706
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
699
707
|
}
|
|
700
708
|
else {
|
|
701
709
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -827,7 +835,7 @@ const serializeAws_restJson1GetMemberCommand = async (input, context) => {
|
|
|
827
835
|
if (labelValue.length <= 0) {
|
|
828
836
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
829
837
|
}
|
|
830
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
838
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
831
839
|
}
|
|
832
840
|
else {
|
|
833
841
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -1015,6 +1023,27 @@ const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
|
|
|
1015
1023
|
});
|
|
1016
1024
|
};
|
|
1017
1025
|
exports.serializeAws_restJson1ListInvitationsCommand = serializeAws_restJson1ListInvitationsCommand;
|
|
1026
|
+
const serializeAws_restJson1ListManagedDataIdentifiersCommand = async (input, context) => {
|
|
1027
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1028
|
+
const headers = {
|
|
1029
|
+
"content-type": "application/json",
|
|
1030
|
+
};
|
|
1031
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/managed-data-identifiers/list";
|
|
1032
|
+
let body;
|
|
1033
|
+
body = JSON.stringify({
|
|
1034
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1035
|
+
});
|
|
1036
|
+
return new protocol_http_1.HttpRequest({
|
|
1037
|
+
protocol,
|
|
1038
|
+
hostname,
|
|
1039
|
+
port,
|
|
1040
|
+
method: "POST",
|
|
1041
|
+
headers,
|
|
1042
|
+
path: resolvedPath,
|
|
1043
|
+
body,
|
|
1044
|
+
});
|
|
1045
|
+
};
|
|
1046
|
+
exports.serializeAws_restJson1ListManagedDataIdentifiersCommand = serializeAws_restJson1ListManagedDataIdentifiersCommand;
|
|
1018
1047
|
const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
1019
1048
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1020
1049
|
const headers = {};
|
|
@@ -1067,7 +1096,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1067
1096
|
if (labelValue.length <= 0) {
|
|
1068
1097
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1069
1098
|
}
|
|
1070
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
1099
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1071
1100
|
}
|
|
1072
1101
|
else {
|
|
1073
1102
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -1117,7 +1146,7 @@ const serializeAws_restJson1PutFindingsPublicationConfigurationCommand = async (
|
|
|
1117
1146
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/findings-publication-configuration";
|
|
1118
1147
|
let body;
|
|
1119
1148
|
body = JSON.stringify({
|
|
1120
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1149
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1121
1150
|
...(input.securityHubConfiguration !== undefined &&
|
|
1122
1151
|
input.securityHubConfiguration !== null && {
|
|
1123
1152
|
securityHubConfiguration: serializeAws_restJson1SecurityHubConfiguration(input.securityHubConfiguration, context),
|
|
@@ -1175,7 +1204,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1175
1204
|
if (labelValue.length <= 0) {
|
|
1176
1205
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1177
1206
|
}
|
|
1178
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
1207
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1179
1208
|
}
|
|
1180
1209
|
else {
|
|
1181
1210
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -1234,7 +1263,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1234
1263
|
if (labelValue.length <= 0) {
|
|
1235
1264
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1236
1265
|
}
|
|
1237
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
1266
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1238
1267
|
}
|
|
1239
1268
|
else {
|
|
1240
1269
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -1266,7 +1295,7 @@ const serializeAws_restJson1UpdateClassificationJobCommand = async (input, conte
|
|
|
1266
1295
|
if (labelValue.length <= 0) {
|
|
1267
1296
|
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
1268
1297
|
}
|
|
1269
|
-
resolvedPath = resolvedPath.replace("{jobId}",
|
|
1298
|
+
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1270
1299
|
}
|
|
1271
1300
|
else {
|
|
1272
1301
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
@@ -1298,7 +1327,7 @@ const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context)
|
|
|
1298
1327
|
if (labelValue.length <= 0) {
|
|
1299
1328
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
1300
1329
|
}
|
|
1301
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
1330
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1302
1331
|
}
|
|
1303
1332
|
else {
|
|
1304
1333
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -1306,7 +1335,7 @@ const serializeAws_restJson1UpdateFindingsFilterCommand = async (input, context)
|
|
|
1306
1335
|
let body;
|
|
1307
1336
|
body = JSON.stringify({
|
|
1308
1337
|
...(input.action !== undefined && input.action !== null && { action: input.action }),
|
|
1309
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
1338
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
1310
1339
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
1311
1340
|
...(input.findingCriteria !== undefined &&
|
|
1312
1341
|
input.findingCriteria !== null && {
|
|
@@ -1360,7 +1389,7 @@ const serializeAws_restJson1UpdateMemberSessionCommand = async (input, context)
|
|
|
1360
1389
|
if (labelValue.length <= 0) {
|
|
1361
1390
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
1362
1391
|
}
|
|
1363
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
1392
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1364
1393
|
}
|
|
1365
1394
|
else {
|
|
1366
1395
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -1502,7 +1531,7 @@ const deserializeAws_restJson1BatchGetCustomDataIdentifiersCommand = async (outp
|
|
|
1502
1531
|
customDataIdentifiers: undefined,
|
|
1503
1532
|
notFoundIdentifierIds: undefined,
|
|
1504
1533
|
};
|
|
1505
|
-
const data =
|
|
1534
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1506
1535
|
if (data.customDataIdentifiers !== undefined && data.customDataIdentifiers !== null) {
|
|
1507
1536
|
contents.customDataIdentifiers = deserializeAws_restJson1__listOfBatchGetCustomDataIdentifierSummary(data.customDataIdentifiers, context);
|
|
1508
1537
|
}
|
|
@@ -1602,12 +1631,12 @@ const deserializeAws_restJson1CreateClassificationJobCommand = async (output, co
|
|
|
1602
1631
|
jobArn: undefined,
|
|
1603
1632
|
jobId: undefined,
|
|
1604
1633
|
};
|
|
1605
|
-
const data =
|
|
1634
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1606
1635
|
if (data.jobArn !== undefined && data.jobArn !== null) {
|
|
1607
|
-
contents.jobArn =
|
|
1636
|
+
contents.jobArn = smithy_client_1.expectString(data.jobArn);
|
|
1608
1637
|
}
|
|
1609
1638
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
1610
|
-
contents.jobId =
|
|
1639
|
+
contents.jobId = smithy_client_1.expectString(data.jobId);
|
|
1611
1640
|
}
|
|
1612
1641
|
return Promise.resolve(contents);
|
|
1613
1642
|
};
|
|
@@ -1701,9 +1730,9 @@ const deserializeAws_restJson1CreateCustomDataIdentifierCommand = async (output,
|
|
|
1701
1730
|
$metadata: deserializeMetadata(output),
|
|
1702
1731
|
customDataIdentifierId: undefined,
|
|
1703
1732
|
};
|
|
1704
|
-
const data =
|
|
1733
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1705
1734
|
if (data.customDataIdentifierId !== undefined && data.customDataIdentifierId !== null) {
|
|
1706
|
-
contents.customDataIdentifierId =
|
|
1735
|
+
contents.customDataIdentifierId = smithy_client_1.expectString(data.customDataIdentifierId);
|
|
1707
1736
|
}
|
|
1708
1737
|
return Promise.resolve(contents);
|
|
1709
1738
|
};
|
|
@@ -1798,12 +1827,12 @@ const deserializeAws_restJson1CreateFindingsFilterCommand = async (output, conte
|
|
|
1798
1827
|
arn: undefined,
|
|
1799
1828
|
id: undefined,
|
|
1800
1829
|
};
|
|
1801
|
-
const data =
|
|
1830
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1802
1831
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1803
|
-
contents.arn =
|
|
1832
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1804
1833
|
}
|
|
1805
1834
|
if (data.id !== undefined && data.id !== null) {
|
|
1806
|
-
contents.id =
|
|
1835
|
+
contents.id = smithy_client_1.expectString(data.id);
|
|
1807
1836
|
}
|
|
1808
1837
|
return Promise.resolve(contents);
|
|
1809
1838
|
};
|
|
@@ -1897,7 +1926,7 @@ const deserializeAws_restJson1CreateInvitationsCommand = async (output, context)
|
|
|
1897
1926
|
$metadata: deserializeMetadata(output),
|
|
1898
1927
|
unprocessedAccounts: undefined,
|
|
1899
1928
|
};
|
|
1900
|
-
const data =
|
|
1929
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1901
1930
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
1902
1931
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
1903
1932
|
}
|
|
@@ -1993,9 +2022,9 @@ const deserializeAws_restJson1CreateMemberCommand = async (output, context) => {
|
|
|
1993
2022
|
$metadata: deserializeMetadata(output),
|
|
1994
2023
|
arn: undefined,
|
|
1995
2024
|
};
|
|
1996
|
-
const data =
|
|
2025
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1997
2026
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1998
|
-
contents.arn =
|
|
2027
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1999
2028
|
}
|
|
2000
2029
|
return Promise.resolve(contents);
|
|
2001
2030
|
};
|
|
@@ -2181,7 +2210,7 @@ const deserializeAws_restJson1DeclineInvitationsCommand = async (output, context
|
|
|
2181
2210
|
$metadata: deserializeMetadata(output),
|
|
2182
2211
|
unprocessedAccounts: undefined,
|
|
2183
2212
|
};
|
|
2184
|
-
const data =
|
|
2213
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2185
2214
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
2186
2215
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
2187
2216
|
}
|
|
@@ -2461,7 +2490,7 @@ const deserializeAws_restJson1DeleteInvitationsCommand = async (output, context)
|
|
|
2461
2490
|
$metadata: deserializeMetadata(output),
|
|
2462
2491
|
unprocessedAccounts: undefined,
|
|
2463
2492
|
};
|
|
2464
|
-
const data =
|
|
2493
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2465
2494
|
if (data.unprocessedAccounts !== undefined && data.unprocessedAccounts !== null) {
|
|
2466
2495
|
contents.unprocessedAccounts = deserializeAws_restJson1__listOfUnprocessedAccount(data.unprocessedAccounts, context);
|
|
2467
2496
|
}
|
|
@@ -2650,12 +2679,12 @@ const deserializeAws_restJson1DescribeBucketsCommand = async (output, context) =
|
|
|
2650
2679
|
buckets: undefined,
|
|
2651
2680
|
nextToken: undefined,
|
|
2652
2681
|
};
|
|
2653
|
-
const data =
|
|
2682
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2654
2683
|
if (data.buckets !== undefined && data.buckets !== null) {
|
|
2655
2684
|
contents.buckets = deserializeAws_restJson1__listOfBucketMetadata(data.buckets, context);
|
|
2656
2685
|
}
|
|
2657
2686
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2658
|
-
contents.nextToken =
|
|
2687
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2659
2688
|
}
|
|
2660
2689
|
return Promise.resolve(contents);
|
|
2661
2690
|
};
|
|
@@ -2758,6 +2787,8 @@ const deserializeAws_restJson1DescribeClassificationJobCommand = async (output,
|
|
|
2758
2787
|
jobType: undefined,
|
|
2759
2788
|
lastRunErrorStatus: undefined,
|
|
2760
2789
|
lastRunTime: undefined,
|
|
2790
|
+
managedDataIdentifierIds: undefined,
|
|
2791
|
+
managedDataIdentifierSelector: undefined,
|
|
2761
2792
|
name: undefined,
|
|
2762
2793
|
s3JobDefinition: undefined,
|
|
2763
2794
|
samplingPercentage: undefined,
|
|
@@ -2766,48 +2797,54 @@ const deserializeAws_restJson1DescribeClassificationJobCommand = async (output,
|
|
|
2766
2797
|
tags: undefined,
|
|
2767
2798
|
userPausedDetails: undefined,
|
|
2768
2799
|
};
|
|
2769
|
-
const data =
|
|
2800
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2770
2801
|
if (data.clientToken !== undefined && data.clientToken !== null) {
|
|
2771
|
-
contents.clientToken =
|
|
2802
|
+
contents.clientToken = smithy_client_1.expectString(data.clientToken);
|
|
2772
2803
|
}
|
|
2773
2804
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
2774
|
-
contents.createdAt =
|
|
2805
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.createdAt));
|
|
2775
2806
|
}
|
|
2776
2807
|
if (data.customDataIdentifierIds !== undefined && data.customDataIdentifierIds !== null) {
|
|
2777
2808
|
contents.customDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.customDataIdentifierIds, context);
|
|
2778
2809
|
}
|
|
2779
2810
|
if (data.description !== undefined && data.description !== null) {
|
|
2780
|
-
contents.description =
|
|
2811
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
2781
2812
|
}
|
|
2782
2813
|
if (data.initialRun !== undefined && data.initialRun !== null) {
|
|
2783
|
-
contents.initialRun =
|
|
2814
|
+
contents.initialRun = smithy_client_1.expectBoolean(data.initialRun);
|
|
2784
2815
|
}
|
|
2785
2816
|
if (data.jobArn !== undefined && data.jobArn !== null) {
|
|
2786
|
-
contents.jobArn =
|
|
2817
|
+
contents.jobArn = smithy_client_1.expectString(data.jobArn);
|
|
2787
2818
|
}
|
|
2788
2819
|
if (data.jobId !== undefined && data.jobId !== null) {
|
|
2789
|
-
contents.jobId =
|
|
2820
|
+
contents.jobId = smithy_client_1.expectString(data.jobId);
|
|
2790
2821
|
}
|
|
2791
2822
|
if (data.jobStatus !== undefined && data.jobStatus !== null) {
|
|
2792
|
-
contents.jobStatus =
|
|
2823
|
+
contents.jobStatus = smithy_client_1.expectString(data.jobStatus);
|
|
2793
2824
|
}
|
|
2794
2825
|
if (data.jobType !== undefined && data.jobType !== null) {
|
|
2795
|
-
contents.jobType =
|
|
2826
|
+
contents.jobType = smithy_client_1.expectString(data.jobType);
|
|
2796
2827
|
}
|
|
2797
2828
|
if (data.lastRunErrorStatus !== undefined && data.lastRunErrorStatus !== null) {
|
|
2798
2829
|
contents.lastRunErrorStatus = deserializeAws_restJson1LastRunErrorStatus(data.lastRunErrorStatus, context);
|
|
2799
2830
|
}
|
|
2800
2831
|
if (data.lastRunTime !== undefined && data.lastRunTime !== null) {
|
|
2801
|
-
contents.lastRunTime =
|
|
2832
|
+
contents.lastRunTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.lastRunTime));
|
|
2833
|
+
}
|
|
2834
|
+
if (data.managedDataIdentifierIds !== undefined && data.managedDataIdentifierIds !== null) {
|
|
2835
|
+
contents.managedDataIdentifierIds = deserializeAws_restJson1__listOf__string(data.managedDataIdentifierIds, context);
|
|
2836
|
+
}
|
|
2837
|
+
if (data.managedDataIdentifierSelector !== undefined && data.managedDataIdentifierSelector !== null) {
|
|
2838
|
+
contents.managedDataIdentifierSelector = smithy_client_1.expectString(data.managedDataIdentifierSelector);
|
|
2802
2839
|
}
|
|
2803
2840
|
if (data.name !== undefined && data.name !== null) {
|
|
2804
|
-
contents.name =
|
|
2841
|
+
contents.name = smithy_client_1.expectString(data.name);
|
|
2805
2842
|
}
|
|
2806
2843
|
if (data.s3JobDefinition !== undefined && data.s3JobDefinition !== null) {
|
|
2807
2844
|
contents.s3JobDefinition = deserializeAws_restJson1S3JobDefinition(data.s3JobDefinition, context);
|
|
2808
2845
|
}
|
|
2809
2846
|
if (data.samplingPercentage !== undefined && data.samplingPercentage !== null) {
|
|
2810
|
-
contents.samplingPercentage =
|
|
2847
|
+
contents.samplingPercentage = smithy_client_1.expectInt32(data.samplingPercentage);
|
|
2811
2848
|
}
|
|
2812
2849
|
if (data.scheduleFrequency !== undefined && data.scheduleFrequency !== null) {
|
|
2813
2850
|
contents.scheduleFrequency = deserializeAws_restJson1JobScheduleFrequency(data.scheduleFrequency, context);
|
|
@@ -2914,12 +2951,12 @@ const deserializeAws_restJson1DescribeOrganizationConfigurationCommand = async (
|
|
|
2914
2951
|
autoEnable: undefined,
|
|
2915
2952
|
maxAccountLimitReached: undefined,
|
|
2916
2953
|
};
|
|
2917
|
-
const data =
|
|
2954
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2918
2955
|
if (data.autoEnable !== undefined && data.autoEnable !== null) {
|
|
2919
|
-
contents.autoEnable =
|
|
2956
|
+
contents.autoEnable = smithy_client_1.expectBoolean(data.autoEnable);
|
|
2920
2957
|
}
|
|
2921
2958
|
if (data.maxAccountLimitReached !== undefined && data.maxAccountLimitReached !== null) {
|
|
2922
|
-
contents.maxAccountLimitReached =
|
|
2959
|
+
contents.maxAccountLimitReached = smithy_client_1.expectBoolean(data.maxAccountLimitReached);
|
|
2923
2960
|
}
|
|
2924
2961
|
return Promise.resolve(contents);
|
|
2925
2962
|
};
|
|
@@ -3657,7 +3694,7 @@ const deserializeAws_restJson1GetAdministratorAccountCommand = async (output, co
|
|
|
3657
3694
|
$metadata: deserializeMetadata(output),
|
|
3658
3695
|
administrator: undefined,
|
|
3659
3696
|
};
|
|
3660
|
-
const data =
|
|
3697
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3661
3698
|
if (data.administrator !== undefined && data.administrator !== null) {
|
|
3662
3699
|
contents.administrator = deserializeAws_restJson1Invitation(data.administrator, context);
|
|
3663
3700
|
}
|
|
@@ -3765,9 +3802,9 @@ const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, contex
|
|
|
3765
3802
|
unclassifiableObjectCount: undefined,
|
|
3766
3803
|
unclassifiableObjectSizeInBytes: undefined,
|
|
3767
3804
|
};
|
|
3768
|
-
const data =
|
|
3805
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3769
3806
|
if (data.bucketCount !== undefined && data.bucketCount !== null) {
|
|
3770
|
-
contents.bucketCount =
|
|
3807
|
+
contents.bucketCount = smithy_client_1.expectLong(data.bucketCount);
|
|
3771
3808
|
}
|
|
3772
3809
|
if (data.bucketCountByEffectivePermission !== undefined && data.bucketCountByEffectivePermission !== null) {
|
|
3773
3810
|
contents.bucketCountByEffectivePermission = deserializeAws_restJson1BucketCountByEffectivePermission(data.bucketCountByEffectivePermission, context);
|
|
@@ -3784,22 +3821,22 @@ const deserializeAws_restJson1GetBucketStatisticsCommand = async (output, contex
|
|
|
3784
3821
|
contents.bucketCountBySharedAccessType = deserializeAws_restJson1BucketCountBySharedAccessType(data.bucketCountBySharedAccessType, context);
|
|
3785
3822
|
}
|
|
3786
3823
|
if (data.classifiableObjectCount !== undefined && data.classifiableObjectCount !== null) {
|
|
3787
|
-
contents.classifiableObjectCount =
|
|
3824
|
+
contents.classifiableObjectCount = smithy_client_1.expectLong(data.classifiableObjectCount);
|
|
3788
3825
|
}
|
|
3789
3826
|
if (data.classifiableSizeInBytes !== undefined && data.classifiableSizeInBytes !== null) {
|
|
3790
|
-
contents.classifiableSizeInBytes =
|
|
3827
|
+
contents.classifiableSizeInBytes = smithy_client_1.expectLong(data.classifiableSizeInBytes);
|
|
3791
3828
|
}
|
|
3792
3829
|
if (data.lastUpdated !== undefined && data.lastUpdated !== null) {
|
|
3793
|
-
contents.lastUpdated =
|
|
3830
|
+
contents.lastUpdated = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.lastUpdated));
|
|
3794
3831
|
}
|
|
3795
3832
|
if (data.objectCount !== undefined && data.objectCount !== null) {
|
|
3796
|
-
contents.objectCount =
|
|
3833
|
+
contents.objectCount = smithy_client_1.expectLong(data.objectCount);
|
|
3797
3834
|
}
|
|
3798
3835
|
if (data.sizeInBytes !== undefined && data.sizeInBytes !== null) {
|
|
3799
|
-
contents.sizeInBytes =
|
|
3836
|
+
contents.sizeInBytes = smithy_client_1.expectLong(data.sizeInBytes);
|
|
3800
3837
|
}
|
|
3801
3838
|
if (data.sizeInBytesCompressed !== undefined && data.sizeInBytesCompressed !== null) {
|
|
3802
|
-
contents.sizeInBytesCompressed =
|
|
3839
|
+
contents.sizeInBytesCompressed = smithy_client_1.expectLong(data.sizeInBytesCompressed);
|
|
3803
3840
|
}
|
|
3804
3841
|
if (data.unclassifiableObjectCount !== undefined && data.unclassifiableObjectCount !== null) {
|
|
3805
3842
|
contents.unclassifiableObjectCount = deserializeAws_restJson1ObjectLevelStatistics(data.unclassifiableObjectCount, context);
|
|
@@ -3899,7 +3936,7 @@ const deserializeAws_restJson1GetClassificationExportConfigurationCommand = asyn
|
|
|
3899
3936
|
$metadata: deserializeMetadata(output),
|
|
3900
3937
|
configuration: undefined,
|
|
3901
3938
|
};
|
|
3902
|
-
const data =
|
|
3939
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3903
3940
|
if (data.configuration !== undefined && data.configuration !== null) {
|
|
3904
3941
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
3905
3942
|
}
|
|
@@ -4005,21 +4042,21 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, co
|
|
|
4005
4042
|
regex: undefined,
|
|
4006
4043
|
tags: undefined,
|
|
4007
4044
|
};
|
|
4008
|
-
const data =
|
|
4045
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4009
4046
|
if (data.arn !== undefined && data.arn !== null) {
|
|
4010
|
-
contents.arn =
|
|
4047
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
4011
4048
|
}
|
|
4012
4049
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
4013
|
-
contents.createdAt =
|
|
4050
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.createdAt));
|
|
4014
4051
|
}
|
|
4015
4052
|
if (data.deleted !== undefined && data.deleted !== null) {
|
|
4016
|
-
contents.deleted =
|
|
4053
|
+
contents.deleted = smithy_client_1.expectBoolean(data.deleted);
|
|
4017
4054
|
}
|
|
4018
4055
|
if (data.description !== undefined && data.description !== null) {
|
|
4019
|
-
contents.description =
|
|
4056
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
4020
4057
|
}
|
|
4021
4058
|
if (data.id !== undefined && data.id !== null) {
|
|
4022
|
-
contents.id =
|
|
4059
|
+
contents.id = smithy_client_1.expectString(data.id);
|
|
4023
4060
|
}
|
|
4024
4061
|
if (data.ignoreWords !== undefined && data.ignoreWords !== null) {
|
|
4025
4062
|
contents.ignoreWords = deserializeAws_restJson1__listOf__string(data.ignoreWords, context);
|
|
@@ -4028,13 +4065,13 @@ const deserializeAws_restJson1GetCustomDataIdentifierCommand = async (output, co
|
|
|
4028
4065
|
contents.keywords = deserializeAws_restJson1__listOf__string(data.keywords, context);
|
|
4029
4066
|
}
|
|
4030
4067
|
if (data.maximumMatchDistance !== undefined && data.maximumMatchDistance !== null) {
|
|
4031
|
-
contents.maximumMatchDistance =
|
|
4068
|
+
contents.maximumMatchDistance = smithy_client_1.expectInt32(data.maximumMatchDistance);
|
|
4032
4069
|
}
|
|
4033
4070
|
if (data.name !== undefined && data.name !== null) {
|
|
4034
|
-
contents.name =
|
|
4071
|
+
contents.name = smithy_client_1.expectString(data.name);
|
|
4035
4072
|
}
|
|
4036
4073
|
if (data.regex !== undefined && data.regex !== null) {
|
|
4037
|
-
contents.regex =
|
|
4074
|
+
contents.regex = smithy_client_1.expectString(data.regex);
|
|
4038
4075
|
}
|
|
4039
4076
|
if (data.tags !== undefined && data.tags !== null) {
|
|
4040
4077
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -4131,7 +4168,7 @@ const deserializeAws_restJson1GetFindingsCommand = async (output, context) => {
|
|
|
4131
4168
|
$metadata: deserializeMetadata(output),
|
|
4132
4169
|
findings: undefined,
|
|
4133
4170
|
};
|
|
4134
|
-
const data =
|
|
4171
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4135
4172
|
if (data.findings !== undefined && data.findings !== null) {
|
|
4136
4173
|
contents.findings = deserializeAws_restJson1__listOfFinding(data.findings, context);
|
|
4137
4174
|
}
|
|
@@ -4234,27 +4271,27 @@ const deserializeAws_restJson1GetFindingsFilterCommand = async (output, context)
|
|
|
4234
4271
|
position: undefined,
|
|
4235
4272
|
tags: undefined,
|
|
4236
4273
|
};
|
|
4237
|
-
const data =
|
|
4274
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4238
4275
|
if (data.action !== undefined && data.action !== null) {
|
|
4239
|
-
contents.action =
|
|
4276
|
+
contents.action = smithy_client_1.expectString(data.action);
|
|
4240
4277
|
}
|
|
4241
4278
|
if (data.arn !== undefined && data.arn !== null) {
|
|
4242
|
-
contents.arn =
|
|
4279
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
4243
4280
|
}
|
|
4244
4281
|
if (data.description !== undefined && data.description !== null) {
|
|
4245
|
-
contents.description =
|
|
4282
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
4246
4283
|
}
|
|
4247
4284
|
if (data.findingCriteria !== undefined && data.findingCriteria !== null) {
|
|
4248
4285
|
contents.findingCriteria = deserializeAws_restJson1FindingCriteria(data.findingCriteria, context);
|
|
4249
4286
|
}
|
|
4250
4287
|
if (data.id !== undefined && data.id !== null) {
|
|
4251
|
-
contents.id =
|
|
4288
|
+
contents.id = smithy_client_1.expectString(data.id);
|
|
4252
4289
|
}
|
|
4253
4290
|
if (data.name !== undefined && data.name !== null) {
|
|
4254
|
-
contents.name =
|
|
4291
|
+
contents.name = smithy_client_1.expectString(data.name);
|
|
4255
4292
|
}
|
|
4256
4293
|
if (data.position !== undefined && data.position !== null) {
|
|
4257
|
-
contents.position =
|
|
4294
|
+
contents.position = smithy_client_1.expectInt32(data.position);
|
|
4258
4295
|
}
|
|
4259
4296
|
if (data.tags !== undefined && data.tags !== null) {
|
|
4260
4297
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -4351,7 +4388,7 @@ const deserializeAws_restJson1GetFindingsPublicationConfigurationCommand = async
|
|
|
4351
4388
|
$metadata: deserializeMetadata(output),
|
|
4352
4389
|
securityHubConfiguration: undefined,
|
|
4353
4390
|
};
|
|
4354
|
-
const data =
|
|
4391
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4355
4392
|
if (data.securityHubConfiguration !== undefined && data.securityHubConfiguration !== null) {
|
|
4356
4393
|
contents.securityHubConfiguration = deserializeAws_restJson1SecurityHubConfiguration(data.securityHubConfiguration, context);
|
|
4357
4394
|
}
|
|
@@ -4447,7 +4484,7 @@ const deserializeAws_restJson1GetFindingStatisticsCommand = async (output, conte
|
|
|
4447
4484
|
$metadata: deserializeMetadata(output),
|
|
4448
4485
|
countsByGroup: undefined,
|
|
4449
4486
|
};
|
|
4450
|
-
const data =
|
|
4487
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4451
4488
|
if (data.countsByGroup !== undefined && data.countsByGroup !== null) {
|
|
4452
4489
|
contents.countsByGroup = deserializeAws_restJson1__listOfGroupCount(data.countsByGroup, context);
|
|
4453
4490
|
}
|
|
@@ -4543,9 +4580,9 @@ const deserializeAws_restJson1GetInvitationsCountCommand = async (output, contex
|
|
|
4543
4580
|
$metadata: deserializeMetadata(output),
|
|
4544
4581
|
invitationsCount: undefined,
|
|
4545
4582
|
};
|
|
4546
|
-
const data =
|
|
4583
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4547
4584
|
if (data.invitationsCount !== undefined && data.invitationsCount !== null) {
|
|
4548
|
-
contents.invitationsCount =
|
|
4585
|
+
contents.invitationsCount = smithy_client_1.expectLong(data.invitationsCount);
|
|
4549
4586
|
}
|
|
4550
4587
|
return Promise.resolve(contents);
|
|
4551
4588
|
};
|
|
@@ -4643,21 +4680,21 @@ const deserializeAws_restJson1GetMacieSessionCommand = async (output, context) =
|
|
|
4643
4680
|
status: undefined,
|
|
4644
4681
|
updatedAt: undefined,
|
|
4645
4682
|
};
|
|
4646
|
-
const data =
|
|
4683
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4647
4684
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
4648
|
-
contents.createdAt =
|
|
4685
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.createdAt));
|
|
4649
4686
|
}
|
|
4650
4687
|
if (data.findingPublishingFrequency !== undefined && data.findingPublishingFrequency !== null) {
|
|
4651
|
-
contents.findingPublishingFrequency =
|
|
4688
|
+
contents.findingPublishingFrequency = smithy_client_1.expectString(data.findingPublishingFrequency);
|
|
4652
4689
|
}
|
|
4653
4690
|
if (data.serviceRole !== undefined && data.serviceRole !== null) {
|
|
4654
|
-
contents.serviceRole =
|
|
4691
|
+
contents.serviceRole = smithy_client_1.expectString(data.serviceRole);
|
|
4655
4692
|
}
|
|
4656
4693
|
if (data.status !== undefined && data.status !== null) {
|
|
4657
|
-
contents.status =
|
|
4694
|
+
contents.status = smithy_client_1.expectString(data.status);
|
|
4658
4695
|
}
|
|
4659
4696
|
if (data.updatedAt !== undefined && data.updatedAt !== null) {
|
|
4660
|
-
contents.updatedAt =
|
|
4697
|
+
contents.updatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.updatedAt));
|
|
4661
4698
|
}
|
|
4662
4699
|
return Promise.resolve(contents);
|
|
4663
4700
|
};
|
|
@@ -4751,7 +4788,7 @@ const deserializeAws_restJson1GetMasterAccountCommand = async (output, context)
|
|
|
4751
4788
|
$metadata: deserializeMetadata(output),
|
|
4752
4789
|
master: undefined,
|
|
4753
4790
|
};
|
|
4754
|
-
const data =
|
|
4791
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4755
4792
|
if (data.master !== undefined && data.master !== null) {
|
|
4756
4793
|
contents.master = deserializeAws_restJson1Invitation(data.master, context);
|
|
4757
4794
|
}
|
|
@@ -4855,33 +4892,33 @@ const deserializeAws_restJson1GetMemberCommand = async (output, context) => {
|
|
|
4855
4892
|
tags: undefined,
|
|
4856
4893
|
updatedAt: undefined,
|
|
4857
4894
|
};
|
|
4858
|
-
const data =
|
|
4895
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4859
4896
|
if (data.accountId !== undefined && data.accountId !== null) {
|
|
4860
|
-
contents.accountId =
|
|
4897
|
+
contents.accountId = smithy_client_1.expectString(data.accountId);
|
|
4861
4898
|
}
|
|
4862
4899
|
if (data.administratorAccountId !== undefined && data.administratorAccountId !== null) {
|
|
4863
|
-
contents.administratorAccountId =
|
|
4900
|
+
contents.administratorAccountId = smithy_client_1.expectString(data.administratorAccountId);
|
|
4864
4901
|
}
|
|
4865
4902
|
if (data.arn !== undefined && data.arn !== null) {
|
|
4866
|
-
contents.arn =
|
|
4903
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
4867
4904
|
}
|
|
4868
4905
|
if (data.email !== undefined && data.email !== null) {
|
|
4869
|
-
contents.email =
|
|
4906
|
+
contents.email = smithy_client_1.expectString(data.email);
|
|
4870
4907
|
}
|
|
4871
4908
|
if (data.invitedAt !== undefined && data.invitedAt !== null) {
|
|
4872
|
-
contents.invitedAt =
|
|
4909
|
+
contents.invitedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.invitedAt));
|
|
4873
4910
|
}
|
|
4874
4911
|
if (data.masterAccountId !== undefined && data.masterAccountId !== null) {
|
|
4875
|
-
contents.masterAccountId =
|
|
4912
|
+
contents.masterAccountId = smithy_client_1.expectString(data.masterAccountId);
|
|
4876
4913
|
}
|
|
4877
4914
|
if (data.relationshipStatus !== undefined && data.relationshipStatus !== null) {
|
|
4878
|
-
contents.relationshipStatus =
|
|
4915
|
+
contents.relationshipStatus = smithy_client_1.expectString(data.relationshipStatus);
|
|
4879
4916
|
}
|
|
4880
4917
|
if (data.tags !== undefined && data.tags !== null) {
|
|
4881
4918
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
4882
4919
|
}
|
|
4883
4920
|
if (data.updatedAt !== undefined && data.updatedAt !== null) {
|
|
4884
|
-
contents.updatedAt =
|
|
4921
|
+
contents.updatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.updatedAt));
|
|
4885
4922
|
}
|
|
4886
4923
|
return Promise.resolve(contents);
|
|
4887
4924
|
};
|
|
@@ -4977,15 +5014,15 @@ const deserializeAws_restJson1GetUsageStatisticsCommand = async (output, context
|
|
|
4977
5014
|
records: undefined,
|
|
4978
5015
|
timeRange: undefined,
|
|
4979
5016
|
};
|
|
4980
|
-
const data =
|
|
5017
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4981
5018
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4982
|
-
contents.nextToken =
|
|
5019
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4983
5020
|
}
|
|
4984
5021
|
if (data.records !== undefined && data.records !== null) {
|
|
4985
5022
|
contents.records = deserializeAws_restJson1__listOfUsageRecord(data.records, context);
|
|
4986
5023
|
}
|
|
4987
5024
|
if (data.timeRange !== undefined && data.timeRange !== null) {
|
|
4988
|
-
contents.timeRange =
|
|
5025
|
+
contents.timeRange = smithy_client_1.expectString(data.timeRange);
|
|
4989
5026
|
}
|
|
4990
5027
|
return Promise.resolve(contents);
|
|
4991
5028
|
};
|
|
@@ -5080,9 +5117,9 @@ const deserializeAws_restJson1GetUsageTotalsCommand = async (output, context) =>
|
|
|
5080
5117
|
timeRange: undefined,
|
|
5081
5118
|
usageTotals: undefined,
|
|
5082
5119
|
};
|
|
5083
|
-
const data =
|
|
5120
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5084
5121
|
if (data.timeRange !== undefined && data.timeRange !== null) {
|
|
5085
|
-
contents.timeRange =
|
|
5122
|
+
contents.timeRange = smithy_client_1.expectString(data.timeRange);
|
|
5086
5123
|
}
|
|
5087
5124
|
if (data.usageTotals !== undefined && data.usageTotals !== null) {
|
|
5088
5125
|
contents.usageTotals = deserializeAws_restJson1__listOfUsageTotal(data.usageTotals, context);
|
|
@@ -5180,12 +5217,12 @@ const deserializeAws_restJson1ListClassificationJobsCommand = async (output, con
|
|
|
5180
5217
|
items: undefined,
|
|
5181
5218
|
nextToken: undefined,
|
|
5182
5219
|
};
|
|
5183
|
-
const data =
|
|
5220
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5184
5221
|
if (data.items !== undefined && data.items !== null) {
|
|
5185
5222
|
contents.items = deserializeAws_restJson1__listOfJobSummary(data.items, context);
|
|
5186
5223
|
}
|
|
5187
5224
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5188
|
-
contents.nextToken =
|
|
5225
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5189
5226
|
}
|
|
5190
5227
|
return Promise.resolve(contents);
|
|
5191
5228
|
};
|
|
@@ -5280,12 +5317,12 @@ const deserializeAws_restJson1ListCustomDataIdentifiersCommand = async (output,
|
|
|
5280
5317
|
items: undefined,
|
|
5281
5318
|
nextToken: undefined,
|
|
5282
5319
|
};
|
|
5283
|
-
const data =
|
|
5320
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5284
5321
|
if (data.items !== undefined && data.items !== null) {
|
|
5285
5322
|
contents.items = deserializeAws_restJson1__listOfCustomDataIdentifierSummary(data.items, context);
|
|
5286
5323
|
}
|
|
5287
5324
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5288
|
-
contents.nextToken =
|
|
5325
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5289
5326
|
}
|
|
5290
5327
|
return Promise.resolve(contents);
|
|
5291
5328
|
};
|
|
@@ -5380,12 +5417,12 @@ const deserializeAws_restJson1ListFindingsCommand = async (output, context) => {
|
|
|
5380
5417
|
findingIds: undefined,
|
|
5381
5418
|
nextToken: undefined,
|
|
5382
5419
|
};
|
|
5383
|
-
const data =
|
|
5420
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5384
5421
|
if (data.findingIds !== undefined && data.findingIds !== null) {
|
|
5385
5422
|
contents.findingIds = deserializeAws_restJson1__listOf__string(data.findingIds, context);
|
|
5386
5423
|
}
|
|
5387
5424
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5388
|
-
contents.nextToken =
|
|
5425
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5389
5426
|
}
|
|
5390
5427
|
return Promise.resolve(contents);
|
|
5391
5428
|
};
|
|
@@ -5480,12 +5517,12 @@ const deserializeAws_restJson1ListFindingsFiltersCommand = async (output, contex
|
|
|
5480
5517
|
findingsFilterListItems: undefined,
|
|
5481
5518
|
nextToken: undefined,
|
|
5482
5519
|
};
|
|
5483
|
-
const data =
|
|
5520
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5484
5521
|
if (data.findingsFilterListItems !== undefined && data.findingsFilterListItems !== null) {
|
|
5485
5522
|
contents.findingsFilterListItems = deserializeAws_restJson1__listOfFindingsFilterListItem(data.findingsFilterListItems, context);
|
|
5486
5523
|
}
|
|
5487
5524
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5488
|
-
contents.nextToken =
|
|
5525
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5489
5526
|
}
|
|
5490
5527
|
return Promise.resolve(contents);
|
|
5491
5528
|
};
|
|
@@ -5580,12 +5617,12 @@ const deserializeAws_restJson1ListInvitationsCommand = async (output, context) =
|
|
|
5580
5617
|
invitations: undefined,
|
|
5581
5618
|
nextToken: undefined,
|
|
5582
5619
|
};
|
|
5583
|
-
const data =
|
|
5620
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5584
5621
|
if (data.invitations !== undefined && data.invitations !== null) {
|
|
5585
5622
|
contents.invitations = deserializeAws_restJson1__listOfInvitation(data.invitations, context);
|
|
5586
5623
|
}
|
|
5587
5624
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5588
|
-
contents.nextToken =
|
|
5625
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5589
5626
|
}
|
|
5590
5627
|
return Promise.resolve(contents);
|
|
5591
5628
|
};
|
|
@@ -5671,6 +5708,50 @@ const deserializeAws_restJson1ListInvitationsCommandError = async (output, conte
|
|
|
5671
5708
|
delete response.Message;
|
|
5672
5709
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
5673
5710
|
};
|
|
5711
|
+
const deserializeAws_restJson1ListManagedDataIdentifiersCommand = async (output, context) => {
|
|
5712
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5713
|
+
return deserializeAws_restJson1ListManagedDataIdentifiersCommandError(output, context);
|
|
5714
|
+
}
|
|
5715
|
+
const contents = {
|
|
5716
|
+
$metadata: deserializeMetadata(output),
|
|
5717
|
+
items: undefined,
|
|
5718
|
+
nextToken: undefined,
|
|
5719
|
+
};
|
|
5720
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5721
|
+
if (data.items !== undefined && data.items !== null) {
|
|
5722
|
+
contents.items = deserializeAws_restJson1__listOfManagedDataIdentifierSummary(data.items, context);
|
|
5723
|
+
}
|
|
5724
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5725
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5726
|
+
}
|
|
5727
|
+
return Promise.resolve(contents);
|
|
5728
|
+
};
|
|
5729
|
+
exports.deserializeAws_restJson1ListManagedDataIdentifiersCommand = deserializeAws_restJson1ListManagedDataIdentifiersCommand;
|
|
5730
|
+
const deserializeAws_restJson1ListManagedDataIdentifiersCommandError = async (output, context) => {
|
|
5731
|
+
const parsedOutput = {
|
|
5732
|
+
...output,
|
|
5733
|
+
body: await parseBody(output.body, context),
|
|
5734
|
+
};
|
|
5735
|
+
let response;
|
|
5736
|
+
let errorCode = "UnknownError";
|
|
5737
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5738
|
+
switch (errorCode) {
|
|
5739
|
+
default:
|
|
5740
|
+
const parsedBody = parsedOutput.body;
|
|
5741
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5742
|
+
response = {
|
|
5743
|
+
...parsedBody,
|
|
5744
|
+
name: `${errorCode}`,
|
|
5745
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5746
|
+
$fault: "client",
|
|
5747
|
+
$metadata: deserializeMetadata(output),
|
|
5748
|
+
};
|
|
5749
|
+
}
|
|
5750
|
+
const message = response.message || response.Message || errorCode;
|
|
5751
|
+
response.message = message;
|
|
5752
|
+
delete response.Message;
|
|
5753
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5754
|
+
};
|
|
5674
5755
|
const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
5675
5756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5676
5757
|
return deserializeAws_restJson1ListMembersCommandError(output, context);
|
|
@@ -5680,12 +5761,12 @@ const deserializeAws_restJson1ListMembersCommand = async (output, context) => {
|
|
|
5680
5761
|
members: undefined,
|
|
5681
5762
|
nextToken: undefined,
|
|
5682
5763
|
};
|
|
5683
|
-
const data =
|
|
5764
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5684
5765
|
if (data.members !== undefined && data.members !== null) {
|
|
5685
5766
|
contents.members = deserializeAws_restJson1__listOfMember(data.members, context);
|
|
5686
5767
|
}
|
|
5687
5768
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5688
|
-
contents.nextToken =
|
|
5769
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5689
5770
|
}
|
|
5690
5771
|
return Promise.resolve(contents);
|
|
5691
5772
|
};
|
|
@@ -5780,12 +5861,12 @@ const deserializeAws_restJson1ListOrganizationAdminAccountsCommand = async (outp
|
|
|
5780
5861
|
adminAccounts: undefined,
|
|
5781
5862
|
nextToken: undefined,
|
|
5782
5863
|
};
|
|
5783
|
-
const data =
|
|
5864
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5784
5865
|
if (data.adminAccounts !== undefined && data.adminAccounts !== null) {
|
|
5785
5866
|
contents.adminAccounts = deserializeAws_restJson1__listOfAdminAccount(data.adminAccounts, context);
|
|
5786
5867
|
}
|
|
5787
5868
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
5788
|
-
contents.nextToken =
|
|
5869
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
5789
5870
|
}
|
|
5790
5871
|
return Promise.resolve(contents);
|
|
5791
5872
|
};
|
|
@@ -5879,7 +5960,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
5879
5960
|
$metadata: deserializeMetadata(output),
|
|
5880
5961
|
tags: undefined,
|
|
5881
5962
|
};
|
|
5882
|
-
const data =
|
|
5963
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5883
5964
|
if (data.tags !== undefined && data.tags !== null) {
|
|
5884
5965
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
5885
5966
|
}
|
|
@@ -5919,7 +6000,7 @@ const deserializeAws_restJson1PutClassificationExportConfigurationCommand = asyn
|
|
|
5919
6000
|
$metadata: deserializeMetadata(output),
|
|
5920
6001
|
configuration: undefined,
|
|
5921
6002
|
};
|
|
5922
|
-
const data =
|
|
6003
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5923
6004
|
if (data.configuration !== undefined && data.configuration !== null) {
|
|
5924
6005
|
contents.configuration = deserializeAws_restJson1ClassificationExportConfiguration(data.configuration, context);
|
|
5925
6006
|
}
|
|
@@ -6108,12 +6189,12 @@ const deserializeAws_restJson1SearchResourcesCommand = async (output, context) =
|
|
|
6108
6189
|
matchingResources: undefined,
|
|
6109
6190
|
nextToken: undefined,
|
|
6110
6191
|
};
|
|
6111
|
-
const data =
|
|
6192
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6112
6193
|
if (data.matchingResources !== undefined && data.matchingResources !== null) {
|
|
6113
6194
|
contents.matchingResources = deserializeAws_restJson1__listOfMatchingResource(data.matchingResources, context);
|
|
6114
6195
|
}
|
|
6115
6196
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6116
|
-
contents.nextToken =
|
|
6197
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
6117
6198
|
}
|
|
6118
6199
|
return Promise.resolve(contents);
|
|
6119
6200
|
};
|
|
@@ -6243,9 +6324,9 @@ const deserializeAws_restJson1TestCustomDataIdentifierCommand = async (output, c
|
|
|
6243
6324
|
$metadata: deserializeMetadata(output),
|
|
6244
6325
|
matchCount: undefined,
|
|
6245
6326
|
};
|
|
6246
|
-
const data =
|
|
6327
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6247
6328
|
if (data.matchCount !== undefined && data.matchCount !== null) {
|
|
6248
|
-
contents.matchCount =
|
|
6329
|
+
contents.matchCount = smithy_client_1.expectInt32(data.matchCount);
|
|
6249
6330
|
}
|
|
6250
6331
|
return Promise.resolve(contents);
|
|
6251
6332
|
};
|
|
@@ -6468,12 +6549,12 @@ const deserializeAws_restJson1UpdateFindingsFilterCommand = async (output, conte
|
|
|
6468
6549
|
arn: undefined,
|
|
6469
6550
|
id: undefined,
|
|
6470
6551
|
};
|
|
6471
|
-
const data =
|
|
6552
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6472
6553
|
if (data.arn !== undefined && data.arn !== null) {
|
|
6473
|
-
contents.arn =
|
|
6554
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
6474
6555
|
}
|
|
6475
6556
|
if (data.id !== undefined && data.id !== null) {
|
|
6476
|
-
contents.id =
|
|
6557
|
+
contents.id = smithy_client_1.expectString(data.id);
|
|
6477
6558
|
}
|
|
6478
6559
|
return Promise.resolve(contents);
|
|
6479
6560
|
};
|
|
@@ -6844,7 +6925,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
6844
6925
|
};
|
|
6845
6926
|
const data = parsedOutput.body;
|
|
6846
6927
|
if (data.message !== undefined && data.message !== null) {
|
|
6847
|
-
contents.message =
|
|
6928
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
6848
6929
|
}
|
|
6849
6930
|
return contents;
|
|
6850
6931
|
};
|
|
@@ -6857,7 +6938,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
6857
6938
|
};
|
|
6858
6939
|
const data = parsedOutput.body;
|
|
6859
6940
|
if (data.message !== undefined && data.message !== null) {
|
|
6860
|
-
contents.message =
|
|
6941
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
6861
6942
|
}
|
|
6862
6943
|
return contents;
|
|
6863
6944
|
};
|
|
@@ -6870,7 +6951,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
6870
6951
|
};
|
|
6871
6952
|
const data = parsedOutput.body;
|
|
6872
6953
|
if (data.message !== undefined && data.message !== null) {
|
|
6873
|
-
contents.message =
|
|
6954
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
6874
6955
|
}
|
|
6875
6956
|
return contents;
|
|
6876
6957
|
};
|
|
@@ -6883,7 +6964,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
6883
6964
|
};
|
|
6884
6965
|
const data = parsedOutput.body;
|
|
6885
6966
|
if (data.message !== undefined && data.message !== null) {
|
|
6886
|
-
contents.message =
|
|
6967
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
6887
6968
|
}
|
|
6888
6969
|
return contents;
|
|
6889
6970
|
};
|
|
@@ -6896,7 +6977,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
6896
6977
|
};
|
|
6897
6978
|
const data = parsedOutput.body;
|
|
6898
6979
|
if (data.message !== undefined && data.message !== null) {
|
|
6899
|
-
contents.message =
|
|
6980
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
6900
6981
|
}
|
|
6901
6982
|
return contents;
|
|
6902
6983
|
};
|
|
@@ -6909,7 +6990,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
6909
6990
|
};
|
|
6910
6991
|
const data = parsedOutput.body;
|
|
6911
6992
|
if (data.message !== undefined && data.message !== null) {
|
|
6912
|
-
contents.message =
|
|
6993
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
6913
6994
|
}
|
|
6914
6995
|
return contents;
|
|
6915
6996
|
};
|
|
@@ -6922,7 +7003,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
6922
7003
|
};
|
|
6923
7004
|
const data = parsedOutput.body;
|
|
6924
7005
|
if (data.message !== undefined && data.message !== null) {
|
|
6925
|
-
contents.message =
|
|
7006
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
6926
7007
|
}
|
|
6927
7008
|
return contents;
|
|
6928
7009
|
};
|
|
@@ -7405,7 +7486,7 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
7405
7486
|
if (entry === null) {
|
|
7406
7487
|
return null;
|
|
7407
7488
|
}
|
|
7408
|
-
return
|
|
7489
|
+
return smithy_client_1.expectString(entry);
|
|
7409
7490
|
});
|
|
7410
7491
|
};
|
|
7411
7492
|
const deserializeAws_restJson1__listOfAdminAccount = (output, context) => {
|
|
@@ -7528,6 +7609,16 @@ const deserializeAws_restJson1__listOfKeyValuePair = (output, context) => {
|
|
|
7528
7609
|
return deserializeAws_restJson1KeyValuePair(entry, context);
|
|
7529
7610
|
});
|
|
7530
7611
|
};
|
|
7612
|
+
const deserializeAws_restJson1__listOfManagedDataIdentifierSummary = (output, context) => {
|
|
7613
|
+
return (output || [])
|
|
7614
|
+
.filter((e) => e != null)
|
|
7615
|
+
.map((entry) => {
|
|
7616
|
+
if (entry === null) {
|
|
7617
|
+
return null;
|
|
7618
|
+
}
|
|
7619
|
+
return deserializeAws_restJson1ManagedDataIdentifierSummary(entry, context);
|
|
7620
|
+
});
|
|
7621
|
+
};
|
|
7531
7622
|
const deserializeAws_restJson1__listOfMatchingResource = (output, context) => {
|
|
7532
7623
|
return (output || [])
|
|
7533
7624
|
.filter((e) => e != null)
|
|
@@ -7620,8 +7711,8 @@ const deserializeAws_restJson1__listOfUsageTotal = (output, context) => {
|
|
|
7620
7711
|
};
|
|
7621
7712
|
const deserializeAws_restJson1AccessControlList = (output, context) => {
|
|
7622
7713
|
return {
|
|
7623
|
-
allowsPublicReadAccess:
|
|
7624
|
-
allowsPublicWriteAccess:
|
|
7714
|
+
allowsPublicReadAccess: smithy_client_1.expectBoolean(output.allowsPublicReadAccess),
|
|
7715
|
+
allowsPublicWriteAccess: smithy_client_1.expectBoolean(output.allowsPublicWriteAccess),
|
|
7625
7716
|
};
|
|
7626
7717
|
};
|
|
7627
7718
|
const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
@@ -7633,28 +7724,28 @@ const deserializeAws_restJson1AccountLevelPermissions = (output, context) => {
|
|
|
7633
7724
|
};
|
|
7634
7725
|
const deserializeAws_restJson1AdminAccount = (output, context) => {
|
|
7635
7726
|
return {
|
|
7636
|
-
accountId:
|
|
7637
|
-
status:
|
|
7727
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
7728
|
+
status: smithy_client_1.expectString(output.status),
|
|
7638
7729
|
};
|
|
7639
7730
|
};
|
|
7640
7731
|
const deserializeAws_restJson1ApiCallDetails = (output, context) => {
|
|
7641
7732
|
return {
|
|
7642
|
-
api:
|
|
7643
|
-
apiServiceName:
|
|
7733
|
+
api: smithy_client_1.expectString(output.api),
|
|
7734
|
+
apiServiceName: smithy_client_1.expectString(output.apiServiceName),
|
|
7644
7735
|
firstSeen: output.firstSeen !== undefined && output.firstSeen !== null
|
|
7645
|
-
?
|
|
7736
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.firstSeen))
|
|
7646
7737
|
: undefined,
|
|
7647
7738
|
lastSeen: output.lastSeen !== undefined && output.lastSeen !== null
|
|
7648
|
-
?
|
|
7739
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastSeen))
|
|
7649
7740
|
: undefined,
|
|
7650
7741
|
};
|
|
7651
7742
|
};
|
|
7652
7743
|
const deserializeAws_restJson1AssumedRole = (output, context) => {
|
|
7653
7744
|
return {
|
|
7654
|
-
accessKeyId:
|
|
7655
|
-
accountId:
|
|
7656
|
-
arn:
|
|
7657
|
-
principalId:
|
|
7745
|
+
accessKeyId: smithy_client_1.expectString(output.accessKeyId),
|
|
7746
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
7747
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
7748
|
+
principalId: smithy_client_1.expectString(output.principalId),
|
|
7658
7749
|
sessionContext: output.sessionContext !== undefined && output.sessionContext !== null
|
|
7659
7750
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
7660
7751
|
: undefined,
|
|
@@ -7662,64 +7753,64 @@ const deserializeAws_restJson1AssumedRole = (output, context) => {
|
|
|
7662
7753
|
};
|
|
7663
7754
|
const deserializeAws_restJson1AwsAccount = (output, context) => {
|
|
7664
7755
|
return {
|
|
7665
|
-
accountId:
|
|
7666
|
-
principalId:
|
|
7756
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
7757
|
+
principalId: smithy_client_1.expectString(output.principalId),
|
|
7667
7758
|
};
|
|
7668
7759
|
};
|
|
7669
7760
|
const deserializeAws_restJson1AwsService = (output, context) => {
|
|
7670
7761
|
return {
|
|
7671
|
-
invokedBy:
|
|
7762
|
+
invokedBy: smithy_client_1.expectString(output.invokedBy),
|
|
7672
7763
|
};
|
|
7673
7764
|
};
|
|
7674
7765
|
const deserializeAws_restJson1BatchGetCustomDataIdentifierSummary = (output, context) => {
|
|
7675
7766
|
return {
|
|
7676
|
-
arn:
|
|
7767
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
7677
7768
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
7678
|
-
?
|
|
7769
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
7679
7770
|
: undefined,
|
|
7680
|
-
deleted:
|
|
7681
|
-
description:
|
|
7682
|
-
id:
|
|
7683
|
-
name:
|
|
7771
|
+
deleted: smithy_client_1.expectBoolean(output.deleted),
|
|
7772
|
+
description: smithy_client_1.expectString(output.description),
|
|
7773
|
+
id: smithy_client_1.expectString(output.id),
|
|
7774
|
+
name: smithy_client_1.expectString(output.name),
|
|
7684
7775
|
};
|
|
7685
7776
|
};
|
|
7686
7777
|
const deserializeAws_restJson1BlockPublicAccess = (output, context) => {
|
|
7687
7778
|
return {
|
|
7688
|
-
blockPublicAcls:
|
|
7689
|
-
blockPublicPolicy:
|
|
7690
|
-
ignorePublicAcls:
|
|
7691
|
-
restrictPublicBuckets:
|
|
7779
|
+
blockPublicAcls: smithy_client_1.expectBoolean(output.blockPublicAcls),
|
|
7780
|
+
blockPublicPolicy: smithy_client_1.expectBoolean(output.blockPublicPolicy),
|
|
7781
|
+
ignorePublicAcls: smithy_client_1.expectBoolean(output.ignorePublicAcls),
|
|
7782
|
+
restrictPublicBuckets: smithy_client_1.expectBoolean(output.restrictPublicBuckets),
|
|
7692
7783
|
};
|
|
7693
7784
|
};
|
|
7694
7785
|
const deserializeAws_restJson1BucketCountByEffectivePermission = (output, context) => {
|
|
7695
7786
|
return {
|
|
7696
|
-
publiclyAccessible:
|
|
7697
|
-
publiclyReadable:
|
|
7698
|
-
publiclyWritable:
|
|
7699
|
-
unknown:
|
|
7787
|
+
publiclyAccessible: smithy_client_1.expectLong(output.publiclyAccessible),
|
|
7788
|
+
publiclyReadable: smithy_client_1.expectLong(output.publiclyReadable),
|
|
7789
|
+
publiclyWritable: smithy_client_1.expectLong(output.publiclyWritable),
|
|
7790
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7700
7791
|
};
|
|
7701
7792
|
};
|
|
7702
7793
|
const deserializeAws_restJson1BucketCountByEncryptionType = (output, context) => {
|
|
7703
7794
|
return {
|
|
7704
|
-
kmsManaged:
|
|
7705
|
-
s3Managed:
|
|
7706
|
-
unencrypted:
|
|
7707
|
-
unknown:
|
|
7795
|
+
kmsManaged: smithy_client_1.expectLong(output.kmsManaged),
|
|
7796
|
+
s3Managed: smithy_client_1.expectLong(output.s3Managed),
|
|
7797
|
+
unencrypted: smithy_client_1.expectLong(output.unencrypted),
|
|
7798
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7708
7799
|
};
|
|
7709
7800
|
};
|
|
7710
7801
|
const deserializeAws_restJson1BucketCountBySharedAccessType = (output, context) => {
|
|
7711
7802
|
return {
|
|
7712
|
-
external:
|
|
7713
|
-
internal:
|
|
7714
|
-
notShared:
|
|
7715
|
-
unknown:
|
|
7803
|
+
external: smithy_client_1.expectLong(output.external),
|
|
7804
|
+
internal: smithy_client_1.expectLong(output.internal),
|
|
7805
|
+
notShared: smithy_client_1.expectLong(output.notShared),
|
|
7806
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7716
7807
|
};
|
|
7717
7808
|
};
|
|
7718
7809
|
const deserializeAws_restJson1BucketCountPolicyAllowsUnencryptedObjectUploads = (output, context) => {
|
|
7719
7810
|
return {
|
|
7720
|
-
allowsUnencryptedObjectUploads:
|
|
7721
|
-
deniesUnencryptedObjectUploads:
|
|
7722
|
-
unknown:
|
|
7811
|
+
allowsUnencryptedObjectUploads: smithy_client_1.expectLong(output.allowsUnencryptedObjectUploads),
|
|
7812
|
+
deniesUnencryptedObjectUploads: smithy_client_1.expectLong(output.deniesUnencryptedObjectUploads),
|
|
7813
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
7723
7814
|
};
|
|
7724
7815
|
};
|
|
7725
7816
|
const deserializeAws_restJson1BucketLevelPermissions = (output, context) => {
|
|
@@ -7737,38 +7828,38 @@ const deserializeAws_restJson1BucketLevelPermissions = (output, context) => {
|
|
|
7737
7828
|
};
|
|
7738
7829
|
const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
7739
7830
|
return {
|
|
7740
|
-
accountId:
|
|
7741
|
-
allowsUnencryptedObjectUploads:
|
|
7742
|
-
bucketArn:
|
|
7831
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
7832
|
+
allowsUnencryptedObjectUploads: smithy_client_1.expectString(output.allowsUnencryptedObjectUploads),
|
|
7833
|
+
bucketArn: smithy_client_1.expectString(output.bucketArn),
|
|
7743
7834
|
bucketCreatedAt: output.bucketCreatedAt !== undefined && output.bucketCreatedAt !== null
|
|
7744
|
-
?
|
|
7835
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.bucketCreatedAt))
|
|
7745
7836
|
: undefined,
|
|
7746
|
-
bucketName:
|
|
7747
|
-
classifiableObjectCount:
|
|
7748
|
-
classifiableSizeInBytes:
|
|
7837
|
+
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
7838
|
+
classifiableObjectCount: smithy_client_1.expectLong(output.classifiableObjectCount),
|
|
7839
|
+
classifiableSizeInBytes: smithy_client_1.expectLong(output.classifiableSizeInBytes),
|
|
7749
7840
|
jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
|
|
7750
7841
|
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
7751
7842
|
: undefined,
|
|
7752
7843
|
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7753
|
-
?
|
|
7844
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastUpdated))
|
|
7754
7845
|
: undefined,
|
|
7755
|
-
objectCount:
|
|
7846
|
+
objectCount: smithy_client_1.expectLong(output.objectCount),
|
|
7756
7847
|
objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
|
|
7757
7848
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
7758
7849
|
: undefined,
|
|
7759
7850
|
publicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
7760
7851
|
? deserializeAws_restJson1BucketPublicAccess(output.publicAccess, context)
|
|
7761
7852
|
: undefined,
|
|
7762
|
-
region:
|
|
7853
|
+
region: smithy_client_1.expectString(output.region),
|
|
7763
7854
|
replicationDetails: output.replicationDetails !== undefined && output.replicationDetails !== null
|
|
7764
7855
|
? deserializeAws_restJson1ReplicationDetails(output.replicationDetails, context)
|
|
7765
7856
|
: undefined,
|
|
7766
7857
|
serverSideEncryption: output.serverSideEncryption !== undefined && output.serverSideEncryption !== null
|
|
7767
7858
|
? deserializeAws_restJson1BucketServerSideEncryption(output.serverSideEncryption, context)
|
|
7768
7859
|
: undefined,
|
|
7769
|
-
sharedAccess:
|
|
7770
|
-
sizeInBytes:
|
|
7771
|
-
sizeInBytesCompressed:
|
|
7860
|
+
sharedAccess: smithy_client_1.expectString(output.sharedAccess),
|
|
7861
|
+
sizeInBytes: smithy_client_1.expectLong(output.sizeInBytes),
|
|
7862
|
+
sizeInBytesCompressed: smithy_client_1.expectLong(output.sizeInBytesCompressed),
|
|
7772
7863
|
tags: output.tags !== undefined && output.tags !== null
|
|
7773
7864
|
? deserializeAws_restJson1__listOfKeyValuePair(output.tags, context)
|
|
7774
7865
|
: undefined,
|
|
@@ -7778,7 +7869,7 @@ const deserializeAws_restJson1BucketMetadata = (output, context) => {
|
|
|
7778
7869
|
unclassifiableObjectSizeInBytes: output.unclassifiableObjectSizeInBytes !== undefined && output.unclassifiableObjectSizeInBytes !== null
|
|
7779
7870
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectSizeInBytes, context)
|
|
7780
7871
|
: undefined,
|
|
7781
|
-
versioning:
|
|
7872
|
+
versioning: smithy_client_1.expectBoolean(output.versioning),
|
|
7782
7873
|
};
|
|
7783
7874
|
};
|
|
7784
7875
|
const deserializeAws_restJson1BucketPermissionConfiguration = (output, context) => {
|
|
@@ -7793,13 +7884,13 @@ const deserializeAws_restJson1BucketPermissionConfiguration = (output, context)
|
|
|
7793
7884
|
};
|
|
7794
7885
|
const deserializeAws_restJson1BucketPolicy = (output, context) => {
|
|
7795
7886
|
return {
|
|
7796
|
-
allowsPublicReadAccess:
|
|
7797
|
-
allowsPublicWriteAccess:
|
|
7887
|
+
allowsPublicReadAccess: smithy_client_1.expectBoolean(output.allowsPublicReadAccess),
|
|
7888
|
+
allowsPublicWriteAccess: smithy_client_1.expectBoolean(output.allowsPublicWriteAccess),
|
|
7798
7889
|
};
|
|
7799
7890
|
};
|
|
7800
7891
|
const deserializeAws_restJson1BucketPublicAccess = (output, context) => {
|
|
7801
7892
|
return {
|
|
7802
|
-
effectivePermission:
|
|
7893
|
+
effectivePermission: smithy_client_1.expectString(output.effectivePermission),
|
|
7803
7894
|
permissionConfiguration: output.permissionConfiguration !== undefined && output.permissionConfiguration !== null
|
|
7804
7895
|
? deserializeAws_restJson1BucketPermissionConfiguration(output.permissionConfiguration, context)
|
|
7805
7896
|
: undefined,
|
|
@@ -7807,16 +7898,16 @@ const deserializeAws_restJson1BucketPublicAccess = (output, context) => {
|
|
|
7807
7898
|
};
|
|
7808
7899
|
const deserializeAws_restJson1BucketServerSideEncryption = (output, context) => {
|
|
7809
7900
|
return {
|
|
7810
|
-
kmsMasterKeyId:
|
|
7811
|
-
type:
|
|
7901
|
+
kmsMasterKeyId: smithy_client_1.expectString(output.kmsMasterKeyId),
|
|
7902
|
+
type: smithy_client_1.expectString(output.type),
|
|
7812
7903
|
};
|
|
7813
7904
|
};
|
|
7814
7905
|
const deserializeAws_restJson1Cell = (output, context) => {
|
|
7815
7906
|
return {
|
|
7816
|
-
cellReference:
|
|
7817
|
-
column:
|
|
7818
|
-
columnName:
|
|
7819
|
-
row:
|
|
7907
|
+
cellReference: smithy_client_1.expectString(output.cellReference),
|
|
7908
|
+
column: smithy_client_1.expectLong(output.column),
|
|
7909
|
+
columnName: smithy_client_1.expectString(output.columnName),
|
|
7910
|
+
row: smithy_client_1.expectLong(output.row),
|
|
7820
7911
|
};
|
|
7821
7912
|
};
|
|
7822
7913
|
const deserializeAws_restJson1Cells = (output, context) => {
|
|
@@ -7831,9 +7922,9 @@ const deserializeAws_restJson1Cells = (output, context) => {
|
|
|
7831
7922
|
};
|
|
7832
7923
|
const deserializeAws_restJson1ClassificationDetails = (output, context) => {
|
|
7833
7924
|
return {
|
|
7834
|
-
detailedResultsLocation:
|
|
7835
|
-
jobArn:
|
|
7836
|
-
jobId:
|
|
7925
|
+
detailedResultsLocation: smithy_client_1.expectString(output.detailedResultsLocation),
|
|
7926
|
+
jobArn: smithy_client_1.expectString(output.jobArn),
|
|
7927
|
+
jobId: smithy_client_1.expectString(output.jobId),
|
|
7837
7928
|
result: output.result !== undefined && output.result !== null
|
|
7838
7929
|
? deserializeAws_restJson1ClassificationResult(output.result, context)
|
|
7839
7930
|
: undefined,
|
|
@@ -7848,15 +7939,15 @@ const deserializeAws_restJson1ClassificationExportConfiguration = (output, conte
|
|
|
7848
7939
|
};
|
|
7849
7940
|
const deserializeAws_restJson1ClassificationResult = (output, context) => {
|
|
7850
7941
|
return {
|
|
7851
|
-
additionalOccurrences:
|
|
7942
|
+
additionalOccurrences: smithy_client_1.expectBoolean(output.additionalOccurrences),
|
|
7852
7943
|
customDataIdentifiers: output.customDataIdentifiers !== undefined && output.customDataIdentifiers !== null
|
|
7853
7944
|
? deserializeAws_restJson1CustomDataIdentifiers(output.customDataIdentifiers, context)
|
|
7854
7945
|
: undefined,
|
|
7855
|
-
mimeType:
|
|
7946
|
+
mimeType: smithy_client_1.expectString(output.mimeType),
|
|
7856
7947
|
sensitiveData: output.sensitiveData !== undefined && output.sensitiveData !== null
|
|
7857
7948
|
? deserializeAws_restJson1SensitiveData(output.sensitiveData, context)
|
|
7858
7949
|
: undefined,
|
|
7859
|
-
sizeClassified:
|
|
7950
|
+
sizeClassified: smithy_client_1.expectLong(output.sizeClassified),
|
|
7860
7951
|
status: output.status !== undefined && output.status !== null
|
|
7861
7952
|
? deserializeAws_restJson1ClassificationResultStatus(output.status, context)
|
|
7862
7953
|
: undefined,
|
|
@@ -7864,8 +7955,8 @@ const deserializeAws_restJson1ClassificationResult = (output, context) => {
|
|
|
7864
7955
|
};
|
|
7865
7956
|
const deserializeAws_restJson1ClassificationResultStatus = (output, context) => {
|
|
7866
7957
|
return {
|
|
7867
|
-
code:
|
|
7868
|
-
reason:
|
|
7958
|
+
code: smithy_client_1.expectString(output.code),
|
|
7959
|
+
reason: smithy_client_1.expectString(output.reason),
|
|
7869
7960
|
};
|
|
7870
7961
|
};
|
|
7871
7962
|
const deserializeAws_restJson1CriteriaBlockForJob = (output, context) => {
|
|
@@ -7904,10 +7995,10 @@ const deserializeAws_restJson1CriterionAdditionalProperties = (output, context)
|
|
|
7904
7995
|
eqExactMatch: output.eqExactMatch !== undefined && output.eqExactMatch !== null
|
|
7905
7996
|
? deserializeAws_restJson1__listOf__string(output.eqExactMatch, context)
|
|
7906
7997
|
: undefined,
|
|
7907
|
-
gt:
|
|
7908
|
-
gte:
|
|
7909
|
-
lt:
|
|
7910
|
-
lte:
|
|
7998
|
+
gt: smithy_client_1.expectLong(output.gt),
|
|
7999
|
+
gte: smithy_client_1.expectLong(output.gte),
|
|
8000
|
+
lt: smithy_client_1.expectLong(output.lt),
|
|
8001
|
+
lte: smithy_client_1.expectLong(output.lte),
|
|
7911
8002
|
neq: output.neq !== undefined && output.neq !== null
|
|
7912
8003
|
? deserializeAws_restJson1__listOf__string(output.neq, context)
|
|
7913
8004
|
: undefined,
|
|
@@ -7918,25 +8009,25 @@ const deserializeAws_restJson1CustomDataIdentifiers = (output, context) => {
|
|
|
7918
8009
|
detections: output.detections !== undefined && output.detections !== null
|
|
7919
8010
|
? deserializeAws_restJson1CustomDetections(output.detections, context)
|
|
7920
8011
|
: undefined,
|
|
7921
|
-
totalCount:
|
|
8012
|
+
totalCount: smithy_client_1.expectLong(output.totalCount),
|
|
7922
8013
|
};
|
|
7923
8014
|
};
|
|
7924
8015
|
const deserializeAws_restJson1CustomDataIdentifierSummary = (output, context) => {
|
|
7925
8016
|
return {
|
|
7926
|
-
arn:
|
|
8017
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
7927
8018
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
7928
|
-
?
|
|
8019
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
7929
8020
|
: undefined,
|
|
7930
|
-
description:
|
|
7931
|
-
id:
|
|
7932
|
-
name:
|
|
8021
|
+
description: smithy_client_1.expectString(output.description),
|
|
8022
|
+
id: smithy_client_1.expectString(output.id),
|
|
8023
|
+
name: smithy_client_1.expectString(output.name),
|
|
7933
8024
|
};
|
|
7934
8025
|
};
|
|
7935
8026
|
const deserializeAws_restJson1CustomDetection = (output, context) => {
|
|
7936
8027
|
return {
|
|
7937
|
-
arn:
|
|
7938
|
-
count:
|
|
7939
|
-
name:
|
|
8028
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8029
|
+
count: smithy_client_1.expectLong(output.count),
|
|
8030
|
+
name: smithy_client_1.expectString(output.name),
|
|
7940
8031
|
occurrences: output.occurrences !== undefined && output.occurrences !== null
|
|
7941
8032
|
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
7942
8033
|
: undefined,
|
|
@@ -7957,11 +8048,11 @@ const deserializeAws_restJson1DailySchedule = (output, context) => {
|
|
|
7957
8048
|
};
|
|
7958
8049
|
const deserializeAws_restJson1DefaultDetection = (output, context) => {
|
|
7959
8050
|
return {
|
|
7960
|
-
count:
|
|
8051
|
+
count: smithy_client_1.expectLong(output.count),
|
|
7961
8052
|
occurrences: output.occurrences !== undefined && output.occurrences !== null
|
|
7962
8053
|
? deserializeAws_restJson1Occurrences(output.occurrences, context)
|
|
7963
8054
|
: undefined,
|
|
7964
|
-
type:
|
|
8055
|
+
type: smithy_client_1.expectString(output.type),
|
|
7965
8056
|
};
|
|
7966
8057
|
};
|
|
7967
8058
|
const deserializeAws_restJson1DefaultDetections = (output, context) => {
|
|
@@ -7976,15 +8067,15 @@ const deserializeAws_restJson1DefaultDetections = (output, context) => {
|
|
|
7976
8067
|
};
|
|
7977
8068
|
const deserializeAws_restJson1DomainDetails = (output, context) => {
|
|
7978
8069
|
return {
|
|
7979
|
-
domainName:
|
|
8070
|
+
domainName: smithy_client_1.expectString(output.domainName),
|
|
7980
8071
|
};
|
|
7981
8072
|
};
|
|
7982
8073
|
const deserializeAws_restJson1FederatedUser = (output, context) => {
|
|
7983
8074
|
return {
|
|
7984
|
-
accessKeyId:
|
|
7985
|
-
accountId:
|
|
7986
|
-
arn:
|
|
7987
|
-
principalId:
|
|
8075
|
+
accessKeyId: smithy_client_1.expectString(output.accessKeyId),
|
|
8076
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8077
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8078
|
+
principalId: smithy_client_1.expectString(output.principalId),
|
|
7988
8079
|
sessionContext: output.sessionContext !== undefined && output.sessionContext !== null
|
|
7989
8080
|
? deserializeAws_restJson1SessionContext(output.sessionContext, context)
|
|
7990
8081
|
: undefined,
|
|
@@ -7992,41 +8083,41 @@ const deserializeAws_restJson1FederatedUser = (output, context) => {
|
|
|
7992
8083
|
};
|
|
7993
8084
|
const deserializeAws_restJson1Finding = (output, context) => {
|
|
7994
8085
|
return {
|
|
7995
|
-
accountId:
|
|
7996
|
-
archived:
|
|
7997
|
-
category:
|
|
8086
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8087
|
+
archived: smithy_client_1.expectBoolean(output.archived),
|
|
8088
|
+
category: smithy_client_1.expectString(output.category),
|
|
7998
8089
|
classificationDetails: output.classificationDetails !== undefined && output.classificationDetails !== null
|
|
7999
8090
|
? deserializeAws_restJson1ClassificationDetails(output.classificationDetails, context)
|
|
8000
8091
|
: undefined,
|
|
8001
|
-
count:
|
|
8092
|
+
count: smithy_client_1.expectLong(output.count),
|
|
8002
8093
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8003
|
-
?
|
|
8094
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
8004
8095
|
: undefined,
|
|
8005
|
-
description:
|
|
8006
|
-
id:
|
|
8007
|
-
partition:
|
|
8096
|
+
description: smithy_client_1.expectString(output.description),
|
|
8097
|
+
id: smithy_client_1.expectString(output.id),
|
|
8098
|
+
partition: smithy_client_1.expectString(output.partition),
|
|
8008
8099
|
policyDetails: output.policyDetails !== undefined && output.policyDetails !== null
|
|
8009
8100
|
? deserializeAws_restJson1PolicyDetails(output.policyDetails, context)
|
|
8010
8101
|
: undefined,
|
|
8011
|
-
region:
|
|
8102
|
+
region: smithy_client_1.expectString(output.region),
|
|
8012
8103
|
resourcesAffected: output.resourcesAffected !== undefined && output.resourcesAffected !== null
|
|
8013
8104
|
? deserializeAws_restJson1ResourcesAffected(output.resourcesAffected, context)
|
|
8014
8105
|
: undefined,
|
|
8015
|
-
sample:
|
|
8016
|
-
schemaVersion:
|
|
8106
|
+
sample: smithy_client_1.expectBoolean(output.sample),
|
|
8107
|
+
schemaVersion: smithy_client_1.expectString(output.schemaVersion),
|
|
8017
8108
|
severity: output.severity !== undefined && output.severity !== null
|
|
8018
8109
|
? deserializeAws_restJson1Severity(output.severity, context)
|
|
8019
8110
|
: undefined,
|
|
8020
|
-
title:
|
|
8021
|
-
type:
|
|
8111
|
+
title: smithy_client_1.expectString(output.title),
|
|
8112
|
+
type: smithy_client_1.expectString(output.type),
|
|
8022
8113
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
8023
|
-
?
|
|
8114
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
8024
8115
|
: undefined,
|
|
8025
8116
|
};
|
|
8026
8117
|
};
|
|
8027
8118
|
const deserializeAws_restJson1FindingAction = (output, context) => {
|
|
8028
8119
|
return {
|
|
8029
|
-
actionType:
|
|
8120
|
+
actionType: smithy_client_1.expectString(output.actionType),
|
|
8030
8121
|
apiCallDetails: output.apiCallDetails !== undefined && output.apiCallDetails !== null
|
|
8031
8122
|
? deserializeAws_restJson1ApiCallDetails(output.apiCallDetails, context)
|
|
8032
8123
|
: undefined,
|
|
@@ -8054,10 +8145,10 @@ const deserializeAws_restJson1FindingCriteria = (output, context) => {
|
|
|
8054
8145
|
};
|
|
8055
8146
|
const deserializeAws_restJson1FindingsFilterListItem = (output, context) => {
|
|
8056
8147
|
return {
|
|
8057
|
-
action:
|
|
8058
|
-
arn:
|
|
8059
|
-
id:
|
|
8060
|
-
name:
|
|
8148
|
+
action: smithy_client_1.expectString(output.action),
|
|
8149
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8150
|
+
id: smithy_client_1.expectString(output.id),
|
|
8151
|
+
name: smithy_client_1.expectString(output.name),
|
|
8061
8152
|
tags: output.tags !== undefined && output.tags !== null
|
|
8062
8153
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
8063
8154
|
: undefined,
|
|
@@ -8065,31 +8156,31 @@ const deserializeAws_restJson1FindingsFilterListItem = (output, context) => {
|
|
|
8065
8156
|
};
|
|
8066
8157
|
const deserializeAws_restJson1GroupCount = (output, context) => {
|
|
8067
8158
|
return {
|
|
8068
|
-
count:
|
|
8069
|
-
groupKey:
|
|
8159
|
+
count: smithy_client_1.expectLong(output.count),
|
|
8160
|
+
groupKey: smithy_client_1.expectString(output.groupKey),
|
|
8070
8161
|
};
|
|
8071
8162
|
};
|
|
8072
8163
|
const deserializeAws_restJson1IamUser = (output, context) => {
|
|
8073
8164
|
return {
|
|
8074
|
-
accountId:
|
|
8075
|
-
arn:
|
|
8076
|
-
principalId:
|
|
8077
|
-
userName:
|
|
8165
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8166
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8167
|
+
principalId: smithy_client_1.expectString(output.principalId),
|
|
8168
|
+
userName: smithy_client_1.expectString(output.userName),
|
|
8078
8169
|
};
|
|
8079
8170
|
};
|
|
8080
8171
|
const deserializeAws_restJson1Invitation = (output, context) => {
|
|
8081
8172
|
return {
|
|
8082
|
-
accountId:
|
|
8083
|
-
invitationId:
|
|
8173
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8174
|
+
invitationId: smithy_client_1.expectString(output.invitationId),
|
|
8084
8175
|
invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
|
|
8085
|
-
?
|
|
8176
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.invitedAt))
|
|
8086
8177
|
: undefined,
|
|
8087
|
-
relationshipStatus:
|
|
8178
|
+
relationshipStatus: smithy_client_1.expectString(output.relationshipStatus),
|
|
8088
8179
|
};
|
|
8089
8180
|
};
|
|
8090
8181
|
const deserializeAws_restJson1IpAddressDetails = (output, context) => {
|
|
8091
8182
|
return {
|
|
8092
|
-
ipAddressV4:
|
|
8183
|
+
ipAddressV4: smithy_client_1.expectString(output.ipAddressV4),
|
|
8093
8184
|
ipCity: output.ipCity !== undefined && output.ipCity !== null
|
|
8094
8185
|
? deserializeAws_restJson1IpCity(output.ipCity, context)
|
|
8095
8186
|
: undefined,
|
|
@@ -8106,36 +8197,36 @@ const deserializeAws_restJson1IpAddressDetails = (output, context) => {
|
|
|
8106
8197
|
};
|
|
8107
8198
|
const deserializeAws_restJson1IpCity = (output, context) => {
|
|
8108
8199
|
return {
|
|
8109
|
-
name:
|
|
8200
|
+
name: smithy_client_1.expectString(output.name),
|
|
8110
8201
|
};
|
|
8111
8202
|
};
|
|
8112
8203
|
const deserializeAws_restJson1IpCountry = (output, context) => {
|
|
8113
8204
|
return {
|
|
8114
|
-
code:
|
|
8115
|
-
name:
|
|
8205
|
+
code: smithy_client_1.expectString(output.code),
|
|
8206
|
+
name: smithy_client_1.expectString(output.name),
|
|
8116
8207
|
};
|
|
8117
8208
|
};
|
|
8118
8209
|
const deserializeAws_restJson1IpGeoLocation = (output, context) => {
|
|
8119
8210
|
return {
|
|
8120
|
-
lat:
|
|
8121
|
-
lon:
|
|
8211
|
+
lat: smithy_client_1.limitedParseDouble(output.lat),
|
|
8212
|
+
lon: smithy_client_1.limitedParseDouble(output.lon),
|
|
8122
8213
|
};
|
|
8123
8214
|
};
|
|
8124
8215
|
const deserializeAws_restJson1IpOwner = (output, context) => {
|
|
8125
8216
|
return {
|
|
8126
|
-
asn:
|
|
8127
|
-
asnOrg:
|
|
8128
|
-
isp:
|
|
8129
|
-
org:
|
|
8217
|
+
asn: smithy_client_1.expectString(output.asn),
|
|
8218
|
+
asnOrg: smithy_client_1.expectString(output.asnOrg),
|
|
8219
|
+
isp: smithy_client_1.expectString(output.isp),
|
|
8220
|
+
org: smithy_client_1.expectString(output.org),
|
|
8130
8221
|
};
|
|
8131
8222
|
};
|
|
8132
8223
|
const deserializeAws_restJson1JobDetails = (output, context) => {
|
|
8133
8224
|
return {
|
|
8134
|
-
isDefinedInJob:
|
|
8135
|
-
isMonitoredByJob:
|
|
8136
|
-
lastJobId:
|
|
8225
|
+
isDefinedInJob: smithy_client_1.expectString(output.isDefinedInJob),
|
|
8226
|
+
isMonitoredByJob: smithy_client_1.expectString(output.isMonitoredByJob),
|
|
8227
|
+
lastJobId: smithy_client_1.expectString(output.lastJobId),
|
|
8137
8228
|
lastJobRunTime: output.lastJobRunTime !== undefined && output.lastJobRunTime !== null
|
|
8138
|
-
?
|
|
8229
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastJobRunTime))
|
|
8139
8230
|
: undefined,
|
|
8140
8231
|
};
|
|
8141
8232
|
};
|
|
@@ -8178,15 +8269,15 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
|
8178
8269
|
? deserializeAws_restJson1__listOfS3BucketDefinitionForJob(output.bucketDefinitions, context)
|
|
8179
8270
|
: undefined,
|
|
8180
8271
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8181
|
-
?
|
|
8272
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
8182
8273
|
: undefined,
|
|
8183
|
-
jobId:
|
|
8184
|
-
jobStatus:
|
|
8185
|
-
jobType:
|
|
8274
|
+
jobId: smithy_client_1.expectString(output.jobId),
|
|
8275
|
+
jobStatus: smithy_client_1.expectString(output.jobStatus),
|
|
8276
|
+
jobType: smithy_client_1.expectString(output.jobType),
|
|
8186
8277
|
lastRunErrorStatus: output.lastRunErrorStatus !== undefined && output.lastRunErrorStatus !== null
|
|
8187
8278
|
? deserializeAws_restJson1LastRunErrorStatus(output.lastRunErrorStatus, context)
|
|
8188
8279
|
: undefined,
|
|
8189
|
-
name:
|
|
8280
|
+
name: smithy_client_1.expectString(output.name),
|
|
8190
8281
|
userPausedDetails: output.userPausedDetails !== undefined && output.userPausedDetails !== null
|
|
8191
8282
|
? deserializeAws_restJson1UserPausedDetails(output.userPausedDetails, context)
|
|
8192
8283
|
: undefined,
|
|
@@ -8194,8 +8285,8 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
|
|
|
8194
8285
|
};
|
|
8195
8286
|
const deserializeAws_restJson1KeyValuePair = (output, context) => {
|
|
8196
8287
|
return {
|
|
8197
|
-
key:
|
|
8198
|
-
value:
|
|
8288
|
+
key: smithy_client_1.expectString(output.key),
|
|
8289
|
+
value: smithy_client_1.expectString(output.value),
|
|
8199
8290
|
};
|
|
8200
8291
|
};
|
|
8201
8292
|
const deserializeAws_restJson1KeyValuePairList = (output, context) => {
|
|
@@ -8210,24 +8301,30 @@ const deserializeAws_restJson1KeyValuePairList = (output, context) => {
|
|
|
8210
8301
|
};
|
|
8211
8302
|
const deserializeAws_restJson1LastRunErrorStatus = (output, context) => {
|
|
8212
8303
|
return {
|
|
8213
|
-
code:
|
|
8304
|
+
code: smithy_client_1.expectString(output.code),
|
|
8305
|
+
};
|
|
8306
|
+
};
|
|
8307
|
+
const deserializeAws_restJson1ManagedDataIdentifierSummary = (output, context) => {
|
|
8308
|
+
return {
|
|
8309
|
+
category: smithy_client_1.expectString(output.category),
|
|
8310
|
+
id: smithy_client_1.expectString(output.id),
|
|
8214
8311
|
};
|
|
8215
8312
|
};
|
|
8216
8313
|
const deserializeAws_restJson1MatchingBucket = (output, context) => {
|
|
8217
8314
|
return {
|
|
8218
|
-
accountId:
|
|
8219
|
-
bucketName:
|
|
8220
|
-
classifiableObjectCount:
|
|
8221
|
-
classifiableSizeInBytes:
|
|
8315
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8316
|
+
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
8317
|
+
classifiableObjectCount: smithy_client_1.expectLong(output.classifiableObjectCount),
|
|
8318
|
+
classifiableSizeInBytes: smithy_client_1.expectLong(output.classifiableSizeInBytes),
|
|
8222
8319
|
jobDetails: output.jobDetails !== undefined && output.jobDetails !== null
|
|
8223
8320
|
? deserializeAws_restJson1JobDetails(output.jobDetails, context)
|
|
8224
8321
|
: undefined,
|
|
8225
|
-
objectCount:
|
|
8322
|
+
objectCount: smithy_client_1.expectLong(output.objectCount),
|
|
8226
8323
|
objectCountByEncryptionType: output.objectCountByEncryptionType !== undefined && output.objectCountByEncryptionType !== null
|
|
8227
8324
|
? deserializeAws_restJson1ObjectCountByEncryptionType(output.objectCountByEncryptionType, context)
|
|
8228
8325
|
: undefined,
|
|
8229
|
-
sizeInBytes:
|
|
8230
|
-
sizeInBytesCompressed:
|
|
8326
|
+
sizeInBytes: smithy_client_1.expectLong(output.sizeInBytes),
|
|
8327
|
+
sizeInBytesCompressed: smithy_client_1.expectLong(output.sizeInBytesCompressed),
|
|
8231
8328
|
unclassifiableObjectCount: output.unclassifiableObjectCount !== undefined && output.unclassifiableObjectCount !== null
|
|
8232
8329
|
? deserializeAws_restJson1ObjectLevelStatistics(output.unclassifiableObjectCount, context)
|
|
8233
8330
|
: undefined,
|
|
@@ -8245,42 +8342,42 @@ const deserializeAws_restJson1MatchingResource = (output, context) => {
|
|
|
8245
8342
|
};
|
|
8246
8343
|
const deserializeAws_restJson1Member = (output, context) => {
|
|
8247
8344
|
return {
|
|
8248
|
-
accountId:
|
|
8249
|
-
administratorAccountId:
|
|
8250
|
-
arn:
|
|
8251
|
-
email:
|
|
8345
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8346
|
+
administratorAccountId: smithy_client_1.expectString(output.administratorAccountId),
|
|
8347
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8348
|
+
email: smithy_client_1.expectString(output.email),
|
|
8252
8349
|
invitedAt: output.invitedAt !== undefined && output.invitedAt !== null
|
|
8253
|
-
?
|
|
8350
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.invitedAt))
|
|
8254
8351
|
: undefined,
|
|
8255
|
-
masterAccountId:
|
|
8256
|
-
relationshipStatus:
|
|
8352
|
+
masterAccountId: smithy_client_1.expectString(output.masterAccountId),
|
|
8353
|
+
relationshipStatus: smithy_client_1.expectString(output.relationshipStatus),
|
|
8257
8354
|
tags: output.tags !== undefined && output.tags !== null
|
|
8258
8355
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
8259
8356
|
: undefined,
|
|
8260
8357
|
updatedAt: output.updatedAt !== undefined && output.updatedAt !== null
|
|
8261
|
-
?
|
|
8358
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.updatedAt))
|
|
8262
8359
|
: undefined,
|
|
8263
8360
|
};
|
|
8264
8361
|
};
|
|
8265
8362
|
const deserializeAws_restJson1MonthlySchedule = (output, context) => {
|
|
8266
8363
|
return {
|
|
8267
|
-
dayOfMonth:
|
|
8364
|
+
dayOfMonth: smithy_client_1.expectInt32(output.dayOfMonth),
|
|
8268
8365
|
};
|
|
8269
8366
|
};
|
|
8270
8367
|
const deserializeAws_restJson1ObjectCountByEncryptionType = (output, context) => {
|
|
8271
8368
|
return {
|
|
8272
|
-
customerManaged:
|
|
8273
|
-
kmsManaged:
|
|
8274
|
-
s3Managed:
|
|
8275
|
-
unencrypted:
|
|
8276
|
-
unknown:
|
|
8369
|
+
customerManaged: smithy_client_1.expectLong(output.customerManaged),
|
|
8370
|
+
kmsManaged: smithy_client_1.expectLong(output.kmsManaged),
|
|
8371
|
+
s3Managed: smithy_client_1.expectLong(output.s3Managed),
|
|
8372
|
+
unencrypted: smithy_client_1.expectLong(output.unencrypted),
|
|
8373
|
+
unknown: smithy_client_1.expectLong(output.unknown),
|
|
8277
8374
|
};
|
|
8278
8375
|
};
|
|
8279
8376
|
const deserializeAws_restJson1ObjectLevelStatistics = (output, context) => {
|
|
8280
8377
|
return {
|
|
8281
|
-
fileType:
|
|
8282
|
-
storageClass:
|
|
8283
|
-
total:
|
|
8378
|
+
fileType: smithy_client_1.expectLong(output.fileType),
|
|
8379
|
+
storageClass: smithy_client_1.expectLong(output.storageClass),
|
|
8380
|
+
total: smithy_client_1.expectLong(output.total),
|
|
8284
8381
|
};
|
|
8285
8382
|
};
|
|
8286
8383
|
const deserializeAws_restJson1Occurrences = (output, context) => {
|
|
@@ -8310,7 +8407,7 @@ const deserializeAws_restJson1Page = (output, context) => {
|
|
|
8310
8407
|
offsetRange: output.offsetRange !== undefined && output.offsetRange !== null
|
|
8311
8408
|
? deserializeAws_restJson1Range(output.offsetRange, context)
|
|
8312
8409
|
: undefined,
|
|
8313
|
-
pageNumber:
|
|
8410
|
+
pageNumber: smithy_client_1.expectLong(output.pageNumber),
|
|
8314
8411
|
};
|
|
8315
8412
|
};
|
|
8316
8413
|
const deserializeAws_restJson1Pages = (output, context) => {
|
|
@@ -8335,9 +8432,9 @@ const deserializeAws_restJson1PolicyDetails = (output, context) => {
|
|
|
8335
8432
|
};
|
|
8336
8433
|
const deserializeAws_restJson1Range = (output, context) => {
|
|
8337
8434
|
return {
|
|
8338
|
-
end:
|
|
8339
|
-
start:
|
|
8340
|
-
startColumn:
|
|
8435
|
+
end: smithy_client_1.expectLong(output.end),
|
|
8436
|
+
start: smithy_client_1.expectLong(output.start),
|
|
8437
|
+
startColumn: smithy_client_1.expectLong(output.startColumn),
|
|
8341
8438
|
};
|
|
8342
8439
|
};
|
|
8343
8440
|
const deserializeAws_restJson1Ranges = (output, context) => {
|
|
@@ -8352,8 +8449,8 @@ const deserializeAws_restJson1Ranges = (output, context) => {
|
|
|
8352
8449
|
};
|
|
8353
8450
|
const deserializeAws_restJson1_Record = (output, context) => {
|
|
8354
8451
|
return {
|
|
8355
|
-
jsonPath:
|
|
8356
|
-
recordIndex:
|
|
8452
|
+
jsonPath: smithy_client_1.expectString(output.jsonPath),
|
|
8453
|
+
recordIndex: smithy_client_1.expectLong(output.recordIndex),
|
|
8357
8454
|
};
|
|
8358
8455
|
};
|
|
8359
8456
|
const deserializeAws_restJson1Records = (output, context) => {
|
|
@@ -8368,8 +8465,8 @@ const deserializeAws_restJson1Records = (output, context) => {
|
|
|
8368
8465
|
};
|
|
8369
8466
|
const deserializeAws_restJson1ReplicationDetails = (output, context) => {
|
|
8370
8467
|
return {
|
|
8371
|
-
replicated:
|
|
8372
|
-
replicatedExternally:
|
|
8468
|
+
replicated: smithy_client_1.expectBoolean(output.replicated),
|
|
8469
|
+
replicatedExternally: smithy_client_1.expectBoolean(output.replicatedExternally),
|
|
8373
8470
|
replicationAccounts: output.replicationAccounts !== undefined && output.replicationAccounts !== null
|
|
8374
8471
|
? deserializeAws_restJson1__listOf__string(output.replicationAccounts, context)
|
|
8375
8472
|
: undefined,
|
|
@@ -8387,15 +8484,15 @@ const deserializeAws_restJson1ResourcesAffected = (output, context) => {
|
|
|
8387
8484
|
};
|
|
8388
8485
|
const deserializeAws_restJson1S3Bucket = (output, context) => {
|
|
8389
8486
|
return {
|
|
8390
|
-
allowsUnencryptedObjectUploads:
|
|
8391
|
-
arn:
|
|
8487
|
+
allowsUnencryptedObjectUploads: smithy_client_1.expectString(output.allowsUnencryptedObjectUploads),
|
|
8488
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8392
8489
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
8393
|
-
?
|
|
8490
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.createdAt))
|
|
8394
8491
|
: undefined,
|
|
8395
8492
|
defaultServerSideEncryption: output.defaultServerSideEncryption !== undefined && output.defaultServerSideEncryption !== null
|
|
8396
8493
|
? deserializeAws_restJson1ServerSideEncryption(output.defaultServerSideEncryption, context)
|
|
8397
8494
|
: undefined,
|
|
8398
|
-
name:
|
|
8495
|
+
name: smithy_client_1.expectString(output.name),
|
|
8399
8496
|
owner: output.owner !== undefined && output.owner !== null
|
|
8400
8497
|
? deserializeAws_restJson1S3BucketOwner(output.owner, context)
|
|
8401
8498
|
: undefined,
|
|
@@ -8419,7 +8516,7 @@ const deserializeAws_restJson1S3BucketCriteriaForJob = (output, context) => {
|
|
|
8419
8516
|
};
|
|
8420
8517
|
const deserializeAws_restJson1S3BucketDefinitionForJob = (output, context) => {
|
|
8421
8518
|
return {
|
|
8422
|
-
accountId:
|
|
8519
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8423
8520
|
buckets: output.buckets !== undefined && output.buckets !== null
|
|
8424
8521
|
? deserializeAws_restJson1__listOf__string(output.buckets, context)
|
|
8425
8522
|
: undefined,
|
|
@@ -8427,15 +8524,15 @@ const deserializeAws_restJson1S3BucketDefinitionForJob = (output, context) => {
|
|
|
8427
8524
|
};
|
|
8428
8525
|
const deserializeAws_restJson1S3BucketOwner = (output, context) => {
|
|
8429
8526
|
return {
|
|
8430
|
-
displayName:
|
|
8431
|
-
id:
|
|
8527
|
+
displayName: smithy_client_1.expectString(output.displayName),
|
|
8528
|
+
id: smithy_client_1.expectString(output.id),
|
|
8432
8529
|
};
|
|
8433
8530
|
};
|
|
8434
8531
|
const deserializeAws_restJson1S3Destination = (output, context) => {
|
|
8435
8532
|
return {
|
|
8436
|
-
bucketName:
|
|
8437
|
-
keyPrefix:
|
|
8438
|
-
kmsKeyArn:
|
|
8533
|
+
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
8534
|
+
keyPrefix: smithy_client_1.expectString(output.keyPrefix),
|
|
8535
|
+
kmsKeyArn: smithy_client_1.expectString(output.kmsKeyArn),
|
|
8439
8536
|
};
|
|
8440
8537
|
};
|
|
8441
8538
|
const deserializeAws_restJson1S3JobDefinition = (output, context) => {
|
|
@@ -8453,24 +8550,24 @@ const deserializeAws_restJson1S3JobDefinition = (output, context) => {
|
|
|
8453
8550
|
};
|
|
8454
8551
|
const deserializeAws_restJson1S3Object = (output, context) => {
|
|
8455
8552
|
return {
|
|
8456
|
-
bucketArn:
|
|
8457
|
-
eTag:
|
|
8458
|
-
extension:
|
|
8459
|
-
key:
|
|
8553
|
+
bucketArn: smithy_client_1.expectString(output.bucketArn),
|
|
8554
|
+
eTag: smithy_client_1.expectString(output.eTag),
|
|
8555
|
+
extension: smithy_client_1.expectString(output.extension),
|
|
8556
|
+
key: smithy_client_1.expectString(output.key),
|
|
8460
8557
|
lastModified: output.lastModified !== undefined && output.lastModified !== null
|
|
8461
|
-
?
|
|
8558
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.lastModified))
|
|
8462
8559
|
: undefined,
|
|
8463
|
-
path:
|
|
8464
|
-
publicAccess:
|
|
8560
|
+
path: smithy_client_1.expectString(output.path),
|
|
8561
|
+
publicAccess: smithy_client_1.expectBoolean(output.publicAccess),
|
|
8465
8562
|
serverSideEncryption: output.serverSideEncryption !== undefined && output.serverSideEncryption !== null
|
|
8466
8563
|
? deserializeAws_restJson1ServerSideEncryption(output.serverSideEncryption, context)
|
|
8467
8564
|
: undefined,
|
|
8468
|
-
size:
|
|
8469
|
-
storageClass:
|
|
8565
|
+
size: smithy_client_1.expectLong(output.size),
|
|
8566
|
+
storageClass: smithy_client_1.expectString(output.storageClass),
|
|
8470
8567
|
tags: output.tags !== undefined && output.tags !== null
|
|
8471
8568
|
? deserializeAws_restJson1KeyValuePairList(output.tags, context)
|
|
8472
8569
|
: undefined,
|
|
8473
|
-
versionId:
|
|
8570
|
+
versionId: smithy_client_1.expectString(output.versionId),
|
|
8474
8571
|
};
|
|
8475
8572
|
};
|
|
8476
8573
|
const deserializeAws_restJson1Scoping = (output, context) => {
|
|
@@ -8485,8 +8582,8 @@ const deserializeAws_restJson1Scoping = (output, context) => {
|
|
|
8485
8582
|
};
|
|
8486
8583
|
const deserializeAws_restJson1SecurityHubConfiguration = (output, context) => {
|
|
8487
8584
|
return {
|
|
8488
|
-
publishClassificationFindings:
|
|
8489
|
-
publishPolicyFindings:
|
|
8585
|
+
publishClassificationFindings: smithy_client_1.expectBoolean(output.publishClassificationFindings),
|
|
8586
|
+
publishPolicyFindings: smithy_client_1.expectBoolean(output.publishPolicyFindings),
|
|
8490
8587
|
};
|
|
8491
8588
|
};
|
|
8492
8589
|
const deserializeAws_restJson1SensitiveData = (output, context) => {
|
|
@@ -8501,24 +8598,24 @@ const deserializeAws_restJson1SensitiveData = (output, context) => {
|
|
|
8501
8598
|
};
|
|
8502
8599
|
const deserializeAws_restJson1SensitiveDataItem = (output, context) => {
|
|
8503
8600
|
return {
|
|
8504
|
-
category:
|
|
8601
|
+
category: smithy_client_1.expectString(output.category),
|
|
8505
8602
|
detections: output.detections !== undefined && output.detections !== null
|
|
8506
8603
|
? deserializeAws_restJson1DefaultDetections(output.detections, context)
|
|
8507
8604
|
: undefined,
|
|
8508
|
-
totalCount:
|
|
8605
|
+
totalCount: smithy_client_1.expectLong(output.totalCount),
|
|
8509
8606
|
};
|
|
8510
8607
|
};
|
|
8511
8608
|
const deserializeAws_restJson1ServerSideEncryption = (output, context) => {
|
|
8512
8609
|
return {
|
|
8513
|
-
encryptionType:
|
|
8514
|
-
kmsMasterKeyId:
|
|
8610
|
+
encryptionType: smithy_client_1.expectString(output.encryptionType),
|
|
8611
|
+
kmsMasterKeyId: smithy_client_1.expectString(output.kmsMasterKeyId),
|
|
8515
8612
|
};
|
|
8516
8613
|
};
|
|
8517
8614
|
const deserializeAws_restJson1ServiceLimit = (output, context) => {
|
|
8518
8615
|
return {
|
|
8519
|
-
isServiceLimited:
|
|
8520
|
-
unit:
|
|
8521
|
-
value:
|
|
8616
|
+
isServiceLimited: smithy_client_1.expectBoolean(output.isServiceLimited),
|
|
8617
|
+
unit: smithy_client_1.expectString(output.unit),
|
|
8618
|
+
value: smithy_client_1.expectLong(output.value),
|
|
8522
8619
|
};
|
|
8523
8620
|
};
|
|
8524
8621
|
const deserializeAws_restJson1SessionContext = (output, context) => {
|
|
@@ -8534,30 +8631,30 @@ const deserializeAws_restJson1SessionContext = (output, context) => {
|
|
|
8534
8631
|
const deserializeAws_restJson1SessionContextAttributes = (output, context) => {
|
|
8535
8632
|
return {
|
|
8536
8633
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
8537
|
-
?
|
|
8634
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationDate))
|
|
8538
8635
|
: undefined,
|
|
8539
|
-
mfaAuthenticated:
|
|
8636
|
+
mfaAuthenticated: smithy_client_1.expectBoolean(output.mfaAuthenticated),
|
|
8540
8637
|
};
|
|
8541
8638
|
};
|
|
8542
8639
|
const deserializeAws_restJson1SessionIssuer = (output, context) => {
|
|
8543
8640
|
return {
|
|
8544
|
-
accountId:
|
|
8545
|
-
arn:
|
|
8546
|
-
principalId:
|
|
8547
|
-
type:
|
|
8548
|
-
userName:
|
|
8641
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8642
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8643
|
+
principalId: smithy_client_1.expectString(output.principalId),
|
|
8644
|
+
type: smithy_client_1.expectString(output.type),
|
|
8645
|
+
userName: smithy_client_1.expectString(output.userName),
|
|
8549
8646
|
};
|
|
8550
8647
|
};
|
|
8551
8648
|
const deserializeAws_restJson1Severity = (output, context) => {
|
|
8552
8649
|
return {
|
|
8553
|
-
description:
|
|
8554
|
-
score:
|
|
8650
|
+
description: smithy_client_1.expectString(output.description),
|
|
8651
|
+
score: smithy_client_1.expectLong(output.score),
|
|
8555
8652
|
};
|
|
8556
8653
|
};
|
|
8557
8654
|
const deserializeAws_restJson1SimpleCriterionForJob = (output, context) => {
|
|
8558
8655
|
return {
|
|
8559
|
-
comparator:
|
|
8560
|
-
key:
|
|
8656
|
+
comparator: smithy_client_1.expectString(output.comparator),
|
|
8657
|
+
key: smithy_client_1.expectString(output.key),
|
|
8561
8658
|
values: output.values !== undefined && output.values !== null
|
|
8562
8659
|
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
8563
8660
|
: undefined,
|
|
@@ -8565,8 +8662,8 @@ const deserializeAws_restJson1SimpleCriterionForJob = (output, context) => {
|
|
|
8565
8662
|
};
|
|
8566
8663
|
const deserializeAws_restJson1SimpleScopeTerm = (output, context) => {
|
|
8567
8664
|
return {
|
|
8568
|
-
comparator:
|
|
8569
|
-
key:
|
|
8665
|
+
comparator: smithy_client_1.expectString(output.comparator),
|
|
8666
|
+
key: smithy_client_1.expectString(output.key),
|
|
8570
8667
|
values: output.values !== undefined && output.values !== null
|
|
8571
8668
|
? deserializeAws_restJson1__listOf__string(output.values, context)
|
|
8572
8669
|
: undefined,
|
|
@@ -8574,13 +8671,13 @@ const deserializeAws_restJson1SimpleScopeTerm = (output, context) => {
|
|
|
8574
8671
|
};
|
|
8575
8672
|
const deserializeAws_restJson1Statistics = (output, context) => {
|
|
8576
8673
|
return {
|
|
8577
|
-
approximateNumberOfObjectsToProcess:
|
|
8578
|
-
numberOfRuns:
|
|
8674
|
+
approximateNumberOfObjectsToProcess: smithy_client_1.limitedParseDouble(output.approximateNumberOfObjectsToProcess),
|
|
8675
|
+
numberOfRuns: smithy_client_1.limitedParseDouble(output.numberOfRuns),
|
|
8579
8676
|
};
|
|
8580
8677
|
};
|
|
8581
8678
|
const deserializeAws_restJson1TagCriterionForJob = (output, context) => {
|
|
8582
8679
|
return {
|
|
8583
|
-
comparator:
|
|
8680
|
+
comparator: smithy_client_1.expectString(output.comparator),
|
|
8584
8681
|
tagValues: output.tagValues !== undefined && output.tagValues !== null
|
|
8585
8682
|
? deserializeAws_restJson1__listOfTagCriterionPairForJob(output.tagValues, context)
|
|
8586
8683
|
: undefined,
|
|
@@ -8588,8 +8685,8 @@ const deserializeAws_restJson1TagCriterionForJob = (output, context) => {
|
|
|
8588
8685
|
};
|
|
8589
8686
|
const deserializeAws_restJson1TagCriterionPairForJob = (output, context) => {
|
|
8590
8687
|
return {
|
|
8591
|
-
key:
|
|
8592
|
-
value:
|
|
8688
|
+
key: smithy_client_1.expectString(output.key),
|
|
8689
|
+
value: smithy_client_1.expectString(output.value),
|
|
8593
8690
|
};
|
|
8594
8691
|
};
|
|
8595
8692
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -8599,48 +8696,48 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
8599
8696
|
}
|
|
8600
8697
|
return {
|
|
8601
8698
|
...acc,
|
|
8602
|
-
[key]:
|
|
8699
|
+
[key]: smithy_client_1.expectString(value),
|
|
8603
8700
|
};
|
|
8604
8701
|
}, {});
|
|
8605
8702
|
};
|
|
8606
8703
|
const deserializeAws_restJson1TagScopeTerm = (output, context) => {
|
|
8607
8704
|
return {
|
|
8608
|
-
comparator:
|
|
8609
|
-
key:
|
|
8705
|
+
comparator: smithy_client_1.expectString(output.comparator),
|
|
8706
|
+
key: smithy_client_1.expectString(output.key),
|
|
8610
8707
|
tagValues: output.tagValues !== undefined && output.tagValues !== null
|
|
8611
8708
|
? deserializeAws_restJson1__listOfTagValuePair(output.tagValues, context)
|
|
8612
8709
|
: undefined,
|
|
8613
|
-
target:
|
|
8710
|
+
target: smithy_client_1.expectString(output.target),
|
|
8614
8711
|
};
|
|
8615
8712
|
};
|
|
8616
8713
|
const deserializeAws_restJson1TagValuePair = (output, context) => {
|
|
8617
8714
|
return {
|
|
8618
|
-
key:
|
|
8619
|
-
value:
|
|
8715
|
+
key: smithy_client_1.expectString(output.key),
|
|
8716
|
+
value: smithy_client_1.expectString(output.value),
|
|
8620
8717
|
};
|
|
8621
8718
|
};
|
|
8622
8719
|
const deserializeAws_restJson1UnprocessedAccount = (output, context) => {
|
|
8623
8720
|
return {
|
|
8624
|
-
accountId:
|
|
8625
|
-
errorCode:
|
|
8626
|
-
errorMessage:
|
|
8721
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8722
|
+
errorCode: smithy_client_1.expectString(output.errorCode),
|
|
8723
|
+
errorMessage: smithy_client_1.expectString(output.errorMessage),
|
|
8627
8724
|
};
|
|
8628
8725
|
};
|
|
8629
8726
|
const deserializeAws_restJson1UsageByAccount = (output, context) => {
|
|
8630
8727
|
return {
|
|
8631
|
-
currency:
|
|
8632
|
-
estimatedCost:
|
|
8728
|
+
currency: smithy_client_1.expectString(output.currency),
|
|
8729
|
+
estimatedCost: smithy_client_1.expectString(output.estimatedCost),
|
|
8633
8730
|
serviceLimit: output.serviceLimit !== undefined && output.serviceLimit !== null
|
|
8634
8731
|
? deserializeAws_restJson1ServiceLimit(output.serviceLimit, context)
|
|
8635
8732
|
: undefined,
|
|
8636
|
-
type:
|
|
8733
|
+
type: smithy_client_1.expectString(output.type),
|
|
8637
8734
|
};
|
|
8638
8735
|
};
|
|
8639
8736
|
const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
8640
8737
|
return {
|
|
8641
|
-
accountId:
|
|
8738
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8642
8739
|
freeTrialStartDate: output.freeTrialStartDate !== undefined && output.freeTrialStartDate !== null
|
|
8643
|
-
?
|
|
8740
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.freeTrialStartDate))
|
|
8644
8741
|
: undefined,
|
|
8645
8742
|
usage: output.usage !== undefined && output.usage !== null
|
|
8646
8743
|
? deserializeAws_restJson1__listOfUsageByAccount(output.usage, context)
|
|
@@ -8649,9 +8746,9 @@ const deserializeAws_restJson1UsageRecord = (output, context) => {
|
|
|
8649
8746
|
};
|
|
8650
8747
|
const deserializeAws_restJson1UsageTotal = (output, context) => {
|
|
8651
8748
|
return {
|
|
8652
|
-
currency:
|
|
8653
|
-
estimatedCost:
|
|
8654
|
-
type:
|
|
8749
|
+
currency: smithy_client_1.expectString(output.currency),
|
|
8750
|
+
estimatedCost: smithy_client_1.expectString(output.estimatedCost),
|
|
8751
|
+
type: smithy_client_1.expectString(output.type),
|
|
8655
8752
|
};
|
|
8656
8753
|
};
|
|
8657
8754
|
const deserializeAws_restJson1UserIdentity = (output, context) => {
|
|
@@ -8674,30 +8771,30 @@ const deserializeAws_restJson1UserIdentity = (output, context) => {
|
|
|
8674
8771
|
root: output.root !== undefined && output.root !== null
|
|
8675
8772
|
? deserializeAws_restJson1UserIdentityRoot(output.root, context)
|
|
8676
8773
|
: undefined,
|
|
8677
|
-
type:
|
|
8774
|
+
type: smithy_client_1.expectString(output.type),
|
|
8678
8775
|
};
|
|
8679
8776
|
};
|
|
8680
8777
|
const deserializeAws_restJson1UserIdentityRoot = (output, context) => {
|
|
8681
8778
|
return {
|
|
8682
|
-
accountId:
|
|
8683
|
-
arn:
|
|
8684
|
-
principalId:
|
|
8779
|
+
accountId: smithy_client_1.expectString(output.accountId),
|
|
8780
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
8781
|
+
principalId: smithy_client_1.expectString(output.principalId),
|
|
8685
8782
|
};
|
|
8686
8783
|
};
|
|
8687
8784
|
const deserializeAws_restJson1UserPausedDetails = (output, context) => {
|
|
8688
8785
|
return {
|
|
8689
8786
|
jobExpiresAt: output.jobExpiresAt !== undefined && output.jobExpiresAt !== null
|
|
8690
|
-
?
|
|
8787
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.jobExpiresAt))
|
|
8691
8788
|
: undefined,
|
|
8692
|
-
jobImminentExpirationHealthEventArn:
|
|
8789
|
+
jobImminentExpirationHealthEventArn: smithy_client_1.expectString(output.jobImminentExpirationHealthEventArn),
|
|
8693
8790
|
jobPausedAt: output.jobPausedAt !== undefined && output.jobPausedAt !== null
|
|
8694
|
-
?
|
|
8791
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.jobPausedAt))
|
|
8695
8792
|
: undefined,
|
|
8696
8793
|
};
|
|
8697
8794
|
};
|
|
8698
8795
|
const deserializeAws_restJson1WeeklySchedule = (output, context) => {
|
|
8699
8796
|
return {
|
|
8700
|
-
dayOfWeek:
|
|
8797
|
+
dayOfWeek: smithy_client_1.expectString(output.dayOfWeek),
|
|
8701
8798
|
};
|
|
8702
8799
|
};
|
|
8703
8800
|
const deserializeMetadata = (output) => {
|