@aws-sdk/client-iot 3.470.0 → 3.474.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist-cjs/IoT.js +10 -0
- package/dist-cjs/commands/CreateCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/DeleteCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/DescribeCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/ListCertificateProvidersCommand.js +51 -0
- package/dist-cjs/commands/UpdateCertificateProviderCommand.js +51 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +5 -2
- package/dist-cjs/protocols/Aws_restJson1.js +370 -10
- package/dist-es/IoT.js +10 -0
- package/dist-es/commands/CreateCertificateProviderCommand.js +47 -0
- package/dist-es/commands/DeleteCertificateProviderCommand.js +47 -0
- package/dist-es/commands/DescribeCertificateProviderCommand.js +47 -0
- package/dist-es/commands/ListCertificateProvidersCommand.js +47 -0
- package/dist-es/commands/UpdateCertificateProviderCommand.js +47 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +349 -0
- package/dist-types/IoT.d.ts +35 -0
- package/dist-types/IoTClient.d.ts +7 -2
- package/dist-types/commands/CreateCertificateProviderCommand.d.ts +118 -0
- package/dist-types/commands/DeleteCertificateProviderCommand.d.ts +98 -0
- package/dist-types/commands/DeleteCustomMetricCommand.d.ts +2 -1
- package/dist-types/commands/DeleteDimensionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDomainConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DescribeCertificateProviderCommand.d.ts +100 -0
- package/dist-types/commands/ListCertificateProvidersCommand.d.ts +97 -0
- package/dist-types/commands/ListOutgoingCertificatesCommand.d.ts +2 -1
- package/dist-types/commands/ListPackageVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListPackagesCommand.d.ts +1 -1
- package/dist-types/commands/ListPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCertificateProviderCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +68 -31
- package/dist-types/models/models_1.d.ts +128 -219
- package/dist-types/models/models_2.d.ts +255 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/IoT.d.ts +85 -0
- package/dist-types/ts3.4/IoTClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteCustomMetricCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/DeleteDimensionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteDomainConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListCertificateProvidersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListOutgoingCertificatesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateCertificateProviderCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +20 -9
- package/dist-types/ts3.4/models/models_1.d.ts +33 -52
- package/dist-types/ts3.4/models/models_2.d.ts +63 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +4 -4
|
@@ -1,15 +1,16 @@
|
|
|
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.
|
|
3
|
+
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_CreateCertificateProviderCommand = 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_DescribeFleetMetricCommand = exports.se_DescribeEventConfigurationsCommand = exports.se_DescribeEndpointCommand = exports.se_DescribeDomainConfigurationCommand = exports.se_DescribeDimensionCommand = exports.se_DescribeDetectMitigationActionsTaskCommand = exports.se_DescribeDefaultAuthorizerCommand = exports.se_DescribeCustomMetricCommand = exports.se_DescribeCertificateProviderCommand = 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_DeleteCertificateProviderCommand = exports.se_DeleteCertificateCommand = exports.se_DeleteCACertificateCommand = exports.se_DeleteBillingGroupCommand = void 0;
|
|
5
|
+
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 = exports.se_DescribeJobExecutionCommand = exports.se_DescribeJobCommand = exports.se_DescribeIndexCommand = void 0;
|
|
6
|
+
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 = exports.se_ListCertificatesByCACommand = exports.se_ListCertificatesCommand = exports.se_ListCertificateProvidersCommand = exports.se_ListCACertificatesCommand = void 0;
|
|
7
|
+
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_UpdateCertificateProviderCommand = 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 = exports.se_RegisterCertificateCommand = exports.se_RegisterCACertificateCommand = exports.se_PutVerificationStateOnViolationCommand = exports.se_ListViolationEventsCommand = void 0;
|
|
8
|
+
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_CreateCertificateProviderCommand = 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 = exports.se_ValidateSecurityProfileBehaviorsCommand = exports.se_UpdateTopicRuleDestinationCommand = exports.se_UpdateThingGroupsForThingCommand = exports.se_UpdateThingGroupCommand = exports.se_UpdateThingCommand = void 0;
|
|
9
|
+
exports.de_DescribeDetectMitigationActionsTaskCommand = exports.de_DescribeDefaultAuthorizerCommand = exports.de_DescribeCustomMetricCommand = exports.de_DescribeCertificateProviderCommand = 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_DeleteCertificateProviderCommand = exports.de_DeleteCertificateCommand = exports.de_DeleteCACertificateCommand = exports.de_DeleteBillingGroupCommand = exports.de_DeleteAuthorizerCommand = exports.de_DeleteAuditSuppressionCommand = exports.de_DeleteAccountAuditConfigurationCommand = exports.de_CreateTopicRuleDestinationCommand = exports.de_CreateTopicRuleCommand = void 0;
|
|
10
|
+
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 = exports.de_DescribeJobExecutionCommand = exports.de_DescribeJobCommand = exports.de_DescribeIndexCommand = exports.de_DescribeFleetMetricCommand = exports.de_DescribeEventConfigurationsCommand = exports.de_DescribeEndpointCommand = exports.de_DescribeDomainConfigurationCommand = exports.de_DescribeDimensionCommand = void 0;
|
|
11
|
+
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 = exports.de_ListCertificatesByCACommand = exports.de_ListCertificatesCommand = exports.de_ListCertificateProvidersCommand = exports.de_ListCACertificatesCommand = exports.de_ListBillingGroupsCommand = exports.de_ListAuthorizersCommand = exports.de_ListAuditTasksCommand = exports.de_ListAuditSuppressionsCommand = exports.de_ListAuditMitigationActionsTasksCommand = void 0;
|
|
12
|
+
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_UpdateCertificateProviderCommand = 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 = 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 = void 0;
|
|
13
|
+
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 = void 0;
|
|
13
14
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
14
15
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
16
|
const uuid_1 = require("uuid");
|
|
@@ -461,6 +462,32 @@ const se_CreateCertificateFromCsrCommand = async (input, context) => {
|
|
|
461
462
|
});
|
|
462
463
|
};
|
|
463
464
|
exports.se_CreateCertificateFromCsrCommand = se_CreateCertificateFromCsrCommand;
|
|
465
|
+
const se_CreateCertificateProviderCommand = async (input, context) => {
|
|
466
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
467
|
+
const headers = {
|
|
468
|
+
"content-type": "application/json",
|
|
469
|
+
};
|
|
470
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
471
|
+
"/certificate-providers/{certificateProviderName}";
|
|
472
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateProviderName", () => input.certificateProviderName, "{certificateProviderName}", false);
|
|
473
|
+
let body;
|
|
474
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
475
|
+
accountDefaultForOperations: (_) => (0, smithy_client_1._json)(_),
|
|
476
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
477
|
+
lambdaFunctionArn: [],
|
|
478
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
479
|
+
}));
|
|
480
|
+
return new protocol_http_1.HttpRequest({
|
|
481
|
+
protocol,
|
|
482
|
+
hostname,
|
|
483
|
+
port,
|
|
484
|
+
method: "POST",
|
|
485
|
+
headers,
|
|
486
|
+
path: resolvedPath,
|
|
487
|
+
body,
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
exports.se_CreateCertificateProviderCommand = se_CreateCertificateProviderCommand;
|
|
464
491
|
const se_CreateCustomMetricCommand = async (input, context) => {
|
|
465
492
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
493
|
const headers = {
|
|
@@ -1266,6 +1293,24 @@ const se_DeleteCertificateCommand = async (input, context) => {
|
|
|
1266
1293
|
});
|
|
1267
1294
|
};
|
|
1268
1295
|
exports.se_DeleteCertificateCommand = se_DeleteCertificateCommand;
|
|
1296
|
+
const se_DeleteCertificateProviderCommand = async (input, context) => {
|
|
1297
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1298
|
+
const headers = {};
|
|
1299
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1300
|
+
"/certificate-providers/{certificateProviderName}";
|
|
1301
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateProviderName", () => input.certificateProviderName, "{certificateProviderName}", false);
|
|
1302
|
+
let body;
|
|
1303
|
+
return new protocol_http_1.HttpRequest({
|
|
1304
|
+
protocol,
|
|
1305
|
+
hostname,
|
|
1306
|
+
port,
|
|
1307
|
+
method: "DELETE",
|
|
1308
|
+
headers,
|
|
1309
|
+
path: resolvedPath,
|
|
1310
|
+
body,
|
|
1311
|
+
});
|
|
1312
|
+
};
|
|
1313
|
+
exports.se_DeleteCertificateProviderCommand = se_DeleteCertificateProviderCommand;
|
|
1269
1314
|
const se_DeleteCustomMetricCommand = async (input, context) => {
|
|
1270
1315
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1271
1316
|
const headers = {};
|
|
@@ -1967,6 +2012,24 @@ const se_DescribeCertificateCommand = async (input, context) => {
|
|
|
1967
2012
|
});
|
|
1968
2013
|
};
|
|
1969
2014
|
exports.se_DescribeCertificateCommand = se_DescribeCertificateCommand;
|
|
2015
|
+
const se_DescribeCertificateProviderCommand = async (input, context) => {
|
|
2016
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2017
|
+
const headers = {};
|
|
2018
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2019
|
+
"/certificate-providers/{certificateProviderName}";
|
|
2020
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateProviderName", () => input.certificateProviderName, "{certificateProviderName}", false);
|
|
2021
|
+
let body;
|
|
2022
|
+
return new protocol_http_1.HttpRequest({
|
|
2023
|
+
protocol,
|
|
2024
|
+
hostname,
|
|
2025
|
+
port,
|
|
2026
|
+
method: "GET",
|
|
2027
|
+
headers,
|
|
2028
|
+
path: resolvedPath,
|
|
2029
|
+
body,
|
|
2030
|
+
});
|
|
2031
|
+
};
|
|
2032
|
+
exports.se_DescribeCertificateProviderCommand = se_DescribeCertificateProviderCommand;
|
|
1970
2033
|
const se_DescribeCustomMetricCommand = async (input, context) => {
|
|
1971
2034
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1972
2035
|
const headers = {};
|
|
@@ -3149,6 +3212,27 @@ const se_ListCACertificatesCommand = async (input, context) => {
|
|
|
3149
3212
|
});
|
|
3150
3213
|
};
|
|
3151
3214
|
exports.se_ListCACertificatesCommand = se_ListCACertificatesCommand;
|
|
3215
|
+
const se_ListCertificateProvidersCommand = async (input, context) => {
|
|
3216
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3217
|
+
const headers = {};
|
|
3218
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/certificate-providers";
|
|
3219
|
+
const query = (0, smithy_client_1.map)({
|
|
3220
|
+
nextToken: [, input.nextToken],
|
|
3221
|
+
isAscendingOrder: [() => input.ascendingOrder !== void 0, () => input.ascendingOrder.toString()],
|
|
3222
|
+
});
|
|
3223
|
+
let body;
|
|
3224
|
+
return new protocol_http_1.HttpRequest({
|
|
3225
|
+
protocol,
|
|
3226
|
+
hostname,
|
|
3227
|
+
port,
|
|
3228
|
+
method: "GET",
|
|
3229
|
+
headers,
|
|
3230
|
+
path: resolvedPath,
|
|
3231
|
+
query,
|
|
3232
|
+
body,
|
|
3233
|
+
});
|
|
3234
|
+
};
|
|
3235
|
+
exports.se_ListCertificateProvidersCommand = se_ListCertificateProvidersCommand;
|
|
3152
3236
|
const se_ListCertificatesCommand = async (input, context) => {
|
|
3153
3237
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3154
3238
|
const headers = {};
|
|
@@ -5025,6 +5109,30 @@ const se_UpdateCertificateCommand = async (input, context) => {
|
|
|
5025
5109
|
});
|
|
5026
5110
|
};
|
|
5027
5111
|
exports.se_UpdateCertificateCommand = se_UpdateCertificateCommand;
|
|
5112
|
+
const se_UpdateCertificateProviderCommand = async (input, context) => {
|
|
5113
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5114
|
+
const headers = {
|
|
5115
|
+
"content-type": "application/json",
|
|
5116
|
+
};
|
|
5117
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
5118
|
+
"/certificate-providers/{certificateProviderName}";
|
|
5119
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "certificateProviderName", () => input.certificateProviderName, "{certificateProviderName}", false);
|
|
5120
|
+
let body;
|
|
5121
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
5122
|
+
accountDefaultForOperations: (_) => (0, smithy_client_1._json)(_),
|
|
5123
|
+
lambdaFunctionArn: [],
|
|
5124
|
+
}));
|
|
5125
|
+
return new protocol_http_1.HttpRequest({
|
|
5126
|
+
protocol,
|
|
5127
|
+
hostname,
|
|
5128
|
+
port,
|
|
5129
|
+
method: "PUT",
|
|
5130
|
+
headers,
|
|
5131
|
+
path: resolvedPath,
|
|
5132
|
+
body,
|
|
5133
|
+
});
|
|
5134
|
+
};
|
|
5135
|
+
exports.se_UpdateCertificateProviderCommand = se_UpdateCertificateProviderCommand;
|
|
5028
5136
|
const se_UpdateCustomMetricCommand = async (input, context) => {
|
|
5029
5137
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5030
5138
|
const headers = {
|
|
@@ -6474,6 +6582,59 @@ const de_CreateCertificateFromCsrCommandError = async (output, context) => {
|
|
|
6474
6582
|
});
|
|
6475
6583
|
}
|
|
6476
6584
|
};
|
|
6585
|
+
const de_CreateCertificateProviderCommand = async (output, context) => {
|
|
6586
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6587
|
+
return de_CreateCertificateProviderCommandError(output, context);
|
|
6588
|
+
}
|
|
6589
|
+
const contents = (0, smithy_client_1.map)({
|
|
6590
|
+
$metadata: deserializeMetadata(output),
|
|
6591
|
+
});
|
|
6592
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
6593
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
6594
|
+
certificateProviderArn: smithy_client_1.expectString,
|
|
6595
|
+
certificateProviderName: smithy_client_1.expectString,
|
|
6596
|
+
});
|
|
6597
|
+
Object.assign(contents, doc);
|
|
6598
|
+
return contents;
|
|
6599
|
+
};
|
|
6600
|
+
exports.de_CreateCertificateProviderCommand = de_CreateCertificateProviderCommand;
|
|
6601
|
+
const de_CreateCertificateProviderCommandError = async (output, context) => {
|
|
6602
|
+
const parsedOutput = {
|
|
6603
|
+
...output,
|
|
6604
|
+
body: await parseErrorBody(output.body, context),
|
|
6605
|
+
};
|
|
6606
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6607
|
+
switch (errorCode) {
|
|
6608
|
+
case "InternalFailureException":
|
|
6609
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
6610
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
6611
|
+
case "InvalidRequestException":
|
|
6612
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
6613
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
6614
|
+
case "LimitExceededException":
|
|
6615
|
+
case "com.amazonaws.iot#LimitExceededException":
|
|
6616
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
6617
|
+
case "ResourceAlreadyExistsException":
|
|
6618
|
+
case "com.amazonaws.iot#ResourceAlreadyExistsException":
|
|
6619
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
6620
|
+
case "ServiceUnavailableException":
|
|
6621
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
6622
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
6623
|
+
case "ThrottlingException":
|
|
6624
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
6625
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6626
|
+
case "UnauthorizedException":
|
|
6627
|
+
case "com.amazonaws.iot#UnauthorizedException":
|
|
6628
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
6629
|
+
default:
|
|
6630
|
+
const parsedBody = parsedOutput.body;
|
|
6631
|
+
return throwDefaultError({
|
|
6632
|
+
output,
|
|
6633
|
+
parsedBody,
|
|
6634
|
+
errorCode,
|
|
6635
|
+
});
|
|
6636
|
+
}
|
|
6637
|
+
};
|
|
6477
6638
|
const de_CreateCustomMetricCommand = async (output, context) => {
|
|
6478
6639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6479
6640
|
return de_CreateCustomMetricCommandError(output, context);
|
|
@@ -8076,6 +8237,54 @@ const de_DeleteCertificateCommandError = async (output, context) => {
|
|
|
8076
8237
|
});
|
|
8077
8238
|
}
|
|
8078
8239
|
};
|
|
8240
|
+
const de_DeleteCertificateProviderCommand = async (output, context) => {
|
|
8241
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8242
|
+
return de_DeleteCertificateProviderCommandError(output, context);
|
|
8243
|
+
}
|
|
8244
|
+
const contents = (0, smithy_client_1.map)({
|
|
8245
|
+
$metadata: deserializeMetadata(output),
|
|
8246
|
+
});
|
|
8247
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
8248
|
+
return contents;
|
|
8249
|
+
};
|
|
8250
|
+
exports.de_DeleteCertificateProviderCommand = de_DeleteCertificateProviderCommand;
|
|
8251
|
+
const de_DeleteCertificateProviderCommandError = async (output, context) => {
|
|
8252
|
+
const parsedOutput = {
|
|
8253
|
+
...output,
|
|
8254
|
+
body: await parseErrorBody(output.body, context),
|
|
8255
|
+
};
|
|
8256
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8257
|
+
switch (errorCode) {
|
|
8258
|
+
case "DeleteConflictException":
|
|
8259
|
+
case "com.amazonaws.iot#DeleteConflictException":
|
|
8260
|
+
throw await de_DeleteConflictExceptionRes(parsedOutput, context);
|
|
8261
|
+
case "InternalFailureException":
|
|
8262
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
8263
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
8264
|
+
case "InvalidRequestException":
|
|
8265
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
8266
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
8267
|
+
case "ResourceNotFoundException":
|
|
8268
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
8269
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
8270
|
+
case "ServiceUnavailableException":
|
|
8271
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
8272
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
8273
|
+
case "ThrottlingException":
|
|
8274
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
8275
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
8276
|
+
case "UnauthorizedException":
|
|
8277
|
+
case "com.amazonaws.iot#UnauthorizedException":
|
|
8278
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
8279
|
+
default:
|
|
8280
|
+
const parsedBody = parsedOutput.body;
|
|
8281
|
+
return throwDefaultError({
|
|
8282
|
+
output,
|
|
8283
|
+
parsedBody,
|
|
8284
|
+
errorCode,
|
|
8285
|
+
});
|
|
8286
|
+
}
|
|
8287
|
+
};
|
|
8079
8288
|
const de_DeleteCustomMetricCommand = async (output, context) => {
|
|
8080
8289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8081
8290
|
return de_DeleteCustomMetricCommandError(output, context);
|
|
@@ -9686,6 +9895,60 @@ const de_DescribeCertificateCommandError = async (output, context) => {
|
|
|
9686
9895
|
});
|
|
9687
9896
|
}
|
|
9688
9897
|
};
|
|
9898
|
+
const de_DescribeCertificateProviderCommand = async (output, context) => {
|
|
9899
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9900
|
+
return de_DescribeCertificateProviderCommandError(output, context);
|
|
9901
|
+
}
|
|
9902
|
+
const contents = (0, smithy_client_1.map)({
|
|
9903
|
+
$metadata: deserializeMetadata(output),
|
|
9904
|
+
});
|
|
9905
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
9906
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
9907
|
+
accountDefaultForOperations: smithy_client_1._json,
|
|
9908
|
+
certificateProviderArn: smithy_client_1.expectString,
|
|
9909
|
+
certificateProviderName: smithy_client_1.expectString,
|
|
9910
|
+
creationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
9911
|
+
lambdaFunctionArn: smithy_client_1.expectString,
|
|
9912
|
+
lastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
9913
|
+
});
|
|
9914
|
+
Object.assign(contents, doc);
|
|
9915
|
+
return contents;
|
|
9916
|
+
};
|
|
9917
|
+
exports.de_DescribeCertificateProviderCommand = de_DescribeCertificateProviderCommand;
|
|
9918
|
+
const de_DescribeCertificateProviderCommandError = async (output, context) => {
|
|
9919
|
+
const parsedOutput = {
|
|
9920
|
+
...output,
|
|
9921
|
+
body: await parseErrorBody(output.body, context),
|
|
9922
|
+
};
|
|
9923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
9924
|
+
switch (errorCode) {
|
|
9925
|
+
case "InternalFailureException":
|
|
9926
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
9927
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
9928
|
+
case "InvalidRequestException":
|
|
9929
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
9930
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
9931
|
+
case "ResourceNotFoundException":
|
|
9932
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
9933
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
9934
|
+
case "ServiceUnavailableException":
|
|
9935
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
9936
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
9937
|
+
case "ThrottlingException":
|
|
9938
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
9939
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
9940
|
+
case "UnauthorizedException":
|
|
9941
|
+
case "com.amazonaws.iot#UnauthorizedException":
|
|
9942
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
9943
|
+
default:
|
|
9944
|
+
const parsedBody = parsedOutput.body;
|
|
9945
|
+
return throwDefaultError({
|
|
9946
|
+
output,
|
|
9947
|
+
parsedBody,
|
|
9948
|
+
errorCode,
|
|
9949
|
+
});
|
|
9950
|
+
}
|
|
9951
|
+
};
|
|
9689
9952
|
const de_DescribeCustomMetricCommand = async (output, context) => {
|
|
9690
9953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
9691
9954
|
return de_DescribeCustomMetricCommandError(output, context);
|
|
@@ -12518,6 +12781,53 @@ const de_ListCACertificatesCommandError = async (output, context) => {
|
|
|
12518
12781
|
});
|
|
12519
12782
|
}
|
|
12520
12783
|
};
|
|
12784
|
+
const de_ListCertificateProvidersCommand = async (output, context) => {
|
|
12785
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12786
|
+
return de_ListCertificateProvidersCommandError(output, context);
|
|
12787
|
+
}
|
|
12788
|
+
const contents = (0, smithy_client_1.map)({
|
|
12789
|
+
$metadata: deserializeMetadata(output),
|
|
12790
|
+
});
|
|
12791
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
12792
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
12793
|
+
certificateProviders: smithy_client_1._json,
|
|
12794
|
+
nextToken: smithy_client_1.expectString,
|
|
12795
|
+
});
|
|
12796
|
+
Object.assign(contents, doc);
|
|
12797
|
+
return contents;
|
|
12798
|
+
};
|
|
12799
|
+
exports.de_ListCertificateProvidersCommand = de_ListCertificateProvidersCommand;
|
|
12800
|
+
const de_ListCertificateProvidersCommandError = async (output, context) => {
|
|
12801
|
+
const parsedOutput = {
|
|
12802
|
+
...output,
|
|
12803
|
+
body: await parseErrorBody(output.body, context),
|
|
12804
|
+
};
|
|
12805
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12806
|
+
switch (errorCode) {
|
|
12807
|
+
case "InternalFailureException":
|
|
12808
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
12809
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
12810
|
+
case "InvalidRequestException":
|
|
12811
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
12812
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
12813
|
+
case "ServiceUnavailableException":
|
|
12814
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
12815
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
12816
|
+
case "ThrottlingException":
|
|
12817
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
12818
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12819
|
+
case "UnauthorizedException":
|
|
12820
|
+
case "com.amazonaws.iot#UnauthorizedException":
|
|
12821
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
12822
|
+
default:
|
|
12823
|
+
const parsedBody = parsedOutput.body;
|
|
12824
|
+
return throwDefaultError({
|
|
12825
|
+
output,
|
|
12826
|
+
parsedBody,
|
|
12827
|
+
errorCode,
|
|
12828
|
+
});
|
|
12829
|
+
}
|
|
12830
|
+
};
|
|
12521
12831
|
const de_ListCertificatesCommand = async (output, context) => {
|
|
12522
12832
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12523
12833
|
return de_ListCertificatesCommandError(output, context);
|
|
@@ -16156,6 +16466,56 @@ const de_UpdateCertificateCommandError = async (output, context) => {
|
|
|
16156
16466
|
});
|
|
16157
16467
|
}
|
|
16158
16468
|
};
|
|
16469
|
+
const de_UpdateCertificateProviderCommand = async (output, context) => {
|
|
16470
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16471
|
+
return de_UpdateCertificateProviderCommandError(output, context);
|
|
16472
|
+
}
|
|
16473
|
+
const contents = (0, smithy_client_1.map)({
|
|
16474
|
+
$metadata: deserializeMetadata(output),
|
|
16475
|
+
});
|
|
16476
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
16477
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
16478
|
+
certificateProviderArn: smithy_client_1.expectString,
|
|
16479
|
+
certificateProviderName: smithy_client_1.expectString,
|
|
16480
|
+
});
|
|
16481
|
+
Object.assign(contents, doc);
|
|
16482
|
+
return contents;
|
|
16483
|
+
};
|
|
16484
|
+
exports.de_UpdateCertificateProviderCommand = de_UpdateCertificateProviderCommand;
|
|
16485
|
+
const de_UpdateCertificateProviderCommandError = async (output, context) => {
|
|
16486
|
+
const parsedOutput = {
|
|
16487
|
+
...output,
|
|
16488
|
+
body: await parseErrorBody(output.body, context),
|
|
16489
|
+
};
|
|
16490
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16491
|
+
switch (errorCode) {
|
|
16492
|
+
case "InternalFailureException":
|
|
16493
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
16494
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
16495
|
+
case "InvalidRequestException":
|
|
16496
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
16497
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
16498
|
+
case "ResourceNotFoundException":
|
|
16499
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
16500
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
16501
|
+
case "ServiceUnavailableException":
|
|
16502
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
16503
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
16504
|
+
case "ThrottlingException":
|
|
16505
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
16506
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
16507
|
+
case "UnauthorizedException":
|
|
16508
|
+
case "com.amazonaws.iot#UnauthorizedException":
|
|
16509
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
16510
|
+
default:
|
|
16511
|
+
const parsedBody = parsedOutput.body;
|
|
16512
|
+
return throwDefaultError({
|
|
16513
|
+
output,
|
|
16514
|
+
parsedBody,
|
|
16515
|
+
errorCode,
|
|
16516
|
+
});
|
|
16517
|
+
}
|
|
16518
|
+
};
|
|
16159
16519
|
const de_UpdateCustomMetricCommand = async (output, context) => {
|
|
16160
16520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16161
16521
|
return de_UpdateCustomMetricCommandError(output, context);
|
package/dist-es/IoT.js
CHANGED
|
@@ -19,6 +19,7 @@ import { CreateAuditSuppressionCommand, } from "./commands/CreateAuditSuppressio
|
|
|
19
19
|
import { CreateAuthorizerCommand, } from "./commands/CreateAuthorizerCommand";
|
|
20
20
|
import { CreateBillingGroupCommand, } from "./commands/CreateBillingGroupCommand";
|
|
21
21
|
import { CreateCertificateFromCsrCommand, } from "./commands/CreateCertificateFromCsrCommand";
|
|
22
|
+
import { CreateCertificateProviderCommand, } from "./commands/CreateCertificateProviderCommand";
|
|
22
23
|
import { CreateCustomMetricCommand, } from "./commands/CreateCustomMetricCommand";
|
|
23
24
|
import { CreateDimensionCommand, } from "./commands/CreateDimensionCommand";
|
|
24
25
|
import { CreateDomainConfigurationCommand, } from "./commands/CreateDomainConfigurationCommand";
|
|
@@ -51,6 +52,7 @@ import { DeleteAuthorizerCommand, } from "./commands/DeleteAuthorizerCommand";
|
|
|
51
52
|
import { DeleteBillingGroupCommand, } from "./commands/DeleteBillingGroupCommand";
|
|
52
53
|
import { DeleteCACertificateCommand, } from "./commands/DeleteCACertificateCommand";
|
|
53
54
|
import { DeleteCertificateCommand, } from "./commands/DeleteCertificateCommand";
|
|
55
|
+
import { DeleteCertificateProviderCommand, } from "./commands/DeleteCertificateProviderCommand";
|
|
54
56
|
import { DeleteCustomMetricCommand, } from "./commands/DeleteCustomMetricCommand";
|
|
55
57
|
import { DeleteDimensionCommand, } from "./commands/DeleteDimensionCommand";
|
|
56
58
|
import { DeleteDomainConfigurationCommand, } from "./commands/DeleteDomainConfigurationCommand";
|
|
@@ -88,6 +90,7 @@ import { DescribeAuthorizerCommand, } from "./commands/DescribeAuthorizerCommand
|
|
|
88
90
|
import { DescribeBillingGroupCommand, } from "./commands/DescribeBillingGroupCommand";
|
|
89
91
|
import { DescribeCACertificateCommand, } from "./commands/DescribeCACertificateCommand";
|
|
90
92
|
import { DescribeCertificateCommand, } from "./commands/DescribeCertificateCommand";
|
|
93
|
+
import { DescribeCertificateProviderCommand, } from "./commands/DescribeCertificateProviderCommand";
|
|
91
94
|
import { DescribeCustomMetricCommand, } from "./commands/DescribeCustomMetricCommand";
|
|
92
95
|
import { DescribeDefaultAuthorizerCommand, } from "./commands/DescribeDefaultAuthorizerCommand";
|
|
93
96
|
import { DescribeDetectMitigationActionsTaskCommand, } from "./commands/DescribeDetectMitigationActionsTaskCommand";
|
|
@@ -147,6 +150,7 @@ import { ListAuditTasksCommand, } from "./commands/ListAuditTasksCommand";
|
|
|
147
150
|
import { ListAuthorizersCommand, } from "./commands/ListAuthorizersCommand";
|
|
148
151
|
import { ListBillingGroupsCommand, } from "./commands/ListBillingGroupsCommand";
|
|
149
152
|
import { ListCACertificatesCommand, } from "./commands/ListCACertificatesCommand";
|
|
153
|
+
import { ListCertificateProvidersCommand, } from "./commands/ListCertificateProvidersCommand";
|
|
150
154
|
import { ListCertificatesByCACommand, } from "./commands/ListCertificatesByCACommand";
|
|
151
155
|
import { ListCertificatesCommand, } from "./commands/ListCertificatesCommand";
|
|
152
156
|
import { ListCustomMetricsCommand, } from "./commands/ListCustomMetricsCommand";
|
|
@@ -227,6 +231,7 @@ import { UpdateAuthorizerCommand, } from "./commands/UpdateAuthorizerCommand";
|
|
|
227
231
|
import { UpdateBillingGroupCommand, } from "./commands/UpdateBillingGroupCommand";
|
|
228
232
|
import { UpdateCACertificateCommand, } from "./commands/UpdateCACertificateCommand";
|
|
229
233
|
import { UpdateCertificateCommand, } from "./commands/UpdateCertificateCommand";
|
|
234
|
+
import { UpdateCertificateProviderCommand, } from "./commands/UpdateCertificateProviderCommand";
|
|
230
235
|
import { UpdateCustomMetricCommand, } from "./commands/UpdateCustomMetricCommand";
|
|
231
236
|
import { UpdateDimensionCommand, } from "./commands/UpdateDimensionCommand";
|
|
232
237
|
import { UpdateDomainConfigurationCommand, } from "./commands/UpdateDomainConfigurationCommand";
|
|
@@ -271,6 +276,7 @@ const commands = {
|
|
|
271
276
|
CreateAuthorizerCommand,
|
|
272
277
|
CreateBillingGroupCommand,
|
|
273
278
|
CreateCertificateFromCsrCommand,
|
|
279
|
+
CreateCertificateProviderCommand,
|
|
274
280
|
CreateCustomMetricCommand,
|
|
275
281
|
CreateDimensionCommand,
|
|
276
282
|
CreateDomainConfigurationCommand,
|
|
@@ -303,6 +309,7 @@ const commands = {
|
|
|
303
309
|
DeleteBillingGroupCommand,
|
|
304
310
|
DeleteCACertificateCommand,
|
|
305
311
|
DeleteCertificateCommand,
|
|
312
|
+
DeleteCertificateProviderCommand,
|
|
306
313
|
DeleteCustomMetricCommand,
|
|
307
314
|
DeleteDimensionCommand,
|
|
308
315
|
DeleteDomainConfigurationCommand,
|
|
@@ -340,6 +347,7 @@ const commands = {
|
|
|
340
347
|
DescribeBillingGroupCommand,
|
|
341
348
|
DescribeCACertificateCommand,
|
|
342
349
|
DescribeCertificateCommand,
|
|
350
|
+
DescribeCertificateProviderCommand,
|
|
343
351
|
DescribeCustomMetricCommand,
|
|
344
352
|
DescribeDefaultAuthorizerCommand,
|
|
345
353
|
DescribeDetectMitigationActionsTaskCommand,
|
|
@@ -399,6 +407,7 @@ const commands = {
|
|
|
399
407
|
ListAuthorizersCommand,
|
|
400
408
|
ListBillingGroupsCommand,
|
|
401
409
|
ListCACertificatesCommand,
|
|
410
|
+
ListCertificateProvidersCommand,
|
|
402
411
|
ListCertificatesCommand,
|
|
403
412
|
ListCertificatesByCACommand,
|
|
404
413
|
ListCustomMetricsCommand,
|
|
@@ -479,6 +488,7 @@ const commands = {
|
|
|
479
488
|
UpdateBillingGroupCommand,
|
|
480
489
|
UpdateCACertificateCommand,
|
|
481
490
|
UpdateCertificateCommand,
|
|
491
|
+
UpdateCertificateProviderCommand,
|
|
482
492
|
UpdateCustomMetricCommand,
|
|
483
493
|
UpdateDimensionCommand,
|
|
484
494
|
UpdateDomainConfigurationCommand,
|