@aws-sdk/client-iot 3.42.0 → 3.46.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 +51 -0
- package/dist-cjs/IoT.js +30 -0
- package/dist-cjs/commands/DeleteScheduledAuditCommand.js +3 -3
- package/dist-cjs/commands/DeleteSecurityProfileCommand.js +1 -2
- package/dist-cjs/commands/DescribeManagedJobTemplateCommand.js +36 -0
- package/dist-cjs/commands/ListManagedJobTemplatesCommand.js +36 -0
- package/dist-cjs/commands/ListThingRegistrationTaskReportsCommand.js +3 -3
- package/dist-cjs/commands/ListThingRegistrationTasksCommand.js +3 -3
- package/dist-cjs/commands/ListThingTypesCommand.js +1 -2
- package/dist-cjs/commands/ListThingsCommand.js +3 -3
- package/dist-cjs/commands/ListThingsInBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/ListThingsInThingGroupCommand.js +3 -3
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +21 -21
- package/dist-cjs/models/models_1.js +76 -78
- package/dist-cjs/models/models_2.js +75 -3
- package/dist-cjs/protocols/Aws_restJson1.js +406 -9
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/IoT.js +30 -0
- package/dist-es/commands/DeleteScheduledAuditCommand.js +1 -1
- package/dist-es/commands/DeleteSecurityProfileCommand.js +1 -2
- package/dist-es/commands/DescribeManagedJobTemplateCommand.js +39 -0
- package/dist-es/commands/ListManagedJobTemplatesCommand.js +39 -0
- package/dist-es/commands/ListThingRegistrationTaskReportsCommand.js +1 -1
- package/dist-es/commands/ListThingRegistrationTasksCommand.js +1 -1
- package/dist-es/commands/ListThingTypesCommand.js +1 -2
- package/dist-es/commands/ListThingsCommand.js +1 -1
- package/dist-es/commands/ListThingsInBillingGroupCommand.js +1 -1
- package/dist-es/commands/ListThingsInThingGroupCommand.js +1 -1
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +14 -12
- package/dist-es/models/models_1.js +50 -48
- package/dist-es/models/models_2.js +48 -0
- package/dist-es/protocols/Aws_restJson1.js +431 -15
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/IoT.d.ts +24 -3
- package/dist-types/IoTClient.d.ts +4 -2
- package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +3 -2
- package/dist-types/commands/DeleteScheduledAuditCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSecurityProfileCommand.d.ts +1 -2
- package/dist-types/commands/DescribeManagedJobTemplateCommand.d.ts +35 -0
- package/dist-types/commands/ListManagedJobTemplatesCommand.d.ts +35 -0
- package/dist-types/commands/ListThingRegistrationTaskReportsCommand.d.ts +1 -1
- package/dist-types/commands/ListThingRegistrationTasksCommand.d.ts +1 -1
- package/dist-types/commands/ListThingTypesCommand.d.ts +1 -2
- package/dist-types/commands/ListThingsCommand.d.ts +1 -1
- package/dist-types/commands/ListThingsInBillingGroupCommand.d.ts +1 -1
- package/dist-types/commands/ListThingsInThingGroupCommand.d.ts +1 -1
- package/dist-types/commands/RegisterCertificateWithoutCACommand.d.ts +4 -1
- package/dist-types/commands/RemoveThingFromBillingGroupCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +76 -42
- package/dist-types/models/models_1.d.ts +289 -290
- package/dist-types/models/models_2.d.ts +305 -4
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/IoT.d.ts +10 -0
- package/dist-types/ts3.4/IoTClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/DeleteScheduledAuditCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteSecurityProfileCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/DescribeManagedJobTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListManagedJobTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListThingRegistrationTaskReportsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListThingRegistrationTasksCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListThingTypesCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListThingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListThingsInBillingGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListThingsInThingGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -24
- package/dist-types/ts3.4/models/models_1.d.ts +145 -157
- package/dist-types/ts3.4/models/models_2.d.ts +164 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +36 -43
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeAws_restJson1DeleteCertificateCommand = exports.serializeAws_restJson1DeleteCACertificateCommand = exports.serializeAws_restJson1DeleteBillingGroupCommand = exports.serializeAws_restJson1DeleteAuthorizerCommand = exports.serializeAws_restJson1DeleteAuditSuppressionCommand = exports.serializeAws_restJson1DeleteAccountAuditConfigurationCommand = exports.serializeAws_restJson1CreateTopicRuleDestinationCommand = exports.serializeAws_restJson1CreateTopicRuleCommand = exports.serializeAws_restJson1CreateThingTypeCommand = exports.serializeAws_restJson1CreateThingGroupCommand = exports.serializeAws_restJson1CreateThingCommand = exports.serializeAws_restJson1CreateStreamCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateScheduledAuditCommand = exports.serializeAws_restJson1CreateRoleAliasCommand = exports.serializeAws_restJson1CreateProvisioningTemplateVersionCommand = exports.serializeAws_restJson1CreateProvisioningTemplateCommand = exports.serializeAws_restJson1CreateProvisioningClaimCommand = exports.serializeAws_restJson1CreatePolicyVersionCommand = exports.serializeAws_restJson1CreatePolicyCommand = exports.serializeAws_restJson1CreateOTAUpdateCommand = exports.serializeAws_restJson1CreateMitigationActionCommand = exports.serializeAws_restJson1CreateKeysAndCertificateCommand = exports.serializeAws_restJson1CreateJobTemplateCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CreateFleetMetricCommand = exports.serializeAws_restJson1CreateDynamicThingGroupCommand = exports.serializeAws_restJson1CreateDomainConfigurationCommand = exports.serializeAws_restJson1CreateDimensionCommand = exports.serializeAws_restJson1CreateCustomMetricCommand = exports.serializeAws_restJson1CreateCertificateFromCsrCommand = exports.serializeAws_restJson1CreateBillingGroupCommand = exports.serializeAws_restJson1CreateAuthorizerCommand = exports.serializeAws_restJson1CreateAuditSuppressionCommand = exports.serializeAws_restJson1ConfirmTopicRuleDestinationCommand = exports.serializeAws_restJson1ClearDefaultAuthorizerCommand = exports.serializeAws_restJson1CancelJobExecutionCommand = exports.serializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1CancelDetectMitigationActionsTaskCommand = exports.serializeAws_restJson1CancelCertificateTransferCommand = exports.serializeAws_restJson1CancelAuditTaskCommand = exports.serializeAws_restJson1CancelAuditMitigationActionsTaskCommand = exports.serializeAws_restJson1AttachThingPrincipalCommand = exports.serializeAws_restJson1AttachSecurityProfileCommand = exports.serializeAws_restJson1AttachPrincipalPolicyCommand = exports.serializeAws_restJson1AttachPolicyCommand = exports.serializeAws_restJson1AssociateTargetsWithJobCommand = exports.serializeAws_restJson1AddThingToThingGroupCommand = exports.serializeAws_restJson1AddThingToBillingGroupCommand = exports.serializeAws_restJson1AcceptCertificateTransferCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.deserializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = exports.deserializeAws_restJson1UpdateTopicRuleDestinationCommand = exports.deserializeAws_restJson1UpdateThingGroupsForThingCommand = exports.deserializeAws_restJson1UpdateThingGroupCommand = exports.deserializeAws_restJson1UpdateThingCommand = exports.deserializeAws_restJson1UpdateStreamCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateScheduledAuditCommand = exports.deserializeAws_restJson1UpdateRoleAliasCommand = exports.deserializeAws_restJson1UpdateProvisioningTemplateCommand = exports.deserializeAws_restJson1UpdateMitigationActionCommand = exports.deserializeAws_restJson1UpdateJobCommand = exports.deserializeAws_restJson1UpdateIndexingConfigurationCommand = exports.deserializeAws_restJson1UpdateFleetMetricCommand = exports.deserializeAws_restJson1UpdateEventConfigurationsCommand = exports.deserializeAws_restJson1UpdateDynamicThingGroupCommand = exports.deserializeAws_restJson1UpdateDomainConfigurationCommand = exports.deserializeAws_restJson1UpdateDimensionCommand = void 0;
|
|
4
|
+
exports.serializeAws_restJson1DescribeProvisioningTemplateCommand = exports.serializeAws_restJson1DescribeMitigationActionCommand = exports.serializeAws_restJson1DescribeManagedJobTemplateCommand = exports.serializeAws_restJson1DescribeJobTemplateCommand = exports.serializeAws_restJson1DescribeJobExecutionCommand = exports.serializeAws_restJson1DescribeJobCommand = exports.serializeAws_restJson1DescribeIndexCommand = exports.serializeAws_restJson1DescribeFleetMetricCommand = exports.serializeAws_restJson1DescribeEventConfigurationsCommand = exports.serializeAws_restJson1DescribeEndpointCommand = exports.serializeAws_restJson1DescribeDomainConfigurationCommand = exports.serializeAws_restJson1DescribeDimensionCommand = exports.serializeAws_restJson1DescribeDetectMitigationActionsTaskCommand = exports.serializeAws_restJson1DescribeDefaultAuthorizerCommand = exports.serializeAws_restJson1DescribeCustomMetricCommand = exports.serializeAws_restJson1DescribeCertificateCommand = exports.serializeAws_restJson1DescribeCACertificateCommand = exports.serializeAws_restJson1DescribeBillingGroupCommand = exports.serializeAws_restJson1DescribeAuthorizerCommand = exports.serializeAws_restJson1DescribeAuditTaskCommand = exports.serializeAws_restJson1DescribeAuditSuppressionCommand = exports.serializeAws_restJson1DescribeAuditMitigationActionsTaskCommand = exports.serializeAws_restJson1DescribeAuditFindingCommand = exports.serializeAws_restJson1DescribeAccountAuditConfigurationCommand = exports.serializeAws_restJson1DeprecateThingTypeCommand = exports.serializeAws_restJson1DeleteV2LoggingLevelCommand = exports.serializeAws_restJson1DeleteTopicRuleDestinationCommand = exports.serializeAws_restJson1DeleteTopicRuleCommand = exports.serializeAws_restJson1DeleteThingTypeCommand = exports.serializeAws_restJson1DeleteThingGroupCommand = exports.serializeAws_restJson1DeleteThingCommand = exports.serializeAws_restJson1DeleteStreamCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteScheduledAuditCommand = exports.serializeAws_restJson1DeleteRoleAliasCommand = exports.serializeAws_restJson1DeleteRegistrationCodeCommand = exports.serializeAws_restJson1DeleteProvisioningTemplateVersionCommand = exports.serializeAws_restJson1DeleteProvisioningTemplateCommand = exports.serializeAws_restJson1DeletePolicyVersionCommand = exports.serializeAws_restJson1DeletePolicyCommand = exports.serializeAws_restJson1DeleteOTAUpdateCommand = exports.serializeAws_restJson1DeleteMitigationActionCommand = exports.serializeAws_restJson1DeleteJobTemplateCommand = exports.serializeAws_restJson1DeleteJobExecutionCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1DeleteFleetMetricCommand = exports.serializeAws_restJson1DeleteDynamicThingGroupCommand = exports.serializeAws_restJson1DeleteDomainConfigurationCommand = exports.serializeAws_restJson1DeleteDimensionCommand = exports.serializeAws_restJson1DeleteCustomMetricCommand = void 0;
|
|
5
|
+
exports.serializeAws_restJson1ListIndicesCommand = exports.serializeAws_restJson1ListFleetMetricsCommand = exports.serializeAws_restJson1ListDomainConfigurationsCommand = exports.serializeAws_restJson1ListDimensionsCommand = exports.serializeAws_restJson1ListDetectMitigationActionsTasksCommand = exports.serializeAws_restJson1ListDetectMitigationActionsExecutionsCommand = exports.serializeAws_restJson1ListCustomMetricsCommand = exports.serializeAws_restJson1ListCertificatesByCACommand = exports.serializeAws_restJson1ListCertificatesCommand = exports.serializeAws_restJson1ListCACertificatesCommand = exports.serializeAws_restJson1ListBillingGroupsCommand = exports.serializeAws_restJson1ListAuthorizersCommand = exports.serializeAws_restJson1ListAuditTasksCommand = exports.serializeAws_restJson1ListAuditSuppressionsCommand = exports.serializeAws_restJson1ListAuditMitigationActionsTasksCommand = exports.serializeAws_restJson1ListAuditMitigationActionsExecutionsCommand = exports.serializeAws_restJson1ListAuditFindingsCommand = exports.serializeAws_restJson1ListAttachedPoliciesCommand = exports.serializeAws_restJson1ListActiveViolationsCommand = exports.serializeAws_restJson1GetV2LoggingOptionsCommand = exports.serializeAws_restJson1GetTopicRuleDestinationCommand = exports.serializeAws_restJson1GetTopicRuleCommand = exports.serializeAws_restJson1GetStatisticsCommand = exports.serializeAws_restJson1GetRegistrationCodeCommand = exports.serializeAws_restJson1GetPolicyVersionCommand = exports.serializeAws_restJson1GetPolicyCommand = exports.serializeAws_restJson1GetPercentilesCommand = exports.serializeAws_restJson1GetOTAUpdateCommand = exports.serializeAws_restJson1GetLoggingOptionsCommand = exports.serializeAws_restJson1GetJobDocumentCommand = exports.serializeAws_restJson1GetIndexingConfigurationCommand = exports.serializeAws_restJson1GetEffectivePoliciesCommand = exports.serializeAws_restJson1GetCardinalityCommand = exports.serializeAws_restJson1GetBucketsAggregationCommand = exports.serializeAws_restJson1GetBehaviorModelTrainingSummariesCommand = exports.serializeAws_restJson1EnableTopicRuleCommand = exports.serializeAws_restJson1DisableTopicRuleCommand = exports.serializeAws_restJson1DetachThingPrincipalCommand = exports.serializeAws_restJson1DetachSecurityProfileCommand = exports.serializeAws_restJson1DetachPrincipalPolicyCommand = exports.serializeAws_restJson1DetachPolicyCommand = exports.serializeAws_restJson1DescribeThingTypeCommand = exports.serializeAws_restJson1DescribeThingRegistrationTaskCommand = exports.serializeAws_restJson1DescribeThingGroupCommand = exports.serializeAws_restJson1DescribeThingCommand = exports.serializeAws_restJson1DescribeStreamCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeScheduledAuditCommand = exports.serializeAws_restJson1DescribeRoleAliasCommand = exports.serializeAws_restJson1DescribeProvisioningTemplateVersionCommand = void 0;
|
|
6
|
+
exports.serializeAws_restJson1SetV2LoggingLevelCommand = exports.serializeAws_restJson1SetLoggingOptionsCommand = exports.serializeAws_restJson1SetDefaultPolicyVersionCommand = exports.serializeAws_restJson1SetDefaultAuthorizerCommand = exports.serializeAws_restJson1SearchIndexCommand = exports.serializeAws_restJson1ReplaceTopicRuleCommand = exports.serializeAws_restJson1RemoveThingFromThingGroupCommand = exports.serializeAws_restJson1RemoveThingFromBillingGroupCommand = exports.serializeAws_restJson1RejectCertificateTransferCommand = exports.serializeAws_restJson1RegisterThingCommand = exports.serializeAws_restJson1RegisterCertificateWithoutCACommand = exports.serializeAws_restJson1RegisterCertificateCommand = exports.serializeAws_restJson1RegisterCACertificateCommand = exports.serializeAws_restJson1PutVerificationStateOnViolationCommand = exports.serializeAws_restJson1ListViolationEventsCommand = exports.serializeAws_restJson1ListV2LoggingLevelsCommand = exports.serializeAws_restJson1ListTopicRulesCommand = exports.serializeAws_restJson1ListTopicRuleDestinationsCommand = exports.serializeAws_restJson1ListThingTypesCommand = exports.serializeAws_restJson1ListThingsInThingGroupCommand = exports.serializeAws_restJson1ListThingsInBillingGroupCommand = exports.serializeAws_restJson1ListThingsCommand = exports.serializeAws_restJson1ListThingRegistrationTasksCommand = exports.serializeAws_restJson1ListThingRegistrationTaskReportsCommand = exports.serializeAws_restJson1ListThingPrincipalsCommand = exports.serializeAws_restJson1ListThingGroupsForThingCommand = exports.serializeAws_restJson1ListThingGroupsCommand = exports.serializeAws_restJson1ListTargetsForSecurityProfileCommand = exports.serializeAws_restJson1ListTargetsForPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListStreamsCommand = exports.serializeAws_restJson1ListSecurityProfilesForTargetCommand = exports.serializeAws_restJson1ListSecurityProfilesCommand = exports.serializeAws_restJson1ListScheduledAuditsCommand = exports.serializeAws_restJson1ListRoleAliasesCommand = exports.serializeAws_restJson1ListProvisioningTemplateVersionsCommand = exports.serializeAws_restJson1ListProvisioningTemplatesCommand = exports.serializeAws_restJson1ListPrincipalThingsCommand = exports.serializeAws_restJson1ListPrincipalPoliciesCommand = exports.serializeAws_restJson1ListPolicyVersionsCommand = exports.serializeAws_restJson1ListPolicyPrincipalsCommand = exports.serializeAws_restJson1ListPoliciesCommand = exports.serializeAws_restJson1ListOutgoingCertificatesCommand = exports.serializeAws_restJson1ListOTAUpdatesCommand = exports.serializeAws_restJson1ListMitigationActionsCommand = exports.serializeAws_restJson1ListManagedJobTemplatesCommand = exports.serializeAws_restJson1ListJobTemplatesCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListJobExecutionsForThingCommand = exports.serializeAws_restJson1ListJobExecutionsForJobCommand = void 0;
|
|
7
|
+
exports.deserializeAws_restJson1CancelJobExecutionCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.deserializeAws_restJson1CancelDetectMitigationActionsTaskCommand = exports.deserializeAws_restJson1CancelCertificateTransferCommand = exports.deserializeAws_restJson1CancelAuditTaskCommand = exports.deserializeAws_restJson1CancelAuditMitigationActionsTaskCommand = exports.deserializeAws_restJson1AttachThingPrincipalCommand = exports.deserializeAws_restJson1AttachSecurityProfileCommand = exports.deserializeAws_restJson1AttachPrincipalPolicyCommand = exports.deserializeAws_restJson1AttachPolicyCommand = exports.deserializeAws_restJson1AssociateTargetsWithJobCommand = exports.deserializeAws_restJson1AddThingToThingGroupCommand = exports.deserializeAws_restJson1AddThingToBillingGroupCommand = exports.deserializeAws_restJson1AcceptCertificateTransferCommand = exports.serializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = exports.serializeAws_restJson1UpdateTopicRuleDestinationCommand = exports.serializeAws_restJson1UpdateThingGroupsForThingCommand = exports.serializeAws_restJson1UpdateThingGroupCommand = exports.serializeAws_restJson1UpdateThingCommand = exports.serializeAws_restJson1UpdateStreamCommand = exports.serializeAws_restJson1UpdateSecurityProfileCommand = exports.serializeAws_restJson1UpdateScheduledAuditCommand = exports.serializeAws_restJson1UpdateRoleAliasCommand = exports.serializeAws_restJson1UpdateProvisioningTemplateCommand = exports.serializeAws_restJson1UpdateMitigationActionCommand = exports.serializeAws_restJson1UpdateJobCommand = exports.serializeAws_restJson1UpdateIndexingConfigurationCommand = exports.serializeAws_restJson1UpdateFleetMetricCommand = exports.serializeAws_restJson1UpdateEventConfigurationsCommand = exports.serializeAws_restJson1UpdateDynamicThingGroupCommand = exports.serializeAws_restJson1UpdateDomainConfigurationCommand = exports.serializeAws_restJson1UpdateDimensionCommand = exports.serializeAws_restJson1UpdateCustomMetricCommand = exports.serializeAws_restJson1UpdateCertificateCommand = exports.serializeAws_restJson1UpdateCACertificateCommand = exports.serializeAws_restJson1UpdateBillingGroupCommand = exports.serializeAws_restJson1UpdateAuthorizerCommand = exports.serializeAws_restJson1UpdateAuditSuppressionCommand = exports.serializeAws_restJson1UpdateAccountAuditConfigurationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TransferCertificateCommand = exports.serializeAws_restJson1TestInvokeAuthorizerCommand = exports.serializeAws_restJson1TestAuthorizationCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopThingRegistrationTaskCommand = exports.serializeAws_restJson1StartThingRegistrationTaskCommand = exports.serializeAws_restJson1StartOnDemandAuditTaskCommand = exports.serializeAws_restJson1StartDetectMitigationActionsTaskCommand = exports.serializeAws_restJson1StartAuditMitigationActionsTaskCommand = exports.serializeAws_restJson1SetV2LoggingOptionsCommand = void 0;
|
|
8
|
+
exports.deserializeAws_restJson1DeleteProvisioningTemplateVersionCommand = exports.deserializeAws_restJson1DeleteProvisioningTemplateCommand = exports.deserializeAws_restJson1DeletePolicyVersionCommand = exports.deserializeAws_restJson1DeletePolicyCommand = exports.deserializeAws_restJson1DeleteOTAUpdateCommand = exports.deserializeAws_restJson1DeleteMitigationActionCommand = exports.deserializeAws_restJson1DeleteJobTemplateCommand = exports.deserializeAws_restJson1DeleteJobExecutionCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1DeleteFleetMetricCommand = exports.deserializeAws_restJson1DeleteDynamicThingGroupCommand = exports.deserializeAws_restJson1DeleteDomainConfigurationCommand = exports.deserializeAws_restJson1DeleteDimensionCommand = exports.deserializeAws_restJson1DeleteCustomMetricCommand = exports.deserializeAws_restJson1DeleteCertificateCommand = exports.deserializeAws_restJson1DeleteCACertificateCommand = exports.deserializeAws_restJson1DeleteBillingGroupCommand = exports.deserializeAws_restJson1DeleteAuthorizerCommand = exports.deserializeAws_restJson1DeleteAuditSuppressionCommand = exports.deserializeAws_restJson1DeleteAccountAuditConfigurationCommand = exports.deserializeAws_restJson1CreateTopicRuleDestinationCommand = exports.deserializeAws_restJson1CreateTopicRuleCommand = exports.deserializeAws_restJson1CreateThingTypeCommand = exports.deserializeAws_restJson1CreateThingGroupCommand = exports.deserializeAws_restJson1CreateThingCommand = exports.deserializeAws_restJson1CreateStreamCommand = exports.deserializeAws_restJson1CreateSecurityProfileCommand = exports.deserializeAws_restJson1CreateScheduledAuditCommand = exports.deserializeAws_restJson1CreateRoleAliasCommand = exports.deserializeAws_restJson1CreateProvisioningTemplateVersionCommand = exports.deserializeAws_restJson1CreateProvisioningTemplateCommand = exports.deserializeAws_restJson1CreateProvisioningClaimCommand = exports.deserializeAws_restJson1CreatePolicyVersionCommand = exports.deserializeAws_restJson1CreatePolicyCommand = exports.deserializeAws_restJson1CreateOTAUpdateCommand = exports.deserializeAws_restJson1CreateMitigationActionCommand = exports.deserializeAws_restJson1CreateKeysAndCertificateCommand = exports.deserializeAws_restJson1CreateJobTemplateCommand = exports.deserializeAws_restJson1CreateJobCommand = exports.deserializeAws_restJson1CreateFleetMetricCommand = exports.deserializeAws_restJson1CreateDynamicThingGroupCommand = exports.deserializeAws_restJson1CreateDomainConfigurationCommand = exports.deserializeAws_restJson1CreateDimensionCommand = exports.deserializeAws_restJson1CreateCustomMetricCommand = exports.deserializeAws_restJson1CreateCertificateFromCsrCommand = exports.deserializeAws_restJson1CreateBillingGroupCommand = exports.deserializeAws_restJson1CreateAuthorizerCommand = exports.deserializeAws_restJson1CreateAuditSuppressionCommand = exports.deserializeAws_restJson1ConfirmTopicRuleDestinationCommand = exports.deserializeAws_restJson1ClearDefaultAuthorizerCommand = void 0;
|
|
9
|
+
exports.deserializeAws_restJson1DisableTopicRuleCommand = exports.deserializeAws_restJson1DetachThingPrincipalCommand = exports.deserializeAws_restJson1DetachSecurityProfileCommand = exports.deserializeAws_restJson1DetachPrincipalPolicyCommand = exports.deserializeAws_restJson1DetachPolicyCommand = exports.deserializeAws_restJson1DescribeThingTypeCommand = exports.deserializeAws_restJson1DescribeThingRegistrationTaskCommand = exports.deserializeAws_restJson1DescribeThingGroupCommand = exports.deserializeAws_restJson1DescribeThingCommand = exports.deserializeAws_restJson1DescribeStreamCommand = exports.deserializeAws_restJson1DescribeSecurityProfileCommand = exports.deserializeAws_restJson1DescribeScheduledAuditCommand = exports.deserializeAws_restJson1DescribeRoleAliasCommand = exports.deserializeAws_restJson1DescribeProvisioningTemplateVersionCommand = exports.deserializeAws_restJson1DescribeProvisioningTemplateCommand = exports.deserializeAws_restJson1DescribeMitigationActionCommand = exports.deserializeAws_restJson1DescribeManagedJobTemplateCommand = exports.deserializeAws_restJson1DescribeJobTemplateCommand = exports.deserializeAws_restJson1DescribeJobExecutionCommand = exports.deserializeAws_restJson1DescribeJobCommand = exports.deserializeAws_restJson1DescribeIndexCommand = exports.deserializeAws_restJson1DescribeFleetMetricCommand = exports.deserializeAws_restJson1DescribeEventConfigurationsCommand = exports.deserializeAws_restJson1DescribeEndpointCommand = exports.deserializeAws_restJson1DescribeDomainConfigurationCommand = exports.deserializeAws_restJson1DescribeDimensionCommand = exports.deserializeAws_restJson1DescribeDetectMitigationActionsTaskCommand = exports.deserializeAws_restJson1DescribeDefaultAuthorizerCommand = exports.deserializeAws_restJson1DescribeCustomMetricCommand = exports.deserializeAws_restJson1DescribeCertificateCommand = exports.deserializeAws_restJson1DescribeCACertificateCommand = exports.deserializeAws_restJson1DescribeBillingGroupCommand = exports.deserializeAws_restJson1DescribeAuthorizerCommand = exports.deserializeAws_restJson1DescribeAuditTaskCommand = exports.deserializeAws_restJson1DescribeAuditSuppressionCommand = exports.deserializeAws_restJson1DescribeAuditMitigationActionsTaskCommand = exports.deserializeAws_restJson1DescribeAuditFindingCommand = exports.deserializeAws_restJson1DescribeAccountAuditConfigurationCommand = exports.deserializeAws_restJson1DeprecateThingTypeCommand = exports.deserializeAws_restJson1DeleteV2LoggingLevelCommand = exports.deserializeAws_restJson1DeleteTopicRuleDestinationCommand = exports.deserializeAws_restJson1DeleteTopicRuleCommand = exports.deserializeAws_restJson1DeleteThingTypeCommand = exports.deserializeAws_restJson1DeleteThingGroupCommand = exports.deserializeAws_restJson1DeleteThingCommand = exports.deserializeAws_restJson1DeleteStreamCommand = exports.deserializeAws_restJson1DeleteSecurityProfileCommand = exports.deserializeAws_restJson1DeleteScheduledAuditCommand = exports.deserializeAws_restJson1DeleteRoleAliasCommand = exports.deserializeAws_restJson1DeleteRegistrationCodeCommand = void 0;
|
|
10
|
+
exports.deserializeAws_restJson1ListProvisioningTemplatesCommand = exports.deserializeAws_restJson1ListPrincipalThingsCommand = exports.deserializeAws_restJson1ListPrincipalPoliciesCommand = exports.deserializeAws_restJson1ListPolicyVersionsCommand = exports.deserializeAws_restJson1ListPolicyPrincipalsCommand = exports.deserializeAws_restJson1ListPoliciesCommand = exports.deserializeAws_restJson1ListOutgoingCertificatesCommand = exports.deserializeAws_restJson1ListOTAUpdatesCommand = exports.deserializeAws_restJson1ListMitigationActionsCommand = exports.deserializeAws_restJson1ListManagedJobTemplatesCommand = exports.deserializeAws_restJson1ListJobTemplatesCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1ListJobExecutionsForThingCommand = exports.deserializeAws_restJson1ListJobExecutionsForJobCommand = exports.deserializeAws_restJson1ListIndicesCommand = exports.deserializeAws_restJson1ListFleetMetricsCommand = exports.deserializeAws_restJson1ListDomainConfigurationsCommand = exports.deserializeAws_restJson1ListDimensionsCommand = exports.deserializeAws_restJson1ListDetectMitigationActionsTasksCommand = exports.deserializeAws_restJson1ListDetectMitigationActionsExecutionsCommand = exports.deserializeAws_restJson1ListCustomMetricsCommand = exports.deserializeAws_restJson1ListCertificatesByCACommand = exports.deserializeAws_restJson1ListCertificatesCommand = exports.deserializeAws_restJson1ListCACertificatesCommand = exports.deserializeAws_restJson1ListBillingGroupsCommand = exports.deserializeAws_restJson1ListAuthorizersCommand = exports.deserializeAws_restJson1ListAuditTasksCommand = exports.deserializeAws_restJson1ListAuditSuppressionsCommand = exports.deserializeAws_restJson1ListAuditMitigationActionsTasksCommand = exports.deserializeAws_restJson1ListAuditMitigationActionsExecutionsCommand = exports.deserializeAws_restJson1ListAuditFindingsCommand = exports.deserializeAws_restJson1ListAttachedPoliciesCommand = exports.deserializeAws_restJson1ListActiveViolationsCommand = exports.deserializeAws_restJson1GetV2LoggingOptionsCommand = exports.deserializeAws_restJson1GetTopicRuleDestinationCommand = exports.deserializeAws_restJson1GetTopicRuleCommand = exports.deserializeAws_restJson1GetStatisticsCommand = exports.deserializeAws_restJson1GetRegistrationCodeCommand = exports.deserializeAws_restJson1GetPolicyVersionCommand = exports.deserializeAws_restJson1GetPolicyCommand = exports.deserializeAws_restJson1GetPercentilesCommand = exports.deserializeAws_restJson1GetOTAUpdateCommand = exports.deserializeAws_restJson1GetLoggingOptionsCommand = exports.deserializeAws_restJson1GetJobDocumentCommand = exports.deserializeAws_restJson1GetIndexingConfigurationCommand = exports.deserializeAws_restJson1GetEffectivePoliciesCommand = exports.deserializeAws_restJson1GetCardinalityCommand = exports.deserializeAws_restJson1GetBucketsAggregationCommand = exports.deserializeAws_restJson1GetBehaviorModelTrainingSummariesCommand = exports.deserializeAws_restJson1EnableTopicRuleCommand = void 0;
|
|
11
|
+
exports.deserializeAws_restJson1UpdateAuthorizerCommand = exports.deserializeAws_restJson1UpdateAuditSuppressionCommand = exports.deserializeAws_restJson1UpdateAccountAuditConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TransferCertificateCommand = exports.deserializeAws_restJson1TestInvokeAuthorizerCommand = exports.deserializeAws_restJson1TestAuthorizationCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopThingRegistrationTaskCommand = exports.deserializeAws_restJson1StartThingRegistrationTaskCommand = exports.deserializeAws_restJson1StartOnDemandAuditTaskCommand = exports.deserializeAws_restJson1StartDetectMitigationActionsTaskCommand = exports.deserializeAws_restJson1StartAuditMitigationActionsTaskCommand = exports.deserializeAws_restJson1SetV2LoggingOptionsCommand = exports.deserializeAws_restJson1SetV2LoggingLevelCommand = exports.deserializeAws_restJson1SetLoggingOptionsCommand = exports.deserializeAws_restJson1SetDefaultPolicyVersionCommand = exports.deserializeAws_restJson1SetDefaultAuthorizerCommand = exports.deserializeAws_restJson1SearchIndexCommand = exports.deserializeAws_restJson1ReplaceTopicRuleCommand = exports.deserializeAws_restJson1RemoveThingFromThingGroupCommand = exports.deserializeAws_restJson1RemoveThingFromBillingGroupCommand = exports.deserializeAws_restJson1RejectCertificateTransferCommand = exports.deserializeAws_restJson1RegisterThingCommand = exports.deserializeAws_restJson1RegisterCertificateWithoutCACommand = exports.deserializeAws_restJson1RegisterCertificateCommand = exports.deserializeAws_restJson1RegisterCACertificateCommand = exports.deserializeAws_restJson1PutVerificationStateOnViolationCommand = exports.deserializeAws_restJson1ListViolationEventsCommand = exports.deserializeAws_restJson1ListV2LoggingLevelsCommand = exports.deserializeAws_restJson1ListTopicRulesCommand = exports.deserializeAws_restJson1ListTopicRuleDestinationsCommand = exports.deserializeAws_restJson1ListThingTypesCommand = exports.deserializeAws_restJson1ListThingsInThingGroupCommand = exports.deserializeAws_restJson1ListThingsInBillingGroupCommand = exports.deserializeAws_restJson1ListThingsCommand = exports.deserializeAws_restJson1ListThingRegistrationTasksCommand = exports.deserializeAws_restJson1ListThingRegistrationTaskReportsCommand = exports.deserializeAws_restJson1ListThingPrincipalsCommand = exports.deserializeAws_restJson1ListThingGroupsForThingCommand = exports.deserializeAws_restJson1ListThingGroupsCommand = exports.deserializeAws_restJson1ListTargetsForSecurityProfileCommand = exports.deserializeAws_restJson1ListTargetsForPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListStreamsCommand = exports.deserializeAws_restJson1ListSecurityProfilesForTargetCommand = exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListScheduledAuditsCommand = exports.deserializeAws_restJson1ListRoleAliasesCommand = exports.deserializeAws_restJson1ListProvisioningTemplateVersionsCommand = void 0;
|
|
12
|
+
exports.deserializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = exports.deserializeAws_restJson1UpdateTopicRuleDestinationCommand = exports.deserializeAws_restJson1UpdateThingGroupsForThingCommand = exports.deserializeAws_restJson1UpdateThingGroupCommand = exports.deserializeAws_restJson1UpdateThingCommand = exports.deserializeAws_restJson1UpdateStreamCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateScheduledAuditCommand = exports.deserializeAws_restJson1UpdateRoleAliasCommand = exports.deserializeAws_restJson1UpdateProvisioningTemplateCommand = exports.deserializeAws_restJson1UpdateMitigationActionCommand = exports.deserializeAws_restJson1UpdateJobCommand = exports.deserializeAws_restJson1UpdateIndexingConfigurationCommand = exports.deserializeAws_restJson1UpdateFleetMetricCommand = exports.deserializeAws_restJson1UpdateEventConfigurationsCommand = exports.deserializeAws_restJson1UpdateDynamicThingGroupCommand = exports.deserializeAws_restJson1UpdateDomainConfigurationCommand = exports.deserializeAws_restJson1UpdateDimensionCommand = exports.deserializeAws_restJson1UpdateCustomMetricCommand = exports.deserializeAws_restJson1UpdateCertificateCommand = exports.deserializeAws_restJson1UpdateCACertificateCommand = exports.deserializeAws_restJson1UpdateBillingGroupCommand = void 0;
|
|
13
13
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
14
14
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
@@ -546,6 +546,8 @@ const serializeAws_restJson1CreateAuthorizerCommand = async (input, context) =>
|
|
|
546
546
|
body = JSON.stringify({
|
|
547
547
|
...(input.authorizerFunctionArn !== undefined &&
|
|
548
548
|
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn }),
|
|
549
|
+
...(input.enableCachingForHttp !== undefined &&
|
|
550
|
+
input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp }),
|
|
549
551
|
...(input.signingDisabled !== undefined &&
|
|
550
552
|
input.signingDisabled !== null && { signingDisabled: input.signingDisabled }),
|
|
551
553
|
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
@@ -855,8 +857,16 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
|
|
|
855
857
|
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
|
|
856
858
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
857
859
|
...(input.document !== undefined && input.document !== null && { document: input.document }),
|
|
860
|
+
...(input.documentParameters !== undefined &&
|
|
861
|
+
input.documentParameters !== null && {
|
|
862
|
+
documentParameters: serializeAws_restJson1ParameterMap(input.documentParameters, context),
|
|
863
|
+
}),
|
|
858
864
|
...(input.documentSource !== undefined &&
|
|
859
865
|
input.documentSource !== null && { documentSource: input.documentSource }),
|
|
866
|
+
...(input.jobExecutionsRetryConfig !== undefined &&
|
|
867
|
+
input.jobExecutionsRetryConfig !== null && {
|
|
868
|
+
jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
|
|
869
|
+
}),
|
|
860
870
|
...(input.jobExecutionsRolloutConfig !== undefined &&
|
|
861
871
|
input.jobExecutionsRolloutConfig !== null && {
|
|
862
872
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
@@ -915,6 +925,10 @@ const serializeAws_restJson1CreateJobTemplateCommand = async (input, context) =>
|
|
|
915
925
|
...(input.documentSource !== undefined &&
|
|
916
926
|
input.documentSource !== null && { documentSource: input.documentSource }),
|
|
917
927
|
...(input.jobArn !== undefined && input.jobArn !== null && { jobArn: input.jobArn }),
|
|
928
|
+
...(input.jobExecutionsRetryConfig !== undefined &&
|
|
929
|
+
input.jobExecutionsRetryConfig !== null && {
|
|
930
|
+
jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
|
|
931
|
+
}),
|
|
918
932
|
...(input.jobExecutionsRolloutConfig !== undefined &&
|
|
919
933
|
input.jobExecutionsRolloutConfig !== null && {
|
|
920
934
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
@@ -2995,6 +3009,36 @@ const serializeAws_restJson1DescribeJobTemplateCommand = async (input, context)
|
|
|
2995
3009
|
});
|
|
2996
3010
|
};
|
|
2997
3011
|
exports.serializeAws_restJson1DescribeJobTemplateCommand = serializeAws_restJson1DescribeJobTemplateCommand;
|
|
3012
|
+
const serializeAws_restJson1DescribeManagedJobTemplateCommand = async (input, context) => {
|
|
3013
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3014
|
+
const headers = {};
|
|
3015
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates/{templateName}";
|
|
3016
|
+
if (input.templateName !== undefined) {
|
|
3017
|
+
const labelValue = input.templateName;
|
|
3018
|
+
if (labelValue.length <= 0) {
|
|
3019
|
+
throw new Error("Empty value provided for input HTTP label: templateName.");
|
|
3020
|
+
}
|
|
3021
|
+
resolvedPath = resolvedPath.replace("{templateName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
3022
|
+
}
|
|
3023
|
+
else {
|
|
3024
|
+
throw new Error("No value provided for input HTTP label: templateName.");
|
|
3025
|
+
}
|
|
3026
|
+
const query = {
|
|
3027
|
+
...(input.templateVersion !== undefined && { templateVersion: input.templateVersion }),
|
|
3028
|
+
};
|
|
3029
|
+
let body;
|
|
3030
|
+
return new protocol_http_1.HttpRequest({
|
|
3031
|
+
protocol,
|
|
3032
|
+
hostname,
|
|
3033
|
+
port,
|
|
3034
|
+
method: "GET",
|
|
3035
|
+
headers,
|
|
3036
|
+
path: resolvedPath,
|
|
3037
|
+
query,
|
|
3038
|
+
body,
|
|
3039
|
+
});
|
|
3040
|
+
};
|
|
3041
|
+
exports.serializeAws_restJson1DescribeManagedJobTemplateCommand = serializeAws_restJson1DescribeManagedJobTemplateCommand;
|
|
2998
3042
|
const serializeAws_restJson1DescribeMitigationActionCommand = async (input, context) => {
|
|
2999
3043
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3000
3044
|
const headers = {};
|
|
@@ -4387,6 +4431,7 @@ const serializeAws_restJson1ListJobExecutionsForThingCommand = async (input, con
|
|
|
4387
4431
|
...(input.namespaceId !== undefined && { namespaceId: input.namespaceId }),
|
|
4388
4432
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
4389
4433
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
4434
|
+
...(input.jobId !== undefined && { jobId: input.jobId }),
|
|
4390
4435
|
};
|
|
4391
4436
|
let body;
|
|
4392
4437
|
return new protocol_http_1.HttpRequest({
|
|
@@ -4448,6 +4493,28 @@ const serializeAws_restJson1ListJobTemplatesCommand = async (input, context) =>
|
|
|
4448
4493
|
});
|
|
4449
4494
|
};
|
|
4450
4495
|
exports.serializeAws_restJson1ListJobTemplatesCommand = serializeAws_restJson1ListJobTemplatesCommand;
|
|
4496
|
+
const serializeAws_restJson1ListManagedJobTemplatesCommand = async (input, context) => {
|
|
4497
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4498
|
+
const headers = {};
|
|
4499
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates";
|
|
4500
|
+
const query = {
|
|
4501
|
+
...(input.templateName !== undefined && { templateName: input.templateName }),
|
|
4502
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
4503
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
4504
|
+
};
|
|
4505
|
+
let body;
|
|
4506
|
+
return new protocol_http_1.HttpRequest({
|
|
4507
|
+
protocol,
|
|
4508
|
+
hostname,
|
|
4509
|
+
port,
|
|
4510
|
+
method: "GET",
|
|
4511
|
+
headers,
|
|
4512
|
+
path: resolvedPath,
|
|
4513
|
+
query,
|
|
4514
|
+
body,
|
|
4515
|
+
});
|
|
4516
|
+
};
|
|
4517
|
+
exports.serializeAws_restJson1ListManagedJobTemplatesCommand = serializeAws_restJson1ListManagedJobTemplatesCommand;
|
|
4451
4518
|
const serializeAws_restJson1ListMitigationActionsCommand = async (input, context) => {
|
|
4452
4519
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4453
4520
|
const headers = {};
|
|
@@ -6050,6 +6117,8 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
|
|
|
6050
6117
|
body = JSON.stringify({
|
|
6051
6118
|
...(input.authorizerFunctionArn !== undefined &&
|
|
6052
6119
|
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn }),
|
|
6120
|
+
...(input.enableCachingForHttp !== undefined &&
|
|
6121
|
+
input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp }),
|
|
6053
6122
|
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
6054
6123
|
...(input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName }),
|
|
6055
6124
|
...(input.tokenSigningPublicKeys !== undefined &&
|
|
@@ -6440,6 +6509,10 @@ const serializeAws_restJson1UpdateJobCommand = async (input, context) => {
|
|
|
6440
6509
|
...(input.abortConfig !== undefined &&
|
|
6441
6510
|
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
|
|
6442
6511
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
6512
|
+
...(input.jobExecutionsRetryConfig !== undefined &&
|
|
6513
|
+
input.jobExecutionsRetryConfig !== null && {
|
|
6514
|
+
jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
|
|
6515
|
+
}),
|
|
6443
6516
|
...(input.jobExecutionsRolloutConfig !== undefined &&
|
|
6444
6517
|
input.jobExecutionsRolloutConfig !== null && {
|
|
6445
6518
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
@@ -15120,6 +15193,7 @@ const deserializeAws_restJson1DescribeJobTemplateCommand = async (output, contex
|
|
|
15120
15193
|
description: undefined,
|
|
15121
15194
|
document: undefined,
|
|
15122
15195
|
documentSource: undefined,
|
|
15196
|
+
jobExecutionsRetryConfig: undefined,
|
|
15123
15197
|
jobExecutionsRolloutConfig: undefined,
|
|
15124
15198
|
jobTemplateArn: undefined,
|
|
15125
15199
|
jobTemplateId: undefined,
|
|
@@ -15142,6 +15216,9 @@ const deserializeAws_restJson1DescribeJobTemplateCommand = async (output, contex
|
|
|
15142
15216
|
if (data.documentSource !== undefined && data.documentSource !== null) {
|
|
15143
15217
|
contents.documentSource = smithy_client_1.expectString(data.documentSource);
|
|
15144
15218
|
}
|
|
15219
|
+
if (data.jobExecutionsRetryConfig !== undefined && data.jobExecutionsRetryConfig !== null) {
|
|
15220
|
+
contents.jobExecutionsRetryConfig = deserializeAws_restJson1JobExecutionsRetryConfig(data.jobExecutionsRetryConfig, context);
|
|
15221
|
+
}
|
|
15145
15222
|
if (data.jobExecutionsRolloutConfig !== undefined && data.jobExecutionsRolloutConfig !== null) {
|
|
15146
15223
|
contents.jobExecutionsRolloutConfig = deserializeAws_restJson1JobExecutionsRolloutConfig(data.jobExecutionsRolloutConfig, context);
|
|
15147
15224
|
}
|
|
@@ -15217,6 +15294,102 @@ const deserializeAws_restJson1DescribeJobTemplateCommandError = async (output, c
|
|
|
15217
15294
|
delete response.Message;
|
|
15218
15295
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
15219
15296
|
};
|
|
15297
|
+
const deserializeAws_restJson1DescribeManagedJobTemplateCommand = async (output, context) => {
|
|
15298
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
15299
|
+
return deserializeAws_restJson1DescribeManagedJobTemplateCommandError(output, context);
|
|
15300
|
+
}
|
|
15301
|
+
const contents = {
|
|
15302
|
+
$metadata: deserializeMetadata(output),
|
|
15303
|
+
description: undefined,
|
|
15304
|
+
document: undefined,
|
|
15305
|
+
documentParameters: undefined,
|
|
15306
|
+
environments: undefined,
|
|
15307
|
+
templateArn: undefined,
|
|
15308
|
+
templateName: undefined,
|
|
15309
|
+
templateVersion: undefined,
|
|
15310
|
+
};
|
|
15311
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
15312
|
+
if (data.description !== undefined && data.description !== null) {
|
|
15313
|
+
contents.description = smithy_client_1.expectString(data.description);
|
|
15314
|
+
}
|
|
15315
|
+
if (data.document !== undefined && data.document !== null) {
|
|
15316
|
+
contents.document = smithy_client_1.expectString(data.document);
|
|
15317
|
+
}
|
|
15318
|
+
if (data.documentParameters !== undefined && data.documentParameters !== null) {
|
|
15319
|
+
contents.documentParameters = deserializeAws_restJson1DocumentParameters(data.documentParameters, context);
|
|
15320
|
+
}
|
|
15321
|
+
if (data.environments !== undefined && data.environments !== null) {
|
|
15322
|
+
contents.environments = deserializeAws_restJson1Environments(data.environments, context);
|
|
15323
|
+
}
|
|
15324
|
+
if (data.templateArn !== undefined && data.templateArn !== null) {
|
|
15325
|
+
contents.templateArn = smithy_client_1.expectString(data.templateArn);
|
|
15326
|
+
}
|
|
15327
|
+
if (data.templateName !== undefined && data.templateName !== null) {
|
|
15328
|
+
contents.templateName = smithy_client_1.expectString(data.templateName);
|
|
15329
|
+
}
|
|
15330
|
+
if (data.templateVersion !== undefined && data.templateVersion !== null) {
|
|
15331
|
+
contents.templateVersion = smithy_client_1.expectString(data.templateVersion);
|
|
15332
|
+
}
|
|
15333
|
+
return Promise.resolve(contents);
|
|
15334
|
+
};
|
|
15335
|
+
exports.deserializeAws_restJson1DescribeManagedJobTemplateCommand = deserializeAws_restJson1DescribeManagedJobTemplateCommand;
|
|
15336
|
+
const deserializeAws_restJson1DescribeManagedJobTemplateCommandError = async (output, context) => {
|
|
15337
|
+
const parsedOutput = {
|
|
15338
|
+
...output,
|
|
15339
|
+
body: await parseBody(output.body, context),
|
|
15340
|
+
};
|
|
15341
|
+
let response;
|
|
15342
|
+
let errorCode = "UnknownError";
|
|
15343
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
15344
|
+
switch (errorCode) {
|
|
15345
|
+
case "InternalServerException":
|
|
15346
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
15347
|
+
response = {
|
|
15348
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
15349
|
+
name: errorCode,
|
|
15350
|
+
$metadata: deserializeMetadata(output),
|
|
15351
|
+
};
|
|
15352
|
+
break;
|
|
15353
|
+
case "InvalidRequestException":
|
|
15354
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
15355
|
+
response = {
|
|
15356
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
15357
|
+
name: errorCode,
|
|
15358
|
+
$metadata: deserializeMetadata(output),
|
|
15359
|
+
};
|
|
15360
|
+
break;
|
|
15361
|
+
case "ResourceNotFoundException":
|
|
15362
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
15363
|
+
response = {
|
|
15364
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
15365
|
+
name: errorCode,
|
|
15366
|
+
$metadata: deserializeMetadata(output),
|
|
15367
|
+
};
|
|
15368
|
+
break;
|
|
15369
|
+
case "ThrottlingException":
|
|
15370
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
15371
|
+
response = {
|
|
15372
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
15373
|
+
name: errorCode,
|
|
15374
|
+
$metadata: deserializeMetadata(output),
|
|
15375
|
+
};
|
|
15376
|
+
break;
|
|
15377
|
+
default:
|
|
15378
|
+
const parsedBody = parsedOutput.body;
|
|
15379
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
15380
|
+
response = {
|
|
15381
|
+
...parsedBody,
|
|
15382
|
+
name: `${errorCode}`,
|
|
15383
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
15384
|
+
$fault: "client",
|
|
15385
|
+
$metadata: deserializeMetadata(output),
|
|
15386
|
+
};
|
|
15387
|
+
}
|
|
15388
|
+
const message = response.message || response.Message || errorCode;
|
|
15389
|
+
response.message = message;
|
|
15390
|
+
delete response.Message;
|
|
15391
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
15392
|
+
};
|
|
15220
15393
|
const deserializeAws_restJson1DescribeMitigationActionCommand = async (output, context) => {
|
|
15221
15394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
15222
15395
|
return deserializeAws_restJson1DescribeMitigationActionCommandError(output, context);
|
|
@@ -20037,6 +20210,82 @@ const deserializeAws_restJson1ListJobTemplatesCommandError = async (output, cont
|
|
|
20037
20210
|
delete response.Message;
|
|
20038
20211
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
20039
20212
|
};
|
|
20213
|
+
const deserializeAws_restJson1ListManagedJobTemplatesCommand = async (output, context) => {
|
|
20214
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
20215
|
+
return deserializeAws_restJson1ListManagedJobTemplatesCommandError(output, context);
|
|
20216
|
+
}
|
|
20217
|
+
const contents = {
|
|
20218
|
+
$metadata: deserializeMetadata(output),
|
|
20219
|
+
managedJobTemplates: undefined,
|
|
20220
|
+
nextToken: undefined,
|
|
20221
|
+
};
|
|
20222
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
20223
|
+
if (data.managedJobTemplates !== undefined && data.managedJobTemplates !== null) {
|
|
20224
|
+
contents.managedJobTemplates = deserializeAws_restJson1ManagedJobTemplatesSummaryList(data.managedJobTemplates, context);
|
|
20225
|
+
}
|
|
20226
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
20227
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
20228
|
+
}
|
|
20229
|
+
return Promise.resolve(contents);
|
|
20230
|
+
};
|
|
20231
|
+
exports.deserializeAws_restJson1ListManagedJobTemplatesCommand = deserializeAws_restJson1ListManagedJobTemplatesCommand;
|
|
20232
|
+
const deserializeAws_restJson1ListManagedJobTemplatesCommandError = async (output, context) => {
|
|
20233
|
+
const parsedOutput = {
|
|
20234
|
+
...output,
|
|
20235
|
+
body: await parseBody(output.body, context),
|
|
20236
|
+
};
|
|
20237
|
+
let response;
|
|
20238
|
+
let errorCode = "UnknownError";
|
|
20239
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
20240
|
+
switch (errorCode) {
|
|
20241
|
+
case "InternalServerException":
|
|
20242
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
20243
|
+
response = {
|
|
20244
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
20245
|
+
name: errorCode,
|
|
20246
|
+
$metadata: deserializeMetadata(output),
|
|
20247
|
+
};
|
|
20248
|
+
break;
|
|
20249
|
+
case "InvalidRequestException":
|
|
20250
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
20251
|
+
response = {
|
|
20252
|
+
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
20253
|
+
name: errorCode,
|
|
20254
|
+
$metadata: deserializeMetadata(output),
|
|
20255
|
+
};
|
|
20256
|
+
break;
|
|
20257
|
+
case "ResourceNotFoundException":
|
|
20258
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
20259
|
+
response = {
|
|
20260
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
20261
|
+
name: errorCode,
|
|
20262
|
+
$metadata: deserializeMetadata(output),
|
|
20263
|
+
};
|
|
20264
|
+
break;
|
|
20265
|
+
case "ThrottlingException":
|
|
20266
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
20267
|
+
response = {
|
|
20268
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
20269
|
+
name: errorCode,
|
|
20270
|
+
$metadata: deserializeMetadata(output),
|
|
20271
|
+
};
|
|
20272
|
+
break;
|
|
20273
|
+
default:
|
|
20274
|
+
const parsedBody = parsedOutput.body;
|
|
20275
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
20276
|
+
response = {
|
|
20277
|
+
...parsedBody,
|
|
20278
|
+
name: `${errorCode}`,
|
|
20279
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
20280
|
+
$fault: "client",
|
|
20281
|
+
$metadata: deserializeMetadata(output),
|
|
20282
|
+
};
|
|
20283
|
+
}
|
|
20284
|
+
const message = response.message || response.Message || errorCode;
|
|
20285
|
+
response.message = message;
|
|
20286
|
+
delete response.Message;
|
|
20287
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
20288
|
+
};
|
|
20040
20289
|
const deserializeAws_restJson1ListMitigationActionsCommand = async (output, context) => {
|
|
20041
20290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
20042
20291
|
return deserializeAws_restJson1ListMitigationActionsCommandError(output, context);
|
|
@@ -26878,6 +27127,19 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
|
|
|
26878
27127
|
}
|
|
26879
27128
|
return contents;
|
|
26880
27129
|
};
|
|
27130
|
+
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
27131
|
+
const contents = {
|
|
27132
|
+
name: "InternalServerException",
|
|
27133
|
+
$fault: "server",
|
|
27134
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
27135
|
+
message: undefined,
|
|
27136
|
+
};
|
|
27137
|
+
const data = parsedOutput.body;
|
|
27138
|
+
if (data.message !== undefined && data.message !== null) {
|
|
27139
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
27140
|
+
}
|
|
27141
|
+
return contents;
|
|
27142
|
+
};
|
|
26881
27143
|
const deserializeAws_restJson1InvalidAggregationExceptionResponse = async (parsedOutput, context) => {
|
|
26882
27144
|
const contents = {
|
|
26883
27145
|
name: "InvalidAggregationException",
|
|
@@ -27950,6 +28212,14 @@ const serializeAws_restJson1IotSiteWiseAction = (input, context) => {
|
|
|
27950
28212
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
27951
28213
|
};
|
|
27952
28214
|
};
|
|
28215
|
+
const serializeAws_restJson1JobExecutionsRetryConfig = (input, context) => {
|
|
28216
|
+
return {
|
|
28217
|
+
...(input.criteriaList !== undefined &&
|
|
28218
|
+
input.criteriaList !== null && {
|
|
28219
|
+
criteriaList: serializeAws_restJson1RetryCriteriaList(input.criteriaList, context),
|
|
28220
|
+
}),
|
|
28221
|
+
};
|
|
28222
|
+
};
|
|
27953
28223
|
const serializeAws_restJson1JobExecutionsRolloutConfig = (input, context) => {
|
|
27954
28224
|
return {
|
|
27955
28225
|
...(input.exponentialRate !== undefined &&
|
|
@@ -28129,6 +28399,17 @@ const serializeAws_restJson1OTAUpdateFiles = (input, context) => {
|
|
|
28129
28399
|
return serializeAws_restJson1OTAUpdateFile(entry, context);
|
|
28130
28400
|
});
|
|
28131
28401
|
};
|
|
28402
|
+
const serializeAws_restJson1ParameterMap = (input, context) => {
|
|
28403
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
28404
|
+
if (value === null) {
|
|
28405
|
+
return acc;
|
|
28406
|
+
}
|
|
28407
|
+
return {
|
|
28408
|
+
...acc,
|
|
28409
|
+
[key]: value,
|
|
28410
|
+
};
|
|
28411
|
+
}, {});
|
|
28412
|
+
};
|
|
28132
28413
|
const serializeAws_restJson1Parameters = (input, context) => {
|
|
28133
28414
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
28134
28415
|
if (value === null) {
|
|
@@ -28307,6 +28588,23 @@ const serializeAws_restJson1Resources = (input, context) => {
|
|
|
28307
28588
|
return entry;
|
|
28308
28589
|
});
|
|
28309
28590
|
};
|
|
28591
|
+
const serializeAws_restJson1RetryCriteria = (input, context) => {
|
|
28592
|
+
return {
|
|
28593
|
+
...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
|
|
28594
|
+
...(input.numberOfRetries !== undefined &&
|
|
28595
|
+
input.numberOfRetries !== null && { numberOfRetries: input.numberOfRetries }),
|
|
28596
|
+
};
|
|
28597
|
+
};
|
|
28598
|
+
const serializeAws_restJson1RetryCriteriaList = (input, context) => {
|
|
28599
|
+
return input
|
|
28600
|
+
.filter((e) => e != null)
|
|
28601
|
+
.map((entry) => {
|
|
28602
|
+
if (entry === null) {
|
|
28603
|
+
return null;
|
|
28604
|
+
}
|
|
28605
|
+
return serializeAws_restJson1RetryCriteria(entry, context);
|
|
28606
|
+
});
|
|
28607
|
+
};
|
|
28310
28608
|
const serializeAws_restJson1S3Action = (input, context) => {
|
|
28311
28609
|
return {
|
|
28312
28610
|
...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
|
|
@@ -28568,8 +28866,12 @@ const serializeAws_restJson1ThingIndexingConfiguration = (input, context) => {
|
|
|
28568
28866
|
return {
|
|
28569
28867
|
...(input.customFields !== undefined &&
|
|
28570
28868
|
input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) }),
|
|
28869
|
+
...(input.deviceDefenderIndexingMode !== undefined &&
|
|
28870
|
+
input.deviceDefenderIndexingMode !== null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode }),
|
|
28571
28871
|
...(input.managedFields !== undefined &&
|
|
28572
28872
|
input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) }),
|
|
28873
|
+
...(input.namedShadowIndexingMode !== undefined &&
|
|
28874
|
+
input.namedShadowIndexingMode !== null && { namedShadowIndexingMode: input.namedShadowIndexingMode }),
|
|
28573
28875
|
...(input.thingConnectivityIndexingMode !== undefined &&
|
|
28574
28876
|
input.thingConnectivityIndexingMode !== null && {
|
|
28575
28877
|
thingConnectivityIndexingMode: input.thingConnectivityIndexingMode,
|
|
@@ -29220,6 +29522,7 @@ const deserializeAws_restJson1AuthorizerDescription = (output, context) => {
|
|
|
29220
29522
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
29221
29523
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDate)))
|
|
29222
29524
|
: undefined,
|
|
29525
|
+
enableCachingForHttp: smithy_client_1.expectBoolean(output.enableCachingForHttp),
|
|
29223
29526
|
lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
|
|
29224
29527
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastModifiedDate)))
|
|
29225
29528
|
: undefined,
|
|
@@ -29715,6 +30018,25 @@ const deserializeAws_restJson1DimensionStringValues = (output, context) => {
|
|
|
29715
30018
|
return smithy_client_1.expectString(entry);
|
|
29716
30019
|
});
|
|
29717
30020
|
};
|
|
30021
|
+
const deserializeAws_restJson1DocumentParameter = (output, context) => {
|
|
30022
|
+
return {
|
|
30023
|
+
description: smithy_client_1.expectString(output.description),
|
|
30024
|
+
example: smithy_client_1.expectString(output.example),
|
|
30025
|
+
key: smithy_client_1.expectString(output.key),
|
|
30026
|
+
optional: smithy_client_1.expectBoolean(output.optional),
|
|
30027
|
+
regex: smithy_client_1.expectString(output.regex),
|
|
30028
|
+
};
|
|
30029
|
+
};
|
|
30030
|
+
const deserializeAws_restJson1DocumentParameters = (output, context) => {
|
|
30031
|
+
return (output || [])
|
|
30032
|
+
.filter((e) => e != null)
|
|
30033
|
+
.map((entry) => {
|
|
30034
|
+
if (entry === null) {
|
|
30035
|
+
return null;
|
|
30036
|
+
}
|
|
30037
|
+
return deserializeAws_restJson1DocumentParameter(entry, context);
|
|
30038
|
+
});
|
|
30039
|
+
};
|
|
29718
30040
|
const deserializeAws_restJson1DomainConfigurations = (output, context) => {
|
|
29719
30041
|
return (output || [])
|
|
29720
30042
|
.filter((e) => e != null)
|
|
@@ -29786,6 +30108,16 @@ const deserializeAws_restJson1EnableIoTLoggingParams = (output, context) => {
|
|
|
29786
30108
|
roleArnForLogging: smithy_client_1.expectString(output.roleArnForLogging),
|
|
29787
30109
|
};
|
|
29788
30110
|
};
|
|
30111
|
+
const deserializeAws_restJson1Environments = (output, context) => {
|
|
30112
|
+
return (output || [])
|
|
30113
|
+
.filter((e) => e != null)
|
|
30114
|
+
.map((entry) => {
|
|
30115
|
+
if (entry === null) {
|
|
30116
|
+
return null;
|
|
30117
|
+
}
|
|
30118
|
+
return smithy_client_1.expectString(entry);
|
|
30119
|
+
});
|
|
30120
|
+
};
|
|
29789
30121
|
const deserializeAws_restJson1ErrorInfo = (output, context) => {
|
|
29790
30122
|
return {
|
|
29791
30123
|
code: smithy_client_1.expectString(output.code),
|
|
@@ -29984,8 +30316,14 @@ const deserializeAws_restJson1Job = (output, context) => {
|
|
|
29984
30316
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
29985
30317
|
: undefined,
|
|
29986
30318
|
description: smithy_client_1.expectString(output.description),
|
|
30319
|
+
documentParameters: output.documentParameters !== undefined && output.documentParameters !== null
|
|
30320
|
+
? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
|
|
30321
|
+
: undefined,
|
|
29987
30322
|
forceCanceled: smithy_client_1.expectBoolean(output.forceCanceled),
|
|
29988
30323
|
jobArn: smithy_client_1.expectString(output.jobArn),
|
|
30324
|
+
jobExecutionsRetryConfig: output.jobExecutionsRetryConfig !== undefined && output.jobExecutionsRetryConfig !== null
|
|
30325
|
+
? deserializeAws_restJson1JobExecutionsRetryConfig(output.jobExecutionsRetryConfig, context)
|
|
30326
|
+
: undefined,
|
|
29989
30327
|
jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig !== undefined && output.jobExecutionsRolloutConfig !== null
|
|
29990
30328
|
? deserializeAws_restJson1JobExecutionsRolloutConfig(output.jobExecutionsRolloutConfig, context)
|
|
29991
30329
|
: undefined,
|
|
@@ -30035,6 +30373,13 @@ const deserializeAws_restJson1JobExecution = (output, context) => {
|
|
|
30035
30373
|
versionNumber: smithy_client_1.expectLong(output.versionNumber),
|
|
30036
30374
|
};
|
|
30037
30375
|
};
|
|
30376
|
+
const deserializeAws_restJson1JobExecutionsRetryConfig = (output, context) => {
|
|
30377
|
+
return {
|
|
30378
|
+
criteriaList: output.criteriaList !== undefined && output.criteriaList !== null
|
|
30379
|
+
? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context)
|
|
30380
|
+
: undefined,
|
|
30381
|
+
};
|
|
30382
|
+
};
|
|
30038
30383
|
const deserializeAws_restJson1JobExecutionsRolloutConfig = (output, context) => {
|
|
30039
30384
|
return {
|
|
30040
30385
|
exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
|
|
@@ -30059,6 +30404,7 @@ const deserializeAws_restJson1JobExecutionSummary = (output, context) => {
|
|
|
30059
30404
|
queuedAt: output.queuedAt !== undefined && output.queuedAt !== null
|
|
30060
30405
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.queuedAt)))
|
|
30061
30406
|
: undefined,
|
|
30407
|
+
retryAttempt: smithy_client_1.expectInt32(output.retryAttempt),
|
|
30062
30408
|
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
30063
30409
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startedAt)))
|
|
30064
30410
|
: undefined,
|
|
@@ -30232,6 +30578,27 @@ const deserializeAws_restJson1MachineLearningDetectionConfig = (output, context)
|
|
|
30232
30578
|
confidenceLevel: smithy_client_1.expectString(output.confidenceLevel),
|
|
30233
30579
|
};
|
|
30234
30580
|
};
|
|
30581
|
+
const deserializeAws_restJson1ManagedJobTemplatesSummaryList = (output, context) => {
|
|
30582
|
+
return (output || [])
|
|
30583
|
+
.filter((e) => e != null)
|
|
30584
|
+
.map((entry) => {
|
|
30585
|
+
if (entry === null) {
|
|
30586
|
+
return null;
|
|
30587
|
+
}
|
|
30588
|
+
return deserializeAws_restJson1ManagedJobTemplateSummary(entry, context);
|
|
30589
|
+
});
|
|
30590
|
+
};
|
|
30591
|
+
const deserializeAws_restJson1ManagedJobTemplateSummary = (output, context) => {
|
|
30592
|
+
return {
|
|
30593
|
+
description: smithy_client_1.expectString(output.description),
|
|
30594
|
+
environments: output.environments !== undefined && output.environments !== null
|
|
30595
|
+
? deserializeAws_restJson1Environments(output.environments, context)
|
|
30596
|
+
: undefined,
|
|
30597
|
+
templateArn: smithy_client_1.expectString(output.templateArn),
|
|
30598
|
+
templateName: smithy_client_1.expectString(output.templateName),
|
|
30599
|
+
templateVersion: smithy_client_1.expectString(output.templateVersion),
|
|
30600
|
+
};
|
|
30601
|
+
};
|
|
30235
30602
|
const deserializeAws_restJson1MetricDimension = (output, context) => {
|
|
30236
30603
|
return {
|
|
30237
30604
|
dimensionName: smithy_client_1.expectString(output.dimensionName),
|
|
@@ -30492,6 +30859,17 @@ const deserializeAws_restJson1OutgoingCertificates = (output, context) => {
|
|
|
30492
30859
|
return deserializeAws_restJson1OutgoingCertificate(entry, context);
|
|
30493
30860
|
});
|
|
30494
30861
|
};
|
|
30862
|
+
const deserializeAws_restJson1ParameterMap = (output, context) => {
|
|
30863
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
30864
|
+
if (value === null) {
|
|
30865
|
+
return acc;
|
|
30866
|
+
}
|
|
30867
|
+
return {
|
|
30868
|
+
...acc,
|
|
30869
|
+
[key]: smithy_client_1.expectString(value),
|
|
30870
|
+
};
|
|
30871
|
+
}, {});
|
|
30872
|
+
};
|
|
30495
30873
|
const deserializeAws_restJson1Percentiles = (output, context) => {
|
|
30496
30874
|
return (output || [])
|
|
30497
30875
|
.filter((e) => e != null)
|
|
@@ -30796,6 +31174,22 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
30796
31174
|
return smithy_client_1.expectString(entry);
|
|
30797
31175
|
});
|
|
30798
31176
|
};
|
|
31177
|
+
const deserializeAws_restJson1RetryCriteria = (output, context) => {
|
|
31178
|
+
return {
|
|
31179
|
+
failureType: smithy_client_1.expectString(output.failureType),
|
|
31180
|
+
numberOfRetries: smithy_client_1.expectInt32(output.numberOfRetries),
|
|
31181
|
+
};
|
|
31182
|
+
};
|
|
31183
|
+
const deserializeAws_restJson1RetryCriteriaList = (output, context) => {
|
|
31184
|
+
return (output || [])
|
|
31185
|
+
.filter((e) => e != null)
|
|
31186
|
+
.map((entry) => {
|
|
31187
|
+
if (entry === null) {
|
|
31188
|
+
return null;
|
|
31189
|
+
}
|
|
31190
|
+
return deserializeAws_restJson1RetryCriteria(entry, context);
|
|
31191
|
+
});
|
|
31192
|
+
};
|
|
30799
31193
|
const deserializeAws_restJson1RoleAliasDescription = (output, context) => {
|
|
30800
31194
|
return {
|
|
30801
31195
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
@@ -31231,6 +31625,7 @@ const deserializeAws_restJson1ThingDocument = (output, context) => {
|
|
|
31231
31625
|
connectivity: output.connectivity !== undefined && output.connectivity !== null
|
|
31232
31626
|
? deserializeAws_restJson1ThingConnectivity(output.connectivity, context)
|
|
31233
31627
|
: undefined,
|
|
31628
|
+
deviceDefender: smithy_client_1.expectString(output.deviceDefender),
|
|
31234
31629
|
shadow: smithy_client_1.expectString(output.shadow),
|
|
31235
31630
|
thingGroupNames: output.thingGroupNames !== undefined && output.thingGroupNames !== null
|
|
31236
31631
|
? deserializeAws_restJson1ThingGroupNameList(output.thingGroupNames, context)
|
|
@@ -31338,9 +31733,11 @@ const deserializeAws_restJson1ThingIndexingConfiguration = (output, context) =>
|
|
|
31338
31733
|
customFields: output.customFields !== undefined && output.customFields !== null
|
|
31339
31734
|
? deserializeAws_restJson1Fields(output.customFields, context)
|
|
31340
31735
|
: undefined,
|
|
31736
|
+
deviceDefenderIndexingMode: smithy_client_1.expectString(output.deviceDefenderIndexingMode),
|
|
31341
31737
|
managedFields: output.managedFields !== undefined && output.managedFields !== null
|
|
31342
31738
|
? deserializeAws_restJson1Fields(output.managedFields, context)
|
|
31343
31739
|
: undefined,
|
|
31740
|
+
namedShadowIndexingMode: smithy_client_1.expectString(output.namedShadowIndexingMode),
|
|
31344
31741
|
thingConnectivityIndexingMode: smithy_client_1.expectString(output.thingConnectivityIndexingMode),
|
|
31345
31742
|
thingIndexingMode: smithy_client_1.expectString(output.thingIndexingMode),
|
|
31346
31743
|
};
|