@aws-sdk/client-iot 3.204.0 → 3.209.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/dist-cjs/IoT.js +15 -0
- package/dist-cjs/commands/DeleteRegistrationCodeCommand.js +1 -2
- package/dist-cjs/commands/ListRelatedResourcesForAuditFindingCommand.js +46 -0
- package/dist-cjs/commands/ListTargetsForPolicyCommand.js +2 -1
- package/dist-cjs/commands/ListTargetsForSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +10 -9
- package/dist-cjs/models/models_1.js +18 -18
- package/dist-cjs/models/models_2.js +15 -3
- package/dist-cjs/protocols/Aws_restJson1.js +99 -7
- package/dist-cjs/runtimeConfig.shared.js +2 -1
- package/dist-es/IoT.js +15 -0
- package/dist-es/commands/DeleteRegistrationCodeCommand.js +1 -2
- package/dist-es/commands/ListRelatedResourcesForAuditFindingCommand.js +42 -0
- package/dist-es/commands/ListTargetsForPolicyCommand.js +2 -1
- package/dist-es/commands/ListTargetsForSecurityProfileCommand.js +1 -1
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +4 -3
- package/dist-es/models/models_1.js +9 -9
- package/dist-es/models/models_2.js +9 -0
- package/dist-es/protocols/Aws_restJson1.js +90 -0
- package/dist-es/runtimeConfig.shared.js +2 -1
- package/dist-types/IoT.d.ts +48 -5
- package/dist-types/IoTClient.d.ts +3 -2
- package/dist-types/commands/DeleteRegistrationCodeCommand.d.ts +1 -2
- package/dist-types/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +73 -0
- package/dist-types/commands/ListTargetsForPolicyCommand.d.ts +2 -1
- package/dist-types/commands/ListTargetsForSecurityProfileCommand.d.ts +1 -1
- package/dist-types/commands/ListThingsCommand.d.ts +5 -5
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +30 -9
- package/dist-types/models/models_1.d.ts +44 -48
- package/dist-types/models/models_2.d.ts +48 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.shared.d.ts +2 -3
- package/dist-types/ts3.4/IoT.d.ts +23 -0
- package/dist-types/ts3.4/IoTClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DeleteRegistrationCodeCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTargetsForPolicyCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListTargetsForSecurityProfileCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -4
- package/dist-types/ts3.4/models/models_1.d.ts +20 -22
- package/dist-types/ts3.4/models/models_2.d.ts +23 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -3
- package/package.json +33 -35
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.serializeAws_restJson1DeleteCertificateCommand = exports.serializeAws_restJson1DeleteCACertificateCommand = exports.serializeAws_restJson1DeleteBillingGroupCommand = exports.serializeAws_restJson1DeleteAuthorizerCommand = exports.serializeAws_restJson1DeleteAuditSuppressionCommand = exports.serializeAws_restJson1DeleteAccountAuditConfigurationCommand = exports.serializeAws_restJson1CreateTopicRuleDestinationCommand = exports.serializeAws_restJson1CreateTopicRuleCommand = exports.serializeAws_restJson1CreateThingTypeCommand = exports.serializeAws_restJson1CreateThingGroupCommand = exports.serializeAws_restJson1CreateThingCommand = exports.serializeAws_restJson1CreateStreamCommand = exports.serializeAws_restJson1CreateSecurityProfileCommand = exports.serializeAws_restJson1CreateScheduledAuditCommand = exports.serializeAws_restJson1CreateRoleAliasCommand = exports.serializeAws_restJson1CreateProvisioningTemplateVersionCommand = exports.serializeAws_restJson1CreateProvisioningTemplateCommand = exports.serializeAws_restJson1CreateProvisioningClaimCommand = exports.serializeAws_restJson1CreatePolicyVersionCommand = exports.serializeAws_restJson1CreatePolicyCommand = exports.serializeAws_restJson1CreateOTAUpdateCommand = exports.serializeAws_restJson1CreateMitigationActionCommand = exports.serializeAws_restJson1CreateKeysAndCertificateCommand = exports.serializeAws_restJson1CreateJobTemplateCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CreateFleetMetricCommand = exports.serializeAws_restJson1CreateDynamicThingGroupCommand = exports.serializeAws_restJson1CreateDomainConfigurationCommand = exports.serializeAws_restJson1CreateDimensionCommand = exports.serializeAws_restJson1CreateCustomMetricCommand = exports.serializeAws_restJson1CreateCertificateFromCsrCommand = exports.serializeAws_restJson1CreateBillingGroupCommand = exports.serializeAws_restJson1CreateAuthorizerCommand = exports.serializeAws_restJson1CreateAuditSuppressionCommand = exports.serializeAws_restJson1ConfirmTopicRuleDestinationCommand = exports.serializeAws_restJson1ClearDefaultAuthorizerCommand = exports.serializeAws_restJson1CancelJobExecutionCommand = exports.serializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1CancelDetectMitigationActionsTaskCommand = exports.serializeAws_restJson1CancelCertificateTransferCommand = exports.serializeAws_restJson1CancelAuditTaskCommand = exports.serializeAws_restJson1CancelAuditMitigationActionsTaskCommand = exports.serializeAws_restJson1AttachThingPrincipalCommand = exports.serializeAws_restJson1AttachSecurityProfileCommand = exports.serializeAws_restJson1AttachPrincipalPolicyCommand = exports.serializeAws_restJson1AttachPolicyCommand = exports.serializeAws_restJson1AssociateTargetsWithJobCommand = exports.serializeAws_restJson1AddThingToThingGroupCommand = exports.serializeAws_restJson1AddThingToBillingGroupCommand = exports.serializeAws_restJson1AcceptCertificateTransferCommand = void 0;
|
|
4
4
|
exports.serializeAws_restJson1DescribeProvisioningTemplateCommand = exports.serializeAws_restJson1DescribeMitigationActionCommand = exports.serializeAws_restJson1DescribeManagedJobTemplateCommand = exports.serializeAws_restJson1DescribeJobTemplateCommand = exports.serializeAws_restJson1DescribeJobExecutionCommand = exports.serializeAws_restJson1DescribeJobCommand = exports.serializeAws_restJson1DescribeIndexCommand = exports.serializeAws_restJson1DescribeFleetMetricCommand = exports.serializeAws_restJson1DescribeEventConfigurationsCommand = exports.serializeAws_restJson1DescribeEndpointCommand = exports.serializeAws_restJson1DescribeDomainConfigurationCommand = exports.serializeAws_restJson1DescribeDimensionCommand = exports.serializeAws_restJson1DescribeDetectMitigationActionsTaskCommand = exports.serializeAws_restJson1DescribeDefaultAuthorizerCommand = exports.serializeAws_restJson1DescribeCustomMetricCommand = exports.serializeAws_restJson1DescribeCertificateCommand = exports.serializeAws_restJson1DescribeCACertificateCommand = exports.serializeAws_restJson1DescribeBillingGroupCommand = exports.serializeAws_restJson1DescribeAuthorizerCommand = exports.serializeAws_restJson1DescribeAuditTaskCommand = exports.serializeAws_restJson1DescribeAuditSuppressionCommand = exports.serializeAws_restJson1DescribeAuditMitigationActionsTaskCommand = exports.serializeAws_restJson1DescribeAuditFindingCommand = exports.serializeAws_restJson1DescribeAccountAuditConfigurationCommand = exports.serializeAws_restJson1DeprecateThingTypeCommand = exports.serializeAws_restJson1DeleteV2LoggingLevelCommand = exports.serializeAws_restJson1DeleteTopicRuleDestinationCommand = exports.serializeAws_restJson1DeleteTopicRuleCommand = exports.serializeAws_restJson1DeleteThingTypeCommand = exports.serializeAws_restJson1DeleteThingGroupCommand = exports.serializeAws_restJson1DeleteThingCommand = exports.serializeAws_restJson1DeleteStreamCommand = exports.serializeAws_restJson1DeleteSecurityProfileCommand = exports.serializeAws_restJson1DeleteScheduledAuditCommand = exports.serializeAws_restJson1DeleteRoleAliasCommand = exports.serializeAws_restJson1DeleteRegistrationCodeCommand = exports.serializeAws_restJson1DeleteProvisioningTemplateVersionCommand = exports.serializeAws_restJson1DeleteProvisioningTemplateCommand = exports.serializeAws_restJson1DeletePolicyVersionCommand = exports.serializeAws_restJson1DeletePolicyCommand = exports.serializeAws_restJson1DeleteOTAUpdateCommand = exports.serializeAws_restJson1DeleteMitigationActionCommand = exports.serializeAws_restJson1DeleteJobTemplateCommand = exports.serializeAws_restJson1DeleteJobExecutionCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1DeleteFleetMetricCommand = exports.serializeAws_restJson1DeleteDynamicThingGroupCommand = exports.serializeAws_restJson1DeleteDomainConfigurationCommand = exports.serializeAws_restJson1DeleteDimensionCommand = exports.serializeAws_restJson1DeleteCustomMetricCommand = void 0;
|
|
5
5
|
exports.serializeAws_restJson1ListIndicesCommand = exports.serializeAws_restJson1ListFleetMetricsCommand = exports.serializeAws_restJson1ListDomainConfigurationsCommand = exports.serializeAws_restJson1ListDimensionsCommand = exports.serializeAws_restJson1ListDetectMitigationActionsTasksCommand = exports.serializeAws_restJson1ListDetectMitigationActionsExecutionsCommand = exports.serializeAws_restJson1ListCustomMetricsCommand = exports.serializeAws_restJson1ListCertificatesByCACommand = exports.serializeAws_restJson1ListCertificatesCommand = exports.serializeAws_restJson1ListCACertificatesCommand = exports.serializeAws_restJson1ListBillingGroupsCommand = exports.serializeAws_restJson1ListAuthorizersCommand = exports.serializeAws_restJson1ListAuditTasksCommand = exports.serializeAws_restJson1ListAuditSuppressionsCommand = exports.serializeAws_restJson1ListAuditMitigationActionsTasksCommand = exports.serializeAws_restJson1ListAuditMitigationActionsExecutionsCommand = exports.serializeAws_restJson1ListAuditFindingsCommand = exports.serializeAws_restJson1ListAttachedPoliciesCommand = exports.serializeAws_restJson1ListActiveViolationsCommand = exports.serializeAws_restJson1GetV2LoggingOptionsCommand = exports.serializeAws_restJson1GetTopicRuleDestinationCommand = exports.serializeAws_restJson1GetTopicRuleCommand = exports.serializeAws_restJson1GetStatisticsCommand = exports.serializeAws_restJson1GetRegistrationCodeCommand = exports.serializeAws_restJson1GetPolicyVersionCommand = exports.serializeAws_restJson1GetPolicyCommand = exports.serializeAws_restJson1GetPercentilesCommand = exports.serializeAws_restJson1GetOTAUpdateCommand = exports.serializeAws_restJson1GetLoggingOptionsCommand = exports.serializeAws_restJson1GetJobDocumentCommand = exports.serializeAws_restJson1GetIndexingConfigurationCommand = exports.serializeAws_restJson1GetEffectivePoliciesCommand = exports.serializeAws_restJson1GetCardinalityCommand = exports.serializeAws_restJson1GetBucketsAggregationCommand = exports.serializeAws_restJson1GetBehaviorModelTrainingSummariesCommand = exports.serializeAws_restJson1EnableTopicRuleCommand = exports.serializeAws_restJson1DisableTopicRuleCommand = exports.serializeAws_restJson1DetachThingPrincipalCommand = exports.serializeAws_restJson1DetachSecurityProfileCommand = exports.serializeAws_restJson1DetachPrincipalPolicyCommand = exports.serializeAws_restJson1DetachPolicyCommand = exports.serializeAws_restJson1DescribeThingTypeCommand = exports.serializeAws_restJson1DescribeThingRegistrationTaskCommand = exports.serializeAws_restJson1DescribeThingGroupCommand = exports.serializeAws_restJson1DescribeThingCommand = exports.serializeAws_restJson1DescribeStreamCommand = exports.serializeAws_restJson1DescribeSecurityProfileCommand = exports.serializeAws_restJson1DescribeScheduledAuditCommand = exports.serializeAws_restJson1DescribeRoleAliasCommand = exports.serializeAws_restJson1DescribeProvisioningTemplateVersionCommand = void 0;
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.deserializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = exports.deserializeAws_restJson1UpdateTopicRuleDestinationCommand = exports.deserializeAws_restJson1UpdateThingGroupsForThingCommand = exports.deserializeAws_restJson1UpdateThingGroupCommand = exports.deserializeAws_restJson1UpdateThingCommand = exports.deserializeAws_restJson1UpdateStreamCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateScheduledAuditCommand = exports.deserializeAws_restJson1UpdateRoleAliasCommand = exports.deserializeAws_restJson1UpdateProvisioningTemplateCommand = exports.deserializeAws_restJson1UpdateMitigationActionCommand = exports.deserializeAws_restJson1UpdateJobCommand = exports.deserializeAws_restJson1UpdateIndexingConfigurationCommand = exports.deserializeAws_restJson1UpdateFleetMetricCommand = exports.deserializeAws_restJson1UpdateEventConfigurationsCommand = exports.deserializeAws_restJson1UpdateDynamicThingGroupCommand = exports.deserializeAws_restJson1UpdateDomainConfigurationCommand = exports.deserializeAws_restJson1UpdateDimensionCommand = exports.deserializeAws_restJson1UpdateCustomMetricCommand = exports.deserializeAws_restJson1UpdateCertificateCommand = exports.deserializeAws_restJson1UpdateCACertificateCommand = exports.deserializeAws_restJson1UpdateBillingGroupCommand = exports.deserializeAws_restJson1UpdateAuthorizerCommand = exports.deserializeAws_restJson1UpdateAuditSuppressionCommand = void 0;
|
|
6
|
+
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_restJson1ListRelatedResourcesForAuditFindingCommand = 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_restJson1ListMetricValuesCommand = exports.serializeAws_restJson1ListManagedJobTemplatesCommand = exports.serializeAws_restJson1ListJobTemplatesCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListJobExecutionsForThingCommand = exports.serializeAws_restJson1ListJobExecutionsForJobCommand = void 0;
|
|
7
|
+
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 = exports.serializeAws_restJson1SetV2LoggingLevelCommand = exports.serializeAws_restJson1SetLoggingOptionsCommand = void 0;
|
|
8
|
+
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 = exports.deserializeAws_restJson1CancelJobExecutionCommand = exports.deserializeAws_restJson1CancelJobCommand = void 0;
|
|
9
|
+
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 = exports.deserializeAws_restJson1DeleteProvisioningTemplateVersionCommand = exports.deserializeAws_restJson1DeleteProvisioningTemplateCommand = void 0;
|
|
10
|
+
exports.deserializeAws_restJson1ListPolicyVersionsCommand = exports.deserializeAws_restJson1ListPolicyPrincipalsCommand = exports.deserializeAws_restJson1ListPoliciesCommand = exports.deserializeAws_restJson1ListOutgoingCertificatesCommand = exports.deserializeAws_restJson1ListOTAUpdatesCommand = exports.deserializeAws_restJson1ListMitigationActionsCommand = exports.deserializeAws_restJson1ListMetricValuesCommand = 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 = exports.deserializeAws_restJson1DisableTopicRuleCommand = exports.deserializeAws_restJson1DetachThingPrincipalCommand = void 0;
|
|
11
|
+
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_restJson1ListRelatedResourcesForAuditFindingCommand = exports.deserializeAws_restJson1ListProvisioningTemplateVersionsCommand = exports.deserializeAws_restJson1ListProvisioningTemplatesCommand = exports.deserializeAws_restJson1ListPrincipalThingsCommand = exports.deserializeAws_restJson1ListPrincipalPoliciesCommand = void 0;
|
|
12
|
+
exports.deserializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = exports.deserializeAws_restJson1UpdateTopicRuleDestinationCommand = exports.deserializeAws_restJson1UpdateThingGroupsForThingCommand = exports.deserializeAws_restJson1UpdateThingGroupCommand = exports.deserializeAws_restJson1UpdateThingCommand = exports.deserializeAws_restJson1UpdateStreamCommand = exports.deserializeAws_restJson1UpdateSecurityProfileCommand = exports.deserializeAws_restJson1UpdateScheduledAuditCommand = exports.deserializeAws_restJson1UpdateRoleAliasCommand = exports.deserializeAws_restJson1UpdateProvisioningTemplateCommand = exports.deserializeAws_restJson1UpdateMitigationActionCommand = exports.deserializeAws_restJson1UpdateJobCommand = exports.deserializeAws_restJson1UpdateIndexingConfigurationCommand = exports.deserializeAws_restJson1UpdateFleetMetricCommand = exports.deserializeAws_restJson1UpdateEventConfigurationsCommand = exports.deserializeAws_restJson1UpdateDynamicThingGroupCommand = exports.deserializeAws_restJson1UpdateDomainConfigurationCommand = exports.deserializeAws_restJson1UpdateDimensionCommand = exports.deserializeAws_restJson1UpdateCustomMetricCommand = exports.deserializeAws_restJson1UpdateCertificateCommand = exports.deserializeAws_restJson1UpdateCACertificateCommand = exports.deserializeAws_restJson1UpdateBillingGroupCommand = exports.deserializeAws_restJson1UpdateAuthorizerCommand = exports.deserializeAws_restJson1UpdateAuditSuppressionCommand = exports.deserializeAws_restJson1UpdateAccountAuditConfigurationCommand = exports.deserializeAws_restJson1UntagResourceCommand = void 0;
|
|
13
13
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
14
14
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
@@ -3630,6 +3630,28 @@ const serializeAws_restJson1ListProvisioningTemplateVersionsCommand = async (inp
|
|
|
3630
3630
|
});
|
|
3631
3631
|
};
|
|
3632
3632
|
exports.serializeAws_restJson1ListProvisioningTemplateVersionsCommand = serializeAws_restJson1ListProvisioningTemplateVersionsCommand;
|
|
3633
|
+
const serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand = async (input, context) => {
|
|
3634
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3635
|
+
const headers = {};
|
|
3636
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/relatedResources";
|
|
3637
|
+
const query = map({
|
|
3638
|
+
findingId: [, input.findingId],
|
|
3639
|
+
nextToken: [, input.nextToken],
|
|
3640
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3641
|
+
});
|
|
3642
|
+
let body;
|
|
3643
|
+
return new protocol_http_1.HttpRequest({
|
|
3644
|
+
protocol,
|
|
3645
|
+
hostname,
|
|
3646
|
+
port,
|
|
3647
|
+
method: "GET",
|
|
3648
|
+
headers,
|
|
3649
|
+
path: resolvedPath,
|
|
3650
|
+
query,
|
|
3651
|
+
body,
|
|
3652
|
+
});
|
|
3653
|
+
};
|
|
3654
|
+
exports.serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand = serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand;
|
|
3633
3655
|
const serializeAws_restJson1ListRoleAliasesCommand = async (input, context) => {
|
|
3634
3656
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3635
3657
|
const headers = {};
|
|
@@ -13711,6 +13733,52 @@ const deserializeAws_restJson1ListProvisioningTemplateVersionsCommandError = asy
|
|
|
13711
13733
|
});
|
|
13712
13734
|
}
|
|
13713
13735
|
};
|
|
13736
|
+
const deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommand = async (output, context) => {
|
|
13737
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13738
|
+
return deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommandError(output, context);
|
|
13739
|
+
}
|
|
13740
|
+
const contents = map({
|
|
13741
|
+
$metadata: deserializeMetadata(output),
|
|
13742
|
+
});
|
|
13743
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
13744
|
+
if (data.nextToken != null) {
|
|
13745
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
13746
|
+
}
|
|
13747
|
+
if (data.relatedResources != null) {
|
|
13748
|
+
contents.relatedResources = deserializeAws_restJson1RelatedResources(data.relatedResources, context);
|
|
13749
|
+
}
|
|
13750
|
+
return contents;
|
|
13751
|
+
};
|
|
13752
|
+
exports.deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommand = deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommand;
|
|
13753
|
+
const deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommandError = async (output, context) => {
|
|
13754
|
+
const parsedOutput = {
|
|
13755
|
+
...output,
|
|
13756
|
+
body: await parseErrorBody(output.body, context),
|
|
13757
|
+
};
|
|
13758
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13759
|
+
switch (errorCode) {
|
|
13760
|
+
case "InternalFailureException":
|
|
13761
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
13762
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
13763
|
+
case "InvalidRequestException":
|
|
13764
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
13765
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
13766
|
+
case "ResourceNotFoundException":
|
|
13767
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
13768
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
13769
|
+
case "ThrottlingException":
|
|
13770
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
13771
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
13772
|
+
default:
|
|
13773
|
+
const parsedBody = parsedOutput.body;
|
|
13774
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
13775
|
+
output,
|
|
13776
|
+
parsedBody,
|
|
13777
|
+
exceptionCtor: IoTServiceException_1.IoTServiceException,
|
|
13778
|
+
errorCode,
|
|
13779
|
+
});
|
|
13780
|
+
}
|
|
13781
|
+
};
|
|
13714
13782
|
const deserializeAws_restJson1ListRoleAliasesCommand = async (output, context) => {
|
|
13715
13783
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13716
13784
|
return deserializeAws_restJson1ListRoleAliasesCommandError(output, context);
|
|
@@ -18156,6 +18224,15 @@ const serializeAws_restJson1IotSiteWiseAction = (input, context) => {
|
|
|
18156
18224
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
18157
18225
|
};
|
|
18158
18226
|
};
|
|
18227
|
+
const serializeAws_restJson1IssuerCertificateIdentifier = (input, context) => {
|
|
18228
|
+
return {
|
|
18229
|
+
...(input.issuerCertificateSerialNumber != null && {
|
|
18230
|
+
issuerCertificateSerialNumber: input.issuerCertificateSerialNumber,
|
|
18231
|
+
}),
|
|
18232
|
+
...(input.issuerCertificateSubject != null && { issuerCertificateSubject: input.issuerCertificateSubject }),
|
|
18233
|
+
...(input.issuerId != null && { issuerId: input.issuerId }),
|
|
18234
|
+
};
|
|
18235
|
+
};
|
|
18159
18236
|
const serializeAws_restJson1JobExecutionsRetryConfig = (input, context) => {
|
|
18160
18237
|
return {
|
|
18161
18238
|
...(input.criteriaList != null && {
|
|
@@ -18481,8 +18558,12 @@ const serializeAws_restJson1ResourceIdentifier = (input, context) => {
|
|
|
18481
18558
|
...(input.caCertificateId != null && { caCertificateId: input.caCertificateId }),
|
|
18482
18559
|
...(input.clientId != null && { clientId: input.clientId }),
|
|
18483
18560
|
...(input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
|
|
18561
|
+
...(input.deviceCertificateArn != null && { deviceCertificateArn: input.deviceCertificateArn }),
|
|
18484
18562
|
...(input.deviceCertificateId != null && { deviceCertificateId: input.deviceCertificateId }),
|
|
18485
18563
|
...(input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn }),
|
|
18564
|
+
...(input.issuerCertificateIdentifier != null && {
|
|
18565
|
+
issuerCertificateIdentifier: serializeAws_restJson1IssuerCertificateIdentifier(input.issuerCertificateIdentifier, context),
|
|
18566
|
+
}),
|
|
18486
18567
|
...(input.policyVersionIdentifier != null && {
|
|
18487
18568
|
policyVersionIdentifier: serializeAws_restJson1PolicyVersionIdentifier(input.policyVersionIdentifier, context),
|
|
18488
18569
|
}),
|
|
@@ -20078,6 +20159,13 @@ const deserializeAws_restJson1IotSiteWiseAction = (output, context) => {
|
|
|
20078
20159
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
20079
20160
|
};
|
|
20080
20161
|
};
|
|
20162
|
+
const deserializeAws_restJson1IssuerCertificateIdentifier = (output, context) => {
|
|
20163
|
+
return {
|
|
20164
|
+
issuerCertificateSerialNumber: (0, smithy_client_1.expectString)(output.issuerCertificateSerialNumber),
|
|
20165
|
+
issuerCertificateSubject: (0, smithy_client_1.expectString)(output.issuerCertificateSubject),
|
|
20166
|
+
issuerId: (0, smithy_client_1.expectString)(output.issuerId),
|
|
20167
|
+
};
|
|
20168
|
+
};
|
|
20081
20169
|
const deserializeAws_restJson1Job = (output, context) => {
|
|
20082
20170
|
return {
|
|
20083
20171
|
abortConfig: output.abortConfig != null ? deserializeAws_restJson1AbortConfig(output.abortConfig, context) : undefined,
|
|
@@ -20955,8 +21043,12 @@ const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
|
|
|
20955
21043
|
caCertificateId: (0, smithy_client_1.expectString)(output.caCertificateId),
|
|
20956
21044
|
clientId: (0, smithy_client_1.expectString)(output.clientId),
|
|
20957
21045
|
cognitoIdentityPoolId: (0, smithy_client_1.expectString)(output.cognitoIdentityPoolId),
|
|
21046
|
+
deviceCertificateArn: (0, smithy_client_1.expectString)(output.deviceCertificateArn),
|
|
20958
21047
|
deviceCertificateId: (0, smithy_client_1.expectString)(output.deviceCertificateId),
|
|
20959
21048
|
iamRoleArn: (0, smithy_client_1.expectString)(output.iamRoleArn),
|
|
21049
|
+
issuerCertificateIdentifier: output.issuerCertificateIdentifier != null
|
|
21050
|
+
? deserializeAws_restJson1IssuerCertificateIdentifier(output.issuerCertificateIdentifier, context)
|
|
21051
|
+
: undefined,
|
|
20960
21052
|
policyVersionIdentifier: output.policyVersionIdentifier != null
|
|
20961
21053
|
? deserializeAws_restJson1PolicyVersionIdentifier(output.policyVersionIdentifier, context)
|
|
20962
21054
|
: undefined,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
6
|
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
6
7
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
@@ -10,7 +11,7 @@ const getRuntimeConfig = (config) => ({
|
|
|
10
11
|
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
11
12
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
13
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
13
|
-
logger: config?.logger ??
|
|
14
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
14
15
|
serviceId: config?.serviceId ?? "IoT",
|
|
15
16
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
16
17
|
});
|
package/dist-es/IoT.js
CHANGED
|
@@ -164,6 +164,7 @@ import { ListPrincipalPoliciesCommand, } from "./commands/ListPrincipalPoliciesC
|
|
|
164
164
|
import { ListPrincipalThingsCommand, } from "./commands/ListPrincipalThingsCommand";
|
|
165
165
|
import { ListProvisioningTemplatesCommand, } from "./commands/ListProvisioningTemplatesCommand";
|
|
166
166
|
import { ListProvisioningTemplateVersionsCommand, } from "./commands/ListProvisioningTemplateVersionsCommand";
|
|
167
|
+
import { ListRelatedResourcesForAuditFindingCommand, } from "./commands/ListRelatedResourcesForAuditFindingCommand";
|
|
167
168
|
import { ListRoleAliasesCommand, } from "./commands/ListRoleAliasesCommand";
|
|
168
169
|
import { ListScheduledAuditsCommand, } from "./commands/ListScheduledAuditsCommand";
|
|
169
170
|
import { ListSecurityProfilesCommand, } from "./commands/ListSecurityProfilesCommand";
|
|
@@ -2561,6 +2562,20 @@ export class IoT extends IoTClient {
|
|
|
2561
2562
|
return this.send(command, optionsOrCb);
|
|
2562
2563
|
}
|
|
2563
2564
|
}
|
|
2565
|
+
listRelatedResourcesForAuditFinding(args, optionsOrCb, cb) {
|
|
2566
|
+
const command = new ListRelatedResourcesForAuditFindingCommand(args);
|
|
2567
|
+
if (typeof optionsOrCb === "function") {
|
|
2568
|
+
this.send(command, optionsOrCb);
|
|
2569
|
+
}
|
|
2570
|
+
else if (typeof cb === "function") {
|
|
2571
|
+
if (typeof optionsOrCb !== "object")
|
|
2572
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
2573
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
2574
|
+
}
|
|
2575
|
+
else {
|
|
2576
|
+
return this.send(command, optionsOrCb);
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2564
2579
|
listRoleAliases(args, optionsOrCb, cb) {
|
|
2565
2580
|
const command = new ListRoleAliasesCommand(args);
|
|
2566
2581
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { DeleteRegistrationCodeRequestFilterSensitiveLog } from "../models/
|
|
5
|
-
import { DeleteRegistrationCodeResponseFilterSensitiveLog } from "../models/models_1";
|
|
4
|
+
import { DeleteRegistrationCodeRequestFilterSensitiveLog, DeleteRegistrationCodeResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
5
|
import { deserializeAws_restJson1DeleteRegistrationCodeCommand, serializeAws_restJson1DeleteRegistrationCodeCommand, } from "../protocols/Aws_restJson1";
|
|
7
6
|
export class DeleteRegistrationCodeCommand extends $Command {
|
|
8
7
|
constructor(input) {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListRelatedResourcesForAuditFindingRequestFilterSensitiveLog, ListRelatedResourcesForAuditFindingResponseFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommand, serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListRelatedResourcesForAuditFindingCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListRelatedResourcesForAuditFindingCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "IoTClient";
|
|
25
|
+
const commandName = "ListRelatedResourcesForAuditFindingCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListRelatedResourcesForAuditFindingRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListRelatedResourcesForAuditFindingResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListTargetsForPolicyRequestFilterSensitiveLog
|
|
4
|
+
import { ListTargetsForPolicyRequestFilterSensitiveLog } from "../models/models_1";
|
|
5
|
+
import { ListTargetsForPolicyResponseFilterSensitiveLog } from "../models/models_2";
|
|
5
6
|
import { deserializeAws_restJson1ListTargetsForPolicyCommand, serializeAws_restJson1ListTargetsForPolicyCommand, } from "../protocols/Aws_restJson1";
|
|
6
7
|
export class ListTargetsForPolicyCommand extends $Command {
|
|
7
8
|
constructor(input) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { ListTargetsForSecurityProfileRequestFilterSensitiveLog, ListTargetsForSecurityProfileResponseFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { ListTargetsForSecurityProfileRequestFilterSensitiveLog, ListTargetsForSecurityProfileResponseFilterSensitiveLog, } from "../models/models_2";
|
|
5
5
|
import { deserializeAws_restJson1ListTargetsForSecurityProfileCommand, serializeAws_restJson1ListTargetsForSecurityProfileCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListTargetsForSecurityProfileCommand extends $Command {
|
|
7
7
|
constructor(input) {
|
|
@@ -164,6 +164,7 @@ export * from "./ListPrincipalPoliciesCommand";
|
|
|
164
164
|
export * from "./ListPrincipalThingsCommand";
|
|
165
165
|
export * from "./ListProvisioningTemplateVersionsCommand";
|
|
166
166
|
export * from "./ListProvisioningTemplatesCommand";
|
|
167
|
+
export * from "./ListRelatedResourcesForAuditFindingCommand";
|
|
167
168
|
export * from "./ListRoleAliasesCommand";
|
|
168
169
|
export * from "./ListScheduledAuditsCommand";
|
|
169
170
|
export * from "./ListSecurityProfilesCommand";
|
|
@@ -220,6 +220,7 @@ export var ResourceType;
|
|
|
220
220
|
ResourceType["DEVICE_CERTIFICATE"] = "DEVICE_CERTIFICATE";
|
|
221
221
|
ResourceType["IAM_ROLE"] = "IAM_ROLE";
|
|
222
222
|
ResourceType["IOT_POLICY"] = "IOT_POLICY";
|
|
223
|
+
ResourceType["ISSUER_CERTIFICATE"] = "ISSUER_CERTIFICATE";
|
|
223
224
|
ResourceType["ROLE_ALIAS"] = "ROLE_ALIAS";
|
|
224
225
|
})(ResourceType || (ResourceType = {}));
|
|
225
226
|
export var AuditFindingSeverity;
|
|
@@ -792,6 +793,9 @@ export const AuditCheckConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
792
793
|
export const AuditCheckDetailsFilterSensitiveLog = (obj) => ({
|
|
793
794
|
...obj,
|
|
794
795
|
});
|
|
796
|
+
export const IssuerCertificateIdentifierFilterSensitiveLog = (obj) => ({
|
|
797
|
+
...obj,
|
|
798
|
+
});
|
|
795
799
|
export const PolicyVersionIdentifierFilterSensitiveLog = (obj) => ({
|
|
796
800
|
...obj,
|
|
797
801
|
});
|
|
@@ -1299,6 +1303,3 @@ export const DeleteProvisioningTemplateVersionRequestFilterSensitiveLog = (obj)
|
|
|
1299
1303
|
export const DeleteProvisioningTemplateVersionResponseFilterSensitiveLog = (obj) => ({
|
|
1300
1304
|
...obj,
|
|
1301
1305
|
});
|
|
1302
|
-
export const DeleteRegistrationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
1303
|
-
...obj,
|
|
1304
|
-
});
|
|
@@ -185,6 +185,9 @@ export var DetectMitigationActionExecutionStatus;
|
|
|
185
185
|
DetectMitigationActionExecutionStatus["SKIPPED"] = "SKIPPED";
|
|
186
186
|
DetectMitigationActionExecutionStatus["SUCCESSFUL"] = "SUCCESSFUL";
|
|
187
187
|
})(DetectMitigationActionExecutionStatus || (DetectMitigationActionExecutionStatus = {}));
|
|
188
|
+
export const DeleteRegistrationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
189
|
+
...obj,
|
|
190
|
+
});
|
|
188
191
|
export const DeleteRegistrationCodeResponseFilterSensitiveLog = (obj) => ({
|
|
189
192
|
...obj,
|
|
190
193
|
});
|
|
@@ -944,6 +947,12 @@ export const ProvisioningTemplateVersionSummaryFilterSensitiveLog = (obj) => ({
|
|
|
944
947
|
export const ListProvisioningTemplateVersionsResponseFilterSensitiveLog = (obj) => ({
|
|
945
948
|
...obj,
|
|
946
949
|
});
|
|
950
|
+
export const ListRelatedResourcesForAuditFindingRequestFilterSensitiveLog = (obj) => ({
|
|
951
|
+
...obj,
|
|
952
|
+
});
|
|
953
|
+
export const ListRelatedResourcesForAuditFindingResponseFilterSensitiveLog = (obj) => ({
|
|
954
|
+
...obj,
|
|
955
|
+
});
|
|
947
956
|
export const ListRoleAliasesRequestFilterSensitiveLog = (obj) => ({
|
|
948
957
|
...obj,
|
|
949
958
|
});
|
|
@@ -998,12 +1007,3 @@ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
|
|
|
998
1007
|
export const ListTargetsForPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
999
1008
|
...obj,
|
|
1000
1009
|
});
|
|
1001
|
-
export const ListTargetsForPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
1002
|
-
...obj,
|
|
1003
|
-
});
|
|
1004
|
-
export const ListTargetsForSecurityProfileRequestFilterSensitiveLog = (obj) => ({
|
|
1005
|
-
...obj,
|
|
1006
|
-
});
|
|
1007
|
-
export const ListTargetsForSecurityProfileResponseFilterSensitiveLog = (obj) => ({
|
|
1008
|
-
...obj,
|
|
1009
|
-
});
|
|
@@ -82,6 +82,15 @@ export class TransferConflictException extends __BaseException {
|
|
|
82
82
|
Object.setPrototypeOf(this, TransferConflictException.prototype);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
export const ListTargetsForPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
86
|
+
...obj,
|
|
87
|
+
});
|
|
88
|
+
export const ListTargetsForSecurityProfileRequestFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
});
|
|
91
|
+
export const ListTargetsForSecurityProfileResponseFilterSensitiveLog = (obj) => ({
|
|
92
|
+
...obj,
|
|
93
|
+
});
|
|
85
94
|
export const ListThingGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
86
95
|
...obj,
|
|
87
96
|
});
|
|
@@ -3452,6 +3452,27 @@ export const serializeAws_restJson1ListProvisioningTemplateVersionsCommand = asy
|
|
|
3452
3452
|
body,
|
|
3453
3453
|
});
|
|
3454
3454
|
};
|
|
3455
|
+
export const serializeAws_restJson1ListRelatedResourcesForAuditFindingCommand = async (input, context) => {
|
|
3456
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3457
|
+
const headers = {};
|
|
3458
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/audit/relatedResources";
|
|
3459
|
+
const query = map({
|
|
3460
|
+
findingId: [, input.findingId],
|
|
3461
|
+
nextToken: [, input.nextToken],
|
|
3462
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3463
|
+
});
|
|
3464
|
+
let body;
|
|
3465
|
+
return new __HttpRequest({
|
|
3466
|
+
protocol,
|
|
3467
|
+
hostname,
|
|
3468
|
+
port,
|
|
3469
|
+
method: "GET",
|
|
3470
|
+
headers,
|
|
3471
|
+
path: resolvedPath,
|
|
3472
|
+
query,
|
|
3473
|
+
body,
|
|
3474
|
+
});
|
|
3475
|
+
};
|
|
3455
3476
|
export const serializeAws_restJson1ListRoleAliasesCommand = async (input, context) => {
|
|
3456
3477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3457
3478
|
const headers = {};
|
|
@@ -13296,6 +13317,51 @@ const deserializeAws_restJson1ListProvisioningTemplateVersionsCommandError = asy
|
|
|
13296
13317
|
});
|
|
13297
13318
|
}
|
|
13298
13319
|
};
|
|
13320
|
+
export const deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommand = async (output, context) => {
|
|
13321
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13322
|
+
return deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommandError(output, context);
|
|
13323
|
+
}
|
|
13324
|
+
const contents = map({
|
|
13325
|
+
$metadata: deserializeMetadata(output),
|
|
13326
|
+
});
|
|
13327
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
13328
|
+
if (data.nextToken != null) {
|
|
13329
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
13330
|
+
}
|
|
13331
|
+
if (data.relatedResources != null) {
|
|
13332
|
+
contents.relatedResources = deserializeAws_restJson1RelatedResources(data.relatedResources, context);
|
|
13333
|
+
}
|
|
13334
|
+
return contents;
|
|
13335
|
+
};
|
|
13336
|
+
const deserializeAws_restJson1ListRelatedResourcesForAuditFindingCommandError = async (output, context) => {
|
|
13337
|
+
const parsedOutput = {
|
|
13338
|
+
...output,
|
|
13339
|
+
body: await parseErrorBody(output.body, context),
|
|
13340
|
+
};
|
|
13341
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
13342
|
+
switch (errorCode) {
|
|
13343
|
+
case "InternalFailureException":
|
|
13344
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
13345
|
+
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
|
|
13346
|
+
case "InvalidRequestException":
|
|
13347
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
13348
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
13349
|
+
case "ResourceNotFoundException":
|
|
13350
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
13351
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
13352
|
+
case "ThrottlingException":
|
|
13353
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
13354
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
13355
|
+
default:
|
|
13356
|
+
const parsedBody = parsedOutput.body;
|
|
13357
|
+
throwDefaultError({
|
|
13358
|
+
output,
|
|
13359
|
+
parsedBody,
|
|
13360
|
+
exceptionCtor: __BaseException,
|
|
13361
|
+
errorCode,
|
|
13362
|
+
});
|
|
13363
|
+
}
|
|
13364
|
+
};
|
|
13299
13365
|
export const deserializeAws_restJson1ListRoleAliasesCommand = async (output, context) => {
|
|
13300
13366
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
13301
13367
|
return deserializeAws_restJson1ListRoleAliasesCommandError(output, context);
|
|
@@ -17670,6 +17736,15 @@ const serializeAws_restJson1IotSiteWiseAction = (input, context) => {
|
|
|
17670
17736
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
17671
17737
|
};
|
|
17672
17738
|
};
|
|
17739
|
+
const serializeAws_restJson1IssuerCertificateIdentifier = (input, context) => {
|
|
17740
|
+
return {
|
|
17741
|
+
...(input.issuerCertificateSerialNumber != null && {
|
|
17742
|
+
issuerCertificateSerialNumber: input.issuerCertificateSerialNumber,
|
|
17743
|
+
}),
|
|
17744
|
+
...(input.issuerCertificateSubject != null && { issuerCertificateSubject: input.issuerCertificateSubject }),
|
|
17745
|
+
...(input.issuerId != null && { issuerId: input.issuerId }),
|
|
17746
|
+
};
|
|
17747
|
+
};
|
|
17673
17748
|
const serializeAws_restJson1JobExecutionsRetryConfig = (input, context) => {
|
|
17674
17749
|
return {
|
|
17675
17750
|
...(input.criteriaList != null && {
|
|
@@ -17995,8 +18070,12 @@ const serializeAws_restJson1ResourceIdentifier = (input, context) => {
|
|
|
17995
18070
|
...(input.caCertificateId != null && { caCertificateId: input.caCertificateId }),
|
|
17996
18071
|
...(input.clientId != null && { clientId: input.clientId }),
|
|
17997
18072
|
...(input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
|
|
18073
|
+
...(input.deviceCertificateArn != null && { deviceCertificateArn: input.deviceCertificateArn }),
|
|
17998
18074
|
...(input.deviceCertificateId != null && { deviceCertificateId: input.deviceCertificateId }),
|
|
17999
18075
|
...(input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn }),
|
|
18076
|
+
...(input.issuerCertificateIdentifier != null && {
|
|
18077
|
+
issuerCertificateIdentifier: serializeAws_restJson1IssuerCertificateIdentifier(input.issuerCertificateIdentifier, context),
|
|
18078
|
+
}),
|
|
18000
18079
|
...(input.policyVersionIdentifier != null && {
|
|
18001
18080
|
policyVersionIdentifier: serializeAws_restJson1PolicyVersionIdentifier(input.policyVersionIdentifier, context),
|
|
18002
18081
|
}),
|
|
@@ -19592,6 +19671,13 @@ const deserializeAws_restJson1IotSiteWiseAction = (output, context) => {
|
|
|
19592
19671
|
roleArn: __expectString(output.roleArn),
|
|
19593
19672
|
};
|
|
19594
19673
|
};
|
|
19674
|
+
const deserializeAws_restJson1IssuerCertificateIdentifier = (output, context) => {
|
|
19675
|
+
return {
|
|
19676
|
+
issuerCertificateSerialNumber: __expectString(output.issuerCertificateSerialNumber),
|
|
19677
|
+
issuerCertificateSubject: __expectString(output.issuerCertificateSubject),
|
|
19678
|
+
issuerId: __expectString(output.issuerId),
|
|
19679
|
+
};
|
|
19680
|
+
};
|
|
19595
19681
|
const deserializeAws_restJson1Job = (output, context) => {
|
|
19596
19682
|
return {
|
|
19597
19683
|
abortConfig: output.abortConfig != null ? deserializeAws_restJson1AbortConfig(output.abortConfig, context) : undefined,
|
|
@@ -20469,8 +20555,12 @@ const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
|
|
|
20469
20555
|
caCertificateId: __expectString(output.caCertificateId),
|
|
20470
20556
|
clientId: __expectString(output.clientId),
|
|
20471
20557
|
cognitoIdentityPoolId: __expectString(output.cognitoIdentityPoolId),
|
|
20558
|
+
deviceCertificateArn: __expectString(output.deviceCertificateArn),
|
|
20472
20559
|
deviceCertificateId: __expectString(output.deviceCertificateId),
|
|
20473
20560
|
iamRoleArn: __expectString(output.iamRoleArn),
|
|
20561
|
+
issuerCertificateIdentifier: output.issuerCertificateIdentifier != null
|
|
20562
|
+
? deserializeAws_restJson1IssuerCertificateIdentifier(output.issuerCertificateIdentifier, context)
|
|
20563
|
+
: undefined,
|
|
20474
20564
|
policyVersionIdentifier: output.policyVersionIdentifier != null
|
|
20475
20565
|
? deserializeAws_restJson1PolicyVersionIdentifier(output.policyVersionIdentifier, context)
|
|
20476
20566
|
: undefined,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NoOpLogger } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
3
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
3
4
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
@@ -7,7 +8,7 @@ export const getRuntimeConfig = (config) => ({
|
|
|
7
8
|
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
8
9
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
10
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
10
|
-
logger: config?.logger ??
|
|
11
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
11
12
|
serviceId: config?.serviceId ?? "IoT",
|
|
12
13
|
urlParser: config?.urlParser ?? parseUrl,
|
|
13
14
|
});
|