@aws-sdk/client-iot 3.345.0 → 3.347.1
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/README.md +96 -0
- package/dist-cjs/IoT.js +24 -0
- package/dist-cjs/commands/CreatePackageCommand.js +47 -0
- package/dist-cjs/commands/CreatePackageVersionCommand.js +47 -0
- package/dist-cjs/commands/DeletePackageCommand.js +46 -0
- package/dist-cjs/commands/DeletePackageVersionCommand.js +46 -0
- package/dist-cjs/commands/GetPackageCommand.js +47 -0
- package/dist-cjs/commands/GetPackageConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetPackageVersionCommand.js +47 -0
- package/dist-cjs/commands/ListPackageVersionsCommand.js +46 -0
- package/dist-cjs/commands/ListPackagesCommand.js +46 -0
- package/dist-cjs/commands/UpdatePackageCommand.js +47 -0
- package/dist-cjs/commands/UpdatePackageConfigurationCommand.js +46 -0
- package/dist-cjs/commands/UpdatePackageVersionCommand.js +47 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +68 -1
- package/dist-cjs/models/models_1.js +13 -14
- package/dist-cjs/models/models_2.js +17 -1
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListPackagesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +897 -46
- package/dist-es/IoT.js +24 -0
- package/dist-es/commands/CreatePackageCommand.js +43 -0
- package/dist-es/commands/CreatePackageVersionCommand.js +43 -0
- package/dist-es/commands/DeletePackageCommand.js +42 -0
- package/dist-es/commands/DeletePackageVersionCommand.js +42 -0
- package/dist-es/commands/GetPackageCommand.js +43 -0
- package/dist-es/commands/GetPackageConfigurationCommand.js +42 -0
- package/dist-es/commands/GetPackageVersionCommand.js +43 -0
- package/dist-es/commands/ListPackageVersionsCommand.js +42 -0
- package/dist-es/commands/ListPackagesCommand.js +42 -0
- package/dist-es/commands/UpdatePackageCommand.js +43 -0
- package/dist-es/commands/UpdatePackageConfigurationCommand.js +42 -0
- package/dist-es/commands/UpdatePackageVersionCommand.js +43 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +60 -0
- package/dist-es/models/models_1.js +10 -12
- package/dist-es/models/models_2.js +14 -0
- package/dist-es/pagination/ListPackageVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListPackagesPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +862 -35
- package/dist-types/IoT.d.ts +84 -0
- package/dist-types/IoTClient.d.ts +14 -2
- package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +1 -1
- package/dist-types/commands/CreateJobCommand.d.ts +3 -0
- package/dist-types/commands/CreateJobTemplateCommand.d.ts +3 -0
- package/dist-types/commands/CreatePackageCommand.d.ts +97 -0
- package/dist-types/commands/CreatePackageVersionCommand.d.ts +107 -0
- package/dist-types/commands/DeleteFleetMetricCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobExecutionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMitigationActionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteOTAUpdateCommand.d.ts +1 -1
- package/dist-types/commands/DeletePackageCommand.d.ts +85 -0
- package/dist-types/commands/DeletePackageVersionCommand.d.ts +85 -0
- package/dist-types/commands/DescribeJobCommand.d.ts +3 -0
- package/dist-types/commands/DescribeJobTemplateCommand.d.ts +3 -0
- package/dist-types/commands/GetPackageCommand.d.ts +92 -0
- package/dist-types/commands/GetPackageConfigurationCommand.d.ts +82 -0
- package/dist-types/commands/GetPackageVersionCommand.d.ts +98 -0
- package/dist-types/commands/ListPackageVersionsCommand.d.ts +96 -0
- package/dist-types/commands/ListPackagesCommand.d.ts +93 -0
- package/dist-types/commands/ListPolicyVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListPrincipalThingsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
- package/dist-types/commands/ListRoleAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListScheduledAuditsCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +1 -2
- package/dist-types/commands/UpdatePackageCommand.d.ts +89 -0
- package/dist-types/commands/UpdatePackageConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/UpdatePackageVersionCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +184 -134
- package/dist-types/models/models_1.d.ts +416 -405
- package/dist-types/models/models_2.d.ts +529 -2
- package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPackagesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/IoT.d.ts +204 -0
- package/dist-types/ts3.4/IoTClient.d.ts +72 -0
- package/dist-types/ts3.4/commands/CreatePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteFleetMetricCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobExecutionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteMitigationActionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteOTAUpdateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeletePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPackageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPackageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPackageVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPrincipalThingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoleAliasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListScheduledAuditsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePackageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +71 -29
- package/dist-types/ts3.4/models/models_1.d.ts +114 -121
- package/dist-types/ts3.4/models/models_2.d.ts +152 -2
- package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
- package/package.json +28 -28
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.de_ValidateSecurityProfileBehaviorsCommand = exports.de_UpdateTopicRuleDestinationCommand = exports.de_UpdateThingGroupsForThingCommand = exports.de_UpdateThingGroupCommand = exports.de_UpdateThingCommand = exports.de_UpdateStreamCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateScheduledAuditCommand = exports.de_UpdateRoleAliasCommand = exports.de_UpdateProvisioningTemplateCommand = exports.de_UpdateMitigationActionCommand = exports.de_UpdateJobCommand = exports.de_UpdateIndexingConfigurationCommand = exports.de_UpdateFleetMetricCommand = exports.de_UpdateEventConfigurationsCommand = exports.de_UpdateDynamicThingGroupCommand = exports.de_UpdateDomainConfigurationCommand = exports.de_UpdateDimensionCommand = exports.de_UpdateCustomMetricCommand = exports.de_UpdateCertificateCommand = exports.de_UpdateCACertificateCommand = exports.de_UpdateBillingGroupCommand = exports.de_UpdateAuthorizerCommand = exports.de_UpdateAuditSuppressionCommand = exports.de_UpdateAccountAuditConfigurationCommand = exports.de_UntagResourceCommand = void 0;
|
|
3
|
+
exports.se_DeleteBillingGroupCommand = exports.se_DeleteAuthorizerCommand = exports.se_DeleteAuditSuppressionCommand = exports.se_DeleteAccountAuditConfigurationCommand = exports.se_CreateTopicRuleDestinationCommand = exports.se_CreateTopicRuleCommand = exports.se_CreateThingTypeCommand = exports.se_CreateThingGroupCommand = exports.se_CreateThingCommand = exports.se_CreateStreamCommand = exports.se_CreateSecurityProfileCommand = exports.se_CreateScheduledAuditCommand = exports.se_CreateRoleAliasCommand = exports.se_CreateProvisioningTemplateVersionCommand = exports.se_CreateProvisioningTemplateCommand = exports.se_CreateProvisioningClaimCommand = exports.se_CreatePolicyVersionCommand = exports.se_CreatePolicyCommand = exports.se_CreatePackageVersionCommand = exports.se_CreatePackageCommand = exports.se_CreateOTAUpdateCommand = exports.se_CreateMitigationActionCommand = exports.se_CreateKeysAndCertificateCommand = exports.se_CreateJobTemplateCommand = exports.se_CreateJobCommand = exports.se_CreateFleetMetricCommand = exports.se_CreateDynamicThingGroupCommand = exports.se_CreateDomainConfigurationCommand = exports.se_CreateDimensionCommand = exports.se_CreateCustomMetricCommand = exports.se_CreateCertificateFromCsrCommand = exports.se_CreateBillingGroupCommand = exports.se_CreateAuthorizerCommand = exports.se_CreateAuditSuppressionCommand = exports.se_ConfirmTopicRuleDestinationCommand = exports.se_ClearDefaultAuthorizerCommand = exports.se_CancelJobExecutionCommand = exports.se_CancelJobCommand = exports.se_CancelDetectMitigationActionsTaskCommand = exports.se_CancelCertificateTransferCommand = exports.se_CancelAuditTaskCommand = exports.se_CancelAuditMitigationActionsTaskCommand = exports.se_AttachThingPrincipalCommand = exports.se_AttachSecurityProfileCommand = exports.se_AttachPrincipalPolicyCommand = exports.se_AttachPolicyCommand = exports.se_AssociateTargetsWithJobCommand = exports.se_AddThingToThingGroupCommand = exports.se_AddThingToBillingGroupCommand = exports.se_AcceptCertificateTransferCommand = void 0;
|
|
4
|
+
exports.se_DescribeJobExecutionCommand = exports.se_DescribeJobCommand = exports.se_DescribeIndexCommand = exports.se_DescribeFleetMetricCommand = exports.se_DescribeEventConfigurationsCommand = exports.se_DescribeEndpointCommand = exports.se_DescribeDomainConfigurationCommand = exports.se_DescribeDimensionCommand = exports.se_DescribeDetectMitigationActionsTaskCommand = exports.se_DescribeDefaultAuthorizerCommand = exports.se_DescribeCustomMetricCommand = exports.se_DescribeCertificateCommand = exports.se_DescribeCACertificateCommand = exports.se_DescribeBillingGroupCommand = exports.se_DescribeAuthorizerCommand = exports.se_DescribeAuditTaskCommand = exports.se_DescribeAuditSuppressionCommand = exports.se_DescribeAuditMitigationActionsTaskCommand = exports.se_DescribeAuditFindingCommand = exports.se_DescribeAccountAuditConfigurationCommand = exports.se_DeprecateThingTypeCommand = exports.se_DeleteV2LoggingLevelCommand = exports.se_DeleteTopicRuleDestinationCommand = exports.se_DeleteTopicRuleCommand = exports.se_DeleteThingTypeCommand = exports.se_DeleteThingGroupCommand = exports.se_DeleteThingCommand = exports.se_DeleteStreamCommand = exports.se_DeleteSecurityProfileCommand = exports.se_DeleteScheduledAuditCommand = exports.se_DeleteRoleAliasCommand = exports.se_DeleteRegistrationCodeCommand = exports.se_DeleteProvisioningTemplateVersionCommand = exports.se_DeleteProvisioningTemplateCommand = exports.se_DeletePolicyVersionCommand = exports.se_DeletePolicyCommand = exports.se_DeletePackageVersionCommand = exports.se_DeletePackageCommand = exports.se_DeleteOTAUpdateCommand = exports.se_DeleteMitigationActionCommand = exports.se_DeleteJobTemplateCommand = exports.se_DeleteJobExecutionCommand = exports.se_DeleteJobCommand = exports.se_DeleteFleetMetricCommand = exports.se_DeleteDynamicThingGroupCommand = exports.se_DeleteDomainConfigurationCommand = exports.se_DeleteDimensionCommand = exports.se_DeleteCustomMetricCommand = exports.se_DeleteCertificateCommand = exports.se_DeleteCACertificateCommand = void 0;
|
|
5
|
+
exports.se_ListCertificatesByCACommand = exports.se_ListCertificatesCommand = exports.se_ListCACertificatesCommand = exports.se_ListBillingGroupsCommand = exports.se_ListAuthorizersCommand = exports.se_ListAuditTasksCommand = exports.se_ListAuditSuppressionsCommand = exports.se_ListAuditMitigationActionsTasksCommand = exports.se_ListAuditMitigationActionsExecutionsCommand = exports.se_ListAuditFindingsCommand = exports.se_ListAttachedPoliciesCommand = exports.se_ListActiveViolationsCommand = exports.se_GetV2LoggingOptionsCommand = exports.se_GetTopicRuleDestinationCommand = exports.se_GetTopicRuleCommand = exports.se_GetStatisticsCommand = exports.se_GetRegistrationCodeCommand = exports.se_GetPolicyVersionCommand = exports.se_GetPolicyCommand = exports.se_GetPercentilesCommand = exports.se_GetPackageVersionCommand = exports.se_GetPackageConfigurationCommand = exports.se_GetPackageCommand = exports.se_GetOTAUpdateCommand = exports.se_GetLoggingOptionsCommand = exports.se_GetJobDocumentCommand = exports.se_GetIndexingConfigurationCommand = exports.se_GetEffectivePoliciesCommand = exports.se_GetCardinalityCommand = exports.se_GetBucketsAggregationCommand = exports.se_GetBehaviorModelTrainingSummariesCommand = exports.se_EnableTopicRuleCommand = exports.se_DisableTopicRuleCommand = exports.se_DetachThingPrincipalCommand = exports.se_DetachSecurityProfileCommand = exports.se_DetachPrincipalPolicyCommand = exports.se_DetachPolicyCommand = exports.se_DescribeThingTypeCommand = exports.se_DescribeThingRegistrationTaskCommand = exports.se_DescribeThingGroupCommand = exports.se_DescribeThingCommand = exports.se_DescribeStreamCommand = exports.se_DescribeSecurityProfileCommand = exports.se_DescribeScheduledAuditCommand = exports.se_DescribeRoleAliasCommand = exports.se_DescribeProvisioningTemplateVersionCommand = exports.se_DescribeProvisioningTemplateCommand = exports.se_DescribeMitigationActionCommand = exports.se_DescribeManagedJobTemplateCommand = exports.se_DescribeJobTemplateCommand = void 0;
|
|
6
|
+
exports.se_RegisterCertificateCommand = exports.se_RegisterCACertificateCommand = exports.se_PutVerificationStateOnViolationCommand = exports.se_ListViolationEventsCommand = exports.se_ListV2LoggingLevelsCommand = exports.se_ListTopicRulesCommand = exports.se_ListTopicRuleDestinationsCommand = exports.se_ListThingTypesCommand = exports.se_ListThingsInThingGroupCommand = exports.se_ListThingsInBillingGroupCommand = exports.se_ListThingsCommand = exports.se_ListThingRegistrationTasksCommand = exports.se_ListThingRegistrationTaskReportsCommand = exports.se_ListThingPrincipalsCommand = exports.se_ListThingGroupsForThingCommand = exports.se_ListThingGroupsCommand = exports.se_ListTargetsForSecurityProfileCommand = exports.se_ListTargetsForPolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListStreamsCommand = exports.se_ListSecurityProfilesForTargetCommand = exports.se_ListSecurityProfilesCommand = exports.se_ListScheduledAuditsCommand = exports.se_ListRoleAliasesCommand = exports.se_ListRelatedResourcesForAuditFindingCommand = exports.se_ListProvisioningTemplateVersionsCommand = exports.se_ListProvisioningTemplatesCommand = exports.se_ListPrincipalThingsCommand = exports.se_ListPrincipalPoliciesCommand = exports.se_ListPolicyVersionsCommand = exports.se_ListPolicyPrincipalsCommand = exports.se_ListPoliciesCommand = exports.se_ListPackageVersionsCommand = exports.se_ListPackagesCommand = exports.se_ListOutgoingCertificatesCommand = exports.se_ListOTAUpdatesCommand = exports.se_ListMitigationActionsCommand = exports.se_ListMetricValuesCommand = exports.se_ListManagedJobTemplatesCommand = exports.se_ListJobTemplatesCommand = exports.se_ListJobsCommand = exports.se_ListJobExecutionsForThingCommand = exports.se_ListJobExecutionsForJobCommand = exports.se_ListIndicesCommand = exports.se_ListFleetMetricsCommand = exports.se_ListDomainConfigurationsCommand = exports.se_ListDimensionsCommand = exports.se_ListDetectMitigationActionsTasksCommand = exports.se_ListDetectMitigationActionsExecutionsCommand = exports.se_ListCustomMetricsCommand = void 0;
|
|
7
|
+
exports.se_ValidateSecurityProfileBehaviorsCommand = exports.se_UpdateTopicRuleDestinationCommand = exports.se_UpdateThingGroupsForThingCommand = exports.se_UpdateThingGroupCommand = exports.se_UpdateThingCommand = exports.se_UpdateStreamCommand = exports.se_UpdateSecurityProfileCommand = exports.se_UpdateScheduledAuditCommand = exports.se_UpdateRoleAliasCommand = exports.se_UpdateProvisioningTemplateCommand = exports.se_UpdatePackageVersionCommand = exports.se_UpdatePackageConfigurationCommand = exports.se_UpdatePackageCommand = exports.se_UpdateMitigationActionCommand = exports.se_UpdateJobCommand = exports.se_UpdateIndexingConfigurationCommand = exports.se_UpdateFleetMetricCommand = exports.se_UpdateEventConfigurationsCommand = exports.se_UpdateDynamicThingGroupCommand = exports.se_UpdateDomainConfigurationCommand = exports.se_UpdateDimensionCommand = exports.se_UpdateCustomMetricCommand = exports.se_UpdateCertificateCommand = exports.se_UpdateCACertificateCommand = exports.se_UpdateBillingGroupCommand = exports.se_UpdateAuthorizerCommand = exports.se_UpdateAuditSuppressionCommand = exports.se_UpdateAccountAuditConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TransferCertificateCommand = exports.se_TestInvokeAuthorizerCommand = exports.se_TestAuthorizationCommand = exports.se_TagResourceCommand = exports.se_StopThingRegistrationTaskCommand = exports.se_StartThingRegistrationTaskCommand = exports.se_StartOnDemandAuditTaskCommand = exports.se_StartDetectMitigationActionsTaskCommand = exports.se_StartAuditMitigationActionsTaskCommand = exports.se_SetV2LoggingOptionsCommand = exports.se_SetV2LoggingLevelCommand = exports.se_SetLoggingOptionsCommand = exports.se_SetDefaultPolicyVersionCommand = exports.se_SetDefaultAuthorizerCommand = exports.se_SearchIndexCommand = exports.se_ReplaceTopicRuleCommand = exports.se_RemoveThingFromThingGroupCommand = exports.se_RemoveThingFromBillingGroupCommand = exports.se_RejectCertificateTransferCommand = exports.se_RegisterThingCommand = exports.se_RegisterCertificateWithoutCACommand = void 0;
|
|
8
|
+
exports.de_DeleteBillingGroupCommand = exports.de_DeleteAuthorizerCommand = exports.de_DeleteAuditSuppressionCommand = exports.de_DeleteAccountAuditConfigurationCommand = exports.de_CreateTopicRuleDestinationCommand = exports.de_CreateTopicRuleCommand = exports.de_CreateThingTypeCommand = exports.de_CreateThingGroupCommand = exports.de_CreateThingCommand = exports.de_CreateStreamCommand = exports.de_CreateSecurityProfileCommand = exports.de_CreateScheduledAuditCommand = exports.de_CreateRoleAliasCommand = exports.de_CreateProvisioningTemplateVersionCommand = exports.de_CreateProvisioningTemplateCommand = exports.de_CreateProvisioningClaimCommand = exports.de_CreatePolicyVersionCommand = exports.de_CreatePolicyCommand = exports.de_CreatePackageVersionCommand = exports.de_CreatePackageCommand = exports.de_CreateOTAUpdateCommand = exports.de_CreateMitigationActionCommand = exports.de_CreateKeysAndCertificateCommand = exports.de_CreateJobTemplateCommand = exports.de_CreateJobCommand = exports.de_CreateFleetMetricCommand = exports.de_CreateDynamicThingGroupCommand = exports.de_CreateDomainConfigurationCommand = exports.de_CreateDimensionCommand = exports.de_CreateCustomMetricCommand = exports.de_CreateCertificateFromCsrCommand = exports.de_CreateBillingGroupCommand = exports.de_CreateAuthorizerCommand = exports.de_CreateAuditSuppressionCommand = exports.de_ConfirmTopicRuleDestinationCommand = exports.de_ClearDefaultAuthorizerCommand = exports.de_CancelJobExecutionCommand = exports.de_CancelJobCommand = exports.de_CancelDetectMitigationActionsTaskCommand = exports.de_CancelCertificateTransferCommand = exports.de_CancelAuditTaskCommand = exports.de_CancelAuditMitigationActionsTaskCommand = exports.de_AttachThingPrincipalCommand = exports.de_AttachSecurityProfileCommand = exports.de_AttachPrincipalPolicyCommand = exports.de_AttachPolicyCommand = exports.de_AssociateTargetsWithJobCommand = exports.de_AddThingToThingGroupCommand = exports.de_AddThingToBillingGroupCommand = exports.de_AcceptCertificateTransferCommand = void 0;
|
|
9
|
+
exports.de_DescribeJobExecutionCommand = exports.de_DescribeJobCommand = exports.de_DescribeIndexCommand = exports.de_DescribeFleetMetricCommand = exports.de_DescribeEventConfigurationsCommand = exports.de_DescribeEndpointCommand = exports.de_DescribeDomainConfigurationCommand = exports.de_DescribeDimensionCommand = exports.de_DescribeDetectMitigationActionsTaskCommand = exports.de_DescribeDefaultAuthorizerCommand = exports.de_DescribeCustomMetricCommand = exports.de_DescribeCertificateCommand = exports.de_DescribeCACertificateCommand = exports.de_DescribeBillingGroupCommand = exports.de_DescribeAuthorizerCommand = exports.de_DescribeAuditTaskCommand = exports.de_DescribeAuditSuppressionCommand = exports.de_DescribeAuditMitigationActionsTaskCommand = exports.de_DescribeAuditFindingCommand = exports.de_DescribeAccountAuditConfigurationCommand = exports.de_DeprecateThingTypeCommand = exports.de_DeleteV2LoggingLevelCommand = exports.de_DeleteTopicRuleDestinationCommand = exports.de_DeleteTopicRuleCommand = exports.de_DeleteThingTypeCommand = exports.de_DeleteThingGroupCommand = exports.de_DeleteThingCommand = exports.de_DeleteStreamCommand = exports.de_DeleteSecurityProfileCommand = exports.de_DeleteScheduledAuditCommand = exports.de_DeleteRoleAliasCommand = exports.de_DeleteRegistrationCodeCommand = exports.de_DeleteProvisioningTemplateVersionCommand = exports.de_DeleteProvisioningTemplateCommand = exports.de_DeletePolicyVersionCommand = exports.de_DeletePolicyCommand = exports.de_DeletePackageVersionCommand = exports.de_DeletePackageCommand = exports.de_DeleteOTAUpdateCommand = exports.de_DeleteMitigationActionCommand = exports.de_DeleteJobTemplateCommand = exports.de_DeleteJobExecutionCommand = exports.de_DeleteJobCommand = exports.de_DeleteFleetMetricCommand = exports.de_DeleteDynamicThingGroupCommand = exports.de_DeleteDomainConfigurationCommand = exports.de_DeleteDimensionCommand = exports.de_DeleteCustomMetricCommand = exports.de_DeleteCertificateCommand = exports.de_DeleteCACertificateCommand = void 0;
|
|
10
|
+
exports.de_ListCertificatesByCACommand = exports.de_ListCertificatesCommand = exports.de_ListCACertificatesCommand = exports.de_ListBillingGroupsCommand = exports.de_ListAuthorizersCommand = exports.de_ListAuditTasksCommand = exports.de_ListAuditSuppressionsCommand = exports.de_ListAuditMitigationActionsTasksCommand = exports.de_ListAuditMitigationActionsExecutionsCommand = exports.de_ListAuditFindingsCommand = exports.de_ListAttachedPoliciesCommand = exports.de_ListActiveViolationsCommand = exports.de_GetV2LoggingOptionsCommand = exports.de_GetTopicRuleDestinationCommand = exports.de_GetTopicRuleCommand = exports.de_GetStatisticsCommand = exports.de_GetRegistrationCodeCommand = exports.de_GetPolicyVersionCommand = exports.de_GetPolicyCommand = exports.de_GetPercentilesCommand = exports.de_GetPackageVersionCommand = exports.de_GetPackageConfigurationCommand = exports.de_GetPackageCommand = exports.de_GetOTAUpdateCommand = exports.de_GetLoggingOptionsCommand = exports.de_GetJobDocumentCommand = exports.de_GetIndexingConfigurationCommand = exports.de_GetEffectivePoliciesCommand = exports.de_GetCardinalityCommand = exports.de_GetBucketsAggregationCommand = exports.de_GetBehaviorModelTrainingSummariesCommand = exports.de_EnableTopicRuleCommand = exports.de_DisableTopicRuleCommand = exports.de_DetachThingPrincipalCommand = exports.de_DetachSecurityProfileCommand = exports.de_DetachPrincipalPolicyCommand = exports.de_DetachPolicyCommand = exports.de_DescribeThingTypeCommand = exports.de_DescribeThingRegistrationTaskCommand = exports.de_DescribeThingGroupCommand = exports.de_DescribeThingCommand = exports.de_DescribeStreamCommand = exports.de_DescribeSecurityProfileCommand = exports.de_DescribeScheduledAuditCommand = exports.de_DescribeRoleAliasCommand = exports.de_DescribeProvisioningTemplateVersionCommand = exports.de_DescribeProvisioningTemplateCommand = exports.de_DescribeMitigationActionCommand = exports.de_DescribeManagedJobTemplateCommand = exports.de_DescribeJobTemplateCommand = void 0;
|
|
11
|
+
exports.de_RegisterCertificateCommand = exports.de_RegisterCACertificateCommand = exports.de_PutVerificationStateOnViolationCommand = exports.de_ListViolationEventsCommand = exports.de_ListV2LoggingLevelsCommand = exports.de_ListTopicRulesCommand = exports.de_ListTopicRuleDestinationsCommand = exports.de_ListThingTypesCommand = exports.de_ListThingsInThingGroupCommand = exports.de_ListThingsInBillingGroupCommand = exports.de_ListThingsCommand = exports.de_ListThingRegistrationTasksCommand = exports.de_ListThingRegistrationTaskReportsCommand = exports.de_ListThingPrincipalsCommand = exports.de_ListThingGroupsForThingCommand = exports.de_ListThingGroupsCommand = exports.de_ListTargetsForSecurityProfileCommand = exports.de_ListTargetsForPolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListStreamsCommand = exports.de_ListSecurityProfilesForTargetCommand = exports.de_ListSecurityProfilesCommand = exports.de_ListScheduledAuditsCommand = exports.de_ListRoleAliasesCommand = exports.de_ListRelatedResourcesForAuditFindingCommand = exports.de_ListProvisioningTemplateVersionsCommand = exports.de_ListProvisioningTemplatesCommand = exports.de_ListPrincipalThingsCommand = exports.de_ListPrincipalPoliciesCommand = exports.de_ListPolicyVersionsCommand = exports.de_ListPolicyPrincipalsCommand = exports.de_ListPoliciesCommand = exports.de_ListPackageVersionsCommand = exports.de_ListPackagesCommand = exports.de_ListOutgoingCertificatesCommand = exports.de_ListOTAUpdatesCommand = exports.de_ListMitigationActionsCommand = exports.de_ListMetricValuesCommand = exports.de_ListManagedJobTemplatesCommand = exports.de_ListJobTemplatesCommand = exports.de_ListJobsCommand = exports.de_ListJobExecutionsForThingCommand = exports.de_ListJobExecutionsForJobCommand = exports.de_ListIndicesCommand = exports.de_ListFleetMetricsCommand = exports.de_ListDomainConfigurationsCommand = exports.de_ListDimensionsCommand = exports.de_ListDetectMitigationActionsTasksCommand = exports.de_ListDetectMitigationActionsExecutionsCommand = exports.de_ListCustomMetricsCommand = void 0;
|
|
12
|
+
exports.de_ValidateSecurityProfileBehaviorsCommand = exports.de_UpdateTopicRuleDestinationCommand = exports.de_UpdateThingGroupsForThingCommand = exports.de_UpdateThingGroupCommand = exports.de_UpdateThingCommand = exports.de_UpdateStreamCommand = exports.de_UpdateSecurityProfileCommand = exports.de_UpdateScheduledAuditCommand = exports.de_UpdateRoleAliasCommand = exports.de_UpdateProvisioningTemplateCommand = exports.de_UpdatePackageVersionCommand = exports.de_UpdatePackageConfigurationCommand = exports.de_UpdatePackageCommand = exports.de_UpdateMitigationActionCommand = exports.de_UpdateJobCommand = exports.de_UpdateIndexingConfigurationCommand = exports.de_UpdateFleetMetricCommand = exports.de_UpdateEventConfigurationsCommand = exports.de_UpdateDynamicThingGroupCommand = exports.de_UpdateDomainConfigurationCommand = exports.de_UpdateDimensionCommand = exports.de_UpdateCustomMetricCommand = exports.de_UpdateCertificateCommand = exports.de_UpdateCACertificateCommand = exports.de_UpdateBillingGroupCommand = exports.de_UpdateAuthorizerCommand = exports.de_UpdateAuditSuppressionCommand = exports.de_UpdateAccountAuditConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TransferCertificateCommand = exports.de_TestInvokeAuthorizerCommand = exports.de_TestAuthorizationCommand = exports.de_TagResourceCommand = exports.de_StopThingRegistrationTaskCommand = exports.de_StartThingRegistrationTaskCommand = exports.de_StartOnDemandAuditTaskCommand = exports.de_StartDetectMitigationActionsTaskCommand = exports.de_StartAuditMitigationActionsTaskCommand = exports.de_SetV2LoggingOptionsCommand = exports.de_SetV2LoggingLevelCommand = exports.de_SetLoggingOptionsCommand = exports.de_SetDefaultPolicyVersionCommand = exports.de_SetDefaultAuthorizerCommand = exports.de_SearchIndexCommand = exports.de_ReplaceTopicRuleCommand = exports.de_RemoveThingFromThingGroupCommand = exports.de_RemoveThingFromBillingGroupCommand = exports.de_RejectCertificateTransferCommand = exports.de_RegisterThingCommand = exports.de_RegisterCertificateWithoutCACommand = void 0;
|
|
13
13
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
14
14
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
@@ -607,6 +607,7 @@ const se_CreateJobCommand = async (input, context) => {
|
|
|
607
607
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
608
608
|
abortConfig: (_) => se_AbortConfig(_, context),
|
|
609
609
|
description: [],
|
|
610
|
+
destinationPackageVersions: (_) => (0, smithy_client_1._json)(_),
|
|
610
611
|
document: [],
|
|
611
612
|
documentParameters: (_) => (0, smithy_client_1._json)(_),
|
|
612
613
|
documentSource: [],
|
|
@@ -643,6 +644,7 @@ const se_CreateJobTemplateCommand = async (input, context) => {
|
|
|
643
644
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
644
645
|
abortConfig: (_) => se_AbortConfig(_, context),
|
|
645
646
|
description: [],
|
|
647
|
+
destinationPackageVersions: (_) => (0, smithy_client_1._json)(_),
|
|
646
648
|
document: [],
|
|
647
649
|
documentSource: [],
|
|
648
650
|
jobArn: [],
|
|
@@ -741,6 +743,63 @@ const se_CreateOTAUpdateCommand = async (input, context) => {
|
|
|
741
743
|
});
|
|
742
744
|
};
|
|
743
745
|
exports.se_CreateOTAUpdateCommand = se_CreateOTAUpdateCommand;
|
|
746
|
+
const se_CreatePackageCommand = async (input, context) => {
|
|
747
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
748
|
+
const headers = {
|
|
749
|
+
"content-type": "application/json",
|
|
750
|
+
};
|
|
751
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
752
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
753
|
+
const query = (0, smithy_client_1.map)({
|
|
754
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
755
|
+
});
|
|
756
|
+
let body;
|
|
757
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
758
|
+
description: [],
|
|
759
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
760
|
+
}));
|
|
761
|
+
return new protocol_http_1.HttpRequest({
|
|
762
|
+
protocol,
|
|
763
|
+
hostname,
|
|
764
|
+
port,
|
|
765
|
+
method: "PUT",
|
|
766
|
+
headers,
|
|
767
|
+
path: resolvedPath,
|
|
768
|
+
query,
|
|
769
|
+
body,
|
|
770
|
+
});
|
|
771
|
+
};
|
|
772
|
+
exports.se_CreatePackageCommand = se_CreatePackageCommand;
|
|
773
|
+
const se_CreatePackageVersionCommand = async (input, context) => {
|
|
774
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
775
|
+
const headers = {
|
|
776
|
+
"content-type": "application/json",
|
|
777
|
+
};
|
|
778
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
779
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
780
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
781
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
782
|
+
const query = (0, smithy_client_1.map)({
|
|
783
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
784
|
+
});
|
|
785
|
+
let body;
|
|
786
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
787
|
+
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
788
|
+
description: [],
|
|
789
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
790
|
+
}));
|
|
791
|
+
return new protocol_http_1.HttpRequest({
|
|
792
|
+
protocol,
|
|
793
|
+
hostname,
|
|
794
|
+
port,
|
|
795
|
+
method: "PUT",
|
|
796
|
+
headers,
|
|
797
|
+
path: resolvedPath,
|
|
798
|
+
query,
|
|
799
|
+
body,
|
|
800
|
+
});
|
|
801
|
+
};
|
|
802
|
+
exports.se_CreatePackageVersionCommand = se_CreatePackageVersionCommand;
|
|
744
803
|
const se_CreatePolicyCommand = async (input, context) => {
|
|
745
804
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
746
805
|
const headers = {
|
|
@@ -1403,6 +1462,50 @@ const se_DeleteOTAUpdateCommand = async (input, context) => {
|
|
|
1403
1462
|
});
|
|
1404
1463
|
};
|
|
1405
1464
|
exports.se_DeleteOTAUpdateCommand = se_DeleteOTAUpdateCommand;
|
|
1465
|
+
const se_DeletePackageCommand = async (input, context) => {
|
|
1466
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1467
|
+
const headers = {};
|
|
1468
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
1469
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
1470
|
+
const query = (0, smithy_client_1.map)({
|
|
1471
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
1472
|
+
});
|
|
1473
|
+
let body;
|
|
1474
|
+
return new protocol_http_1.HttpRequest({
|
|
1475
|
+
protocol,
|
|
1476
|
+
hostname,
|
|
1477
|
+
port,
|
|
1478
|
+
method: "DELETE",
|
|
1479
|
+
headers,
|
|
1480
|
+
path: resolvedPath,
|
|
1481
|
+
query,
|
|
1482
|
+
body,
|
|
1483
|
+
});
|
|
1484
|
+
};
|
|
1485
|
+
exports.se_DeletePackageCommand = se_DeletePackageCommand;
|
|
1486
|
+
const se_DeletePackageVersionCommand = async (input, context) => {
|
|
1487
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1488
|
+
const headers = {};
|
|
1489
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1490
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
1491
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
1492
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
1493
|
+
const query = (0, smithy_client_1.map)({
|
|
1494
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
1495
|
+
});
|
|
1496
|
+
let body;
|
|
1497
|
+
return new protocol_http_1.HttpRequest({
|
|
1498
|
+
protocol,
|
|
1499
|
+
hostname,
|
|
1500
|
+
port,
|
|
1501
|
+
method: "DELETE",
|
|
1502
|
+
headers,
|
|
1503
|
+
path: resolvedPath,
|
|
1504
|
+
query,
|
|
1505
|
+
body,
|
|
1506
|
+
});
|
|
1507
|
+
};
|
|
1508
|
+
exports.se_DeletePackageVersionCommand = se_DeletePackageVersionCommand;
|
|
1406
1509
|
const se_DeletePolicyCommand = async (input, context) => {
|
|
1407
1510
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1408
1511
|
const headers = {};
|
|
@@ -2576,6 +2679,61 @@ const se_GetOTAUpdateCommand = async (input, context) => {
|
|
|
2576
2679
|
});
|
|
2577
2680
|
};
|
|
2578
2681
|
exports.se_GetOTAUpdateCommand = se_GetOTAUpdateCommand;
|
|
2682
|
+
const se_GetPackageCommand = async (input, context) => {
|
|
2683
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2684
|
+
const headers = {};
|
|
2685
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
2686
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
2687
|
+
let body;
|
|
2688
|
+
return new protocol_http_1.HttpRequest({
|
|
2689
|
+
protocol,
|
|
2690
|
+
hostname,
|
|
2691
|
+
port,
|
|
2692
|
+
method: "GET",
|
|
2693
|
+
headers,
|
|
2694
|
+
path: resolvedPath,
|
|
2695
|
+
body,
|
|
2696
|
+
});
|
|
2697
|
+
};
|
|
2698
|
+
exports.se_GetPackageCommand = se_GetPackageCommand;
|
|
2699
|
+
const se_GetPackageConfigurationCommand = async (input, context) => {
|
|
2700
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2701
|
+
const headers = {
|
|
2702
|
+
"content-type": "application/json",
|
|
2703
|
+
};
|
|
2704
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/package-configuration";
|
|
2705
|
+
let body;
|
|
2706
|
+
body = "";
|
|
2707
|
+
return new protocol_http_1.HttpRequest({
|
|
2708
|
+
protocol,
|
|
2709
|
+
hostname,
|
|
2710
|
+
port,
|
|
2711
|
+
method: "GET",
|
|
2712
|
+
headers,
|
|
2713
|
+
path: resolvedPath,
|
|
2714
|
+
body,
|
|
2715
|
+
});
|
|
2716
|
+
};
|
|
2717
|
+
exports.se_GetPackageConfigurationCommand = se_GetPackageConfigurationCommand;
|
|
2718
|
+
const se_GetPackageVersionCommand = async (input, context) => {
|
|
2719
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2720
|
+
const headers = {};
|
|
2721
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2722
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
2723
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
2724
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
2725
|
+
let body;
|
|
2726
|
+
return new protocol_http_1.HttpRequest({
|
|
2727
|
+
protocol,
|
|
2728
|
+
hostname,
|
|
2729
|
+
port,
|
|
2730
|
+
method: "GET",
|
|
2731
|
+
headers,
|
|
2732
|
+
path: resolvedPath,
|
|
2733
|
+
body,
|
|
2734
|
+
});
|
|
2735
|
+
};
|
|
2736
|
+
exports.se_GetPackageVersionCommand = se_GetPackageVersionCommand;
|
|
2579
2737
|
const se_GetPercentilesCommand = async (input, context) => {
|
|
2580
2738
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2581
2739
|
const headers = {
|
|
@@ -3415,6 +3573,50 @@ const se_ListOutgoingCertificatesCommand = async (input, context) => {
|
|
|
3415
3573
|
});
|
|
3416
3574
|
};
|
|
3417
3575
|
exports.se_ListOutgoingCertificatesCommand = se_ListOutgoingCertificatesCommand;
|
|
3576
|
+
const se_ListPackagesCommand = async (input, context) => {
|
|
3577
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3578
|
+
const headers = {};
|
|
3579
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages";
|
|
3580
|
+
const query = (0, smithy_client_1.map)({
|
|
3581
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3582
|
+
nextToken: [, input.nextToken],
|
|
3583
|
+
});
|
|
3584
|
+
let body;
|
|
3585
|
+
return new protocol_http_1.HttpRequest({
|
|
3586
|
+
protocol,
|
|
3587
|
+
hostname,
|
|
3588
|
+
port,
|
|
3589
|
+
method: "GET",
|
|
3590
|
+
headers,
|
|
3591
|
+
path: resolvedPath,
|
|
3592
|
+
query,
|
|
3593
|
+
body,
|
|
3594
|
+
});
|
|
3595
|
+
};
|
|
3596
|
+
exports.se_ListPackagesCommand = se_ListPackagesCommand;
|
|
3597
|
+
const se_ListPackageVersionsCommand = async (input, context) => {
|
|
3598
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3599
|
+
const headers = {};
|
|
3600
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}/versions";
|
|
3601
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
3602
|
+
const query = (0, smithy_client_1.map)({
|
|
3603
|
+
status: [, input.status],
|
|
3604
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3605
|
+
nextToken: [, input.nextToken],
|
|
3606
|
+
});
|
|
3607
|
+
let body;
|
|
3608
|
+
return new protocol_http_1.HttpRequest({
|
|
3609
|
+
protocol,
|
|
3610
|
+
hostname,
|
|
3611
|
+
port,
|
|
3612
|
+
method: "GET",
|
|
3613
|
+
headers,
|
|
3614
|
+
path: resolvedPath,
|
|
3615
|
+
query,
|
|
3616
|
+
body,
|
|
3617
|
+
});
|
|
3618
|
+
};
|
|
3619
|
+
exports.se_ListPackageVersionsCommand = se_ListPackageVersionsCommand;
|
|
3418
3620
|
const se_ListPoliciesCommand = async (input, context) => {
|
|
3419
3621
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3420
3622
|
const headers = {};
|
|
@@ -5045,6 +5247,89 @@ const se_UpdateMitigationActionCommand = async (input, context) => {
|
|
|
5045
5247
|
});
|
|
5046
5248
|
};
|
|
5047
5249
|
exports.se_UpdateMitigationActionCommand = se_UpdateMitigationActionCommand;
|
|
5250
|
+
const se_UpdatePackageCommand = async (input, context) => {
|
|
5251
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5252
|
+
const headers = {
|
|
5253
|
+
"content-type": "application/json",
|
|
5254
|
+
};
|
|
5255
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
5256
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
5257
|
+
const query = (0, smithy_client_1.map)({
|
|
5258
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
5259
|
+
});
|
|
5260
|
+
let body;
|
|
5261
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
5262
|
+
defaultVersionName: [],
|
|
5263
|
+
description: [],
|
|
5264
|
+
unsetDefaultVersion: [],
|
|
5265
|
+
}));
|
|
5266
|
+
return new protocol_http_1.HttpRequest({
|
|
5267
|
+
protocol,
|
|
5268
|
+
hostname,
|
|
5269
|
+
port,
|
|
5270
|
+
method: "PATCH",
|
|
5271
|
+
headers,
|
|
5272
|
+
path: resolvedPath,
|
|
5273
|
+
query,
|
|
5274
|
+
body,
|
|
5275
|
+
});
|
|
5276
|
+
};
|
|
5277
|
+
exports.se_UpdatePackageCommand = se_UpdatePackageCommand;
|
|
5278
|
+
const se_UpdatePackageConfigurationCommand = async (input, context) => {
|
|
5279
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5280
|
+
const headers = {
|
|
5281
|
+
"content-type": "application/json",
|
|
5282
|
+
};
|
|
5283
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/package-configuration";
|
|
5284
|
+
const query = (0, smithy_client_1.map)({
|
|
5285
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
5286
|
+
});
|
|
5287
|
+
let body;
|
|
5288
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
5289
|
+
versionUpdateByJobsConfig: (_) => (0, smithy_client_1._json)(_),
|
|
5290
|
+
}));
|
|
5291
|
+
return new protocol_http_1.HttpRequest({
|
|
5292
|
+
protocol,
|
|
5293
|
+
hostname,
|
|
5294
|
+
port,
|
|
5295
|
+
method: "PATCH",
|
|
5296
|
+
headers,
|
|
5297
|
+
path: resolvedPath,
|
|
5298
|
+
query,
|
|
5299
|
+
body,
|
|
5300
|
+
});
|
|
5301
|
+
};
|
|
5302
|
+
exports.se_UpdatePackageConfigurationCommand = se_UpdatePackageConfigurationCommand;
|
|
5303
|
+
const se_UpdatePackageVersionCommand = async (input, context) => {
|
|
5304
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5305
|
+
const headers = {
|
|
5306
|
+
"content-type": "application/json",
|
|
5307
|
+
};
|
|
5308
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
5309
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
5310
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
5311
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
5312
|
+
const query = (0, smithy_client_1.map)({
|
|
5313
|
+
clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
|
|
5314
|
+
});
|
|
5315
|
+
let body;
|
|
5316
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
5317
|
+
action: [],
|
|
5318
|
+
attributes: (_) => (0, smithy_client_1._json)(_),
|
|
5319
|
+
description: [],
|
|
5320
|
+
}));
|
|
5321
|
+
return new protocol_http_1.HttpRequest({
|
|
5322
|
+
protocol,
|
|
5323
|
+
hostname,
|
|
5324
|
+
port,
|
|
5325
|
+
method: "PATCH",
|
|
5326
|
+
headers,
|
|
5327
|
+
path: resolvedPath,
|
|
5328
|
+
query,
|
|
5329
|
+
body,
|
|
5330
|
+
});
|
|
5331
|
+
};
|
|
5332
|
+
exports.se_UpdatePackageVersionCommand = se_UpdatePackageVersionCommand;
|
|
5048
5333
|
const se_UpdateProvisioningTemplateCommand = async (input, context) => {
|
|
5049
5334
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5050
5335
|
const headers = {
|
|
@@ -6714,6 +6999,106 @@ const de_CreateOTAUpdateCommandError = async (output, context) => {
|
|
|
6714
6999
|
});
|
|
6715
7000
|
}
|
|
6716
7001
|
};
|
|
7002
|
+
const de_CreatePackageCommand = async (output, context) => {
|
|
7003
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7004
|
+
return de_CreatePackageCommandError(output, context);
|
|
7005
|
+
}
|
|
7006
|
+
const contents = (0, smithy_client_1.map)({
|
|
7007
|
+
$metadata: deserializeMetadata(output),
|
|
7008
|
+
});
|
|
7009
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
7010
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
7011
|
+
description: smithy_client_1.expectString,
|
|
7012
|
+
packageArn: smithy_client_1.expectString,
|
|
7013
|
+
packageName: smithy_client_1.expectString,
|
|
7014
|
+
});
|
|
7015
|
+
Object.assign(contents, doc);
|
|
7016
|
+
return contents;
|
|
7017
|
+
};
|
|
7018
|
+
exports.de_CreatePackageCommand = de_CreatePackageCommand;
|
|
7019
|
+
const de_CreatePackageCommandError = async (output, context) => {
|
|
7020
|
+
const parsedOutput = {
|
|
7021
|
+
...output,
|
|
7022
|
+
body: await parseErrorBody(output.body, context),
|
|
7023
|
+
};
|
|
7024
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7025
|
+
switch (errorCode) {
|
|
7026
|
+
case "ConflictException":
|
|
7027
|
+
case "com.amazonaws.iot#ConflictException":
|
|
7028
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
7029
|
+
case "InternalServerException":
|
|
7030
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
7031
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
7032
|
+
case "ServiceQuotaExceededException":
|
|
7033
|
+
case "com.amazonaws.iot#ServiceQuotaExceededException":
|
|
7034
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
7035
|
+
case "ThrottlingException":
|
|
7036
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
7037
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
7038
|
+
case "ValidationException":
|
|
7039
|
+
case "com.amazonaws.iot#ValidationException":
|
|
7040
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
7041
|
+
default:
|
|
7042
|
+
const parsedBody = parsedOutput.body;
|
|
7043
|
+
return throwDefaultError({
|
|
7044
|
+
output,
|
|
7045
|
+
parsedBody,
|
|
7046
|
+
errorCode,
|
|
7047
|
+
});
|
|
7048
|
+
}
|
|
7049
|
+
};
|
|
7050
|
+
const de_CreatePackageVersionCommand = async (output, context) => {
|
|
7051
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7052
|
+
return de_CreatePackageVersionCommandError(output, context);
|
|
7053
|
+
}
|
|
7054
|
+
const contents = (0, smithy_client_1.map)({
|
|
7055
|
+
$metadata: deserializeMetadata(output),
|
|
7056
|
+
});
|
|
7057
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
7058
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
7059
|
+
attributes: smithy_client_1._json,
|
|
7060
|
+
description: smithy_client_1.expectString,
|
|
7061
|
+
errorReason: smithy_client_1.expectString,
|
|
7062
|
+
packageName: smithy_client_1.expectString,
|
|
7063
|
+
packageVersionArn: smithy_client_1.expectString,
|
|
7064
|
+
status: smithy_client_1.expectString,
|
|
7065
|
+
versionName: smithy_client_1.expectString,
|
|
7066
|
+
});
|
|
7067
|
+
Object.assign(contents, doc);
|
|
7068
|
+
return contents;
|
|
7069
|
+
};
|
|
7070
|
+
exports.de_CreatePackageVersionCommand = de_CreatePackageVersionCommand;
|
|
7071
|
+
const de_CreatePackageVersionCommandError = async (output, context) => {
|
|
7072
|
+
const parsedOutput = {
|
|
7073
|
+
...output,
|
|
7074
|
+
body: await parseErrorBody(output.body, context),
|
|
7075
|
+
};
|
|
7076
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
7077
|
+
switch (errorCode) {
|
|
7078
|
+
case "ConflictException":
|
|
7079
|
+
case "com.amazonaws.iot#ConflictException":
|
|
7080
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
7081
|
+
case "InternalServerException":
|
|
7082
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
7083
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
7084
|
+
case "ServiceQuotaExceededException":
|
|
7085
|
+
case "com.amazonaws.iot#ServiceQuotaExceededException":
|
|
7086
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
7087
|
+
case "ThrottlingException":
|
|
7088
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
7089
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
7090
|
+
case "ValidationException":
|
|
7091
|
+
case "com.amazonaws.iot#ValidationException":
|
|
7092
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
7093
|
+
default:
|
|
7094
|
+
const parsedBody = parsedOutput.body;
|
|
7095
|
+
return throwDefaultError({
|
|
7096
|
+
output,
|
|
7097
|
+
parsedBody,
|
|
7098
|
+
errorCode,
|
|
7099
|
+
});
|
|
7100
|
+
}
|
|
7101
|
+
};
|
|
6717
7102
|
const de_CreatePolicyCommand = async (output, context) => {
|
|
6718
7103
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6719
7104
|
return de_CreatePolicyCommandError(output, context);
|
|
@@ -8099,6 +8484,78 @@ const de_DeleteOTAUpdateCommandError = async (output, context) => {
|
|
|
8099
8484
|
});
|
|
8100
8485
|
}
|
|
8101
8486
|
};
|
|
8487
|
+
const de_DeletePackageCommand = async (output, context) => {
|
|
8488
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8489
|
+
return de_DeletePackageCommandError(output, context);
|
|
8490
|
+
}
|
|
8491
|
+
const contents = (0, smithy_client_1.map)({
|
|
8492
|
+
$metadata: deserializeMetadata(output),
|
|
8493
|
+
});
|
|
8494
|
+
await collectBody(output.body, context);
|
|
8495
|
+
return contents;
|
|
8496
|
+
};
|
|
8497
|
+
exports.de_DeletePackageCommand = de_DeletePackageCommand;
|
|
8498
|
+
const de_DeletePackageCommandError = async (output, context) => {
|
|
8499
|
+
const parsedOutput = {
|
|
8500
|
+
...output,
|
|
8501
|
+
body: await parseErrorBody(output.body, context),
|
|
8502
|
+
};
|
|
8503
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8504
|
+
switch (errorCode) {
|
|
8505
|
+
case "InternalServerException":
|
|
8506
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
8507
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
8508
|
+
case "ThrottlingException":
|
|
8509
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
8510
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
8511
|
+
case "ValidationException":
|
|
8512
|
+
case "com.amazonaws.iot#ValidationException":
|
|
8513
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
8514
|
+
default:
|
|
8515
|
+
const parsedBody = parsedOutput.body;
|
|
8516
|
+
return throwDefaultError({
|
|
8517
|
+
output,
|
|
8518
|
+
parsedBody,
|
|
8519
|
+
errorCode,
|
|
8520
|
+
});
|
|
8521
|
+
}
|
|
8522
|
+
};
|
|
8523
|
+
const de_DeletePackageVersionCommand = async (output, context) => {
|
|
8524
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8525
|
+
return de_DeletePackageVersionCommandError(output, context);
|
|
8526
|
+
}
|
|
8527
|
+
const contents = (0, smithy_client_1.map)({
|
|
8528
|
+
$metadata: deserializeMetadata(output),
|
|
8529
|
+
});
|
|
8530
|
+
await collectBody(output.body, context);
|
|
8531
|
+
return contents;
|
|
8532
|
+
};
|
|
8533
|
+
exports.de_DeletePackageVersionCommand = de_DeletePackageVersionCommand;
|
|
8534
|
+
const de_DeletePackageVersionCommandError = async (output, context) => {
|
|
8535
|
+
const parsedOutput = {
|
|
8536
|
+
...output,
|
|
8537
|
+
body: await parseErrorBody(output.body, context),
|
|
8538
|
+
};
|
|
8539
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8540
|
+
switch (errorCode) {
|
|
8541
|
+
case "InternalServerException":
|
|
8542
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
8543
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
8544
|
+
case "ThrottlingException":
|
|
8545
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
8546
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
8547
|
+
case "ValidationException":
|
|
8548
|
+
case "com.amazonaws.iot#ValidationException":
|
|
8549
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
8550
|
+
default:
|
|
8551
|
+
const parsedBody = parsedOutput.body;
|
|
8552
|
+
return throwDefaultError({
|
|
8553
|
+
output,
|
|
8554
|
+
parsedBody,
|
|
8555
|
+
errorCode,
|
|
8556
|
+
});
|
|
8557
|
+
}
|
|
8558
|
+
};
|
|
8102
8559
|
const de_DeletePolicyCommand = async (output, context) => {
|
|
8103
8560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8104
8561
|
return de_DeletePolicyCommandError(output, context);
|
|
@@ -9765,6 +10222,7 @@ const de_DescribeJobTemplateCommand = async (output, context) => {
|
|
|
9765
10222
|
abortConfig: (_) => de_AbortConfig(_, context),
|
|
9766
10223
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
9767
10224
|
description: smithy_client_1.expectString,
|
|
10225
|
+
destinationPackageVersions: smithy_client_1._json,
|
|
9768
10226
|
document: smithy_client_1.expectString,
|
|
9769
10227
|
documentSource: smithy_client_1.expectString,
|
|
9770
10228
|
jobExecutionsRetryConfig: smithy_client_1._json,
|
|
@@ -10973,12 +11431,150 @@ const de_GetJobDocumentCommandError = async (output, context) => {
|
|
|
10973
11431
|
case "ResourceNotFoundException":
|
|
10974
11432
|
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
10975
11433
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10976
|
-
case "ServiceUnavailableException":
|
|
10977
|
-
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
10978
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11434
|
+
case "ServiceUnavailableException":
|
|
11435
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11436
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11437
|
+
case "ThrottlingException":
|
|
11438
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
11439
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11440
|
+
default:
|
|
11441
|
+
const parsedBody = parsedOutput.body;
|
|
11442
|
+
return throwDefaultError({
|
|
11443
|
+
output,
|
|
11444
|
+
parsedBody,
|
|
11445
|
+
errorCode,
|
|
11446
|
+
});
|
|
11447
|
+
}
|
|
11448
|
+
};
|
|
11449
|
+
const de_GetLoggingOptionsCommand = async (output, context) => {
|
|
11450
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11451
|
+
return de_GetLoggingOptionsCommandError(output, context);
|
|
11452
|
+
}
|
|
11453
|
+
const contents = (0, smithy_client_1.map)({
|
|
11454
|
+
$metadata: deserializeMetadata(output),
|
|
11455
|
+
});
|
|
11456
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11457
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
11458
|
+
logLevel: smithy_client_1.expectString,
|
|
11459
|
+
roleArn: smithy_client_1.expectString,
|
|
11460
|
+
});
|
|
11461
|
+
Object.assign(contents, doc);
|
|
11462
|
+
return contents;
|
|
11463
|
+
};
|
|
11464
|
+
exports.de_GetLoggingOptionsCommand = de_GetLoggingOptionsCommand;
|
|
11465
|
+
const de_GetLoggingOptionsCommandError = async (output, context) => {
|
|
11466
|
+
const parsedOutput = {
|
|
11467
|
+
...output,
|
|
11468
|
+
body: await parseErrorBody(output.body, context),
|
|
11469
|
+
};
|
|
11470
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11471
|
+
switch (errorCode) {
|
|
11472
|
+
case "InternalException":
|
|
11473
|
+
case "com.amazonaws.iot#InternalException":
|
|
11474
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
11475
|
+
case "InvalidRequestException":
|
|
11476
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
11477
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11478
|
+
case "ServiceUnavailableException":
|
|
11479
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11480
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11481
|
+
default:
|
|
11482
|
+
const parsedBody = parsedOutput.body;
|
|
11483
|
+
return throwDefaultError({
|
|
11484
|
+
output,
|
|
11485
|
+
parsedBody,
|
|
11486
|
+
errorCode,
|
|
11487
|
+
});
|
|
11488
|
+
}
|
|
11489
|
+
};
|
|
11490
|
+
const de_GetOTAUpdateCommand = async (output, context) => {
|
|
11491
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11492
|
+
return de_GetOTAUpdateCommandError(output, context);
|
|
11493
|
+
}
|
|
11494
|
+
const contents = (0, smithy_client_1.map)({
|
|
11495
|
+
$metadata: deserializeMetadata(output),
|
|
11496
|
+
});
|
|
11497
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11498
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
11499
|
+
otaUpdateInfo: (_) => de_OTAUpdateInfo(_, context),
|
|
11500
|
+
});
|
|
11501
|
+
Object.assign(contents, doc);
|
|
11502
|
+
return contents;
|
|
11503
|
+
};
|
|
11504
|
+
exports.de_GetOTAUpdateCommand = de_GetOTAUpdateCommand;
|
|
11505
|
+
const de_GetOTAUpdateCommandError = async (output, context) => {
|
|
11506
|
+
const parsedOutput = {
|
|
11507
|
+
...output,
|
|
11508
|
+
body: await parseErrorBody(output.body, context),
|
|
11509
|
+
};
|
|
11510
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11511
|
+
switch (errorCode) {
|
|
11512
|
+
case "InternalFailureException":
|
|
11513
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
11514
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
11515
|
+
case "InvalidRequestException":
|
|
11516
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
11517
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11518
|
+
case "ResourceNotFoundException":
|
|
11519
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
11520
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
11521
|
+
case "ServiceUnavailableException":
|
|
11522
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11523
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11524
|
+
case "ThrottlingException":
|
|
11525
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
11526
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11527
|
+
case "UnauthorizedException":
|
|
11528
|
+
case "com.amazonaws.iot#UnauthorizedException":
|
|
11529
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
11530
|
+
default:
|
|
11531
|
+
const parsedBody = parsedOutput.body;
|
|
11532
|
+
return throwDefaultError({
|
|
11533
|
+
output,
|
|
11534
|
+
parsedBody,
|
|
11535
|
+
errorCode,
|
|
11536
|
+
});
|
|
11537
|
+
}
|
|
11538
|
+
};
|
|
11539
|
+
const de_GetPackageCommand = async (output, context) => {
|
|
11540
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11541
|
+
return de_GetPackageCommandError(output, context);
|
|
11542
|
+
}
|
|
11543
|
+
const contents = (0, smithy_client_1.map)({
|
|
11544
|
+
$metadata: deserializeMetadata(output),
|
|
11545
|
+
});
|
|
11546
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11547
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
11548
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
11549
|
+
defaultVersionName: smithy_client_1.expectString,
|
|
11550
|
+
description: smithy_client_1.expectString,
|
|
11551
|
+
lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
11552
|
+
packageArn: smithy_client_1.expectString,
|
|
11553
|
+
packageName: smithy_client_1.expectString,
|
|
11554
|
+
});
|
|
11555
|
+
Object.assign(contents, doc);
|
|
11556
|
+
return contents;
|
|
11557
|
+
};
|
|
11558
|
+
exports.de_GetPackageCommand = de_GetPackageCommand;
|
|
11559
|
+
const de_GetPackageCommandError = async (output, context) => {
|
|
11560
|
+
const parsedOutput = {
|
|
11561
|
+
...output,
|
|
11562
|
+
body: await parseErrorBody(output.body, context),
|
|
11563
|
+
};
|
|
11564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11565
|
+
switch (errorCode) {
|
|
11566
|
+
case "InternalServerException":
|
|
11567
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
11568
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
11569
|
+
case "ResourceNotFoundException":
|
|
11570
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
11571
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10979
11572
|
case "ThrottlingException":
|
|
10980
11573
|
case "com.amazonaws.iot#ThrottlingException":
|
|
10981
11574
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11575
|
+
case "ValidationException":
|
|
11576
|
+
case "com.amazonaws.iot#ValidationException":
|
|
11577
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
10982
11578
|
default:
|
|
10983
11579
|
const parsedBody = parsedOutput.body;
|
|
10984
11580
|
return throwDefaultError({
|
|
@@ -10988,38 +11584,34 @@ const de_GetJobDocumentCommandError = async (output, context) => {
|
|
|
10988
11584
|
});
|
|
10989
11585
|
}
|
|
10990
11586
|
};
|
|
10991
|
-
const
|
|
11587
|
+
const de_GetPackageConfigurationCommand = async (output, context) => {
|
|
10992
11588
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10993
|
-
return
|
|
11589
|
+
return de_GetPackageConfigurationCommandError(output, context);
|
|
10994
11590
|
}
|
|
10995
11591
|
const contents = (0, smithy_client_1.map)({
|
|
10996
11592
|
$metadata: deserializeMetadata(output),
|
|
10997
11593
|
});
|
|
10998
11594
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
10999
11595
|
const doc = (0, smithy_client_1.take)(data, {
|
|
11000
|
-
|
|
11001
|
-
roleArn: smithy_client_1.expectString,
|
|
11596
|
+
versionUpdateByJobsConfig: smithy_client_1._json,
|
|
11002
11597
|
});
|
|
11003
11598
|
Object.assign(contents, doc);
|
|
11004
11599
|
return contents;
|
|
11005
11600
|
};
|
|
11006
|
-
exports.
|
|
11007
|
-
const
|
|
11601
|
+
exports.de_GetPackageConfigurationCommand = de_GetPackageConfigurationCommand;
|
|
11602
|
+
const de_GetPackageConfigurationCommandError = async (output, context) => {
|
|
11008
11603
|
const parsedOutput = {
|
|
11009
11604
|
...output,
|
|
11010
11605
|
body: await parseErrorBody(output.body, context),
|
|
11011
11606
|
};
|
|
11012
11607
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11013
11608
|
switch (errorCode) {
|
|
11014
|
-
case "
|
|
11015
|
-
case "com.amazonaws.iot#
|
|
11016
|
-
throw await
|
|
11017
|
-
case "
|
|
11018
|
-
case "com.amazonaws.iot#
|
|
11019
|
-
throw await
|
|
11020
|
-
case "ServiceUnavailableException":
|
|
11021
|
-
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11022
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11609
|
+
case "InternalServerException":
|
|
11610
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
11611
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
11612
|
+
case "ThrottlingException":
|
|
11613
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
11614
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11023
11615
|
default:
|
|
11024
11616
|
const parsedBody = parsedOutput.body;
|
|
11025
11617
|
return throwDefaultError({
|
|
@@ -11029,46 +11621,48 @@ const de_GetLoggingOptionsCommandError = async (output, context) => {
|
|
|
11029
11621
|
});
|
|
11030
11622
|
}
|
|
11031
11623
|
};
|
|
11032
|
-
const
|
|
11624
|
+
const de_GetPackageVersionCommand = async (output, context) => {
|
|
11033
11625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11034
|
-
return
|
|
11626
|
+
return de_GetPackageVersionCommandError(output, context);
|
|
11035
11627
|
}
|
|
11036
11628
|
const contents = (0, smithy_client_1.map)({
|
|
11037
11629
|
$metadata: deserializeMetadata(output),
|
|
11038
11630
|
});
|
|
11039
11631
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
11040
11632
|
const doc = (0, smithy_client_1.take)(data, {
|
|
11041
|
-
|
|
11633
|
+
attributes: smithy_client_1._json,
|
|
11634
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
11635
|
+
description: smithy_client_1.expectString,
|
|
11636
|
+
errorReason: smithy_client_1.expectString,
|
|
11637
|
+
lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
11638
|
+
packageName: smithy_client_1.expectString,
|
|
11639
|
+
packageVersionArn: smithy_client_1.expectString,
|
|
11640
|
+
status: smithy_client_1.expectString,
|
|
11641
|
+
versionName: smithy_client_1.expectString,
|
|
11042
11642
|
});
|
|
11043
11643
|
Object.assign(contents, doc);
|
|
11044
11644
|
return contents;
|
|
11045
11645
|
};
|
|
11046
|
-
exports.
|
|
11047
|
-
const
|
|
11646
|
+
exports.de_GetPackageVersionCommand = de_GetPackageVersionCommand;
|
|
11647
|
+
const de_GetPackageVersionCommandError = async (output, context) => {
|
|
11048
11648
|
const parsedOutput = {
|
|
11049
11649
|
...output,
|
|
11050
11650
|
body: await parseErrorBody(output.body, context),
|
|
11051
11651
|
};
|
|
11052
11652
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11053
11653
|
switch (errorCode) {
|
|
11054
|
-
case "
|
|
11055
|
-
case "com.amazonaws.iot#
|
|
11056
|
-
throw await
|
|
11057
|
-
case "InvalidRequestException":
|
|
11058
|
-
case "com.amazonaws.iot#InvalidRequestException":
|
|
11059
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11654
|
+
case "InternalServerException":
|
|
11655
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
11656
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
11060
11657
|
case "ResourceNotFoundException":
|
|
11061
11658
|
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
11062
11659
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
11063
|
-
case "ServiceUnavailableException":
|
|
11064
|
-
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11065
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11066
11660
|
case "ThrottlingException":
|
|
11067
11661
|
case "com.amazonaws.iot#ThrottlingException":
|
|
11068
11662
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11069
|
-
case "
|
|
11070
|
-
case "com.amazonaws.iot#
|
|
11071
|
-
throw await
|
|
11663
|
+
case "ValidationException":
|
|
11664
|
+
case "com.amazonaws.iot#ValidationException":
|
|
11665
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
11072
11666
|
default:
|
|
11073
11667
|
const parsedBody = parsedOutput.body;
|
|
11074
11668
|
return throwDefaultError({
|
|
@@ -12715,6 +13309,88 @@ const de_ListOutgoingCertificatesCommandError = async (output, context) => {
|
|
|
12715
13309
|
});
|
|
12716
13310
|
}
|
|
12717
13311
|
};
|
|
13312
|
+
const de_ListPackagesCommand = async (output, context) => {
|
|
13313
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13314
|
+
return de_ListPackagesCommandError(output, context);
|
|
13315
|
+
}
|
|
13316
|
+
const contents = (0, smithy_client_1.map)({
|
|
13317
|
+
$metadata: deserializeMetadata(output),
|
|
13318
|
+
});
|
|
13319
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
13320
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
13321
|
+
nextToken: smithy_client_1.expectString,
|
|
13322
|
+
packageSummaries: (_) => de_PackageSummaryList(_, context),
|
|
13323
|
+
});
|
|
13324
|
+
Object.assign(contents, doc);
|
|
13325
|
+
return contents;
|
|
13326
|
+
};
|
|
13327
|
+
exports.de_ListPackagesCommand = de_ListPackagesCommand;
|
|
13328
|
+
const de_ListPackagesCommandError = async (output, context) => {
|
|
13329
|
+
const parsedOutput = {
|
|
13330
|
+
...output,
|
|
13331
|
+
body: await parseErrorBody(output.body, context),
|
|
13332
|
+
};
|
|
13333
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13334
|
+
switch (errorCode) {
|
|
13335
|
+
case "InternalServerException":
|
|
13336
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
13337
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
13338
|
+
case "ThrottlingException":
|
|
13339
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
13340
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
13341
|
+
case "ValidationException":
|
|
13342
|
+
case "com.amazonaws.iot#ValidationException":
|
|
13343
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
13344
|
+
default:
|
|
13345
|
+
const parsedBody = parsedOutput.body;
|
|
13346
|
+
return throwDefaultError({
|
|
13347
|
+
output,
|
|
13348
|
+
parsedBody,
|
|
13349
|
+
errorCode,
|
|
13350
|
+
});
|
|
13351
|
+
}
|
|
13352
|
+
};
|
|
13353
|
+
const de_ListPackageVersionsCommand = async (output, context) => {
|
|
13354
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13355
|
+
return de_ListPackageVersionsCommandError(output, context);
|
|
13356
|
+
}
|
|
13357
|
+
const contents = (0, smithy_client_1.map)({
|
|
13358
|
+
$metadata: deserializeMetadata(output),
|
|
13359
|
+
});
|
|
13360
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
13361
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
13362
|
+
nextToken: smithy_client_1.expectString,
|
|
13363
|
+
packageVersionSummaries: (_) => de_PackageVersionSummaryList(_, context),
|
|
13364
|
+
});
|
|
13365
|
+
Object.assign(contents, doc);
|
|
13366
|
+
return contents;
|
|
13367
|
+
};
|
|
13368
|
+
exports.de_ListPackageVersionsCommand = de_ListPackageVersionsCommand;
|
|
13369
|
+
const de_ListPackageVersionsCommandError = async (output, context) => {
|
|
13370
|
+
const parsedOutput = {
|
|
13371
|
+
...output,
|
|
13372
|
+
body: await parseErrorBody(output.body, context),
|
|
13373
|
+
};
|
|
13374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13375
|
+
switch (errorCode) {
|
|
13376
|
+
case "InternalServerException":
|
|
13377
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
13378
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
13379
|
+
case "ThrottlingException":
|
|
13380
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
13381
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
13382
|
+
case "ValidationException":
|
|
13383
|
+
case "com.amazonaws.iot#ValidationException":
|
|
13384
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
13385
|
+
default:
|
|
13386
|
+
const parsedBody = parsedOutput.body;
|
|
13387
|
+
return throwDefaultError({
|
|
13388
|
+
output,
|
|
13389
|
+
parsedBody,
|
|
13390
|
+
errorCode,
|
|
13391
|
+
});
|
|
13392
|
+
}
|
|
13393
|
+
};
|
|
12718
13394
|
const de_ListPoliciesCommand = async (output, context) => {
|
|
12719
13395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12720
13396
|
return de_ListPoliciesCommandError(output, context);
|
|
@@ -15892,6 +16568,120 @@ const de_UpdateMitigationActionCommandError = async (output, context) => {
|
|
|
15892
16568
|
});
|
|
15893
16569
|
}
|
|
15894
16570
|
};
|
|
16571
|
+
const de_UpdatePackageCommand = async (output, context) => {
|
|
16572
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16573
|
+
return de_UpdatePackageCommandError(output, context);
|
|
16574
|
+
}
|
|
16575
|
+
const contents = (0, smithy_client_1.map)({
|
|
16576
|
+
$metadata: deserializeMetadata(output),
|
|
16577
|
+
});
|
|
16578
|
+
await collectBody(output.body, context);
|
|
16579
|
+
return contents;
|
|
16580
|
+
};
|
|
16581
|
+
exports.de_UpdatePackageCommand = de_UpdatePackageCommand;
|
|
16582
|
+
const de_UpdatePackageCommandError = async (output, context) => {
|
|
16583
|
+
const parsedOutput = {
|
|
16584
|
+
...output,
|
|
16585
|
+
body: await parseErrorBody(output.body, context),
|
|
16586
|
+
};
|
|
16587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16588
|
+
switch (errorCode) {
|
|
16589
|
+
case "InternalServerException":
|
|
16590
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
16591
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
16592
|
+
case "ResourceNotFoundException":
|
|
16593
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
16594
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
16595
|
+
case "ThrottlingException":
|
|
16596
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
16597
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
16598
|
+
case "ValidationException":
|
|
16599
|
+
case "com.amazonaws.iot#ValidationException":
|
|
16600
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
16601
|
+
default:
|
|
16602
|
+
const parsedBody = parsedOutput.body;
|
|
16603
|
+
return throwDefaultError({
|
|
16604
|
+
output,
|
|
16605
|
+
parsedBody,
|
|
16606
|
+
errorCode,
|
|
16607
|
+
});
|
|
16608
|
+
}
|
|
16609
|
+
};
|
|
16610
|
+
const de_UpdatePackageConfigurationCommand = async (output, context) => {
|
|
16611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16612
|
+
return de_UpdatePackageConfigurationCommandError(output, context);
|
|
16613
|
+
}
|
|
16614
|
+
const contents = (0, smithy_client_1.map)({
|
|
16615
|
+
$metadata: deserializeMetadata(output),
|
|
16616
|
+
});
|
|
16617
|
+
await collectBody(output.body, context);
|
|
16618
|
+
return contents;
|
|
16619
|
+
};
|
|
16620
|
+
exports.de_UpdatePackageConfigurationCommand = de_UpdatePackageConfigurationCommand;
|
|
16621
|
+
const de_UpdatePackageConfigurationCommandError = async (output, context) => {
|
|
16622
|
+
const parsedOutput = {
|
|
16623
|
+
...output,
|
|
16624
|
+
body: await parseErrorBody(output.body, context),
|
|
16625
|
+
};
|
|
16626
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16627
|
+
switch (errorCode) {
|
|
16628
|
+
case "InternalServerException":
|
|
16629
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
16630
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
16631
|
+
case "ThrottlingException":
|
|
16632
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
16633
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
16634
|
+
case "ValidationException":
|
|
16635
|
+
case "com.amazonaws.iot#ValidationException":
|
|
16636
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
16637
|
+
default:
|
|
16638
|
+
const parsedBody = parsedOutput.body;
|
|
16639
|
+
return throwDefaultError({
|
|
16640
|
+
output,
|
|
16641
|
+
parsedBody,
|
|
16642
|
+
errorCode,
|
|
16643
|
+
});
|
|
16644
|
+
}
|
|
16645
|
+
};
|
|
16646
|
+
const de_UpdatePackageVersionCommand = async (output, context) => {
|
|
16647
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16648
|
+
return de_UpdatePackageVersionCommandError(output, context);
|
|
16649
|
+
}
|
|
16650
|
+
const contents = (0, smithy_client_1.map)({
|
|
16651
|
+
$metadata: deserializeMetadata(output),
|
|
16652
|
+
});
|
|
16653
|
+
await collectBody(output.body, context);
|
|
16654
|
+
return contents;
|
|
16655
|
+
};
|
|
16656
|
+
exports.de_UpdatePackageVersionCommand = de_UpdatePackageVersionCommand;
|
|
16657
|
+
const de_UpdatePackageVersionCommandError = async (output, context) => {
|
|
16658
|
+
const parsedOutput = {
|
|
16659
|
+
...output,
|
|
16660
|
+
body: await parseErrorBody(output.body, context),
|
|
16661
|
+
};
|
|
16662
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16663
|
+
switch (errorCode) {
|
|
16664
|
+
case "InternalServerException":
|
|
16665
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
16666
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
16667
|
+
case "ResourceNotFoundException":
|
|
16668
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
16669
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
16670
|
+
case "ThrottlingException":
|
|
16671
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
16672
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
16673
|
+
case "ValidationException":
|
|
16674
|
+
case "com.amazonaws.iot#ValidationException":
|
|
16675
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
16676
|
+
default:
|
|
16677
|
+
const parsedBody = parsedOutput.body;
|
|
16678
|
+
return throwDefaultError({
|
|
16679
|
+
output,
|
|
16680
|
+
parsedBody,
|
|
16681
|
+
errorCode,
|
|
16682
|
+
});
|
|
16683
|
+
}
|
|
16684
|
+
};
|
|
15895
16685
|
const de_UpdateProvisioningTemplateCommand = async (output, context) => {
|
|
15896
16686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
15897
16687
|
return de_UpdateProvisioningTemplateCommandError(output, context);
|
|
@@ -16395,6 +17185,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
16395
17185
|
const data = parsedOutput.body;
|
|
16396
17186
|
const doc = (0, smithy_client_1.take)(data, {
|
|
16397
17187
|
message: smithy_client_1.expectString,
|
|
17188
|
+
resourceId: smithy_client_1.expectString,
|
|
16398
17189
|
});
|
|
16399
17190
|
Object.assign(contents, doc);
|
|
16400
17191
|
const exception = new models_0_1.ConflictException({
|
|
@@ -16475,7 +17266,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
16475
17266
|
message: smithy_client_1.expectString,
|
|
16476
17267
|
});
|
|
16477
17268
|
Object.assign(contents, doc);
|
|
16478
|
-
const exception = new
|
|
17269
|
+
const exception = new models_0_1.InternalServerException({
|
|
16479
17270
|
$metadata: deserializeMetadata(parsedOutput),
|
|
16480
17271
|
...contents,
|
|
16481
17272
|
});
|
|
@@ -16639,6 +17430,19 @@ const de_ResourceRegistrationFailureExceptionRes = async (parsedOutput, context)
|
|
|
16639
17430
|
});
|
|
16640
17431
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
16641
17432
|
};
|
|
17433
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
17434
|
+
const contents = (0, smithy_client_1.map)({});
|
|
17435
|
+
const data = parsedOutput.body;
|
|
17436
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
17437
|
+
message: smithy_client_1.expectString,
|
|
17438
|
+
});
|
|
17439
|
+
Object.assign(contents, doc);
|
|
17440
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
17441
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
17442
|
+
...contents,
|
|
17443
|
+
});
|
|
17444
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
17445
|
+
};
|
|
16642
17446
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
16643
17447
|
const contents = (0, smithy_client_1.map)({});
|
|
16644
17448
|
const data = parsedOutput.body;
|
|
@@ -16730,6 +17534,19 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
16730
17534
|
});
|
|
16731
17535
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
16732
17536
|
};
|
|
17537
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
17538
|
+
const contents = (0, smithy_client_1.map)({});
|
|
17539
|
+
const data = parsedOutput.body;
|
|
17540
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
17541
|
+
message: smithy_client_1.expectString,
|
|
17542
|
+
});
|
|
17543
|
+
Object.assign(contents, doc);
|
|
17544
|
+
const exception = new models_0_1.ValidationException({
|
|
17545
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
17546
|
+
...contents,
|
|
17547
|
+
});
|
|
17548
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
17549
|
+
};
|
|
16733
17550
|
const de_VersionConflictExceptionRes = async (parsedOutput, context) => {
|
|
16734
17551
|
const contents = (0, smithy_client_1.map)({});
|
|
16735
17552
|
const data = parsedOutput.body;
|
|
@@ -17270,6 +18087,7 @@ const de_Job = (output, context) => {
|
|
|
17270
18087
|
completedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
17271
18088
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
17272
18089
|
description: smithy_client_1.expectString,
|
|
18090
|
+
destinationPackageVersions: smithy_client_1._json,
|
|
17273
18091
|
documentParameters: smithy_client_1._json,
|
|
17274
18092
|
forceCanceled: smithy_client_1.expectBoolean,
|
|
17275
18093
|
isConcurrent: smithy_client_1.expectBoolean,
|
|
@@ -17505,6 +18323,39 @@ const de_OutgoingCertificates = (output, context) => {
|
|
|
17505
18323
|
});
|
|
17506
18324
|
return retVal;
|
|
17507
18325
|
};
|
|
18326
|
+
const de_PackageSummary = (output, context) => {
|
|
18327
|
+
return (0, smithy_client_1.take)(output, {
|
|
18328
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
18329
|
+
defaultVersionName: smithy_client_1.expectString,
|
|
18330
|
+
lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
18331
|
+
packageName: smithy_client_1.expectString,
|
|
18332
|
+
});
|
|
18333
|
+
};
|
|
18334
|
+
const de_PackageSummaryList = (output, context) => {
|
|
18335
|
+
const retVal = (output || [])
|
|
18336
|
+
.filter((e) => e != null)
|
|
18337
|
+
.map((entry) => {
|
|
18338
|
+
return de_PackageSummary(entry, context);
|
|
18339
|
+
});
|
|
18340
|
+
return retVal;
|
|
18341
|
+
};
|
|
18342
|
+
const de_PackageVersionSummary = (output, context) => {
|
|
18343
|
+
return (0, smithy_client_1.take)(output, {
|
|
18344
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
18345
|
+
lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
18346
|
+
packageName: smithy_client_1.expectString,
|
|
18347
|
+
status: smithy_client_1.expectString,
|
|
18348
|
+
versionName: smithy_client_1.expectString,
|
|
18349
|
+
});
|
|
18350
|
+
};
|
|
18351
|
+
const de_PackageVersionSummaryList = (output, context) => {
|
|
18352
|
+
const retVal = (output || [])
|
|
18353
|
+
.filter((e) => e != null)
|
|
18354
|
+
.map((entry) => {
|
|
18355
|
+
return de_PackageVersionSummary(entry, context);
|
|
18356
|
+
});
|
|
18357
|
+
return retVal;
|
|
18358
|
+
};
|
|
17508
18359
|
const de_Percentiles = (output, context) => {
|
|
17509
18360
|
const retVal = (output || [])
|
|
17510
18361
|
.filter((e) => e != null)
|