@aws-sdk/client-iot 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/IoT.js +957 -950
- package/dist-es/IoTClient.js +29 -23
- package/dist-es/commands/AcceptCertificateTransferCommand.js +29 -22
- package/dist-es/commands/AddThingToBillingGroupCommand.js +28 -21
- package/dist-es/commands/AddThingToThingGroupCommand.js +28 -21
- package/dist-es/commands/AssociateTargetsWithJobCommand.js +28 -21
- package/dist-es/commands/AttachPolicyCommand.js +29 -22
- package/dist-es/commands/AttachPrincipalPolicyCommand.js +29 -22
- package/dist-es/commands/AttachSecurityProfileCommand.js +28 -21
- package/dist-es/commands/AttachThingPrincipalCommand.js +28 -21
- package/dist-es/commands/CancelAuditMitigationActionsTaskCommand.js +28 -21
- package/dist-es/commands/CancelAuditTaskCommand.js +28 -21
- package/dist-es/commands/CancelCertificateTransferCommand.js +29 -22
- package/dist-es/commands/CancelDetectMitigationActionsTaskCommand.js +28 -21
- package/dist-es/commands/CancelJobCommand.js +28 -21
- package/dist-es/commands/CancelJobExecutionCommand.js +29 -22
- package/dist-es/commands/ClearDefaultAuthorizerCommand.js +28 -21
- package/dist-es/commands/ConfirmTopicRuleDestinationCommand.js +28 -21
- package/dist-es/commands/CreateAuditSuppressionCommand.js +28 -21
- package/dist-es/commands/CreateAuthorizerCommand.js +28 -21
- package/dist-es/commands/CreateBillingGroupCommand.js +28 -21
- package/dist-es/commands/CreateCertificateFromCsrCommand.js +28 -21
- package/dist-es/commands/CreateCustomMetricCommand.js +28 -21
- package/dist-es/commands/CreateDimensionCommand.js +28 -21
- package/dist-es/commands/CreateDomainConfigurationCommand.js +28 -21
- package/dist-es/commands/CreateDynamicThingGroupCommand.js +28 -21
- package/dist-es/commands/CreateFleetMetricCommand.js +28 -21
- package/dist-es/commands/CreateJobCommand.js +28 -21
- package/dist-es/commands/CreateJobTemplateCommand.js +28 -21
- package/dist-es/commands/CreateKeysAndCertificateCommand.js +28 -21
- package/dist-es/commands/CreateMitigationActionCommand.js +28 -21
- package/dist-es/commands/CreateOTAUpdateCommand.js +28 -21
- package/dist-es/commands/CreatePolicyCommand.js +28 -21
- package/dist-es/commands/CreatePolicyVersionCommand.js +28 -21
- package/dist-es/commands/CreateProvisioningClaimCommand.js +28 -21
- package/dist-es/commands/CreateProvisioningTemplateCommand.js +28 -21
- package/dist-es/commands/CreateProvisioningTemplateVersionCommand.js +28 -21
- package/dist-es/commands/CreateRoleAliasCommand.js +28 -21
- package/dist-es/commands/CreateScheduledAuditCommand.js +28 -21
- package/dist-es/commands/CreateSecurityProfileCommand.js +28 -21
- package/dist-es/commands/CreateStreamCommand.js +28 -21
- package/dist-es/commands/CreateThingCommand.js +28 -21
- package/dist-es/commands/CreateThingGroupCommand.js +28 -21
- package/dist-es/commands/CreateThingTypeCommand.js +28 -21
- package/dist-es/commands/CreateTopicRuleCommand.js +29 -22
- package/dist-es/commands/CreateTopicRuleDestinationCommand.js +28 -21
- package/dist-es/commands/DeleteAccountAuditConfigurationCommand.js +28 -21
- package/dist-es/commands/DeleteAuditSuppressionCommand.js +28 -21
- package/dist-es/commands/DeleteAuthorizerCommand.js +28 -21
- package/dist-es/commands/DeleteBillingGroupCommand.js +28 -21
- package/dist-es/commands/DeleteCACertificateCommand.js +28 -21
- package/dist-es/commands/DeleteCertificateCommand.js +29 -22
- package/dist-es/commands/DeleteCustomMetricCommand.js +28 -21
- package/dist-es/commands/DeleteDimensionCommand.js +28 -21
- package/dist-es/commands/DeleteDomainConfigurationCommand.js +28 -21
- package/dist-es/commands/DeleteDynamicThingGroupCommand.js +28 -21
- package/dist-es/commands/DeleteFleetMetricCommand.js +29 -22
- package/dist-es/commands/DeleteJobCommand.js +29 -22
- package/dist-es/commands/DeleteJobExecutionCommand.js +29 -22
- package/dist-es/commands/DeleteJobTemplateCommand.js +29 -22
- package/dist-es/commands/DeleteMitigationActionCommand.js +28 -21
- package/dist-es/commands/DeleteOTAUpdateCommand.js +28 -21
- package/dist-es/commands/DeletePolicyCommand.js +29 -22
- package/dist-es/commands/DeletePolicyVersionCommand.js +29 -22
- package/dist-es/commands/DeleteProvisioningTemplateCommand.js +28 -21
- package/dist-es/commands/DeleteProvisioningTemplateVersionCommand.js +28 -21
- package/dist-es/commands/DeleteRegistrationCodeCommand.js +28 -21
- package/dist-es/commands/DeleteRoleAliasCommand.js +28 -21
- package/dist-es/commands/DeleteScheduledAuditCommand.js +28 -21
- package/dist-es/commands/DeleteSecurityProfileCommand.js +28 -21
- package/dist-es/commands/DeleteStreamCommand.js +28 -21
- package/dist-es/commands/DeleteThingCommand.js +28 -21
- package/dist-es/commands/DeleteThingGroupCommand.js +28 -21
- package/dist-es/commands/DeleteThingTypeCommand.js +28 -21
- package/dist-es/commands/DeleteTopicRuleCommand.js +29 -22
- package/dist-es/commands/DeleteTopicRuleDestinationCommand.js +28 -21
- package/dist-es/commands/DeleteV2LoggingLevelCommand.js +29 -22
- package/dist-es/commands/DeprecateThingTypeCommand.js +28 -21
- package/dist-es/commands/DescribeAccountAuditConfigurationCommand.js +28 -21
- package/dist-es/commands/DescribeAuditFindingCommand.js +28 -21
- package/dist-es/commands/DescribeAuditMitigationActionsTaskCommand.js +28 -21
- package/dist-es/commands/DescribeAuditSuppressionCommand.js +28 -21
- package/dist-es/commands/DescribeAuditTaskCommand.js +28 -21
- package/dist-es/commands/DescribeAuthorizerCommand.js +28 -21
- package/dist-es/commands/DescribeBillingGroupCommand.js +28 -21
- package/dist-es/commands/DescribeCACertificateCommand.js +28 -21
- package/dist-es/commands/DescribeCertificateCommand.js +28 -21
- package/dist-es/commands/DescribeCustomMetricCommand.js +28 -21
- package/dist-es/commands/DescribeDefaultAuthorizerCommand.js +28 -21
- package/dist-es/commands/DescribeDetectMitigationActionsTaskCommand.js +28 -21
- package/dist-es/commands/DescribeDimensionCommand.js +28 -21
- package/dist-es/commands/DescribeDomainConfigurationCommand.js +28 -21
- package/dist-es/commands/DescribeEndpointCommand.js +28 -21
- package/dist-es/commands/DescribeEventConfigurationsCommand.js +28 -21
- package/dist-es/commands/DescribeFleetMetricCommand.js +28 -21
- package/dist-es/commands/DescribeIndexCommand.js +28 -21
- package/dist-es/commands/DescribeJobCommand.js +28 -21
- package/dist-es/commands/DescribeJobExecutionCommand.js +28 -21
- package/dist-es/commands/DescribeJobTemplateCommand.js +28 -21
- package/dist-es/commands/DescribeManagedJobTemplateCommand.js +28 -21
- package/dist-es/commands/DescribeMitigationActionCommand.js +28 -21
- package/dist-es/commands/DescribeProvisioningTemplateCommand.js +28 -21
- package/dist-es/commands/DescribeProvisioningTemplateVersionCommand.js +28 -21
- package/dist-es/commands/DescribeRoleAliasCommand.js +28 -21
- package/dist-es/commands/DescribeScheduledAuditCommand.js +28 -21
- package/dist-es/commands/DescribeSecurityProfileCommand.js +28 -21
- package/dist-es/commands/DescribeStreamCommand.js +28 -21
- package/dist-es/commands/DescribeThingCommand.js +28 -21
- package/dist-es/commands/DescribeThingGroupCommand.js +28 -21
- package/dist-es/commands/DescribeThingRegistrationTaskCommand.js +28 -21
- package/dist-es/commands/DescribeThingTypeCommand.js +28 -21
- package/dist-es/commands/DetachPolicyCommand.js +29 -22
- package/dist-es/commands/DetachPrincipalPolicyCommand.js +29 -22
- package/dist-es/commands/DetachSecurityProfileCommand.js +28 -21
- package/dist-es/commands/DetachThingPrincipalCommand.js +28 -21
- package/dist-es/commands/DisableTopicRuleCommand.js +29 -22
- package/dist-es/commands/EnableTopicRuleCommand.js +29 -22
- package/dist-es/commands/GetBehaviorModelTrainingSummariesCommand.js +28 -21
- package/dist-es/commands/GetBucketsAggregationCommand.js +28 -21
- package/dist-es/commands/GetCardinalityCommand.js +28 -21
- package/dist-es/commands/GetEffectivePoliciesCommand.js +28 -21
- package/dist-es/commands/GetIndexingConfigurationCommand.js +28 -21
- package/dist-es/commands/GetJobDocumentCommand.js +28 -21
- package/dist-es/commands/GetLoggingOptionsCommand.js +28 -21
- package/dist-es/commands/GetOTAUpdateCommand.js +28 -21
- package/dist-es/commands/GetPercentilesCommand.js +28 -21
- package/dist-es/commands/GetPolicyCommand.js +28 -21
- package/dist-es/commands/GetPolicyVersionCommand.js +28 -21
- package/dist-es/commands/GetRegistrationCodeCommand.js +28 -21
- package/dist-es/commands/GetStatisticsCommand.js +28 -21
- package/dist-es/commands/GetTopicRuleCommand.js +28 -21
- package/dist-es/commands/GetTopicRuleDestinationCommand.js +28 -21
- package/dist-es/commands/GetV2LoggingOptionsCommand.js +28 -21
- package/dist-es/commands/ListActiveViolationsCommand.js +28 -21
- package/dist-es/commands/ListAttachedPoliciesCommand.js +28 -21
- package/dist-es/commands/ListAuditFindingsCommand.js +28 -21
- package/dist-es/commands/ListAuditMitigationActionsExecutionsCommand.js +28 -21
- package/dist-es/commands/ListAuditMitigationActionsTasksCommand.js +28 -21
- package/dist-es/commands/ListAuditSuppressionsCommand.js +28 -21
- package/dist-es/commands/ListAuditTasksCommand.js +28 -21
- package/dist-es/commands/ListAuthorizersCommand.js +28 -21
- package/dist-es/commands/ListBillingGroupsCommand.js +28 -21
- package/dist-es/commands/ListCACertificatesCommand.js +28 -21
- package/dist-es/commands/ListCertificatesByCACommand.js +28 -21
- package/dist-es/commands/ListCertificatesCommand.js +28 -21
- package/dist-es/commands/ListCustomMetricsCommand.js +28 -21
- package/dist-es/commands/ListDetectMitigationActionsExecutionsCommand.js +28 -21
- package/dist-es/commands/ListDetectMitigationActionsTasksCommand.js +28 -21
- package/dist-es/commands/ListDimensionsCommand.js +28 -21
- package/dist-es/commands/ListDomainConfigurationsCommand.js +28 -21
- package/dist-es/commands/ListFleetMetricsCommand.js +28 -21
- package/dist-es/commands/ListIndicesCommand.js +28 -21
- package/dist-es/commands/ListJobExecutionsForJobCommand.js +28 -21
- package/dist-es/commands/ListJobExecutionsForThingCommand.js +28 -21
- package/dist-es/commands/ListJobTemplatesCommand.js +28 -21
- package/dist-es/commands/ListJobsCommand.js +28 -21
- package/dist-es/commands/ListManagedJobTemplatesCommand.js +28 -21
- package/dist-es/commands/ListMetricValuesCommand.js +28 -21
- package/dist-es/commands/ListMitigationActionsCommand.js +28 -21
- package/dist-es/commands/ListOTAUpdatesCommand.js +28 -21
- package/dist-es/commands/ListOutgoingCertificatesCommand.js +28 -21
- package/dist-es/commands/ListPoliciesCommand.js +28 -21
- package/dist-es/commands/ListPolicyPrincipalsCommand.js +28 -21
- package/dist-es/commands/ListPolicyVersionsCommand.js +28 -21
- package/dist-es/commands/ListPrincipalPoliciesCommand.js +28 -21
- package/dist-es/commands/ListPrincipalThingsCommand.js +28 -21
- package/dist-es/commands/ListProvisioningTemplateVersionsCommand.js +28 -21
- package/dist-es/commands/ListProvisioningTemplatesCommand.js +28 -21
- package/dist-es/commands/ListRoleAliasesCommand.js +28 -21
- package/dist-es/commands/ListScheduledAuditsCommand.js +28 -21
- package/dist-es/commands/ListSecurityProfilesCommand.js +28 -21
- package/dist-es/commands/ListSecurityProfilesForTargetCommand.js +28 -21
- package/dist-es/commands/ListStreamsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/ListTargetsForPolicyCommand.js +28 -21
- package/dist-es/commands/ListTargetsForSecurityProfileCommand.js +28 -21
- package/dist-es/commands/ListThingGroupsCommand.js +28 -21
- package/dist-es/commands/ListThingGroupsForThingCommand.js +28 -21
- package/dist-es/commands/ListThingPrincipalsCommand.js +28 -21
- package/dist-es/commands/ListThingRegistrationTaskReportsCommand.js +28 -21
- package/dist-es/commands/ListThingRegistrationTasksCommand.js +28 -21
- package/dist-es/commands/ListThingTypesCommand.js +28 -21
- package/dist-es/commands/ListThingsCommand.js +28 -21
- package/dist-es/commands/ListThingsInBillingGroupCommand.js +28 -21
- package/dist-es/commands/ListThingsInThingGroupCommand.js +28 -21
- package/dist-es/commands/ListTopicRuleDestinationsCommand.js +28 -21
- package/dist-es/commands/ListTopicRulesCommand.js +28 -21
- package/dist-es/commands/ListV2LoggingLevelsCommand.js +28 -21
- package/dist-es/commands/ListViolationEventsCommand.js +28 -21
- package/dist-es/commands/PutVerificationStateOnViolationCommand.js +28 -21
- package/dist-es/commands/RegisterCACertificateCommand.js +28 -21
- package/dist-es/commands/RegisterCertificateCommand.js +28 -21
- package/dist-es/commands/RegisterCertificateWithoutCACommand.js +28 -21
- package/dist-es/commands/RegisterThingCommand.js +28 -21
- package/dist-es/commands/RejectCertificateTransferCommand.js +29 -22
- package/dist-es/commands/RemoveThingFromBillingGroupCommand.js +28 -21
- package/dist-es/commands/RemoveThingFromThingGroupCommand.js +28 -21
- package/dist-es/commands/ReplaceTopicRuleCommand.js +29 -22
- package/dist-es/commands/SearchIndexCommand.js +28 -21
- package/dist-es/commands/SetDefaultAuthorizerCommand.js +28 -21
- package/dist-es/commands/SetDefaultPolicyVersionCommand.js +29 -22
- package/dist-es/commands/SetLoggingOptionsCommand.js +29 -22
- package/dist-es/commands/SetV2LoggingLevelCommand.js +29 -22
- package/dist-es/commands/SetV2LoggingOptionsCommand.js +29 -22
- package/dist-es/commands/StartAuditMitigationActionsTaskCommand.js +28 -21
- package/dist-es/commands/StartDetectMitigationActionsTaskCommand.js +28 -21
- package/dist-es/commands/StartOnDemandAuditTaskCommand.js +28 -21
- package/dist-es/commands/StartThingRegistrationTaskCommand.js +28 -21
- package/dist-es/commands/StopThingRegistrationTaskCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/TestAuthorizationCommand.js +28 -21
- package/dist-es/commands/TestInvokeAuthorizerCommand.js +28 -21
- package/dist-es/commands/TransferCertificateCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateAccountAuditConfigurationCommand.js +28 -21
- package/dist-es/commands/UpdateAuditSuppressionCommand.js +28 -21
- package/dist-es/commands/UpdateAuthorizerCommand.js +28 -21
- package/dist-es/commands/UpdateBillingGroupCommand.js +28 -21
- package/dist-es/commands/UpdateCACertificateCommand.js +29 -22
- package/dist-es/commands/UpdateCertificateCommand.js +29 -22
- package/dist-es/commands/UpdateCustomMetricCommand.js +28 -21
- package/dist-es/commands/UpdateDimensionCommand.js +28 -21
- package/dist-es/commands/UpdateDomainConfigurationCommand.js +28 -21
- package/dist-es/commands/UpdateDynamicThingGroupCommand.js +28 -21
- package/dist-es/commands/UpdateEventConfigurationsCommand.js +28 -21
- package/dist-es/commands/UpdateFleetMetricCommand.js +29 -22
- package/dist-es/commands/UpdateIndexingConfigurationCommand.js +28 -21
- package/dist-es/commands/UpdateJobCommand.js +29 -22
- package/dist-es/commands/UpdateMitigationActionCommand.js +28 -21
- package/dist-es/commands/UpdateProvisioningTemplateCommand.js +28 -21
- package/dist-es/commands/UpdateRoleAliasCommand.js +28 -21
- package/dist-es/commands/UpdateScheduledAuditCommand.js +28 -21
- package/dist-es/commands/UpdateSecurityProfileCommand.js +28 -21
- package/dist-es/commands/UpdateStreamCommand.js +28 -21
- package/dist-es/commands/UpdateThingCommand.js +28 -21
- package/dist-es/commands/UpdateThingGroupCommand.js +28 -21
- package/dist-es/commands/UpdateThingGroupsForThingCommand.js +28 -21
- package/dist-es/commands/UpdateTopicRuleDestinationCommand.js +28 -21
- package/dist-es/commands/ValidateSecurityProfileBehaviorsCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IoTServiceException.js +10 -5
- package/dist-es/models/models_0.js +497 -970
- package/dist-es/models/models_1.js +297 -844
- package/dist-es/models/models_2.js +198 -459
- package/dist-es/pagination/GetBehaviorModelTrainingSummariesPaginator.js +68 -25
- package/dist-es/pagination/ListActiveViolationsPaginator.js +68 -25
- package/dist-es/pagination/ListAttachedPoliciesPaginator.js +68 -25
- package/dist-es/pagination/ListAuditFindingsPaginator.js +68 -25
- package/dist-es/pagination/ListAuditMitigationActionsExecutionsPaginator.js +68 -25
- package/dist-es/pagination/ListAuditMitigationActionsTasksPaginator.js +68 -25
- package/dist-es/pagination/ListAuditSuppressionsPaginator.js +68 -25
- package/dist-es/pagination/ListAuditTasksPaginator.js +68 -25
- package/dist-es/pagination/ListAuthorizersPaginator.js +68 -25
- package/dist-es/pagination/ListBillingGroupsPaginator.js +68 -25
- package/dist-es/pagination/ListCACertificatesPaginator.js +68 -25
- package/dist-es/pagination/ListCertificatesByCAPaginator.js +68 -25
- package/dist-es/pagination/ListCertificatesPaginator.js +68 -25
- package/dist-es/pagination/ListCustomMetricsPaginator.js +68 -25
- package/dist-es/pagination/ListDetectMitigationActionsExecutionsPaginator.js +68 -25
- package/dist-es/pagination/ListDetectMitigationActionsTasksPaginator.js +68 -25
- package/dist-es/pagination/ListDimensionsPaginator.js +68 -25
- package/dist-es/pagination/ListDomainConfigurationsPaginator.js +68 -25
- package/dist-es/pagination/ListFleetMetricsPaginator.js +68 -25
- package/dist-es/pagination/ListIndicesPaginator.js +68 -25
- package/dist-es/pagination/ListJobExecutionsForJobPaginator.js +68 -25
- package/dist-es/pagination/ListJobExecutionsForThingPaginator.js +68 -25
- package/dist-es/pagination/ListJobTemplatesPaginator.js +68 -25
- package/dist-es/pagination/ListJobsPaginator.js +68 -25
- package/dist-es/pagination/ListMetricValuesPaginator.js +68 -25
- package/dist-es/pagination/ListMitigationActionsPaginator.js +68 -25
- package/dist-es/pagination/ListOTAUpdatesPaginator.js +68 -25
- package/dist-es/pagination/ListOutgoingCertificatesPaginator.js +68 -25
- package/dist-es/pagination/ListPoliciesPaginator.js +68 -25
- package/dist-es/pagination/ListPolicyPrincipalsPaginator.js +68 -25
- package/dist-es/pagination/ListPrincipalPoliciesPaginator.js +68 -25
- package/dist-es/pagination/ListPrincipalThingsPaginator.js +68 -25
- package/dist-es/pagination/ListProvisioningTemplateVersionsPaginator.js +68 -25
- package/dist-es/pagination/ListProvisioningTemplatesPaginator.js +68 -25
- package/dist-es/pagination/ListRoleAliasesPaginator.js +68 -25
- package/dist-es/pagination/ListScheduledAuditsPaginator.js +68 -25
- package/dist-es/pagination/ListSecurityProfilesForTargetPaginator.js +68 -25
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +68 -25
- package/dist-es/pagination/ListStreamsPaginator.js +68 -25
- package/dist-es/pagination/ListTagsForResourcePaginator.js +67 -24
- package/dist-es/pagination/ListTargetsForPolicyPaginator.js +68 -25
- package/dist-es/pagination/ListTargetsForSecurityProfilePaginator.js +68 -25
- package/dist-es/pagination/ListThingGroupsForThingPaginator.js +68 -25
- package/dist-es/pagination/ListThingGroupsPaginator.js +68 -25
- package/dist-es/pagination/ListThingPrincipalsPaginator.js +68 -25
- package/dist-es/pagination/ListThingRegistrationTaskReportsPaginator.js +68 -25
- package/dist-es/pagination/ListThingRegistrationTasksPaginator.js +68 -25
- package/dist-es/pagination/ListThingTypesPaginator.js +68 -25
- package/dist-es/pagination/ListThingsInBillingGroupPaginator.js +68 -25
- package/dist-es/pagination/ListThingsInThingGroupPaginator.js +68 -25
- package/dist-es/pagination/ListThingsPaginator.js +68 -25
- package/dist-es/pagination/ListTopicRuleDestinationsPaginator.js +68 -25
- package/dist-es/pagination/ListTopicRulesPaginator.js +68 -25
- package/dist-es/pagination/ListV2LoggingLevelsPaginator.js +68 -25
- package/dist-es/pagination/ListViolationEventsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +25265 -18403
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import packageInfo from "../package.json";
|
|
2
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
@@ -11,30 +12,15 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
13
14
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
-
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
32
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
|
-
sha256: config?.sha256 ?? Sha256,
|
|
34
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
-
};
|
|
15
|
+
export var getRuntimeConfig = function (config) {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
40
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import packageInfo from "../package.json";
|
|
2
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
@@ -14,35 +15,16 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
|
|
|
14
15
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
15
16
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
|
-
export
|
|
18
|
+
export var getRuntimeConfig = function (config) {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
20
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
-
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
34
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
-
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
-
retryMode: config?.retryMode ??
|
|
37
|
-
loadNodeConfig({
|
|
38
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
|
-
}),
|
|
41
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
46
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
47
|
-
};
|
|
21
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
22
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
23
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
24
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
25
|
+
switch (_a.label) {
|
|
26
|
+
case 0: return [4, defaultConfigProvider()];
|
|
27
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
28
|
+
}
|
|
29
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
48
30
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
1
2
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
3
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
4
|
+
export var getRuntimeConfig = function (config) {
|
|
5
|
+
var _a;
|
|
6
|
+
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
|
+
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
11
8
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
2
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
export var getRuntimeConfig = function (config) {
|
|
4
|
+
var _a, _b, _c, _d, _e;
|
|
5
|
+
return ({
|
|
6
|
+
apiVersion: "2015-05-28",
|
|
7
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
8
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
9
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
|
|
10
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "IoT",
|
|
11
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
+
});
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iot",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.185.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.185.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.185.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.183.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
30
|
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
31
|
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.185.0",
|
|
33
33
|
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
34
|
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
35
|
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
36
|
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.185.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
40
|
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
41
|
"@aws-sdk/types": "3.183.0",
|