@softchef/cdk-iot-device-management
Version:
IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.
486 lines • 1.46 MB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
const protocol_http_1 = require("@aws-sdk/protocol-http");
const smithy_client_1 = require("@aws-sdk/smithy-client");
const uuid_1 = require("uuid");
const models_0_1 = require("../models/models_0");
const serializeAws_restJson1AcceptCertificateTransferCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
"/accept-certificate-transfer/{certificateId}";
if (input.certificateId !== undefined) {
const labelValue = input.certificateId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: certificateId.");
}
resolvedPath = resolvedPath.replace("{certificateId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: certificateId.");
}
const query = {
...(input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() }),
};
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
query,
body,
});
};
exports.serializeAws_restJson1AcceptCertificateTransferCommand = serializeAws_restJson1AcceptCertificateTransferCommand;
const serializeAws_restJson1AddThingToBillingGroupCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/addThingToBillingGroup";
let body;
body = JSON.stringify({
...(input.billingGroupArn !== undefined &&
input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn }),
...(input.billingGroupName !== undefined &&
input.billingGroupName !== null && { billingGroupName: input.billingGroupName }),
...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1AddThingToBillingGroupCommand = serializeAws_restJson1AddThingToBillingGroupCommand;
const serializeAws_restJson1AddThingToThingGroupCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/addThingToThingGroup";
let body;
body = JSON.stringify({
...(input.overrideDynamicGroups !== undefined &&
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups }),
...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
...(input.thingGroupArn !== undefined && input.thingGroupArn !== null && { thingGroupArn: input.thingGroupArn }),
...(input.thingGroupName !== undefined &&
input.thingGroupName !== null && { thingGroupName: input.thingGroupName }),
...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1AddThingToThingGroupCommand = serializeAws_restJson1AddThingToThingGroupCommand;
const serializeAws_restJson1AssociateTargetsWithJobCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/targets";
if (input.jobId !== undefined) {
const labelValue = input.jobId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: jobId.");
}
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: jobId.");
}
const query = {
...(input.namespaceId !== undefined && { namespaceId: input.namespaceId }),
};
let body;
body = JSON.stringify({
...(input.comment !== undefined && input.comment !== null && { comment: input.comment }),
...(input.targets !== undefined &&
input.targets !== null && { targets: serializeAws_restJson1JobTargets(input.targets, context) }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "POST",
headers,
path: resolvedPath,
query,
body,
});
};
exports.serializeAws_restJson1AssociateTargetsWithJobCommand = serializeAws_restJson1AssociateTargetsWithJobCommand;
const serializeAws_restJson1AttachPolicyCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/target-policies/{policyName}";
if (input.policyName !== undefined) {
const labelValue = input.policyName;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: policyName.");
}
resolvedPath = resolvedPath.replace("{policyName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: policyName.");
}
let body;
body = JSON.stringify({
...(input.target !== undefined && input.target !== null && { target: input.target }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1AttachPolicyCommand = serializeAws_restJson1AttachPolicyCommand;
const serializeAws_restJson1AttachPrincipalPolicyCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
...(isSerializableHeaderValue(input.principal) && { "x-amzn-iot-principal": input.principal }),
};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/principal-policies/{policyName}";
if (input.policyName !== undefined) {
const labelValue = input.policyName;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: policyName.");
}
resolvedPath = resolvedPath.replace("{policyName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: policyName.");
}
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1AttachPrincipalPolicyCommand = serializeAws_restJson1AttachPrincipalPolicyCommand;
const serializeAws_restJson1AttachSecurityProfileCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
"/security-profiles/{securityProfileName}/targets";
if (input.securityProfileName !== undefined) {
const labelValue = input.securityProfileName;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: securityProfileName.");
}
resolvedPath = resolvedPath.replace("{securityProfileName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: securityProfileName.");
}
const query = {
...(input.securityProfileTargetArn !== undefined && { securityProfileTargetArn: input.securityProfileTargetArn }),
};
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
query,
body,
});
};
exports.serializeAws_restJson1AttachSecurityProfileCommand = serializeAws_restJson1AttachSecurityProfileCommand;
const serializeAws_restJson1AttachThingPrincipalCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
...(isSerializableHeaderValue(input.principal) && { "x-amzn-principal": input.principal }),
};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/principals";
if (input.thingName !== undefined) {
const labelValue = input.thingName;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: thingName.");
}
resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: thingName.");
}
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1AttachThingPrincipalCommand = serializeAws_restJson1AttachThingPrincipalCommand;
const serializeAws_restJson1CancelAuditMitigationActionsTaskCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
"/audit/mitigationactions/tasks/{taskId}/cancel";
if (input.taskId !== undefined) {
const labelValue = input.taskId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: taskId.");
}
resolvedPath = resolvedPath.replace("{taskId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: taskId.");
}
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1CancelAuditMitigationActionsTaskCommand = serializeAws_restJson1CancelAuditMitigationActionsTaskCommand;
const serializeAws_restJson1CancelAuditTaskCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks/{taskId}/cancel";
if (input.taskId !== undefined) {
const labelValue = input.taskId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: taskId.");
}
resolvedPath = resolvedPath.replace("{taskId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: taskId.");
}
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1CancelAuditTaskCommand = serializeAws_restJson1CancelAuditTaskCommand;
const serializeAws_restJson1CancelCertificateTransferCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
"/cancel-certificate-transfer/{certificateId}";
if (input.certificateId !== undefined) {
const labelValue = input.certificateId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: certificateId.");
}
resolvedPath = resolvedPath.replace("{certificateId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: certificateId.");
}
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PATCH",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1CancelCertificateTransferCommand = serializeAws_restJson1CancelCertificateTransferCommand;
const serializeAws_restJson1CancelDetectMitigationActionsTaskCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
"/detect/mitigationactions/tasks/{taskId}/cancel";
if (input.taskId !== undefined) {
const labelValue = input.taskId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: taskId.");
}
resolvedPath = resolvedPath.replace("{taskId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: taskId.");
}
let body;
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1CancelDetectMitigationActionsTaskCommand = serializeAws_restJson1CancelDetectMitigationActionsTaskCommand;
const serializeAws_restJson1CancelJobCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}/cancel";
if (input.jobId !== undefined) {
const labelValue = input.jobId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: jobId.");
}
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: jobId.");
}
const query = {
...(input.force !== undefined && { force: input.force.toString() }),
};
let body;
body = JSON.stringify({
...(input.comment !== undefined && input.comment !== null && { comment: input.comment }),
...(input.reasonCode !== undefined && input.reasonCode !== null && { reasonCode: input.reasonCode }),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
query,
body,
});
};
exports.serializeAws_restJson1CancelJobCommand = serializeAws_restJson1CancelJobCommand;
const serializeAws_restJson1CancelJobExecutionCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/things/{thingName}/jobs/{jobId}/cancel";
if (input.jobId !== undefined) {
const labelValue = input.jobId;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: jobId.");
}
resolvedPath = resolvedPath.replace("{jobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: jobId.");
}
if (input.thingName !== undefined) {
const labelValue = input.thingName;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: thingName.");
}
resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
}
else {
throw new Error("No value provided for input HTTP label: thingName.");
}
const query = {
...(input.force !== undefined && { force: input.force.toString() }),
};
let body;
body = JSON.stringify({
...(input.expectedVersion !== undefined &&
input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
...(input.statusDetails !== undefined &&
input.statusDetails !== null && {
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
}),
});
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "PUT",
headers,
path: resolvedPath,
query,
body,
});
};
exports.serializeAws_restJson1CancelJobExecutionCommand = serializeAws_restJson1CancelJobExecutionCommand;
const serializeAws_restJson1ClearDefaultAuthorizerCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer";
let body;
body = "";
return new protocol_http_1.HttpRequest({
protocol,
hostname,
port,
method: "DELETE",
headers,
path: resolvedPath,
body,
});
};
exports.serializeAws_restJson1ClearDefaultAuthorizerCommand = serializeAws_restJson1ClearDefaultAuthorizerCommand;
const serializeAws_restJson1ConfirmTopicRuleDestinationCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {};
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/confirmdestination/{confirmationToken+}";
if (input.confirmationToken !== undefined) {
const labelValue = input.confirmationToken;
if (labelValue.length <= 0) {
throw new Error("Empty value provided for input HTTP label: confirmationToken.");
}
resolvedPath = resolvedPath.replace("{confirmationToken+}", labelValue
.split("/")
.map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
.join("/"));
}
else {
throw new Error("No value provided for input HTTP label: confirmationToken.");
}
let body;
return new protocol_http_1.