@aws-sdk/client-iot 3.42.0 → 3.43.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/IoT.js +30 -0
  3. package/dist-cjs/commands/DescribeManagedJobTemplateCommand.js +36 -0
  4. package/dist-cjs/commands/ListManagedJobTemplatesCommand.js +36 -0
  5. package/dist-cjs/commands/ListThingTypesCommand.js +1 -2
  6. package/dist-cjs/commands/ListThingsCommand.js +2 -1
  7. package/dist-cjs/commands/ListThingsInBillingGroupCommand.js +3 -3
  8. package/dist-cjs/commands/ListThingsInThingGroupCommand.js +3 -3
  9. package/dist-cjs/commands/index.js +2 -0
  10. package/dist-cjs/models/models_1.js +47 -47
  11. package/dist-cjs/models/models_2.js +45 -3
  12. package/dist-cjs/protocols/Aws_restJson1.js +325 -9
  13. package/dist-es/IoT.js +30 -0
  14. package/dist-es/commands/DescribeManagedJobTemplateCommand.js +39 -0
  15. package/dist-es/commands/ListManagedJobTemplatesCommand.js +39 -0
  16. package/dist-es/commands/ListThingTypesCommand.js +1 -2
  17. package/dist-es/commands/ListThingsCommand.js +2 -1
  18. package/dist-es/commands/ListThingsInBillingGroupCommand.js +1 -1
  19. package/dist-es/commands/ListThingsInThingGroupCommand.js +1 -1
  20. package/dist-es/commands/index.js +2 -0
  21. package/dist-es/models/models_1.js +28 -28
  22. package/dist-es/models/models_2.js +28 -0
  23. package/dist-es/protocols/Aws_restJson1.js +350 -2
  24. package/dist-types/IoT.d.ts +24 -3
  25. package/dist-types/IoTClient.d.ts +4 -2
  26. package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +3 -2
  27. package/dist-types/commands/DescribeManagedJobTemplateCommand.d.ts +35 -0
  28. package/dist-types/commands/ListManagedJobTemplatesCommand.d.ts +35 -0
  29. package/dist-types/commands/ListThingTypesCommand.d.ts +1 -2
  30. package/dist-types/commands/ListThingsCommand.d.ts +2 -1
  31. package/dist-types/commands/ListThingsInBillingGroupCommand.d.ts +1 -1
  32. package/dist-types/commands/ListThingsInThingGroupCommand.d.ts +1 -1
  33. package/dist-types/commands/RegisterCertificateWithoutCACommand.d.ts +4 -1
  34. package/dist-types/commands/RemoveThingFromBillingGroupCommand.d.ts +3 -0
  35. package/dist-types/commands/index.d.ts +2 -0
  36. package/dist-types/models/models_0.d.ts +11 -3
  37. package/dist-types/models/models_1.d.ts +188 -164
  38. package/dist-types/models/models_2.d.ts +159 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  40. package/dist-types/ts3.4/IoT.d.ts +10 -0
  41. package/dist-types/ts3.4/IoTClient.d.ts +4 -2
  42. package/dist-types/ts3.4/commands/DescribeManagedJobTemplateCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/ListManagedJobTemplatesCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/ListThingTypesCommand.d.ts +1 -2
  45. package/dist-types/ts3.4/commands/ListThingsCommand.d.ts +2 -1
  46. package/dist-types/ts3.4/commands/ListThingsInBillingGroupCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/ListThingsInThingGroupCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  49. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  50. package/dist-types/ts3.4/models/models_1.d.ts +100 -89
  51. package/dist-types/ts3.4/models/models_2.d.ts +89 -0
  52. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  53. package/package.json +2 -2
@@ -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.serializeAws_restJson1DescribeProvisioningTemplateVersionCommand = exports.serializeAws_restJson1DescribeProvisioningTemplateCommand = exports.serializeAws_restJson1DescribeMitigationActionCommand = 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_restJson1ListJobExecutionsForJobCommand = 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 = void 0;
6
- exports.serializeAws_restJson1StartAuditMitigationActionsTaskCommand = exports.serializeAws_restJson1SetV2LoggingOptionsCommand = 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_restJson1ListJobTemplatesCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListJobExecutionsForThingCommand = void 0;
7
- exports.deserializeAws_restJson1ConfirmTopicRuleDestinationCommand = exports.deserializeAws_restJson1ClearDefaultAuthorizerCommand = 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 = void 0;
8
- exports.deserializeAws_restJson1DeleteRoleAliasCommand = exports.deserializeAws_restJson1DeleteRegistrationCodeCommand = 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 = void 0;
9
- exports.deserializeAws_restJson1GetBucketsAggregationCommand = exports.deserializeAws_restJson1GetBehaviorModelTrainingSummariesCommand = exports.deserializeAws_restJson1EnableTopicRuleCommand = 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_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 = void 0;
10
- exports.deserializeAws_restJson1ListSecurityProfilesCommand = exports.deserializeAws_restJson1ListScheduledAuditsCommand = exports.deserializeAws_restJson1ListRoleAliasesCommand = exports.deserializeAws_restJson1ListProvisioningTemplateVersionsCommand = 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_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 = void 0;
11
- exports.deserializeAws_restJson1UpdateCustomMetricCommand = exports.deserializeAws_restJson1UpdateCertificateCommand = exports.deserializeAws_restJson1UpdateCACertificateCommand = exports.deserializeAws_restJson1UpdateBillingGroupCommand = 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 = 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 = 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");
@@ -855,6 +855,10 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
855
855
  input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
856
856
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
857
857
  ...(input.document !== undefined && input.document !== null && { document: input.document }),
858
+ ...(input.documentParameters !== undefined &&
859
+ input.documentParameters !== null && {
860
+ documentParameters: serializeAws_restJson1ParameterMap(input.documentParameters, context),
861
+ }),
858
862
  ...(input.documentSource !== undefined &&
859
863
  input.documentSource !== null && { documentSource: input.documentSource }),
860
864
  ...(input.jobExecutionsRolloutConfig !== undefined &&
@@ -2995,6 +2999,36 @@ const serializeAws_restJson1DescribeJobTemplateCommand = async (input, context)
2995
2999
  });
2996
3000
  };
2997
3001
  exports.serializeAws_restJson1DescribeJobTemplateCommand = serializeAws_restJson1DescribeJobTemplateCommand;
3002
+ const serializeAws_restJson1DescribeManagedJobTemplateCommand = async (input, context) => {
3003
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3004
+ const headers = {};
3005
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates/{templateName}";
3006
+ if (input.templateName !== undefined) {
3007
+ const labelValue = input.templateName;
3008
+ if (labelValue.length <= 0) {
3009
+ throw new Error("Empty value provided for input HTTP label: templateName.");
3010
+ }
3011
+ resolvedPath = resolvedPath.replace("{templateName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3012
+ }
3013
+ else {
3014
+ throw new Error("No value provided for input HTTP label: templateName.");
3015
+ }
3016
+ const query = {
3017
+ ...(input.templateVersion !== undefined && { templateVersion: input.templateVersion }),
3018
+ };
3019
+ let body;
3020
+ return new protocol_http_1.HttpRequest({
3021
+ protocol,
3022
+ hostname,
3023
+ port,
3024
+ method: "GET",
3025
+ headers,
3026
+ path: resolvedPath,
3027
+ query,
3028
+ body,
3029
+ });
3030
+ };
3031
+ exports.serializeAws_restJson1DescribeManagedJobTemplateCommand = serializeAws_restJson1DescribeManagedJobTemplateCommand;
2998
3032
  const serializeAws_restJson1DescribeMitigationActionCommand = async (input, context) => {
2999
3033
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3000
3034
  const headers = {};
@@ -4448,6 +4482,28 @@ const serializeAws_restJson1ListJobTemplatesCommand = async (input, context) =>
4448
4482
  });
4449
4483
  };
4450
4484
  exports.serializeAws_restJson1ListJobTemplatesCommand = serializeAws_restJson1ListJobTemplatesCommand;
4485
+ const serializeAws_restJson1ListManagedJobTemplatesCommand = async (input, context) => {
4486
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4487
+ const headers = {};
4488
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/managed-job-templates";
4489
+ const query = {
4490
+ ...(input.templateName !== undefined && { templateName: input.templateName }),
4491
+ ...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
4492
+ ...(input.nextToken !== undefined && { nextToken: input.nextToken }),
4493
+ };
4494
+ let body;
4495
+ return new protocol_http_1.HttpRequest({
4496
+ protocol,
4497
+ hostname,
4498
+ port,
4499
+ method: "GET",
4500
+ headers,
4501
+ path: resolvedPath,
4502
+ query,
4503
+ body,
4504
+ });
4505
+ };
4506
+ exports.serializeAws_restJson1ListManagedJobTemplatesCommand = serializeAws_restJson1ListManagedJobTemplatesCommand;
4451
4507
  const serializeAws_restJson1ListMitigationActionsCommand = async (input, context) => {
4452
4508
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4453
4509
  const headers = {};
@@ -15217,6 +15273,102 @@ const deserializeAws_restJson1DescribeJobTemplateCommandError = async (output, c
15217
15273
  delete response.Message;
15218
15274
  return Promise.reject(Object.assign(new Error(message), response));
15219
15275
  };
15276
+ const deserializeAws_restJson1DescribeManagedJobTemplateCommand = async (output, context) => {
15277
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
15278
+ return deserializeAws_restJson1DescribeManagedJobTemplateCommandError(output, context);
15279
+ }
15280
+ const contents = {
15281
+ $metadata: deserializeMetadata(output),
15282
+ description: undefined,
15283
+ document: undefined,
15284
+ documentParameters: undefined,
15285
+ environments: undefined,
15286
+ templateArn: undefined,
15287
+ templateName: undefined,
15288
+ templateVersion: undefined,
15289
+ };
15290
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
15291
+ if (data.description !== undefined && data.description !== null) {
15292
+ contents.description = smithy_client_1.expectString(data.description);
15293
+ }
15294
+ if (data.document !== undefined && data.document !== null) {
15295
+ contents.document = smithy_client_1.expectString(data.document);
15296
+ }
15297
+ if (data.documentParameters !== undefined && data.documentParameters !== null) {
15298
+ contents.documentParameters = deserializeAws_restJson1DocumentParameters(data.documentParameters, context);
15299
+ }
15300
+ if (data.environments !== undefined && data.environments !== null) {
15301
+ contents.environments = deserializeAws_restJson1Environments(data.environments, context);
15302
+ }
15303
+ if (data.templateArn !== undefined && data.templateArn !== null) {
15304
+ contents.templateArn = smithy_client_1.expectString(data.templateArn);
15305
+ }
15306
+ if (data.templateName !== undefined && data.templateName !== null) {
15307
+ contents.templateName = smithy_client_1.expectString(data.templateName);
15308
+ }
15309
+ if (data.templateVersion !== undefined && data.templateVersion !== null) {
15310
+ contents.templateVersion = smithy_client_1.expectString(data.templateVersion);
15311
+ }
15312
+ return Promise.resolve(contents);
15313
+ };
15314
+ exports.deserializeAws_restJson1DescribeManagedJobTemplateCommand = deserializeAws_restJson1DescribeManagedJobTemplateCommand;
15315
+ const deserializeAws_restJson1DescribeManagedJobTemplateCommandError = async (output, context) => {
15316
+ const parsedOutput = {
15317
+ ...output,
15318
+ body: await parseBody(output.body, context),
15319
+ };
15320
+ let response;
15321
+ let errorCode = "UnknownError";
15322
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
15323
+ switch (errorCode) {
15324
+ case "InternalServerException":
15325
+ case "com.amazonaws.iot#InternalServerException":
15326
+ response = {
15327
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
15328
+ name: errorCode,
15329
+ $metadata: deserializeMetadata(output),
15330
+ };
15331
+ break;
15332
+ case "InvalidRequestException":
15333
+ case "com.amazonaws.iot#InvalidRequestException":
15334
+ response = {
15335
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
15336
+ name: errorCode,
15337
+ $metadata: deserializeMetadata(output),
15338
+ };
15339
+ break;
15340
+ case "ResourceNotFoundException":
15341
+ case "com.amazonaws.iot#ResourceNotFoundException":
15342
+ response = {
15343
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
15344
+ name: errorCode,
15345
+ $metadata: deserializeMetadata(output),
15346
+ };
15347
+ break;
15348
+ case "ThrottlingException":
15349
+ case "com.amazonaws.iot#ThrottlingException":
15350
+ response = {
15351
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
15352
+ name: errorCode,
15353
+ $metadata: deserializeMetadata(output),
15354
+ };
15355
+ break;
15356
+ default:
15357
+ const parsedBody = parsedOutput.body;
15358
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
15359
+ response = {
15360
+ ...parsedBody,
15361
+ name: `${errorCode}`,
15362
+ message: parsedBody.message || parsedBody.Message || errorCode,
15363
+ $fault: "client",
15364
+ $metadata: deserializeMetadata(output),
15365
+ };
15366
+ }
15367
+ const message = response.message || response.Message || errorCode;
15368
+ response.message = message;
15369
+ delete response.Message;
15370
+ return Promise.reject(Object.assign(new Error(message), response));
15371
+ };
15220
15372
  const deserializeAws_restJson1DescribeMitigationActionCommand = async (output, context) => {
15221
15373
  if (output.statusCode !== 200 && output.statusCode >= 300) {
15222
15374
  return deserializeAws_restJson1DescribeMitigationActionCommandError(output, context);
@@ -20037,6 +20189,82 @@ const deserializeAws_restJson1ListJobTemplatesCommandError = async (output, cont
20037
20189
  delete response.Message;
20038
20190
  return Promise.reject(Object.assign(new Error(message), response));
20039
20191
  };
20192
+ const deserializeAws_restJson1ListManagedJobTemplatesCommand = async (output, context) => {
20193
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
20194
+ return deserializeAws_restJson1ListManagedJobTemplatesCommandError(output, context);
20195
+ }
20196
+ const contents = {
20197
+ $metadata: deserializeMetadata(output),
20198
+ managedJobTemplates: undefined,
20199
+ nextToken: undefined,
20200
+ };
20201
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
20202
+ if (data.managedJobTemplates !== undefined && data.managedJobTemplates !== null) {
20203
+ contents.managedJobTemplates = deserializeAws_restJson1ManagedJobTemplatesSummaryList(data.managedJobTemplates, context);
20204
+ }
20205
+ if (data.nextToken !== undefined && data.nextToken !== null) {
20206
+ contents.nextToken = smithy_client_1.expectString(data.nextToken);
20207
+ }
20208
+ return Promise.resolve(contents);
20209
+ };
20210
+ exports.deserializeAws_restJson1ListManagedJobTemplatesCommand = deserializeAws_restJson1ListManagedJobTemplatesCommand;
20211
+ const deserializeAws_restJson1ListManagedJobTemplatesCommandError = async (output, context) => {
20212
+ const parsedOutput = {
20213
+ ...output,
20214
+ body: await parseBody(output.body, context),
20215
+ };
20216
+ let response;
20217
+ let errorCode = "UnknownError";
20218
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
20219
+ switch (errorCode) {
20220
+ case "InternalServerException":
20221
+ case "com.amazonaws.iot#InternalServerException":
20222
+ response = {
20223
+ ...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
20224
+ name: errorCode,
20225
+ $metadata: deserializeMetadata(output),
20226
+ };
20227
+ break;
20228
+ case "InvalidRequestException":
20229
+ case "com.amazonaws.iot#InvalidRequestException":
20230
+ response = {
20231
+ ...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
20232
+ name: errorCode,
20233
+ $metadata: deserializeMetadata(output),
20234
+ };
20235
+ break;
20236
+ case "ResourceNotFoundException":
20237
+ case "com.amazonaws.iot#ResourceNotFoundException":
20238
+ response = {
20239
+ ...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
20240
+ name: errorCode,
20241
+ $metadata: deserializeMetadata(output),
20242
+ };
20243
+ break;
20244
+ case "ThrottlingException":
20245
+ case "com.amazonaws.iot#ThrottlingException":
20246
+ response = {
20247
+ ...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
20248
+ name: errorCode,
20249
+ $metadata: deserializeMetadata(output),
20250
+ };
20251
+ break;
20252
+ default:
20253
+ const parsedBody = parsedOutput.body;
20254
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
20255
+ response = {
20256
+ ...parsedBody,
20257
+ name: `${errorCode}`,
20258
+ message: parsedBody.message || parsedBody.Message || errorCode,
20259
+ $fault: "client",
20260
+ $metadata: deserializeMetadata(output),
20261
+ };
20262
+ }
20263
+ const message = response.message || response.Message || errorCode;
20264
+ response.message = message;
20265
+ delete response.Message;
20266
+ return Promise.reject(Object.assign(new Error(message), response));
20267
+ };
20040
20268
  const deserializeAws_restJson1ListMitigationActionsCommand = async (output, context) => {
20041
20269
  if (output.statusCode !== 200 && output.statusCode >= 300) {
20042
20270
  return deserializeAws_restJson1ListMitigationActionsCommandError(output, context);
@@ -26878,6 +27106,19 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
26878
27106
  }
26879
27107
  return contents;
26880
27108
  };
27109
+ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
27110
+ const contents = {
27111
+ name: "InternalServerException",
27112
+ $fault: "server",
27113
+ $metadata: deserializeMetadata(parsedOutput),
27114
+ message: undefined,
27115
+ };
27116
+ const data = parsedOutput.body;
27117
+ if (data.message !== undefined && data.message !== null) {
27118
+ contents.message = smithy_client_1.expectString(data.message);
27119
+ }
27120
+ return contents;
27121
+ };
26881
27122
  const deserializeAws_restJson1InvalidAggregationExceptionResponse = async (parsedOutput, context) => {
26882
27123
  const contents = {
26883
27124
  name: "InvalidAggregationException",
@@ -28129,6 +28370,17 @@ const serializeAws_restJson1OTAUpdateFiles = (input, context) => {
28129
28370
  return serializeAws_restJson1OTAUpdateFile(entry, context);
28130
28371
  });
28131
28372
  };
28373
+ const serializeAws_restJson1ParameterMap = (input, context) => {
28374
+ return Object.entries(input).reduce((acc, [key, value]) => {
28375
+ if (value === null) {
28376
+ return acc;
28377
+ }
28378
+ return {
28379
+ ...acc,
28380
+ [key]: value,
28381
+ };
28382
+ }, {});
28383
+ };
28132
28384
  const serializeAws_restJson1Parameters = (input, context) => {
28133
28385
  return Object.entries(input).reduce((acc, [key, value]) => {
28134
28386
  if (value === null) {
@@ -29715,6 +29967,25 @@ const deserializeAws_restJson1DimensionStringValues = (output, context) => {
29715
29967
  return smithy_client_1.expectString(entry);
29716
29968
  });
29717
29969
  };
29970
+ const deserializeAws_restJson1DocumentParameter = (output, context) => {
29971
+ return {
29972
+ description: smithy_client_1.expectString(output.description),
29973
+ example: smithy_client_1.expectString(output.example),
29974
+ key: smithy_client_1.expectString(output.key),
29975
+ optional: smithy_client_1.expectBoolean(output.optional),
29976
+ regex: smithy_client_1.expectString(output.regex),
29977
+ };
29978
+ };
29979
+ const deserializeAws_restJson1DocumentParameters = (output, context) => {
29980
+ return (output || [])
29981
+ .filter((e) => e != null)
29982
+ .map((entry) => {
29983
+ if (entry === null) {
29984
+ return null;
29985
+ }
29986
+ return deserializeAws_restJson1DocumentParameter(entry, context);
29987
+ });
29988
+ };
29718
29989
  const deserializeAws_restJson1DomainConfigurations = (output, context) => {
29719
29990
  return (output || [])
29720
29991
  .filter((e) => e != null)
@@ -29786,6 +30057,16 @@ const deserializeAws_restJson1EnableIoTLoggingParams = (output, context) => {
29786
30057
  roleArnForLogging: smithy_client_1.expectString(output.roleArnForLogging),
29787
30058
  };
29788
30059
  };
30060
+ const deserializeAws_restJson1Environments = (output, context) => {
30061
+ return (output || [])
30062
+ .filter((e) => e != null)
30063
+ .map((entry) => {
30064
+ if (entry === null) {
30065
+ return null;
30066
+ }
30067
+ return smithy_client_1.expectString(entry);
30068
+ });
30069
+ };
29789
30070
  const deserializeAws_restJson1ErrorInfo = (output, context) => {
29790
30071
  return {
29791
30072
  code: smithy_client_1.expectString(output.code),
@@ -29984,6 +30265,9 @@ const deserializeAws_restJson1Job = (output, context) => {
29984
30265
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
29985
30266
  : undefined,
29986
30267
  description: smithy_client_1.expectString(output.description),
30268
+ documentParameters: output.documentParameters !== undefined && output.documentParameters !== null
30269
+ ? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
30270
+ : undefined,
29987
30271
  forceCanceled: smithy_client_1.expectBoolean(output.forceCanceled),
29988
30272
  jobArn: smithy_client_1.expectString(output.jobArn),
29989
30273
  jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig !== undefined && output.jobExecutionsRolloutConfig !== null
@@ -30232,6 +30516,27 @@ const deserializeAws_restJson1MachineLearningDetectionConfig = (output, context)
30232
30516
  confidenceLevel: smithy_client_1.expectString(output.confidenceLevel),
30233
30517
  };
30234
30518
  };
30519
+ const deserializeAws_restJson1ManagedJobTemplatesSummaryList = (output, context) => {
30520
+ return (output || [])
30521
+ .filter((e) => e != null)
30522
+ .map((entry) => {
30523
+ if (entry === null) {
30524
+ return null;
30525
+ }
30526
+ return deserializeAws_restJson1ManagedJobTemplateSummary(entry, context);
30527
+ });
30528
+ };
30529
+ const deserializeAws_restJson1ManagedJobTemplateSummary = (output, context) => {
30530
+ return {
30531
+ description: smithy_client_1.expectString(output.description),
30532
+ environments: output.environments !== undefined && output.environments !== null
30533
+ ? deserializeAws_restJson1Environments(output.environments, context)
30534
+ : undefined,
30535
+ templateArn: smithy_client_1.expectString(output.templateArn),
30536
+ templateName: smithy_client_1.expectString(output.templateName),
30537
+ templateVersion: smithy_client_1.expectString(output.templateVersion),
30538
+ };
30539
+ };
30235
30540
  const deserializeAws_restJson1MetricDimension = (output, context) => {
30236
30541
  return {
30237
30542
  dimensionName: smithy_client_1.expectString(output.dimensionName),
@@ -30492,6 +30797,17 @@ const deserializeAws_restJson1OutgoingCertificates = (output, context) => {
30492
30797
  return deserializeAws_restJson1OutgoingCertificate(entry, context);
30493
30798
  });
30494
30799
  };
30800
+ const deserializeAws_restJson1ParameterMap = (output, context) => {
30801
+ return Object.entries(output).reduce((acc, [key, value]) => {
30802
+ if (value === null) {
30803
+ return acc;
30804
+ }
30805
+ return {
30806
+ ...acc,
30807
+ [key]: smithy_client_1.expectString(value),
30808
+ };
30809
+ }, {});
30810
+ };
30495
30811
  const deserializeAws_restJson1Percentiles = (output, context) => {
30496
30812
  return (output || [])
30497
30813
  .filter((e) => e != null)
package/dist-es/IoT.js CHANGED
@@ -96,6 +96,7 @@ import { DescribeIndexCommand, } from "./commands/DescribeIndexCommand";
96
96
  import { DescribeJobCommand } from "./commands/DescribeJobCommand";
97
97
  import { DescribeJobExecutionCommand, } from "./commands/DescribeJobExecutionCommand";
98
98
  import { DescribeJobTemplateCommand, } from "./commands/DescribeJobTemplateCommand";
99
+ import { DescribeManagedJobTemplateCommand, } from "./commands/DescribeManagedJobTemplateCommand";
99
100
  import { DescribeMitigationActionCommand, } from "./commands/DescribeMitigationActionCommand";
100
101
  import { DescribeProvisioningTemplateCommand, } from "./commands/DescribeProvisioningTemplateCommand";
101
102
  import { DescribeProvisioningTemplateVersionCommand, } from "./commands/DescribeProvisioningTemplateVersionCommand";
@@ -152,6 +153,7 @@ import { ListJobExecutionsForJobCommand, } from "./commands/ListJobExecutionsFor
152
153
  import { ListJobExecutionsForThingCommand, } from "./commands/ListJobExecutionsForThingCommand";
153
154
  import { ListJobsCommand } from "./commands/ListJobsCommand";
154
155
  import { ListJobTemplatesCommand, } from "./commands/ListJobTemplatesCommand";
156
+ import { ListManagedJobTemplatesCommand, } from "./commands/ListManagedJobTemplatesCommand";
155
157
  import { ListMitigationActionsCommand, } from "./commands/ListMitigationActionsCommand";
156
158
  import { ListOTAUpdatesCommand, } from "./commands/ListOTAUpdatesCommand";
157
159
  import { ListOutgoingCertificatesCommand, } from "./commands/ListOutgoingCertificatesCommand";
@@ -1597,6 +1599,20 @@ var IoT = (function (_super) {
1597
1599
  return this.send(command, optionsOrCb);
1598
1600
  }
1599
1601
  };
1602
+ IoT.prototype.describeManagedJobTemplate = function (args, optionsOrCb, cb) {
1603
+ var command = new DescribeManagedJobTemplateCommand(args);
1604
+ if (typeof optionsOrCb === "function") {
1605
+ this.send(command, optionsOrCb);
1606
+ }
1607
+ else if (typeof cb === "function") {
1608
+ if (typeof optionsOrCb !== "object")
1609
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
1610
+ this.send(command, optionsOrCb || {}, cb);
1611
+ }
1612
+ else {
1613
+ return this.send(command, optionsOrCb);
1614
+ }
1615
+ };
1600
1616
  IoT.prototype.describeMitigationAction = function (args, optionsOrCb, cb) {
1601
1617
  var command = new DescribeMitigationActionCommand(args);
1602
1618
  if (typeof optionsOrCb === "function") {
@@ -2381,6 +2397,20 @@ var IoT = (function (_super) {
2381
2397
  return this.send(command, optionsOrCb);
2382
2398
  }
2383
2399
  };
2400
+ IoT.prototype.listManagedJobTemplates = function (args, optionsOrCb, cb) {
2401
+ var command = new ListManagedJobTemplatesCommand(args);
2402
+ if (typeof optionsOrCb === "function") {
2403
+ this.send(command, optionsOrCb);
2404
+ }
2405
+ else if (typeof cb === "function") {
2406
+ if (typeof optionsOrCb !== "object")
2407
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
2408
+ this.send(command, optionsOrCb || {}, cb);
2409
+ }
2410
+ else {
2411
+ return this.send(command, optionsOrCb);
2412
+ }
2413
+ };
2384
2414
  IoT.prototype.listMitigationActions = function (args, optionsOrCb, cb) {
2385
2415
  var command = new ListMitigationActionsCommand(args);
2386
2416
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeManagedJobTemplateRequest, DescribeManagedJobTemplateResponse } from "../models/models_1";
5
+ import { deserializeAws_restJson1DescribeManagedJobTemplateCommand, serializeAws_restJson1DescribeManagedJobTemplateCommand, } from "../protocols/Aws_restJson1";
6
+ var DescribeManagedJobTemplateCommand = (function (_super) {
7
+ __extends(DescribeManagedJobTemplateCommand, _super);
8
+ function DescribeManagedJobTemplateCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeManagedJobTemplateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "IoTClient";
18
+ var commandName = "DescribeManagedJobTemplateCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeManagedJobTemplateRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeManagedJobTemplateResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeManagedJobTemplateCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DescribeManagedJobTemplateCommand(input, context);
33
+ };
34
+ DescribeManagedJobTemplateCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DescribeManagedJobTemplateCommand(output, context);
36
+ };
37
+ return DescribeManagedJobTemplateCommand;
38
+ }($Command));
39
+ export { DescribeManagedJobTemplateCommand };