@aws-sdk/client-iot 3.54.1 → 3.58.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 +24 -0
- package/dist-cjs/IoTClient.js +14 -14
- package/dist-cjs/commands/AcceptCertificateTransferCommand.js +3 -3
- package/dist-cjs/commands/AddThingToBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/AddThingToThingGroupCommand.js +3 -3
- package/dist-cjs/commands/AssociateTargetsWithJobCommand.js +3 -3
- package/dist-cjs/commands/AttachPolicyCommand.js +3 -3
- package/dist-cjs/commands/AttachPrincipalPolicyCommand.js +3 -3
- package/dist-cjs/commands/AttachSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/AttachThingPrincipalCommand.js +3 -3
- package/dist-cjs/commands/CancelAuditMitigationActionsTaskCommand.js +3 -3
- package/dist-cjs/commands/CancelAuditTaskCommand.js +3 -3
- package/dist-cjs/commands/CancelCertificateTransferCommand.js +3 -3
- package/dist-cjs/commands/CancelDetectMitigationActionsTaskCommand.js +3 -3
- package/dist-cjs/commands/CancelJobCommand.js +3 -3
- package/dist-cjs/commands/CancelJobExecutionCommand.js +3 -3
- package/dist-cjs/commands/ClearDefaultAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/ConfirmTopicRuleDestinationCommand.js +3 -3
- package/dist-cjs/commands/CreateAuditSuppressionCommand.js +3 -3
- package/dist-cjs/commands/CreateAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/CreateBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/CreateCertificateFromCsrCommand.js +3 -3
- package/dist-cjs/commands/CreateCustomMetricCommand.js +3 -3
- package/dist-cjs/commands/CreateDimensionCommand.js +3 -3
- package/dist-cjs/commands/CreateDomainConfigurationCommand.js +3 -3
- package/dist-cjs/commands/CreateDynamicThingGroupCommand.js +3 -3
- package/dist-cjs/commands/CreateFleetMetricCommand.js +3 -3
- package/dist-cjs/commands/CreateJobCommand.js +3 -3
- package/dist-cjs/commands/CreateJobTemplateCommand.js +3 -3
- package/dist-cjs/commands/CreateKeysAndCertificateCommand.js +3 -3
- package/dist-cjs/commands/CreateMitigationActionCommand.js +3 -3
- package/dist-cjs/commands/CreateOTAUpdateCommand.js +3 -3
- package/dist-cjs/commands/CreatePolicyCommand.js +3 -3
- package/dist-cjs/commands/CreatePolicyVersionCommand.js +3 -3
- package/dist-cjs/commands/CreateProvisioningClaimCommand.js +3 -3
- package/dist-cjs/commands/CreateProvisioningTemplateCommand.js +3 -3
- package/dist-cjs/commands/CreateProvisioningTemplateVersionCommand.js +3 -3
- package/dist-cjs/commands/CreateRoleAliasCommand.js +3 -3
- package/dist-cjs/commands/CreateScheduledAuditCommand.js +3 -3
- package/dist-cjs/commands/CreateSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/CreateStreamCommand.js +3 -3
- package/dist-cjs/commands/CreateThingCommand.js +3 -3
- package/dist-cjs/commands/CreateThingGroupCommand.js +3 -3
- package/dist-cjs/commands/CreateThingTypeCommand.js +3 -3
- package/dist-cjs/commands/CreateTopicRuleCommand.js +3 -3
- package/dist-cjs/commands/CreateTopicRuleDestinationCommand.js +3 -3
- package/dist-cjs/commands/DeleteAccountAuditConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DeleteAuditSuppressionCommand.js +3 -3
- package/dist-cjs/commands/DeleteAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/DeleteBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/DeleteCACertificateCommand.js +3 -3
- package/dist-cjs/commands/DeleteCertificateCommand.js +3 -3
- package/dist-cjs/commands/DeleteCustomMetricCommand.js +3 -3
- package/dist-cjs/commands/DeleteDimensionCommand.js +3 -3
- package/dist-cjs/commands/DeleteDomainConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DeleteDynamicThingGroupCommand.js +3 -3
- package/dist-cjs/commands/DeleteFleetMetricCommand.js +3 -3
- package/dist-cjs/commands/DeleteJobCommand.js +3 -3
- package/dist-cjs/commands/DeleteJobExecutionCommand.js +3 -3
- package/dist-cjs/commands/DeleteJobTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteMitigationActionCommand.js +3 -3
- package/dist-cjs/commands/DeleteOTAUpdateCommand.js +3 -3
- package/dist-cjs/commands/DeletePolicyCommand.js +3 -3
- package/dist-cjs/commands/DeletePolicyVersionCommand.js +3 -3
- package/dist-cjs/commands/DeleteProvisioningTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteProvisioningTemplateVersionCommand.js +3 -3
- package/dist-cjs/commands/DeleteRegistrationCodeCommand.js +3 -3
- package/dist-cjs/commands/DeleteRoleAliasCommand.js +3 -3
- package/dist-cjs/commands/DeleteScheduledAuditCommand.js +3 -3
- package/dist-cjs/commands/DeleteSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/DeleteStreamCommand.js +3 -3
- package/dist-cjs/commands/DeleteThingCommand.js +3 -3
- package/dist-cjs/commands/DeleteThingGroupCommand.js +3 -3
- package/dist-cjs/commands/DeleteThingTypeCommand.js +3 -3
- package/dist-cjs/commands/DeleteTopicRuleCommand.js +3 -3
- package/dist-cjs/commands/DeleteTopicRuleDestinationCommand.js +3 -3
- package/dist-cjs/commands/DeleteV2LoggingLevelCommand.js +3 -3
- package/dist-cjs/commands/DeprecateThingTypeCommand.js +3 -3
- package/dist-cjs/commands/DescribeAccountAuditConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DescribeAuditFindingCommand.js +3 -3
- package/dist-cjs/commands/DescribeAuditMitigationActionsTaskCommand.js +3 -3
- package/dist-cjs/commands/DescribeAuditSuppressionCommand.js +3 -3
- package/dist-cjs/commands/DescribeAuditTaskCommand.js +3 -3
- package/dist-cjs/commands/DescribeAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/DescribeBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/DescribeCACertificateCommand.js +3 -3
- package/dist-cjs/commands/DescribeCertificateCommand.js +3 -3
- package/dist-cjs/commands/DescribeCustomMetricCommand.js +3 -3
- package/dist-cjs/commands/DescribeDefaultAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/DescribeDetectMitigationActionsTaskCommand.js +3 -3
- package/dist-cjs/commands/DescribeDimensionCommand.js +3 -3
- package/dist-cjs/commands/DescribeDomainConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DescribeEndpointCommand.js +3 -3
- package/dist-cjs/commands/DescribeEventConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/DescribeFleetMetricCommand.js +3 -3
- package/dist-cjs/commands/DescribeIndexCommand.js +3 -3
- package/dist-cjs/commands/DescribeJobCommand.js +3 -3
- package/dist-cjs/commands/DescribeJobExecutionCommand.js +3 -3
- package/dist-cjs/commands/DescribeJobTemplateCommand.js +3 -3
- package/dist-cjs/commands/DescribeManagedJobTemplateCommand.js +3 -3
- package/dist-cjs/commands/DescribeMitigationActionCommand.js +3 -3
- package/dist-cjs/commands/DescribeProvisioningTemplateCommand.js +3 -3
- package/dist-cjs/commands/DescribeProvisioningTemplateVersionCommand.js +3 -3
- package/dist-cjs/commands/DescribeRoleAliasCommand.js +3 -3
- package/dist-cjs/commands/DescribeScheduledAuditCommand.js +3 -3
- package/dist-cjs/commands/DescribeSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/DescribeStreamCommand.js +3 -3
- package/dist-cjs/commands/DescribeThingCommand.js +3 -3
- package/dist-cjs/commands/DescribeThingGroupCommand.js +3 -3
- package/dist-cjs/commands/DescribeThingRegistrationTaskCommand.js +3 -3
- package/dist-cjs/commands/DescribeThingTypeCommand.js +3 -3
- package/dist-cjs/commands/DetachPolicyCommand.js +3 -3
- package/dist-cjs/commands/DetachPrincipalPolicyCommand.js +3 -3
- package/dist-cjs/commands/DetachSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/DetachThingPrincipalCommand.js +3 -3
- package/dist-cjs/commands/DisableTopicRuleCommand.js +3 -3
- package/dist-cjs/commands/EnableTopicRuleCommand.js +3 -3
- package/dist-cjs/commands/GetBehaviorModelTrainingSummariesCommand.js +3 -3
- package/dist-cjs/commands/GetBucketsAggregationCommand.js +3 -3
- package/dist-cjs/commands/GetCardinalityCommand.js +3 -3
- package/dist-cjs/commands/GetEffectivePoliciesCommand.js +3 -3
- package/dist-cjs/commands/GetIndexingConfigurationCommand.js +3 -3
- package/dist-cjs/commands/GetJobDocumentCommand.js +3 -3
- package/dist-cjs/commands/GetLoggingOptionsCommand.js +3 -3
- package/dist-cjs/commands/GetOTAUpdateCommand.js +3 -3
- package/dist-cjs/commands/GetPercentilesCommand.js +3 -3
- package/dist-cjs/commands/GetPolicyCommand.js +3 -3
- package/dist-cjs/commands/GetPolicyVersionCommand.js +3 -3
- package/dist-cjs/commands/GetRegistrationCodeCommand.js +3 -3
- package/dist-cjs/commands/GetStatisticsCommand.js +3 -3
- package/dist-cjs/commands/GetTopicRuleCommand.js +3 -3
- package/dist-cjs/commands/GetTopicRuleDestinationCommand.js +3 -3
- package/dist-cjs/commands/GetV2LoggingOptionsCommand.js +3 -3
- package/dist-cjs/commands/ListActiveViolationsCommand.js +3 -3
- package/dist-cjs/commands/ListAttachedPoliciesCommand.js +3 -3
- package/dist-cjs/commands/ListAuditFindingsCommand.js +3 -3
- package/dist-cjs/commands/ListAuditMitigationActionsExecutionsCommand.js +3 -3
- package/dist-cjs/commands/ListAuditMitigationActionsTasksCommand.js +3 -3
- package/dist-cjs/commands/ListAuditSuppressionsCommand.js +3 -3
- package/dist-cjs/commands/ListAuditTasksCommand.js +3 -3
- package/dist-cjs/commands/ListAuthorizersCommand.js +3 -3
- package/dist-cjs/commands/ListBillingGroupsCommand.js +3 -3
- package/dist-cjs/commands/ListCACertificatesCommand.js +3 -3
- package/dist-cjs/commands/ListCertificatesByCACommand.js +3 -3
- package/dist-cjs/commands/ListCertificatesCommand.js +3 -3
- package/dist-cjs/commands/ListCustomMetricsCommand.js +3 -3
- package/dist-cjs/commands/ListDetectMitigationActionsExecutionsCommand.js +3 -3
- package/dist-cjs/commands/ListDetectMitigationActionsTasksCommand.js +3 -3
- package/dist-cjs/commands/ListDimensionsCommand.js +3 -3
- package/dist-cjs/commands/ListDomainConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/ListFleetMetricsCommand.js +3 -3
- package/dist-cjs/commands/ListIndicesCommand.js +3 -3
- package/dist-cjs/commands/ListJobExecutionsForJobCommand.js +3 -3
- package/dist-cjs/commands/ListJobExecutionsForThingCommand.js +3 -3
- package/dist-cjs/commands/ListJobTemplatesCommand.js +3 -3
- package/dist-cjs/commands/ListJobsCommand.js +3 -3
- package/dist-cjs/commands/ListManagedJobTemplatesCommand.js +3 -3
- package/dist-cjs/commands/ListMitigationActionsCommand.js +3 -3
- package/dist-cjs/commands/ListOTAUpdatesCommand.js +3 -3
- package/dist-cjs/commands/ListOutgoingCertificatesCommand.js +3 -3
- package/dist-cjs/commands/ListPoliciesCommand.js +3 -3
- package/dist-cjs/commands/ListPolicyPrincipalsCommand.js +3 -3
- package/dist-cjs/commands/ListPolicyVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListPrincipalPoliciesCommand.js +3 -3
- package/dist-cjs/commands/ListPrincipalThingsCommand.js +3 -3
- package/dist-cjs/commands/ListProvisioningTemplateVersionsCommand.js +3 -3
- package/dist-cjs/commands/ListProvisioningTemplatesCommand.js +3 -3
- package/dist-cjs/commands/ListRoleAliasesCommand.js +3 -3
- package/dist-cjs/commands/ListScheduledAuditsCommand.js +3 -3
- package/dist-cjs/commands/ListSecurityProfilesCommand.js +3 -3
- package/dist-cjs/commands/ListSecurityProfilesForTargetCommand.js +3 -3
- package/dist-cjs/commands/ListStreamsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListTargetsForPolicyCommand.js +3 -3
- package/dist-cjs/commands/ListTargetsForSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/ListThingGroupsCommand.js +3 -3
- package/dist-cjs/commands/ListThingGroupsForThingCommand.js +3 -3
- package/dist-cjs/commands/ListThingPrincipalsCommand.js +3 -3
- package/dist-cjs/commands/ListThingRegistrationTaskReportsCommand.js +3 -3
- package/dist-cjs/commands/ListThingRegistrationTasksCommand.js +3 -3
- package/dist-cjs/commands/ListThingTypesCommand.js +3 -3
- package/dist-cjs/commands/ListThingsCommand.js +3 -3
- package/dist-cjs/commands/ListThingsInBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/ListThingsInThingGroupCommand.js +3 -3
- package/dist-cjs/commands/ListTopicRuleDestinationsCommand.js +3 -3
- package/dist-cjs/commands/ListTopicRulesCommand.js +3 -3
- package/dist-cjs/commands/ListV2LoggingLevelsCommand.js +3 -3
- package/dist-cjs/commands/ListViolationEventsCommand.js +3 -3
- package/dist-cjs/commands/PutVerificationStateOnViolationCommand.js +3 -3
- package/dist-cjs/commands/RegisterCACertificateCommand.js +3 -3
- package/dist-cjs/commands/RegisterCertificateCommand.js +3 -3
- package/dist-cjs/commands/RegisterCertificateWithoutCACommand.js +3 -3
- package/dist-cjs/commands/RegisterThingCommand.js +3 -3
- package/dist-cjs/commands/RejectCertificateTransferCommand.js +3 -3
- package/dist-cjs/commands/RemoveThingFromBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/RemoveThingFromThingGroupCommand.js +3 -3
- package/dist-cjs/commands/ReplaceTopicRuleCommand.js +3 -3
- package/dist-cjs/commands/SearchIndexCommand.js +3 -3
- package/dist-cjs/commands/SetDefaultAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/SetDefaultPolicyVersionCommand.js +3 -3
- package/dist-cjs/commands/SetLoggingOptionsCommand.js +3 -3
- package/dist-cjs/commands/SetV2LoggingLevelCommand.js +3 -3
- package/dist-cjs/commands/SetV2LoggingOptionsCommand.js +3 -3
- package/dist-cjs/commands/StartAuditMitigationActionsTaskCommand.js +3 -3
- package/dist-cjs/commands/StartDetectMitigationActionsTaskCommand.js +3 -3
- package/dist-cjs/commands/StartOnDemandAuditTaskCommand.js +3 -3
- package/dist-cjs/commands/StartThingRegistrationTaskCommand.js +3 -3
- package/dist-cjs/commands/StopThingRegistrationTaskCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/TestAuthorizationCommand.js +3 -3
- package/dist-cjs/commands/TestInvokeAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/TransferCertificateCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAccountAuditConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateAuditSuppressionCommand.js +3 -3
- package/dist-cjs/commands/UpdateAuthorizerCommand.js +3 -3
- package/dist-cjs/commands/UpdateBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/UpdateCACertificateCommand.js +3 -3
- package/dist-cjs/commands/UpdateCertificateCommand.js +3 -3
- package/dist-cjs/commands/UpdateCustomMetricCommand.js +3 -3
- package/dist-cjs/commands/UpdateDimensionCommand.js +3 -3
- package/dist-cjs/commands/UpdateDomainConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateDynamicThingGroupCommand.js +3 -3
- package/dist-cjs/commands/UpdateEventConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/UpdateFleetMetricCommand.js +3 -3
- package/dist-cjs/commands/UpdateIndexingConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateJobCommand.js +3 -3
- package/dist-cjs/commands/UpdateMitigationActionCommand.js +3 -3
- package/dist-cjs/commands/UpdateProvisioningTemplateCommand.js +3 -3
- package/dist-cjs/commands/UpdateRoleAliasCommand.js +3 -3
- package/dist-cjs/commands/UpdateScheduledAuditCommand.js +3 -3
- package/dist-cjs/commands/UpdateSecurityProfileCommand.js +3 -3
- package/dist-cjs/commands/UpdateStreamCommand.js +3 -3
- package/dist-cjs/commands/UpdateThingCommand.js +3 -3
- package/dist-cjs/commands/UpdateThingGroupCommand.js +3 -3
- package/dist-cjs/commands/UpdateThingGroupsForThingCommand.js +3 -3
- package/dist-cjs/commands/UpdateTopicRuleDestinationCommand.js +3 -3
- package/dist-cjs/commands/ValidateSecurityProfileBehaviorsCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +1555 -1555
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/IoT.js +236 -236
- package/dist-es/pagination/GetBehaviorModelTrainingSummariesPaginator.js +4 -4
- package/dist-es/pagination/ListActiveViolationsPaginator.js +4 -4
- package/dist-es/pagination/ListAttachedPoliciesPaginator.js +4 -4
- package/dist-es/pagination/ListAuditFindingsPaginator.js +4 -4
- package/dist-es/pagination/ListAuditMitigationActionsExecutionsPaginator.js +4 -4
- package/dist-es/pagination/ListAuditMitigationActionsTasksPaginator.js +4 -4
- package/dist-es/pagination/ListAuditSuppressionsPaginator.js +4 -4
- package/dist-es/pagination/ListAuditTasksPaginator.js +4 -4
- package/dist-es/pagination/ListAuthorizersPaginator.js +4 -4
- package/dist-es/pagination/ListBillingGroupsPaginator.js +4 -4
- package/dist-es/pagination/ListCACertificatesPaginator.js +4 -4
- package/dist-es/pagination/ListCertificatesByCAPaginator.js +4 -4
- package/dist-es/pagination/ListCertificatesPaginator.js +4 -4
- package/dist-es/pagination/ListCustomMetricsPaginator.js +4 -4
- package/dist-es/pagination/ListDetectMitigationActionsExecutionsPaginator.js +4 -4
- package/dist-es/pagination/ListDetectMitigationActionsTasksPaginator.js +4 -4
- package/dist-es/pagination/ListDimensionsPaginator.js +4 -4
- package/dist-es/pagination/ListDomainConfigurationsPaginator.js +4 -4
- package/dist-es/pagination/ListFleetMetricsPaginator.js +4 -4
- package/dist-es/pagination/ListIndicesPaginator.js +4 -4
- package/dist-es/pagination/ListJobExecutionsForJobPaginator.js +4 -4
- package/dist-es/pagination/ListJobExecutionsForThingPaginator.js +4 -4
- package/dist-es/pagination/ListJobTemplatesPaginator.js +4 -4
- package/dist-es/pagination/ListJobsPaginator.js +4 -4
- package/dist-es/pagination/ListMitigationActionsPaginator.js +4 -4
- package/dist-es/pagination/ListOTAUpdatesPaginator.js +4 -4
- package/dist-es/pagination/ListOutgoingCertificatesPaginator.js +4 -4
- package/dist-es/pagination/ListPoliciesPaginator.js +4 -4
- package/dist-es/pagination/ListPolicyPrincipalsPaginator.js +4 -4
- package/dist-es/pagination/ListPrincipalPoliciesPaginator.js +4 -4
- package/dist-es/pagination/ListPrincipalThingsPaginator.js +4 -4
- package/dist-es/pagination/ListProvisioningTemplateVersionsPaginator.js +4 -4
- package/dist-es/pagination/ListProvisioningTemplatesPaginator.js +4 -4
- package/dist-es/pagination/ListRoleAliasesPaginator.js +4 -4
- package/dist-es/pagination/ListScheduledAuditsPaginator.js +4 -4
- package/dist-es/pagination/ListSecurityProfilesForTargetPaginator.js +4 -4
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +4 -4
- package/dist-es/pagination/ListStreamsPaginator.js +4 -4
- package/dist-es/pagination/ListTagsForResourcePaginator.js +4 -4
- package/dist-es/pagination/ListTargetsForPolicyPaginator.js +4 -4
- package/dist-es/pagination/ListTargetsForSecurityProfilePaginator.js +4 -4
- package/dist-es/pagination/ListThingGroupsForThingPaginator.js +4 -4
- package/dist-es/pagination/ListThingGroupsPaginator.js +4 -4
- package/dist-es/pagination/ListThingPrincipalsPaginator.js +4 -4
- package/dist-es/pagination/ListThingRegistrationTaskReportsPaginator.js +4 -4
- package/dist-es/pagination/ListThingRegistrationTasksPaginator.js +4 -4
- package/dist-es/pagination/ListThingTypesPaginator.js +4 -4
- package/dist-es/pagination/ListThingsInBillingGroupPaginator.js +4 -4
- package/dist-es/pagination/ListThingsInThingGroupPaginator.js +4 -4
- package/dist-es/pagination/ListThingsPaginator.js +4 -4
- package/dist-es/pagination/ListTopicRuleDestinationsPaginator.js +4 -4
- package/dist-es/pagination/ListTopicRulesPaginator.js +4 -4
- package/dist-es/pagination/ListV2LoggingLevelsPaginator.js +4 -4
- package/dist-es/pagination/ListViolationEventsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +236 -236
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1AcceptCertificateTransferCommand = function (in
|
|
|
14
14
|
case 1:
|
|
15
15
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
16
16
|
headers = {};
|
|
17
|
-
resolvedPath = ""
|
|
17
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
18
18
|
"/accept-certificate-transfer/{certificateId}";
|
|
19
19
|
if (input.certificateId !== undefined) {
|
|
20
20
|
labelValue = input.certificateId;
|
|
@@ -50,7 +50,7 @@ export var serializeAws_restJson1AddThingToBillingGroupCommand = function (input
|
|
|
50
50
|
headers = {
|
|
51
51
|
"content-type": "application/json",
|
|
52
52
|
};
|
|
53
|
-
resolvedPath = ""
|
|
53
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups/addThingToBillingGroup";
|
|
54
54
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.billingGroupArn !== undefined &&
|
|
55
55
|
input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn })), (input.billingGroupName !== undefined &&
|
|
56
56
|
input.billingGroupName !== null && { billingGroupName: input.billingGroupName })), (input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName })));
|
|
@@ -76,7 +76,7 @@ export var serializeAws_restJson1AddThingToThingGroupCommand = function (input,
|
|
|
76
76
|
headers = {
|
|
77
77
|
"content-type": "application/json",
|
|
78
78
|
};
|
|
79
|
-
resolvedPath = ""
|
|
79
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/addThingToThingGroup";
|
|
80
80
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups !== undefined &&
|
|
81
81
|
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn })), (input.thingGroupArn !== undefined && input.thingGroupArn !== null && { thingGroupArn: input.thingGroupArn })), (input.thingGroupName !== undefined &&
|
|
82
82
|
input.thingGroupName !== null && { thingGroupName: input.thingGroupName })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName })));
|
|
@@ -102,7 +102,7 @@ export var serializeAws_restJson1AssociateTargetsWithJobCommand = function (inpu
|
|
|
102
102
|
headers = {
|
|
103
103
|
"content-type": "application/json",
|
|
104
104
|
};
|
|
105
|
-
resolvedPath = ""
|
|
105
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}/targets";
|
|
106
106
|
if (input.jobId !== undefined) {
|
|
107
107
|
labelValue = input.jobId;
|
|
108
108
|
if (labelValue.length <= 0) {
|
|
@@ -139,7 +139,7 @@ export var serializeAws_restJson1AttachPolicyCommand = function (input, context)
|
|
|
139
139
|
headers = {
|
|
140
140
|
"content-type": "application/json",
|
|
141
141
|
};
|
|
142
|
-
resolvedPath = ""
|
|
142
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/target-policies/{policyName}";
|
|
143
143
|
if (input.policyName !== undefined) {
|
|
144
144
|
labelValue = input.policyName;
|
|
145
145
|
if (labelValue.length <= 0) {
|
|
@@ -171,7 +171,7 @@ export var serializeAws_restJson1AttachPrincipalPolicyCommand = function (input,
|
|
|
171
171
|
case 1:
|
|
172
172
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
173
173
|
headers = __assign({}, (isSerializableHeaderValue(input.principal) && { "x-amzn-iot-principal": input.principal }));
|
|
174
|
-
resolvedPath = ""
|
|
174
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/principal-policies/{policyName}";
|
|
175
175
|
if (input.policyName !== undefined) {
|
|
176
176
|
labelValue = input.policyName;
|
|
177
177
|
if (labelValue.length <= 0) {
|
|
@@ -202,7 +202,7 @@ export var serializeAws_restJson1AttachSecurityProfileCommand = function (input,
|
|
|
202
202
|
case 1:
|
|
203
203
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
204
204
|
headers = {};
|
|
205
|
-
resolvedPath = ""
|
|
205
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
206
206
|
"/security-profiles/{securityProfileName}/targets";
|
|
207
207
|
if (input.securityProfileName !== undefined) {
|
|
208
208
|
labelValue = input.securityProfileName;
|
|
@@ -236,7 +236,7 @@ export var serializeAws_restJson1AttachThingPrincipalCommand = function (input,
|
|
|
236
236
|
case 1:
|
|
237
237
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
238
238
|
headers = __assign({}, (isSerializableHeaderValue(input.principal) && { "x-amzn-principal": input.principal }));
|
|
239
|
-
resolvedPath = ""
|
|
239
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/principals";
|
|
240
240
|
if (input.thingName !== undefined) {
|
|
241
241
|
labelValue = input.thingName;
|
|
242
242
|
if (labelValue.length <= 0) {
|
|
@@ -267,7 +267,7 @@ export var serializeAws_restJson1CancelAuditMitigationActionsTaskCommand = funct
|
|
|
267
267
|
case 1:
|
|
268
268
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
269
269
|
headers = {};
|
|
270
|
-
resolvedPath = ""
|
|
270
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
271
271
|
"/audit/mitigationactions/tasks/{taskId}/cancel";
|
|
272
272
|
if (input.taskId !== undefined) {
|
|
273
273
|
labelValue = input.taskId;
|
|
@@ -299,7 +299,7 @@ export var serializeAws_restJson1CancelAuditTaskCommand = function (input, conte
|
|
|
299
299
|
case 1:
|
|
300
300
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
301
301
|
headers = {};
|
|
302
|
-
resolvedPath = ""
|
|
302
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/tasks/{taskId}/cancel";
|
|
303
303
|
if (input.taskId !== undefined) {
|
|
304
304
|
labelValue = input.taskId;
|
|
305
305
|
if (labelValue.length <= 0) {
|
|
@@ -330,7 +330,7 @@ export var serializeAws_restJson1CancelCertificateTransferCommand = function (in
|
|
|
330
330
|
case 1:
|
|
331
331
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
332
332
|
headers = {};
|
|
333
|
-
resolvedPath = ""
|
|
333
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
334
334
|
"/cancel-certificate-transfer/{certificateId}";
|
|
335
335
|
if (input.certificateId !== undefined) {
|
|
336
336
|
labelValue = input.certificateId;
|
|
@@ -362,7 +362,7 @@ export var serializeAws_restJson1CancelDetectMitigationActionsTaskCommand = func
|
|
|
362
362
|
case 1:
|
|
363
363
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
364
364
|
headers = {};
|
|
365
|
-
resolvedPath = ""
|
|
365
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
366
366
|
"/detect/mitigationactions/tasks/{taskId}/cancel";
|
|
367
367
|
if (input.taskId !== undefined) {
|
|
368
368
|
labelValue = input.taskId;
|
|
@@ -396,7 +396,7 @@ export var serializeAws_restJson1CancelJobCommand = function (input, context) {
|
|
|
396
396
|
headers = {
|
|
397
397
|
"content-type": "application/json",
|
|
398
398
|
};
|
|
399
|
-
resolvedPath = ""
|
|
399
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}/cancel";
|
|
400
400
|
if (input.jobId !== undefined) {
|
|
401
401
|
labelValue = input.jobId;
|
|
402
402
|
if (labelValue.length <= 0) {
|
|
@@ -432,7 +432,7 @@ export var serializeAws_restJson1CancelJobExecutionCommand = function (input, co
|
|
|
432
432
|
headers = {
|
|
433
433
|
"content-type": "application/json",
|
|
434
434
|
};
|
|
435
|
-
resolvedPath = ""
|
|
435
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/jobs/{jobId}/cancel";
|
|
436
436
|
if (input.jobId !== undefined) {
|
|
437
437
|
labelValue = input.jobId;
|
|
438
438
|
if (labelValue.length <= 0) {
|
|
@@ -482,7 +482,7 @@ export var serializeAws_restJson1ClearDefaultAuthorizerCommand = function (input
|
|
|
482
482
|
headers = {
|
|
483
483
|
"content-type": "application/json",
|
|
484
484
|
};
|
|
485
|
-
resolvedPath = ""
|
|
485
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/default-authorizer";
|
|
486
486
|
body = "";
|
|
487
487
|
return [2, new __HttpRequest({
|
|
488
488
|
protocol: protocol,
|
|
@@ -504,7 +504,7 @@ export var serializeAws_restJson1ConfirmTopicRuleDestinationCommand = function (
|
|
|
504
504
|
case 1:
|
|
505
505
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
506
506
|
headers = {};
|
|
507
|
-
resolvedPath = ""
|
|
507
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/confirmdestination/{confirmationToken+}";
|
|
508
508
|
if (input.confirmationToken !== undefined) {
|
|
509
509
|
labelValue = input.confirmationToken;
|
|
510
510
|
if (labelValue.length <= 0) {
|
|
@@ -541,7 +541,7 @@ export var serializeAws_restJson1CreateAuditSuppressionCommand = function (input
|
|
|
541
541
|
headers = {
|
|
542
542
|
"content-type": "application/json",
|
|
543
543
|
};
|
|
544
|
-
resolvedPath = ""
|
|
544
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/create";
|
|
545
545
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description !== undefined && input.description !== null && { description: input.description })), (input.expirationDate !== undefined &&
|
|
546
546
|
input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) })), (input.resourceIdentifier !== undefined &&
|
|
547
547
|
input.resourceIdentifier !== null && {
|
|
@@ -570,7 +570,7 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
|
|
|
570
570
|
headers = {
|
|
571
571
|
"content-type": "application/json",
|
|
572
572
|
};
|
|
573
|
-
resolvedPath = ""
|
|
573
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/authorizer/{authorizerName}";
|
|
574
574
|
if (input.authorizerName !== undefined) {
|
|
575
575
|
labelValue = input.authorizerName;
|
|
576
576
|
if (labelValue.length <= 0) {
|
|
@@ -611,7 +611,7 @@ export var serializeAws_restJson1CreateBillingGroupCommand = function (input, co
|
|
|
611
611
|
headers = {
|
|
612
612
|
"content-type": "application/json",
|
|
613
613
|
};
|
|
614
|
-
resolvedPath = ""
|
|
614
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups/{billingGroupName}";
|
|
615
615
|
if (input.billingGroupName !== undefined) {
|
|
616
616
|
labelValue = input.billingGroupName;
|
|
617
617
|
if (labelValue.length <= 0) {
|
|
@@ -649,7 +649,7 @@ export var serializeAws_restJson1CreateCertificateFromCsrCommand = function (inp
|
|
|
649
649
|
headers = {
|
|
650
650
|
"content-type": "application/json",
|
|
651
651
|
};
|
|
652
|
-
resolvedPath = ""
|
|
652
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates";
|
|
653
653
|
query = __assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() }));
|
|
654
654
|
body = JSON.stringify(__assign({}, (input.certificateSigningRequest !== undefined &&
|
|
655
655
|
input.certificateSigningRequest !== null && { certificateSigningRequest: input.certificateSigningRequest })));
|
|
@@ -677,7 +677,7 @@ export var serializeAws_restJson1CreateCustomMetricCommand = function (input, co
|
|
|
677
677
|
headers = {
|
|
678
678
|
"content-type": "application/json",
|
|
679
679
|
};
|
|
680
|
-
resolvedPath = ""
|
|
680
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-metric/{metricName}";
|
|
681
681
|
if (input.metricName !== undefined) {
|
|
682
682
|
labelValue = input.metricName;
|
|
683
683
|
if (labelValue.length <= 0) {
|
|
@@ -713,7 +713,7 @@ export var serializeAws_restJson1CreateDimensionCommand = function (input, conte
|
|
|
713
713
|
headers = {
|
|
714
714
|
"content-type": "application/json",
|
|
715
715
|
};
|
|
716
|
-
resolvedPath = ""
|
|
716
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dimensions/{name}";
|
|
717
717
|
if (input.name !== undefined) {
|
|
718
718
|
labelValue = input.name;
|
|
719
719
|
if (labelValue.length <= 0) {
|
|
@@ -751,7 +751,7 @@ export var serializeAws_restJson1CreateDomainConfigurationCommand = function (in
|
|
|
751
751
|
headers = {
|
|
752
752
|
"content-type": "application/json",
|
|
753
753
|
};
|
|
754
|
-
resolvedPath = ""
|
|
754
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
755
755
|
"/domainConfigurations/{domainConfigurationName}";
|
|
756
756
|
if (input.domainConfigurationName !== undefined) {
|
|
757
757
|
labelValue = input.domainConfigurationName;
|
|
@@ -794,7 +794,7 @@ export var serializeAws_restJson1CreateDynamicThingGroupCommand = function (inpu
|
|
|
794
794
|
headers = {
|
|
795
795
|
"content-type": "application/json",
|
|
796
796
|
};
|
|
797
|
-
resolvedPath = ""
|
|
797
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dynamic-thing-groups/{thingGroupName}";
|
|
798
798
|
if (input.thingGroupName !== undefined) {
|
|
799
799
|
labelValue = input.thingGroupName;
|
|
800
800
|
if (labelValue.length <= 0) {
|
|
@@ -832,7 +832,7 @@ export var serializeAws_restJson1CreateFleetMetricCommand = function (input, con
|
|
|
832
832
|
headers = {
|
|
833
833
|
"content-type": "application/json",
|
|
834
834
|
};
|
|
835
|
-
resolvedPath = ""
|
|
835
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/fleet-metric/{metricName}";
|
|
836
836
|
if (input.metricName !== undefined) {
|
|
837
837
|
labelValue = input.metricName;
|
|
838
838
|
if (labelValue.length <= 0) {
|
|
@@ -871,7 +871,7 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
871
871
|
headers = {
|
|
872
872
|
"content-type": "application/json",
|
|
873
873
|
};
|
|
874
|
-
resolvedPath = ""
|
|
874
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}";
|
|
875
875
|
if (input.jobId !== undefined) {
|
|
876
876
|
labelValue = input.jobId;
|
|
877
877
|
if (labelValue.length <= 0) {
|
|
@@ -926,7 +926,7 @@ export var serializeAws_restJson1CreateJobTemplateCommand = function (input, con
|
|
|
926
926
|
headers = {
|
|
927
927
|
"content-type": "application/json",
|
|
928
928
|
};
|
|
929
|
-
resolvedPath = ""
|
|
929
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/job-templates/{jobTemplateId}";
|
|
930
930
|
if (input.jobTemplateId !== undefined) {
|
|
931
931
|
labelValue = input.jobTemplateId;
|
|
932
932
|
if (labelValue.length <= 0) {
|
|
@@ -973,7 +973,7 @@ export var serializeAws_restJson1CreateKeysAndCertificateCommand = function (inp
|
|
|
973
973
|
case 1:
|
|
974
974
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
975
975
|
headers = {};
|
|
976
|
-
resolvedPath = ""
|
|
976
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/keys-and-certificate";
|
|
977
977
|
query = __assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() }));
|
|
978
978
|
return [2, new __HttpRequest({
|
|
979
979
|
protocol: protocol,
|
|
@@ -998,7 +998,7 @@ export var serializeAws_restJson1CreateMitigationActionCommand = function (input
|
|
|
998
998
|
headers = {
|
|
999
999
|
"content-type": "application/json",
|
|
1000
1000
|
};
|
|
1001
|
-
resolvedPath = ""
|
|
1001
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/mitigationactions/actions/{actionName}";
|
|
1002
1002
|
if (input.actionName !== undefined) {
|
|
1003
1003
|
labelValue = input.actionName;
|
|
1004
1004
|
if (labelValue.length <= 0) {
|
|
@@ -1036,7 +1036,7 @@ export var serializeAws_restJson1CreateOTAUpdateCommand = function (input, conte
|
|
|
1036
1036
|
headers = {
|
|
1037
1037
|
"content-type": "application/json",
|
|
1038
1038
|
};
|
|
1039
|
-
resolvedPath = ""
|
|
1039
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/otaUpdates/{otaUpdateId}";
|
|
1040
1040
|
if (input.otaUpdateId !== undefined) {
|
|
1041
1041
|
labelValue = input.otaUpdateId;
|
|
1042
1042
|
if (labelValue.length <= 0) {
|
|
@@ -1090,7 +1090,7 @@ export var serializeAws_restJson1CreatePolicyCommand = function (input, context)
|
|
|
1090
1090
|
headers = {
|
|
1091
1091
|
"content-type": "application/json",
|
|
1092
1092
|
};
|
|
1093
|
-
resolvedPath = ""
|
|
1093
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{policyName}";
|
|
1094
1094
|
if (input.policyName !== undefined) {
|
|
1095
1095
|
labelValue = input.policyName;
|
|
1096
1096
|
if (labelValue.length <= 0) {
|
|
@@ -1126,7 +1126,7 @@ export var serializeAws_restJson1CreatePolicyVersionCommand = function (input, c
|
|
|
1126
1126
|
headers = {
|
|
1127
1127
|
"content-type": "application/json",
|
|
1128
1128
|
};
|
|
1129
|
-
resolvedPath = ""
|
|
1129
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{policyName}/version";
|
|
1130
1130
|
if (input.policyName !== undefined) {
|
|
1131
1131
|
labelValue = input.policyName;
|
|
1132
1132
|
if (labelValue.length <= 0) {
|
|
@@ -1161,7 +1161,7 @@ export var serializeAws_restJson1CreateProvisioningClaimCommand = function (inpu
|
|
|
1161
1161
|
case 1:
|
|
1162
1162
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1163
1163
|
headers = {};
|
|
1164
|
-
resolvedPath = ""
|
|
1164
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1165
1165
|
"/provisioning-templates/{templateName}/provisioning-claim";
|
|
1166
1166
|
if (input.templateName !== undefined) {
|
|
1167
1167
|
labelValue = input.templateName;
|
|
@@ -1195,7 +1195,7 @@ export var serializeAws_restJson1CreateProvisioningTemplateCommand = function (i
|
|
|
1195
1195
|
headers = {
|
|
1196
1196
|
"content-type": "application/json",
|
|
1197
1197
|
};
|
|
1198
|
-
resolvedPath = ""
|
|
1198
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/provisioning-templates";
|
|
1199
1199
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.preProvisioningHook !== undefined &&
|
|
1200
1200
|
input.preProvisioningHook !== null && {
|
|
1201
1201
|
preProvisioningHook: serializeAws_restJson1ProvisioningHook(input.preProvisioningHook, context),
|
|
@@ -1224,7 +1224,7 @@ export var serializeAws_restJson1CreateProvisioningTemplateVersionCommand = func
|
|
|
1224
1224
|
headers = {
|
|
1225
1225
|
"content-type": "application/json",
|
|
1226
1226
|
};
|
|
1227
|
-
resolvedPath = ""
|
|
1227
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1228
1228
|
"/provisioning-templates/{templateName}/versions";
|
|
1229
1229
|
if (input.templateName !== undefined) {
|
|
1230
1230
|
labelValue = input.templateName;
|
|
@@ -1261,7 +1261,7 @@ export var serializeAws_restJson1CreateRoleAliasCommand = function (input, conte
|
|
|
1261
1261
|
headers = {
|
|
1262
1262
|
"content-type": "application/json",
|
|
1263
1263
|
};
|
|
1264
|
-
resolvedPath = ""
|
|
1264
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/role-aliases/{roleAlias}";
|
|
1265
1265
|
if (input.roleAlias !== undefined) {
|
|
1266
1266
|
labelValue = input.roleAlias;
|
|
1267
1267
|
if (labelValue.length <= 0) {
|
|
@@ -1297,7 +1297,7 @@ export var serializeAws_restJson1CreateScheduledAuditCommand = function (input,
|
|
|
1297
1297
|
headers = {
|
|
1298
1298
|
"content-type": "application/json",
|
|
1299
1299
|
};
|
|
1300
|
-
resolvedPath = ""
|
|
1300
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1301
1301
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
1302
1302
|
if (input.scheduledAuditName !== undefined) {
|
|
1303
1303
|
labelValue = input.scheduledAuditName;
|
|
@@ -1336,7 +1336,7 @@ export var serializeAws_restJson1CreateSecurityProfileCommand = function (input,
|
|
|
1336
1336
|
headers = {
|
|
1337
1337
|
"content-type": "application/json",
|
|
1338
1338
|
};
|
|
1339
|
-
resolvedPath = ""
|
|
1339
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profiles/{securityProfileName}";
|
|
1340
1340
|
if (input.securityProfileName !== undefined) {
|
|
1341
1341
|
labelValue = input.securityProfileName;
|
|
1342
1342
|
if (labelValue.length <= 0) {
|
|
@@ -1380,7 +1380,7 @@ export var serializeAws_restJson1CreateStreamCommand = function (input, context)
|
|
|
1380
1380
|
headers = {
|
|
1381
1381
|
"content-type": "application/json",
|
|
1382
1382
|
};
|
|
1383
|
-
resolvedPath = ""
|
|
1383
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/streams/{streamId}";
|
|
1384
1384
|
if (input.streamId !== undefined) {
|
|
1385
1385
|
labelValue = input.streamId;
|
|
1386
1386
|
if (labelValue.length <= 0) {
|
|
@@ -1416,7 +1416,7 @@ export var serializeAws_restJson1CreateThingCommand = function (input, context)
|
|
|
1416
1416
|
headers = {
|
|
1417
1417
|
"content-type": "application/json",
|
|
1418
1418
|
};
|
|
1419
|
-
resolvedPath = ""
|
|
1419
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}";
|
|
1420
1420
|
if (input.thingName !== undefined) {
|
|
1421
1421
|
labelValue = input.thingName;
|
|
1422
1422
|
if (labelValue.length <= 0) {
|
|
@@ -1454,7 +1454,7 @@ export var serializeAws_restJson1CreateThingGroupCommand = function (input, cont
|
|
|
1454
1454
|
headers = {
|
|
1455
1455
|
"content-type": "application/json",
|
|
1456
1456
|
};
|
|
1457
|
-
resolvedPath = ""
|
|
1457
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/{thingGroupName}";
|
|
1458
1458
|
if (input.thingGroupName !== undefined) {
|
|
1459
1459
|
labelValue = input.thingGroupName;
|
|
1460
1460
|
if (labelValue.length <= 0) {
|
|
@@ -1493,7 +1493,7 @@ export var serializeAws_restJson1CreateThingTypeCommand = function (input, conte
|
|
|
1493
1493
|
headers = {
|
|
1494
1494
|
"content-type": "application/json",
|
|
1495
1495
|
};
|
|
1496
|
-
resolvedPath = ""
|
|
1496
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-types/{thingTypeName}";
|
|
1497
1497
|
if (input.thingTypeName !== undefined) {
|
|
1498
1498
|
labelValue = input.thingTypeName;
|
|
1499
1499
|
if (labelValue.length <= 0) {
|
|
@@ -1529,7 +1529,7 @@ export var serializeAws_restJson1CreateTopicRuleCommand = function (input, conte
|
|
|
1529
1529
|
case 1:
|
|
1530
1530
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1531
1531
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.tags) && { "x-amz-tagging": input.tags }));
|
|
1532
|
-
resolvedPath = ""
|
|
1532
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules/{ruleName}";
|
|
1533
1533
|
if (input.ruleName !== undefined) {
|
|
1534
1534
|
labelValue = input.ruleName;
|
|
1535
1535
|
if (labelValue.length <= 0) {
|
|
@@ -1569,7 +1569,7 @@ export var serializeAws_restJson1CreateTopicRuleDestinationCommand = function (i
|
|
|
1569
1569
|
headers = {
|
|
1570
1570
|
"content-type": "application/json",
|
|
1571
1571
|
};
|
|
1572
|
-
resolvedPath = ""
|
|
1572
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
1573
1573
|
body = JSON.stringify(__assign({}, (input.destinationConfiguration !== undefined &&
|
|
1574
1574
|
input.destinationConfiguration !== null && {
|
|
1575
1575
|
destinationConfiguration: serializeAws_restJson1TopicRuleDestinationConfiguration(input.destinationConfiguration, context),
|
|
@@ -1594,7 +1594,7 @@ export var serializeAws_restJson1DeleteAccountAuditConfigurationCommand = functi
|
|
|
1594
1594
|
case 1:
|
|
1595
1595
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1596
1596
|
headers = {};
|
|
1597
|
-
resolvedPath = ""
|
|
1597
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/configuration";
|
|
1598
1598
|
query = __assign({}, (input.deleteScheduledAudits !== undefined && { deleteScheduledAudits: input.deleteScheduledAudits.toString() }));
|
|
1599
1599
|
return [2, new __HttpRequest({
|
|
1600
1600
|
protocol: protocol,
|
|
@@ -1619,7 +1619,7 @@ export var serializeAws_restJson1DeleteAuditSuppressionCommand = function (input
|
|
|
1619
1619
|
headers = {
|
|
1620
1620
|
"content-type": "application/json",
|
|
1621
1621
|
};
|
|
1622
|
-
resolvedPath = ""
|
|
1622
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/delete";
|
|
1623
1623
|
body = JSON.stringify(__assign(__assign({}, (input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName })), (input.resourceIdentifier !== undefined &&
|
|
1624
1624
|
input.resourceIdentifier !== null && {
|
|
1625
1625
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
@@ -1644,7 +1644,7 @@ export var serializeAws_restJson1DeleteAuthorizerCommand = function (input, cont
|
|
|
1644
1644
|
case 1:
|
|
1645
1645
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1646
1646
|
headers = {};
|
|
1647
|
-
resolvedPath = ""
|
|
1647
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/authorizer/{authorizerName}";
|
|
1648
1648
|
if (input.authorizerName !== undefined) {
|
|
1649
1649
|
labelValue = input.authorizerName;
|
|
1650
1650
|
if (labelValue.length <= 0) {
|
|
@@ -1675,7 +1675,7 @@ export var serializeAws_restJson1DeleteBillingGroupCommand = function (input, co
|
|
|
1675
1675
|
case 1:
|
|
1676
1676
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1677
1677
|
headers = {};
|
|
1678
|
-
resolvedPath = ""
|
|
1678
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups/{billingGroupName}";
|
|
1679
1679
|
if (input.billingGroupName !== undefined) {
|
|
1680
1680
|
labelValue = input.billingGroupName;
|
|
1681
1681
|
if (labelValue.length <= 0) {
|
|
@@ -1708,7 +1708,7 @@ export var serializeAws_restJson1DeleteCACertificateCommand = function (input, c
|
|
|
1708
1708
|
case 1:
|
|
1709
1709
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1710
1710
|
headers = {};
|
|
1711
|
-
resolvedPath = ""
|
|
1711
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cacertificate/{certificateId}";
|
|
1712
1712
|
if (input.certificateId !== undefined) {
|
|
1713
1713
|
labelValue = input.certificateId;
|
|
1714
1714
|
if (labelValue.length <= 0) {
|
|
@@ -1739,7 +1739,7 @@ export var serializeAws_restJson1DeleteCertificateCommand = function (input, con
|
|
|
1739
1739
|
case 1:
|
|
1740
1740
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1741
1741
|
headers = {};
|
|
1742
|
-
resolvedPath = ""
|
|
1742
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates/{certificateId}";
|
|
1743
1743
|
if (input.certificateId !== undefined) {
|
|
1744
1744
|
labelValue = input.certificateId;
|
|
1745
1745
|
if (labelValue.length <= 0) {
|
|
@@ -1772,7 +1772,7 @@ export var serializeAws_restJson1DeleteCustomMetricCommand = function (input, co
|
|
|
1772
1772
|
case 1:
|
|
1773
1773
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1774
1774
|
headers = {};
|
|
1775
|
-
resolvedPath = ""
|
|
1775
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-metric/{metricName}";
|
|
1776
1776
|
if (input.metricName !== undefined) {
|
|
1777
1777
|
labelValue = input.metricName;
|
|
1778
1778
|
if (labelValue.length <= 0) {
|
|
@@ -1803,7 +1803,7 @@ export var serializeAws_restJson1DeleteDimensionCommand = function (input, conte
|
|
|
1803
1803
|
case 1:
|
|
1804
1804
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1805
1805
|
headers = {};
|
|
1806
|
-
resolvedPath = ""
|
|
1806
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dimensions/{name}";
|
|
1807
1807
|
if (input.name !== undefined) {
|
|
1808
1808
|
labelValue = input.name;
|
|
1809
1809
|
if (labelValue.length <= 0) {
|
|
@@ -1834,7 +1834,7 @@ export var serializeAws_restJson1DeleteDomainConfigurationCommand = function (in
|
|
|
1834
1834
|
case 1:
|
|
1835
1835
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1836
1836
|
headers = {};
|
|
1837
|
-
resolvedPath = ""
|
|
1837
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1838
1838
|
"/domainConfigurations/{domainConfigurationName}";
|
|
1839
1839
|
if (input.domainConfigurationName !== undefined) {
|
|
1840
1840
|
labelValue = input.domainConfigurationName;
|
|
@@ -1866,7 +1866,7 @@ export var serializeAws_restJson1DeleteDynamicThingGroupCommand = function (inpu
|
|
|
1866
1866
|
case 1:
|
|
1867
1867
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1868
1868
|
headers = {};
|
|
1869
|
-
resolvedPath = ""
|
|
1869
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dynamic-thing-groups/{thingGroupName}";
|
|
1870
1870
|
if (input.thingGroupName !== undefined) {
|
|
1871
1871
|
labelValue = input.thingGroupName;
|
|
1872
1872
|
if (labelValue.length <= 0) {
|
|
@@ -1899,7 +1899,7 @@ export var serializeAws_restJson1DeleteFleetMetricCommand = function (input, con
|
|
|
1899
1899
|
case 1:
|
|
1900
1900
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1901
1901
|
headers = {};
|
|
1902
|
-
resolvedPath = ""
|
|
1902
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/fleet-metric/{metricName}";
|
|
1903
1903
|
if (input.metricName !== undefined) {
|
|
1904
1904
|
labelValue = input.metricName;
|
|
1905
1905
|
if (labelValue.length <= 0) {
|
|
@@ -1932,7 +1932,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
1932
1932
|
case 1:
|
|
1933
1933
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1934
1934
|
headers = {};
|
|
1935
|
-
resolvedPath = ""
|
|
1935
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}";
|
|
1936
1936
|
if (input.jobId !== undefined) {
|
|
1937
1937
|
labelValue = input.jobId;
|
|
1938
1938
|
if (labelValue.length <= 0) {
|
|
@@ -1965,7 +1965,7 @@ export var serializeAws_restJson1DeleteJobExecutionCommand = function (input, co
|
|
|
1965
1965
|
case 1:
|
|
1966
1966
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1967
1967
|
headers = {};
|
|
1968
|
-
resolvedPath = ""
|
|
1968
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1969
1969
|
"/things/{thingName}/jobs/{jobId}/executionNumber/{executionNumber}";
|
|
1970
1970
|
if (input.jobId !== undefined) {
|
|
1971
1971
|
labelValue = input.jobId;
|
|
@@ -2019,7 +2019,7 @@ export var serializeAws_restJson1DeleteJobTemplateCommand = function (input, con
|
|
|
2019
2019
|
case 1:
|
|
2020
2020
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2021
2021
|
headers = {};
|
|
2022
|
-
resolvedPath = ""
|
|
2022
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/job-templates/{jobTemplateId}";
|
|
2023
2023
|
if (input.jobTemplateId !== undefined) {
|
|
2024
2024
|
labelValue = input.jobTemplateId;
|
|
2025
2025
|
if (labelValue.length <= 0) {
|
|
@@ -2050,7 +2050,7 @@ export var serializeAws_restJson1DeleteMitigationActionCommand = function (input
|
|
|
2050
2050
|
case 1:
|
|
2051
2051
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2052
2052
|
headers = {};
|
|
2053
|
-
resolvedPath = ""
|
|
2053
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/mitigationactions/actions/{actionName}";
|
|
2054
2054
|
if (input.actionName !== undefined) {
|
|
2055
2055
|
labelValue = input.actionName;
|
|
2056
2056
|
if (labelValue.length <= 0) {
|
|
@@ -2081,7 +2081,7 @@ export var serializeAws_restJson1DeleteOTAUpdateCommand = function (input, conte
|
|
|
2081
2081
|
case 1:
|
|
2082
2082
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2083
2083
|
headers = {};
|
|
2084
|
-
resolvedPath = ""
|
|
2084
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/otaUpdates/{otaUpdateId}";
|
|
2085
2085
|
if (input.otaUpdateId !== undefined) {
|
|
2086
2086
|
labelValue = input.otaUpdateId;
|
|
2087
2087
|
if (labelValue.length <= 0) {
|
|
@@ -2114,7 +2114,7 @@ export var serializeAws_restJson1DeletePolicyCommand = function (input, context)
|
|
|
2114
2114
|
case 1:
|
|
2115
2115
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2116
2116
|
headers = {};
|
|
2117
|
-
resolvedPath = ""
|
|
2117
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{policyName}";
|
|
2118
2118
|
if (input.policyName !== undefined) {
|
|
2119
2119
|
labelValue = input.policyName;
|
|
2120
2120
|
if (labelValue.length <= 0) {
|
|
@@ -2145,7 +2145,7 @@ export var serializeAws_restJson1DeletePolicyVersionCommand = function (input, c
|
|
|
2145
2145
|
case 1:
|
|
2146
2146
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2147
2147
|
headers = {};
|
|
2148
|
-
resolvedPath = ""
|
|
2148
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2149
2149
|
"/policies/{policyName}/version/{policyVersionId}";
|
|
2150
2150
|
if (input.policyName !== undefined) {
|
|
2151
2151
|
labelValue = input.policyName;
|
|
@@ -2187,7 +2187,7 @@ export var serializeAws_restJson1DeleteProvisioningTemplateCommand = function (i
|
|
|
2187
2187
|
case 1:
|
|
2188
2188
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2189
2189
|
headers = {};
|
|
2190
|
-
resolvedPath = ""
|
|
2190
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/provisioning-templates/{templateName}";
|
|
2191
2191
|
if (input.templateName !== undefined) {
|
|
2192
2192
|
labelValue = input.templateName;
|
|
2193
2193
|
if (labelValue.length <= 0) {
|
|
@@ -2218,7 +2218,7 @@ export var serializeAws_restJson1DeleteProvisioningTemplateVersionCommand = func
|
|
|
2218
2218
|
case 1:
|
|
2219
2219
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2220
2220
|
headers = {};
|
|
2221
|
-
resolvedPath = ""
|
|
2221
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2222
2222
|
"/provisioning-templates/{templateName}/versions/{versionId}";
|
|
2223
2223
|
if (input.templateName !== undefined) {
|
|
2224
2224
|
labelValue = input.templateName;
|
|
@@ -2262,7 +2262,7 @@ export var serializeAws_restJson1DeleteRegistrationCodeCommand = function (input
|
|
|
2262
2262
|
headers = {
|
|
2263
2263
|
"content-type": "application/json",
|
|
2264
2264
|
};
|
|
2265
|
-
resolvedPath = ""
|
|
2265
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/registrationcode";
|
|
2266
2266
|
body = "";
|
|
2267
2267
|
return [2, new __HttpRequest({
|
|
2268
2268
|
protocol: protocol,
|
|
@@ -2284,7 +2284,7 @@ export var serializeAws_restJson1DeleteRoleAliasCommand = function (input, conte
|
|
|
2284
2284
|
case 1:
|
|
2285
2285
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2286
2286
|
headers = {};
|
|
2287
|
-
resolvedPath = ""
|
|
2287
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/role-aliases/{roleAlias}";
|
|
2288
2288
|
if (input.roleAlias !== undefined) {
|
|
2289
2289
|
labelValue = input.roleAlias;
|
|
2290
2290
|
if (labelValue.length <= 0) {
|
|
@@ -2315,7 +2315,7 @@ export var serializeAws_restJson1DeleteScheduledAuditCommand = function (input,
|
|
|
2315
2315
|
case 1:
|
|
2316
2316
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2317
2317
|
headers = {};
|
|
2318
|
-
resolvedPath = ""
|
|
2318
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2319
2319
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
2320
2320
|
if (input.scheduledAuditName !== undefined) {
|
|
2321
2321
|
labelValue = input.scheduledAuditName;
|
|
@@ -2347,7 +2347,7 @@ export var serializeAws_restJson1DeleteSecurityProfileCommand = function (input,
|
|
|
2347
2347
|
case 1:
|
|
2348
2348
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2349
2349
|
headers = {};
|
|
2350
|
-
resolvedPath = ""
|
|
2350
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profiles/{securityProfileName}";
|
|
2351
2351
|
if (input.securityProfileName !== undefined) {
|
|
2352
2352
|
labelValue = input.securityProfileName;
|
|
2353
2353
|
if (labelValue.length <= 0) {
|
|
@@ -2380,7 +2380,7 @@ export var serializeAws_restJson1DeleteStreamCommand = function (input, context)
|
|
|
2380
2380
|
case 1:
|
|
2381
2381
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2382
2382
|
headers = {};
|
|
2383
|
-
resolvedPath = ""
|
|
2383
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/streams/{streamId}";
|
|
2384
2384
|
if (input.streamId !== undefined) {
|
|
2385
2385
|
labelValue = input.streamId;
|
|
2386
2386
|
if (labelValue.length <= 0) {
|
|
@@ -2411,7 +2411,7 @@ export var serializeAws_restJson1DeleteThingCommand = function (input, context)
|
|
|
2411
2411
|
case 1:
|
|
2412
2412
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2413
2413
|
headers = {};
|
|
2414
|
-
resolvedPath = ""
|
|
2414
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}";
|
|
2415
2415
|
if (input.thingName !== undefined) {
|
|
2416
2416
|
labelValue = input.thingName;
|
|
2417
2417
|
if (labelValue.length <= 0) {
|
|
@@ -2444,7 +2444,7 @@ export var serializeAws_restJson1DeleteThingGroupCommand = function (input, cont
|
|
|
2444
2444
|
case 1:
|
|
2445
2445
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2446
2446
|
headers = {};
|
|
2447
|
-
resolvedPath = ""
|
|
2447
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/{thingGroupName}";
|
|
2448
2448
|
if (input.thingGroupName !== undefined) {
|
|
2449
2449
|
labelValue = input.thingGroupName;
|
|
2450
2450
|
if (labelValue.length <= 0) {
|
|
@@ -2477,7 +2477,7 @@ export var serializeAws_restJson1DeleteThingTypeCommand = function (input, conte
|
|
|
2477
2477
|
case 1:
|
|
2478
2478
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2479
2479
|
headers = {};
|
|
2480
|
-
resolvedPath = ""
|
|
2480
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-types/{thingTypeName}";
|
|
2481
2481
|
if (input.thingTypeName !== undefined) {
|
|
2482
2482
|
labelValue = input.thingTypeName;
|
|
2483
2483
|
if (labelValue.length <= 0) {
|
|
@@ -2508,7 +2508,7 @@ export var serializeAws_restJson1DeleteTopicRuleCommand = function (input, conte
|
|
|
2508
2508
|
case 1:
|
|
2509
2509
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2510
2510
|
headers = {};
|
|
2511
|
-
resolvedPath = ""
|
|
2511
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules/{ruleName}";
|
|
2512
2512
|
if (input.ruleName !== undefined) {
|
|
2513
2513
|
labelValue = input.ruleName;
|
|
2514
2514
|
if (labelValue.length <= 0) {
|
|
@@ -2539,7 +2539,7 @@ export var serializeAws_restJson1DeleteTopicRuleDestinationCommand = function (i
|
|
|
2539
2539
|
case 1:
|
|
2540
2540
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2541
2541
|
headers = {};
|
|
2542
|
-
resolvedPath = ""
|
|
2542
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations/{arn+}";
|
|
2543
2543
|
if (input.arn !== undefined) {
|
|
2544
2544
|
labelValue = input.arn;
|
|
2545
2545
|
if (labelValue.length <= 0) {
|
|
@@ -2573,7 +2573,7 @@ export var serializeAws_restJson1DeleteV2LoggingLevelCommand = function (input,
|
|
|
2573
2573
|
case 1:
|
|
2574
2574
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2575
2575
|
headers = {};
|
|
2576
|
-
resolvedPath = ""
|
|
2576
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingLevel";
|
|
2577
2577
|
query = __assign(__assign({}, (input.targetType !== undefined && { targetType: input.targetType })), (input.targetName !== undefined && { targetName: input.targetName }));
|
|
2578
2578
|
return [2, new __HttpRequest({
|
|
2579
2579
|
protocol: protocol,
|
|
@@ -2598,7 +2598,7 @@ export var serializeAws_restJson1DeprecateThingTypeCommand = function (input, co
|
|
|
2598
2598
|
headers = {
|
|
2599
2599
|
"content-type": "application/json",
|
|
2600
2600
|
};
|
|
2601
|
-
resolvedPath = ""
|
|
2601
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-types/{thingTypeName}/deprecate";
|
|
2602
2602
|
if (input.thingTypeName !== undefined) {
|
|
2603
2603
|
labelValue = input.thingTypeName;
|
|
2604
2604
|
if (labelValue.length <= 0) {
|
|
@@ -2632,7 +2632,7 @@ export var serializeAws_restJson1DescribeAccountAuditConfigurationCommand = func
|
|
|
2632
2632
|
headers = {
|
|
2633
2633
|
"content-type": "application/json",
|
|
2634
2634
|
};
|
|
2635
|
-
resolvedPath = ""
|
|
2635
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/configuration";
|
|
2636
2636
|
body = "";
|
|
2637
2637
|
return [2, new __HttpRequest({
|
|
2638
2638
|
protocol: protocol,
|
|
@@ -2654,7 +2654,7 @@ export var serializeAws_restJson1DescribeAuditFindingCommand = function (input,
|
|
|
2654
2654
|
case 1:
|
|
2655
2655
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2656
2656
|
headers = {};
|
|
2657
|
-
resolvedPath = ""
|
|
2657
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/findings/{findingId}";
|
|
2658
2658
|
if (input.findingId !== undefined) {
|
|
2659
2659
|
labelValue = input.findingId;
|
|
2660
2660
|
if (labelValue.length <= 0) {
|
|
@@ -2685,7 +2685,7 @@ export var serializeAws_restJson1DescribeAuditMitigationActionsTaskCommand = fun
|
|
|
2685
2685
|
case 1:
|
|
2686
2686
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2687
2687
|
headers = {};
|
|
2688
|
-
resolvedPath = ""
|
|
2688
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/mitigationactions/tasks/{taskId}";
|
|
2689
2689
|
if (input.taskId !== undefined) {
|
|
2690
2690
|
labelValue = input.taskId;
|
|
2691
2691
|
if (labelValue.length <= 0) {
|
|
@@ -2718,7 +2718,7 @@ export var serializeAws_restJson1DescribeAuditSuppressionCommand = function (inp
|
|
|
2718
2718
|
headers = {
|
|
2719
2719
|
"content-type": "application/json",
|
|
2720
2720
|
};
|
|
2721
|
-
resolvedPath = ""
|
|
2721
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/describe";
|
|
2722
2722
|
body = JSON.stringify(__assign(__assign({}, (input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName })), (input.resourceIdentifier !== undefined &&
|
|
2723
2723
|
input.resourceIdentifier !== null && {
|
|
2724
2724
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
@@ -2743,7 +2743,7 @@ export var serializeAws_restJson1DescribeAuditTaskCommand = function (input, con
|
|
|
2743
2743
|
case 1:
|
|
2744
2744
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2745
2745
|
headers = {};
|
|
2746
|
-
resolvedPath = ""
|
|
2746
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/tasks/{taskId}";
|
|
2747
2747
|
if (input.taskId !== undefined) {
|
|
2748
2748
|
labelValue = input.taskId;
|
|
2749
2749
|
if (labelValue.length <= 0) {
|
|
@@ -2774,7 +2774,7 @@ export var serializeAws_restJson1DescribeAuthorizerCommand = function (input, co
|
|
|
2774
2774
|
case 1:
|
|
2775
2775
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2776
2776
|
headers = {};
|
|
2777
|
-
resolvedPath = ""
|
|
2777
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/authorizer/{authorizerName}";
|
|
2778
2778
|
if (input.authorizerName !== undefined) {
|
|
2779
2779
|
labelValue = input.authorizerName;
|
|
2780
2780
|
if (labelValue.length <= 0) {
|
|
@@ -2805,7 +2805,7 @@ export var serializeAws_restJson1DescribeBillingGroupCommand = function (input,
|
|
|
2805
2805
|
case 1:
|
|
2806
2806
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2807
2807
|
headers = {};
|
|
2808
|
-
resolvedPath = ""
|
|
2808
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups/{billingGroupName}";
|
|
2809
2809
|
if (input.billingGroupName !== undefined) {
|
|
2810
2810
|
labelValue = input.billingGroupName;
|
|
2811
2811
|
if (labelValue.length <= 0) {
|
|
@@ -2836,7 +2836,7 @@ export var serializeAws_restJson1DescribeCACertificateCommand = function (input,
|
|
|
2836
2836
|
case 1:
|
|
2837
2837
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2838
2838
|
headers = {};
|
|
2839
|
-
resolvedPath = ""
|
|
2839
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cacertificate/{certificateId}";
|
|
2840
2840
|
if (input.certificateId !== undefined) {
|
|
2841
2841
|
labelValue = input.certificateId;
|
|
2842
2842
|
if (labelValue.length <= 0) {
|
|
@@ -2867,7 +2867,7 @@ export var serializeAws_restJson1DescribeCertificateCommand = function (input, c
|
|
|
2867
2867
|
case 1:
|
|
2868
2868
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2869
2869
|
headers = {};
|
|
2870
|
-
resolvedPath = ""
|
|
2870
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates/{certificateId}";
|
|
2871
2871
|
if (input.certificateId !== undefined) {
|
|
2872
2872
|
labelValue = input.certificateId;
|
|
2873
2873
|
if (labelValue.length <= 0) {
|
|
@@ -2898,7 +2898,7 @@ export var serializeAws_restJson1DescribeCustomMetricCommand = function (input,
|
|
|
2898
2898
|
case 1:
|
|
2899
2899
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2900
2900
|
headers = {};
|
|
2901
|
-
resolvedPath = ""
|
|
2901
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-metric/{metricName}";
|
|
2902
2902
|
if (input.metricName !== undefined) {
|
|
2903
2903
|
labelValue = input.metricName;
|
|
2904
2904
|
if (labelValue.length <= 0) {
|
|
@@ -2931,7 +2931,7 @@ export var serializeAws_restJson1DescribeDefaultAuthorizerCommand = function (in
|
|
|
2931
2931
|
headers = {
|
|
2932
2932
|
"content-type": "application/json",
|
|
2933
2933
|
};
|
|
2934
|
-
resolvedPath = ""
|
|
2934
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/default-authorizer";
|
|
2935
2935
|
body = "";
|
|
2936
2936
|
return [2, new __HttpRequest({
|
|
2937
2937
|
protocol: protocol,
|
|
@@ -2953,7 +2953,7 @@ export var serializeAws_restJson1DescribeDetectMitigationActionsTaskCommand = fu
|
|
|
2953
2953
|
case 1:
|
|
2954
2954
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2955
2955
|
headers = {};
|
|
2956
|
-
resolvedPath = ""
|
|
2956
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detect/mitigationactions/tasks/{taskId}";
|
|
2957
2957
|
if (input.taskId !== undefined) {
|
|
2958
2958
|
labelValue = input.taskId;
|
|
2959
2959
|
if (labelValue.length <= 0) {
|
|
@@ -2984,7 +2984,7 @@ export var serializeAws_restJson1DescribeDimensionCommand = function (input, con
|
|
|
2984
2984
|
case 1:
|
|
2985
2985
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2986
2986
|
headers = {};
|
|
2987
|
-
resolvedPath = ""
|
|
2987
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dimensions/{name}";
|
|
2988
2988
|
if (input.name !== undefined) {
|
|
2989
2989
|
labelValue = input.name;
|
|
2990
2990
|
if (labelValue.length <= 0) {
|
|
@@ -3015,7 +3015,7 @@ export var serializeAws_restJson1DescribeDomainConfigurationCommand = function (
|
|
|
3015
3015
|
case 1:
|
|
3016
3016
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3017
3017
|
headers = {};
|
|
3018
|
-
resolvedPath = ""
|
|
3018
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3019
3019
|
"/domainConfigurations/{domainConfigurationName}";
|
|
3020
3020
|
if (input.domainConfigurationName !== undefined) {
|
|
3021
3021
|
labelValue = input.domainConfigurationName;
|
|
@@ -3047,7 +3047,7 @@ export var serializeAws_restJson1DescribeEndpointCommand = function (input, cont
|
|
|
3047
3047
|
case 1:
|
|
3048
3048
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3049
3049
|
headers = {};
|
|
3050
|
-
resolvedPath = ""
|
|
3050
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/endpoint";
|
|
3051
3051
|
query = __assign({}, (input.endpointType !== undefined && { endpointType: input.endpointType }));
|
|
3052
3052
|
return [2, new __HttpRequest({
|
|
3053
3053
|
protocol: protocol,
|
|
@@ -3072,7 +3072,7 @@ export var serializeAws_restJson1DescribeEventConfigurationsCommand = function (
|
|
|
3072
3072
|
headers = {
|
|
3073
3073
|
"content-type": "application/json",
|
|
3074
3074
|
};
|
|
3075
|
-
resolvedPath = ""
|
|
3075
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations";
|
|
3076
3076
|
body = "";
|
|
3077
3077
|
return [2, new __HttpRequest({
|
|
3078
3078
|
protocol: protocol,
|
|
@@ -3094,7 +3094,7 @@ export var serializeAws_restJson1DescribeFleetMetricCommand = function (input, c
|
|
|
3094
3094
|
case 1:
|
|
3095
3095
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3096
3096
|
headers = {};
|
|
3097
|
-
resolvedPath = ""
|
|
3097
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/fleet-metric/{metricName}";
|
|
3098
3098
|
if (input.metricName !== undefined) {
|
|
3099
3099
|
labelValue = input.metricName;
|
|
3100
3100
|
if (labelValue.length <= 0) {
|
|
@@ -3125,7 +3125,7 @@ export var serializeAws_restJson1DescribeIndexCommand = function (input, context
|
|
|
3125
3125
|
case 1:
|
|
3126
3126
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3127
3127
|
headers = {};
|
|
3128
|
-
resolvedPath = ""
|
|
3128
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/{indexName}";
|
|
3129
3129
|
if (input.indexName !== undefined) {
|
|
3130
3130
|
labelValue = input.indexName;
|
|
3131
3131
|
if (labelValue.length <= 0) {
|
|
@@ -3156,7 +3156,7 @@ export var serializeAws_restJson1DescribeJobCommand = function (input, context)
|
|
|
3156
3156
|
case 1:
|
|
3157
3157
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3158
3158
|
headers = {};
|
|
3159
|
-
resolvedPath = ""
|
|
3159
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}";
|
|
3160
3160
|
if (input.jobId !== undefined) {
|
|
3161
3161
|
labelValue = input.jobId;
|
|
3162
3162
|
if (labelValue.length <= 0) {
|
|
@@ -3187,7 +3187,7 @@ export var serializeAws_restJson1DescribeJobExecutionCommand = function (input,
|
|
|
3187
3187
|
case 1:
|
|
3188
3188
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3189
3189
|
headers = {};
|
|
3190
|
-
resolvedPath = ""
|
|
3190
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/jobs/{jobId}";
|
|
3191
3191
|
if (input.jobId !== undefined) {
|
|
3192
3192
|
labelValue = input.jobId;
|
|
3193
3193
|
if (labelValue.length <= 0) {
|
|
@@ -3230,7 +3230,7 @@ export var serializeAws_restJson1DescribeJobTemplateCommand = function (input, c
|
|
|
3230
3230
|
case 1:
|
|
3231
3231
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3232
3232
|
headers = {};
|
|
3233
|
-
resolvedPath = ""
|
|
3233
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/job-templates/{jobTemplateId}";
|
|
3234
3234
|
if (input.jobTemplateId !== undefined) {
|
|
3235
3235
|
labelValue = input.jobTemplateId;
|
|
3236
3236
|
if (labelValue.length <= 0) {
|
|
@@ -3261,7 +3261,7 @@ export var serializeAws_restJson1DescribeManagedJobTemplateCommand = function (i
|
|
|
3261
3261
|
case 1:
|
|
3262
3262
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3263
3263
|
headers = {};
|
|
3264
|
-
resolvedPath = ""
|
|
3264
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/managed-job-templates/{templateName}";
|
|
3265
3265
|
if (input.templateName !== undefined) {
|
|
3266
3266
|
labelValue = input.templateName;
|
|
3267
3267
|
if (labelValue.length <= 0) {
|
|
@@ -3294,7 +3294,7 @@ export var serializeAws_restJson1DescribeMitigationActionCommand = function (inp
|
|
|
3294
3294
|
case 1:
|
|
3295
3295
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3296
3296
|
headers = {};
|
|
3297
|
-
resolvedPath = ""
|
|
3297
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/mitigationactions/actions/{actionName}";
|
|
3298
3298
|
if (input.actionName !== undefined) {
|
|
3299
3299
|
labelValue = input.actionName;
|
|
3300
3300
|
if (labelValue.length <= 0) {
|
|
@@ -3325,7 +3325,7 @@ export var serializeAws_restJson1DescribeProvisioningTemplateCommand = function
|
|
|
3325
3325
|
case 1:
|
|
3326
3326
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3327
3327
|
headers = {};
|
|
3328
|
-
resolvedPath = ""
|
|
3328
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/provisioning-templates/{templateName}";
|
|
3329
3329
|
if (input.templateName !== undefined) {
|
|
3330
3330
|
labelValue = input.templateName;
|
|
3331
3331
|
if (labelValue.length <= 0) {
|
|
@@ -3356,7 +3356,7 @@ export var serializeAws_restJson1DescribeProvisioningTemplateVersionCommand = fu
|
|
|
3356
3356
|
case 1:
|
|
3357
3357
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3358
3358
|
headers = {};
|
|
3359
|
-
resolvedPath = ""
|
|
3359
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3360
3360
|
"/provisioning-templates/{templateName}/versions/{versionId}";
|
|
3361
3361
|
if (input.templateName !== undefined) {
|
|
3362
3362
|
labelValue = input.templateName;
|
|
@@ -3398,7 +3398,7 @@ export var serializeAws_restJson1DescribeRoleAliasCommand = function (input, con
|
|
|
3398
3398
|
case 1:
|
|
3399
3399
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3400
3400
|
headers = {};
|
|
3401
|
-
resolvedPath = ""
|
|
3401
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/role-aliases/{roleAlias}";
|
|
3402
3402
|
if (input.roleAlias !== undefined) {
|
|
3403
3403
|
labelValue = input.roleAlias;
|
|
3404
3404
|
if (labelValue.length <= 0) {
|
|
@@ -3429,7 +3429,7 @@ export var serializeAws_restJson1DescribeScheduledAuditCommand = function (input
|
|
|
3429
3429
|
case 1:
|
|
3430
3430
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3431
3431
|
headers = {};
|
|
3432
|
-
resolvedPath = ""
|
|
3432
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3433
3433
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
3434
3434
|
if (input.scheduledAuditName !== undefined) {
|
|
3435
3435
|
labelValue = input.scheduledAuditName;
|
|
@@ -3461,7 +3461,7 @@ export var serializeAws_restJson1DescribeSecurityProfileCommand = function (inpu
|
|
|
3461
3461
|
case 1:
|
|
3462
3462
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3463
3463
|
headers = {};
|
|
3464
|
-
resolvedPath = ""
|
|
3464
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profiles/{securityProfileName}";
|
|
3465
3465
|
if (input.securityProfileName !== undefined) {
|
|
3466
3466
|
labelValue = input.securityProfileName;
|
|
3467
3467
|
if (labelValue.length <= 0) {
|
|
@@ -3492,7 +3492,7 @@ export var serializeAws_restJson1DescribeStreamCommand = function (input, contex
|
|
|
3492
3492
|
case 1:
|
|
3493
3493
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3494
3494
|
headers = {};
|
|
3495
|
-
resolvedPath = ""
|
|
3495
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/streams/{streamId}";
|
|
3496
3496
|
if (input.streamId !== undefined) {
|
|
3497
3497
|
labelValue = input.streamId;
|
|
3498
3498
|
if (labelValue.length <= 0) {
|
|
@@ -3523,7 +3523,7 @@ export var serializeAws_restJson1DescribeThingCommand = function (input, context
|
|
|
3523
3523
|
case 1:
|
|
3524
3524
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3525
3525
|
headers = {};
|
|
3526
|
-
resolvedPath = ""
|
|
3526
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}";
|
|
3527
3527
|
if (input.thingName !== undefined) {
|
|
3528
3528
|
labelValue = input.thingName;
|
|
3529
3529
|
if (labelValue.length <= 0) {
|
|
@@ -3554,7 +3554,7 @@ export var serializeAws_restJson1DescribeThingGroupCommand = function (input, co
|
|
|
3554
3554
|
case 1:
|
|
3555
3555
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3556
3556
|
headers = {};
|
|
3557
|
-
resolvedPath = ""
|
|
3557
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/{thingGroupName}";
|
|
3558
3558
|
if (input.thingGroupName !== undefined) {
|
|
3559
3559
|
labelValue = input.thingGroupName;
|
|
3560
3560
|
if (labelValue.length <= 0) {
|
|
@@ -3585,7 +3585,7 @@ export var serializeAws_restJson1DescribeThingRegistrationTaskCommand = function
|
|
|
3585
3585
|
case 1:
|
|
3586
3586
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3587
3587
|
headers = {};
|
|
3588
|
-
resolvedPath = ""
|
|
3588
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-registration-tasks/{taskId}";
|
|
3589
3589
|
if (input.taskId !== undefined) {
|
|
3590
3590
|
labelValue = input.taskId;
|
|
3591
3591
|
if (labelValue.length <= 0) {
|
|
@@ -3616,7 +3616,7 @@ export var serializeAws_restJson1DescribeThingTypeCommand = function (input, con
|
|
|
3616
3616
|
case 1:
|
|
3617
3617
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3618
3618
|
headers = {};
|
|
3619
|
-
resolvedPath = ""
|
|
3619
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-types/{thingTypeName}";
|
|
3620
3620
|
if (input.thingTypeName !== undefined) {
|
|
3621
3621
|
labelValue = input.thingTypeName;
|
|
3622
3622
|
if (labelValue.length <= 0) {
|
|
@@ -3649,7 +3649,7 @@ export var serializeAws_restJson1DetachPolicyCommand = function (input, context)
|
|
|
3649
3649
|
headers = {
|
|
3650
3650
|
"content-type": "application/json",
|
|
3651
3651
|
};
|
|
3652
|
-
resolvedPath = ""
|
|
3652
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/target-policies/{policyName}";
|
|
3653
3653
|
if (input.policyName !== undefined) {
|
|
3654
3654
|
labelValue = input.policyName;
|
|
3655
3655
|
if (labelValue.length <= 0) {
|
|
@@ -3681,7 +3681,7 @@ export var serializeAws_restJson1DetachPrincipalPolicyCommand = function (input,
|
|
|
3681
3681
|
case 1:
|
|
3682
3682
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3683
3683
|
headers = __assign({}, (isSerializableHeaderValue(input.principal) && { "x-amzn-iot-principal": input.principal }));
|
|
3684
|
-
resolvedPath = ""
|
|
3684
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/principal-policies/{policyName}";
|
|
3685
3685
|
if (input.policyName !== undefined) {
|
|
3686
3686
|
labelValue = input.policyName;
|
|
3687
3687
|
if (labelValue.length <= 0) {
|
|
@@ -3712,7 +3712,7 @@ export var serializeAws_restJson1DetachSecurityProfileCommand = function (input,
|
|
|
3712
3712
|
case 1:
|
|
3713
3713
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3714
3714
|
headers = {};
|
|
3715
|
-
resolvedPath = ""
|
|
3715
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
3716
3716
|
"/security-profiles/{securityProfileName}/targets";
|
|
3717
3717
|
if (input.securityProfileName !== undefined) {
|
|
3718
3718
|
labelValue = input.securityProfileName;
|
|
@@ -3746,7 +3746,7 @@ export var serializeAws_restJson1DetachThingPrincipalCommand = function (input,
|
|
|
3746
3746
|
case 1:
|
|
3747
3747
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3748
3748
|
headers = __assign({}, (isSerializableHeaderValue(input.principal) && { "x-amzn-principal": input.principal }));
|
|
3749
|
-
resolvedPath = ""
|
|
3749
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/principals";
|
|
3750
3750
|
if (input.thingName !== undefined) {
|
|
3751
3751
|
labelValue = input.thingName;
|
|
3752
3752
|
if (labelValue.length <= 0) {
|
|
@@ -3777,7 +3777,7 @@ export var serializeAws_restJson1DisableTopicRuleCommand = function (input, cont
|
|
|
3777
3777
|
case 1:
|
|
3778
3778
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3779
3779
|
headers = {};
|
|
3780
|
-
resolvedPath = ""
|
|
3780
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules/{ruleName}/disable";
|
|
3781
3781
|
if (input.ruleName !== undefined) {
|
|
3782
3782
|
labelValue = input.ruleName;
|
|
3783
3783
|
if (labelValue.length <= 0) {
|
|
@@ -3808,7 +3808,7 @@ export var serializeAws_restJson1EnableTopicRuleCommand = function (input, conte
|
|
|
3808
3808
|
case 1:
|
|
3809
3809
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3810
3810
|
headers = {};
|
|
3811
|
-
resolvedPath = ""
|
|
3811
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules/{ruleName}/enable";
|
|
3812
3812
|
if (input.ruleName !== undefined) {
|
|
3813
3813
|
labelValue = input.ruleName;
|
|
3814
3814
|
if (labelValue.length <= 0) {
|
|
@@ -3839,7 +3839,7 @@ export var serializeAws_restJson1GetBehaviorModelTrainingSummariesCommand = func
|
|
|
3839
3839
|
case 1:
|
|
3840
3840
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3841
3841
|
headers = {};
|
|
3842
|
-
resolvedPath = ""
|
|
3842
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/behavior-model-training/summaries";
|
|
3843
3843
|
query = __assign(__assign(__assign({}, (input.securityProfileName !== undefined && { securityProfileName: input.securityProfileName })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
3844
3844
|
return [2, new __HttpRequest({
|
|
3845
3845
|
protocol: protocol,
|
|
@@ -3864,7 +3864,7 @@ export var serializeAws_restJson1GetBucketsAggregationCommand = function (input,
|
|
|
3864
3864
|
headers = {
|
|
3865
3865
|
"content-type": "application/json",
|
|
3866
3866
|
};
|
|
3867
|
-
resolvedPath = ""
|
|
3867
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/buckets";
|
|
3868
3868
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField !== undefined &&
|
|
3869
3869
|
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.bucketsAggregationType !== undefined &&
|
|
3870
3870
|
input.bucketsAggregationType !== null && {
|
|
@@ -3892,7 +3892,7 @@ export var serializeAws_restJson1GetCardinalityCommand = function (input, contex
|
|
|
3892
3892
|
headers = {
|
|
3893
3893
|
"content-type": "application/json",
|
|
3894
3894
|
};
|
|
3895
|
-
resolvedPath = ""
|
|
3895
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/cardinality";
|
|
3896
3896
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.aggregationField !== undefined &&
|
|
3897
3897
|
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })));
|
|
3898
3898
|
return [2, new __HttpRequest({
|
|
@@ -3917,7 +3917,7 @@ export var serializeAws_restJson1GetEffectivePoliciesCommand = function (input,
|
|
|
3917
3917
|
headers = {
|
|
3918
3918
|
"content-type": "application/json",
|
|
3919
3919
|
};
|
|
3920
|
-
resolvedPath = ""
|
|
3920
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/effective-policies";
|
|
3921
3921
|
query = __assign({}, (input.thingName !== undefined && { thingName: input.thingName }));
|
|
3922
3922
|
body = JSON.stringify(__assign(__assign({}, (input.cognitoIdentityPoolId !== undefined &&
|
|
3923
3923
|
input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.principal !== undefined && input.principal !== null && { principal: input.principal })));
|
|
@@ -3944,7 +3944,7 @@ export var serializeAws_restJson1GetIndexingConfigurationCommand = function (inp
|
|
|
3944
3944
|
headers = {
|
|
3945
3945
|
"content-type": "application/json",
|
|
3946
3946
|
};
|
|
3947
|
-
resolvedPath = ""
|
|
3947
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indexing/config";
|
|
3948
3948
|
body = "";
|
|
3949
3949
|
return [2, new __HttpRequest({
|
|
3950
3950
|
protocol: protocol,
|
|
@@ -3966,7 +3966,7 @@ export var serializeAws_restJson1GetJobDocumentCommand = function (input, contex
|
|
|
3966
3966
|
case 1:
|
|
3967
3967
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3968
3968
|
headers = {};
|
|
3969
|
-
resolvedPath = ""
|
|
3969
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}/job-document";
|
|
3970
3970
|
if (input.jobId !== undefined) {
|
|
3971
3971
|
labelValue = input.jobId;
|
|
3972
3972
|
if (labelValue.length <= 0) {
|
|
@@ -3999,7 +3999,7 @@ export var serializeAws_restJson1GetLoggingOptionsCommand = function (input, con
|
|
|
3999
3999
|
headers = {
|
|
4000
4000
|
"content-type": "application/json",
|
|
4001
4001
|
};
|
|
4002
|
-
resolvedPath = ""
|
|
4002
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/loggingOptions";
|
|
4003
4003
|
body = "";
|
|
4004
4004
|
return [2, new __HttpRequest({
|
|
4005
4005
|
protocol: protocol,
|
|
@@ -4021,7 +4021,7 @@ export var serializeAws_restJson1GetOTAUpdateCommand = function (input, context)
|
|
|
4021
4021
|
case 1:
|
|
4022
4022
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4023
4023
|
headers = {};
|
|
4024
|
-
resolvedPath = ""
|
|
4024
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/otaUpdates/{otaUpdateId}";
|
|
4025
4025
|
if (input.otaUpdateId !== undefined) {
|
|
4026
4026
|
labelValue = input.otaUpdateId;
|
|
4027
4027
|
if (labelValue.length <= 0) {
|
|
@@ -4054,7 +4054,7 @@ export var serializeAws_restJson1GetPercentilesCommand = function (input, contex
|
|
|
4054
4054
|
headers = {
|
|
4055
4055
|
"content-type": "application/json",
|
|
4056
4056
|
};
|
|
4057
|
-
resolvedPath = ""
|
|
4057
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/percentiles";
|
|
4058
4058
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField !== undefined &&
|
|
4059
4059
|
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.percents !== undefined &&
|
|
4060
4060
|
input.percents !== null && { percents: serializeAws_restJson1PercentList(input.percents, context) })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })));
|
|
@@ -4078,7 +4078,7 @@ export var serializeAws_restJson1GetPolicyCommand = function (input, context) {
|
|
|
4078
4078
|
case 1:
|
|
4079
4079
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4080
4080
|
headers = {};
|
|
4081
|
-
resolvedPath = ""
|
|
4081
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{policyName}";
|
|
4082
4082
|
if (input.policyName !== undefined) {
|
|
4083
4083
|
labelValue = input.policyName;
|
|
4084
4084
|
if (labelValue.length <= 0) {
|
|
@@ -4109,7 +4109,7 @@ export var serializeAws_restJson1GetPolicyVersionCommand = function (input, cont
|
|
|
4109
4109
|
case 1:
|
|
4110
4110
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4111
4111
|
headers = {};
|
|
4112
|
-
resolvedPath = ""
|
|
4112
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
4113
4113
|
"/policies/{policyName}/version/{policyVersionId}";
|
|
4114
4114
|
if (input.policyName !== undefined) {
|
|
4115
4115
|
labelValue = input.policyName;
|
|
@@ -4153,7 +4153,7 @@ export var serializeAws_restJson1GetRegistrationCodeCommand = function (input, c
|
|
|
4153
4153
|
headers = {
|
|
4154
4154
|
"content-type": "application/json",
|
|
4155
4155
|
};
|
|
4156
|
-
resolvedPath = ""
|
|
4156
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/registrationcode";
|
|
4157
4157
|
body = "";
|
|
4158
4158
|
return [2, new __HttpRequest({
|
|
4159
4159
|
protocol: protocol,
|
|
@@ -4177,7 +4177,7 @@ export var serializeAws_restJson1GetStatisticsCommand = function (input, context
|
|
|
4177
4177
|
headers = {
|
|
4178
4178
|
"content-type": "application/json",
|
|
4179
4179
|
};
|
|
4180
|
-
resolvedPath = ""
|
|
4180
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/statistics";
|
|
4181
4181
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.aggregationField !== undefined &&
|
|
4182
4182
|
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })));
|
|
4183
4183
|
return [2, new __HttpRequest({
|
|
@@ -4200,7 +4200,7 @@ export var serializeAws_restJson1GetTopicRuleCommand = function (input, context)
|
|
|
4200
4200
|
case 1:
|
|
4201
4201
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4202
4202
|
headers = {};
|
|
4203
|
-
resolvedPath = ""
|
|
4203
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules/{ruleName}";
|
|
4204
4204
|
if (input.ruleName !== undefined) {
|
|
4205
4205
|
labelValue = input.ruleName;
|
|
4206
4206
|
if (labelValue.length <= 0) {
|
|
@@ -4231,7 +4231,7 @@ export var serializeAws_restJson1GetTopicRuleDestinationCommand = function (inpu
|
|
|
4231
4231
|
case 1:
|
|
4232
4232
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4233
4233
|
headers = {};
|
|
4234
|
-
resolvedPath = ""
|
|
4234
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations/{arn+}";
|
|
4235
4235
|
if (input.arn !== undefined) {
|
|
4236
4236
|
labelValue = input.arn;
|
|
4237
4237
|
if (labelValue.length <= 0) {
|
|
@@ -4267,7 +4267,7 @@ export var serializeAws_restJson1GetV2LoggingOptionsCommand = function (input, c
|
|
|
4267
4267
|
headers = {
|
|
4268
4268
|
"content-type": "application/json",
|
|
4269
4269
|
};
|
|
4270
|
-
resolvedPath = ""
|
|
4270
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingOptions";
|
|
4271
4271
|
body = "";
|
|
4272
4272
|
return [2, new __HttpRequest({
|
|
4273
4273
|
protocol: protocol,
|
|
@@ -4289,7 +4289,7 @@ export var serializeAws_restJson1ListActiveViolationsCommand = function (input,
|
|
|
4289
4289
|
case 1:
|
|
4290
4290
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4291
4291
|
headers = {};
|
|
4292
|
-
resolvedPath = ""
|
|
4292
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/active-violations";
|
|
4293
4293
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.thingName !== undefined && { thingName: input.thingName })), (input.securityProfileName !== undefined && { securityProfileName: input.securityProfileName })), (input.behaviorCriteriaType !== undefined && { behaviorCriteriaType: input.behaviorCriteriaType })), (input.listSuppressedAlerts !== undefined && { listSuppressedAlerts: input.listSuppressedAlerts.toString() })), (input.verificationState !== undefined && { verificationState: input.verificationState })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
4294
4294
|
return [2, new __HttpRequest({
|
|
4295
4295
|
protocol: protocol,
|
|
@@ -4312,7 +4312,7 @@ export var serializeAws_restJson1ListAttachedPoliciesCommand = function (input,
|
|
|
4312
4312
|
case 1:
|
|
4313
4313
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4314
4314
|
headers = {};
|
|
4315
|
-
resolvedPath = ""
|
|
4315
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attached-policies/{target}";
|
|
4316
4316
|
if (input.target !== undefined) {
|
|
4317
4317
|
labelValue = input.target;
|
|
4318
4318
|
if (labelValue.length <= 0) {
|
|
@@ -4347,7 +4347,7 @@ export var serializeAws_restJson1ListAuditFindingsCommand = function (input, con
|
|
|
4347
4347
|
headers = {
|
|
4348
4348
|
"content-type": "application/json",
|
|
4349
4349
|
};
|
|
4350
|
-
resolvedPath = ""
|
|
4350
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/findings";
|
|
4351
4351
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName })), (input.endTime !== undefined &&
|
|
4352
4352
|
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.listSuppressedFindings !== undefined &&
|
|
4353
4353
|
input.listSuppressedFindings !== null && { listSuppressedFindings: input.listSuppressedFindings })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceIdentifier !== undefined &&
|
|
@@ -4375,7 +4375,7 @@ export var serializeAws_restJson1ListAuditMitigationActionsExecutionsCommand = f
|
|
|
4375
4375
|
case 1:
|
|
4376
4376
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4377
4377
|
headers = {};
|
|
4378
|
-
resolvedPath = ""
|
|
4378
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/mitigationactions/executions";
|
|
4379
4379
|
query = __assign(__assign(__assign(__assign(__assign({}, (input.taskId !== undefined && { taskId: input.taskId })), (input.actionStatus !== undefined && { actionStatus: input.actionStatus })), (input.findingId !== undefined && { findingId: input.findingId })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
4380
4380
|
return [2, new __HttpRequest({
|
|
4381
4381
|
protocol: protocol,
|
|
@@ -4398,7 +4398,7 @@ export var serializeAws_restJson1ListAuditMitigationActionsTasksCommand = functi
|
|
|
4398
4398
|
case 1:
|
|
4399
4399
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4400
4400
|
headers = {};
|
|
4401
|
-
resolvedPath = ""
|
|
4401
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/mitigationactions/tasks";
|
|
4402
4402
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.auditTaskId !== undefined && { auditTaskId: input.auditTaskId })), (input.findingId !== undefined && { findingId: input.findingId })), (input.taskStatus !== undefined && { taskStatus: input.taskStatus })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() }));
|
|
4403
4403
|
return [2, new __HttpRequest({
|
|
4404
4404
|
protocol: protocol,
|
|
@@ -4423,7 +4423,7 @@ export var serializeAws_restJson1ListAuditSuppressionsCommand = function (input,
|
|
|
4423
4423
|
headers = {
|
|
4424
4424
|
"content-type": "application/json",
|
|
4425
4425
|
};
|
|
4426
|
-
resolvedPath = ""
|
|
4426
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/list";
|
|
4427
4427
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ascendingOrder !== undefined &&
|
|
4428
4428
|
input.ascendingOrder !== null && { ascendingOrder: input.ascendingOrder })), (input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceIdentifier !== undefined &&
|
|
4429
4429
|
input.resourceIdentifier !== null && {
|
|
@@ -4449,7 +4449,7 @@ export var serializeAws_restJson1ListAuditTasksCommand = function (input, contex
|
|
|
4449
4449
|
case 1:
|
|
4450
4450
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4451
4451
|
headers = {};
|
|
4452
|
-
resolvedPath = ""
|
|
4452
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/tasks";
|
|
4453
4453
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.taskType !== undefined && { taskType: input.taskType })), (input.taskStatus !== undefined && { taskStatus: input.taskStatus })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
4454
4454
|
return [2, new __HttpRequest({
|
|
4455
4455
|
protocol: protocol,
|
|
@@ -4472,7 +4472,7 @@ export var serializeAws_restJson1ListAuthorizersCommand = function (input, conte
|
|
|
4472
4472
|
case 1:
|
|
4473
4473
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4474
4474
|
headers = {};
|
|
4475
|
-
resolvedPath = ""
|
|
4475
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/authorizers";
|
|
4476
4476
|
query = __assign(__assign(__assign(__assign({}, (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.marker !== undefined && { marker: input.marker })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() })), (input.status !== undefined && { status: input.status }));
|
|
4477
4477
|
return [2, new __HttpRequest({
|
|
4478
4478
|
protocol: protocol,
|
|
@@ -4495,7 +4495,7 @@ export var serializeAws_restJson1ListBillingGroupsCommand = function (input, con
|
|
|
4495
4495
|
case 1:
|
|
4496
4496
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4497
4497
|
headers = {};
|
|
4498
|
-
resolvedPath = ""
|
|
4498
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups";
|
|
4499
4499
|
query = __assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.namePrefixFilter !== undefined && { namePrefixFilter: input.namePrefixFilter }));
|
|
4500
4500
|
return [2, new __HttpRequest({
|
|
4501
4501
|
protocol: protocol,
|
|
@@ -4518,7 +4518,7 @@ export var serializeAws_restJson1ListCACertificatesCommand = function (input, co
|
|
|
4518
4518
|
case 1:
|
|
4519
4519
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4520
4520
|
headers = {};
|
|
4521
|
-
resolvedPath = ""
|
|
4521
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cacertificates";
|
|
4522
4522
|
query = __assign(__assign(__assign({}, (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.marker !== undefined && { marker: input.marker })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
4523
4523
|
return [2, new __HttpRequest({
|
|
4524
4524
|
protocol: protocol,
|
|
@@ -4541,7 +4541,7 @@ export var serializeAws_restJson1ListCertificatesCommand = function (input, cont
|
|
|
4541
4541
|
case 1:
|
|
4542
4542
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4543
4543
|
headers = {};
|
|
4544
|
-
resolvedPath = ""
|
|
4544
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates";
|
|
4545
4545
|
query = __assign(__assign(__assign({}, (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.marker !== undefined && { marker: input.marker })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
4546
4546
|
return [2, new __HttpRequest({
|
|
4547
4547
|
protocol: protocol,
|
|
@@ -4564,7 +4564,7 @@ export var serializeAws_restJson1ListCertificatesByCACommand = function (input,
|
|
|
4564
4564
|
case 1:
|
|
4565
4565
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4566
4566
|
headers = {};
|
|
4567
|
-
resolvedPath = ""
|
|
4567
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates-by-ca/{caCertificateId}";
|
|
4568
4568
|
if (input.caCertificateId !== undefined) {
|
|
4569
4569
|
labelValue = input.caCertificateId;
|
|
4570
4570
|
if (labelValue.length <= 0) {
|
|
@@ -4597,7 +4597,7 @@ export var serializeAws_restJson1ListCustomMetricsCommand = function (input, con
|
|
|
4597
4597
|
case 1:
|
|
4598
4598
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4599
4599
|
headers = {};
|
|
4600
|
-
resolvedPath = ""
|
|
4600
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-metrics";
|
|
4601
4601
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
4602
4602
|
return [2, new __HttpRequest({
|
|
4603
4603
|
protocol: protocol,
|
|
@@ -4620,7 +4620,7 @@ export var serializeAws_restJson1ListDetectMitigationActionsExecutionsCommand =
|
|
|
4620
4620
|
case 1:
|
|
4621
4621
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4622
4622
|
headers = {};
|
|
4623
|
-
resolvedPath = ""
|
|
4623
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detect/mitigationactions/executions";
|
|
4624
4624
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.taskId !== undefined && { taskId: input.taskId })), (input.violationId !== undefined && { violationId: input.violationId })), (input.thingName !== undefined && { thingName: input.thingName })), (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
4625
4625
|
return [2, new __HttpRequest({
|
|
4626
4626
|
protocol: protocol,
|
|
@@ -4643,7 +4643,7 @@ export var serializeAws_restJson1ListDetectMitigationActionsTasksCommand = funct
|
|
|
4643
4643
|
case 1:
|
|
4644
4644
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4645
4645
|
headers = {};
|
|
4646
|
-
resolvedPath = ""
|
|
4646
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detect/mitigationactions/tasks";
|
|
4647
4647
|
query = __assign(__assign(__assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() }));
|
|
4648
4648
|
return [2, new __HttpRequest({
|
|
4649
4649
|
protocol: protocol,
|
|
@@ -4666,7 +4666,7 @@ export var serializeAws_restJson1ListDimensionsCommand = function (input, contex
|
|
|
4666
4666
|
case 1:
|
|
4667
4667
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4668
4668
|
headers = {};
|
|
4669
|
-
resolvedPath = ""
|
|
4669
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dimensions";
|
|
4670
4670
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
4671
4671
|
return [2, new __HttpRequest({
|
|
4672
4672
|
protocol: protocol,
|
|
@@ -4689,7 +4689,7 @@ export var serializeAws_restJson1ListDomainConfigurationsCommand = function (inp
|
|
|
4689
4689
|
case 1:
|
|
4690
4690
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4691
4691
|
headers = {};
|
|
4692
|
-
resolvedPath = ""
|
|
4692
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainConfigurations";
|
|
4693
4693
|
query = __assign(__assign(__assign({}, (input.marker !== undefined && { marker: input.marker })), (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.serviceType !== undefined && { serviceType: input.serviceType }));
|
|
4694
4694
|
return [2, new __HttpRequest({
|
|
4695
4695
|
protocol: protocol,
|
|
@@ -4712,7 +4712,7 @@ export var serializeAws_restJson1ListFleetMetricsCommand = function (input, cont
|
|
|
4712
4712
|
case 1:
|
|
4713
4713
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4714
4714
|
headers = {};
|
|
4715
|
-
resolvedPath = ""
|
|
4715
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/fleet-metrics";
|
|
4716
4716
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
4717
4717
|
return [2, new __HttpRequest({
|
|
4718
4718
|
protocol: protocol,
|
|
@@ -4735,7 +4735,7 @@ export var serializeAws_restJson1ListIndicesCommand = function (input, context)
|
|
|
4735
4735
|
case 1:
|
|
4736
4736
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4737
4737
|
headers = {};
|
|
4738
|
-
resolvedPath = ""
|
|
4738
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices";
|
|
4739
4739
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
4740
4740
|
return [2, new __HttpRequest({
|
|
4741
4741
|
protocol: protocol,
|
|
@@ -4758,7 +4758,7 @@ export var serializeAws_restJson1ListJobExecutionsForJobCommand = function (inpu
|
|
|
4758
4758
|
case 1:
|
|
4759
4759
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4760
4760
|
headers = {};
|
|
4761
|
-
resolvedPath = ""
|
|
4761
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}/things";
|
|
4762
4762
|
if (input.jobId !== undefined) {
|
|
4763
4763
|
labelValue = input.jobId;
|
|
4764
4764
|
if (labelValue.length <= 0) {
|
|
@@ -4791,7 +4791,7 @@ export var serializeAws_restJson1ListJobExecutionsForThingCommand = function (in
|
|
|
4791
4791
|
case 1:
|
|
4792
4792
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4793
4793
|
headers = {};
|
|
4794
|
-
resolvedPath = ""
|
|
4794
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/jobs";
|
|
4795
4795
|
if (input.thingName !== undefined) {
|
|
4796
4796
|
labelValue = input.thingName;
|
|
4797
4797
|
if (labelValue.length <= 0) {
|
|
@@ -4824,7 +4824,7 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
4824
4824
|
case 1:
|
|
4825
4825
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4826
4826
|
headers = {};
|
|
4827
|
-
resolvedPath = ""
|
|
4827
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
|
|
4828
4828
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.status !== undefined && { status: input.status })), (input.targetSelection !== undefined && { targetSelection: input.targetSelection })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.thingGroupName !== undefined && { thingGroupName: input.thingGroupName })), (input.thingGroupId !== undefined && { thingGroupId: input.thingGroupId })), (input.namespaceId !== undefined && { namespaceId: input.namespaceId }));
|
|
4829
4829
|
return [2, new __HttpRequest({
|
|
4830
4830
|
protocol: protocol,
|
|
@@ -4847,7 +4847,7 @@ export var serializeAws_restJson1ListJobTemplatesCommand = function (input, cont
|
|
|
4847
4847
|
case 1:
|
|
4848
4848
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4849
4849
|
headers = {};
|
|
4850
|
-
resolvedPath = ""
|
|
4850
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/job-templates";
|
|
4851
4851
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
4852
4852
|
return [2, new __HttpRequest({
|
|
4853
4853
|
protocol: protocol,
|
|
@@ -4870,7 +4870,7 @@ export var serializeAws_restJson1ListManagedJobTemplatesCommand = function (inpu
|
|
|
4870
4870
|
case 1:
|
|
4871
4871
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4872
4872
|
headers = {};
|
|
4873
|
-
resolvedPath = ""
|
|
4873
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/managed-job-templates";
|
|
4874
4874
|
query = __assign(__assign(__assign({}, (input.templateName !== undefined && { templateName: input.templateName })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
4875
4875
|
return [2, new __HttpRequest({
|
|
4876
4876
|
protocol: protocol,
|
|
@@ -4893,7 +4893,7 @@ export var serializeAws_restJson1ListMitigationActionsCommand = function (input,
|
|
|
4893
4893
|
case 1:
|
|
4894
4894
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4895
4895
|
headers = {};
|
|
4896
|
-
resolvedPath = ""
|
|
4896
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/mitigationactions/actions";
|
|
4897
4897
|
query = __assign(__assign(__assign({}, (input.actionType !== undefined && { actionType: input.actionType })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
4898
4898
|
return [2, new __HttpRequest({
|
|
4899
4899
|
protocol: protocol,
|
|
@@ -4916,7 +4916,7 @@ export var serializeAws_restJson1ListOTAUpdatesCommand = function (input, contex
|
|
|
4916
4916
|
case 1:
|
|
4917
4917
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4918
4918
|
headers = {};
|
|
4919
|
-
resolvedPath = ""
|
|
4919
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/otaUpdates";
|
|
4920
4920
|
query = __assign(__assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.otaUpdateStatus !== undefined && { otaUpdateStatus: input.otaUpdateStatus }));
|
|
4921
4921
|
return [2, new __HttpRequest({
|
|
4922
4922
|
protocol: protocol,
|
|
@@ -4939,7 +4939,7 @@ export var serializeAws_restJson1ListOutgoingCertificatesCommand = function (inp
|
|
|
4939
4939
|
case 1:
|
|
4940
4940
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4941
4941
|
headers = {};
|
|
4942
|
-
resolvedPath = ""
|
|
4942
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates-out-going";
|
|
4943
4943
|
query = __assign(__assign(__assign({}, (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.marker !== undefined && { marker: input.marker })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
4944
4944
|
return [2, new __HttpRequest({
|
|
4945
4945
|
protocol: protocol,
|
|
@@ -4962,7 +4962,7 @@ export var serializeAws_restJson1ListPoliciesCommand = function (input, context)
|
|
|
4962
4962
|
case 1:
|
|
4963
4963
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4964
4964
|
headers = {};
|
|
4965
|
-
resolvedPath = ""
|
|
4965
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies";
|
|
4966
4966
|
query = __assign(__assign(__assign({}, (input.marker !== undefined && { marker: input.marker })), (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
4967
4967
|
return [2, new __HttpRequest({
|
|
4968
4968
|
protocol: protocol,
|
|
@@ -4985,7 +4985,7 @@ export var serializeAws_restJson1ListPolicyPrincipalsCommand = function (input,
|
|
|
4985
4985
|
case 1:
|
|
4986
4986
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4987
4987
|
headers = __assign({}, (isSerializableHeaderValue(input.policyName) && { "x-amzn-iot-policy": input.policyName }));
|
|
4988
|
-
resolvedPath = ""
|
|
4988
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy-principals";
|
|
4989
4989
|
query = __assign(__assign(__assign({}, (input.marker !== undefined && { marker: input.marker })), (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
4990
4990
|
return [2, new __HttpRequest({
|
|
4991
4991
|
protocol: protocol,
|
|
@@ -5008,7 +5008,7 @@ export var serializeAws_restJson1ListPolicyVersionsCommand = function (input, co
|
|
|
5008
5008
|
case 1:
|
|
5009
5009
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5010
5010
|
headers = {};
|
|
5011
|
-
resolvedPath = ""
|
|
5011
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policies/{policyName}/version";
|
|
5012
5012
|
if (input.policyName !== undefined) {
|
|
5013
5013
|
labelValue = input.policyName;
|
|
5014
5014
|
if (labelValue.length <= 0) {
|
|
@@ -5039,7 +5039,7 @@ export var serializeAws_restJson1ListPrincipalPoliciesCommand = function (input,
|
|
|
5039
5039
|
case 1:
|
|
5040
5040
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5041
5041
|
headers = __assign({}, (isSerializableHeaderValue(input.principal) && { "x-amzn-iot-principal": input.principal }));
|
|
5042
|
-
resolvedPath = ""
|
|
5042
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/principal-policies";
|
|
5043
5043
|
query = __assign(__assign(__assign({}, (input.marker !== undefined && { marker: input.marker })), (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
5044
5044
|
return [2, new __HttpRequest({
|
|
5045
5045
|
protocol: protocol,
|
|
@@ -5062,7 +5062,7 @@ export var serializeAws_restJson1ListPrincipalThingsCommand = function (input, c
|
|
|
5062
5062
|
case 1:
|
|
5063
5063
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5064
5064
|
headers = __assign({}, (isSerializableHeaderValue(input.principal) && { "x-amzn-principal": input.principal }));
|
|
5065
|
-
resolvedPath = ""
|
|
5065
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/principals/things";
|
|
5066
5066
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
5067
5067
|
return [2, new __HttpRequest({
|
|
5068
5068
|
protocol: protocol,
|
|
@@ -5085,7 +5085,7 @@ export var serializeAws_restJson1ListProvisioningTemplatesCommand = function (in
|
|
|
5085
5085
|
case 1:
|
|
5086
5086
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5087
5087
|
headers = {};
|
|
5088
|
-
resolvedPath = ""
|
|
5088
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/provisioning-templates";
|
|
5089
5089
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
5090
5090
|
return [2, new __HttpRequest({
|
|
5091
5091
|
protocol: protocol,
|
|
@@ -5108,7 +5108,7 @@ export var serializeAws_restJson1ListProvisioningTemplateVersionsCommand = funct
|
|
|
5108
5108
|
case 1:
|
|
5109
5109
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5110
5110
|
headers = {};
|
|
5111
|
-
resolvedPath = ""
|
|
5111
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5112
5112
|
"/provisioning-templates/{templateName}/versions";
|
|
5113
5113
|
if (input.templateName !== undefined) {
|
|
5114
5114
|
labelValue = input.templateName;
|
|
@@ -5142,7 +5142,7 @@ export var serializeAws_restJson1ListRoleAliasesCommand = function (input, conte
|
|
|
5142
5142
|
case 1:
|
|
5143
5143
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5144
5144
|
headers = {};
|
|
5145
|
-
resolvedPath = ""
|
|
5145
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/role-aliases";
|
|
5146
5146
|
query = __assign(__assign(__assign({}, (input.pageSize !== undefined && { pageSize: input.pageSize.toString() })), (input.marker !== undefined && { marker: input.marker })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
5147
5147
|
return [2, new __HttpRequest({
|
|
5148
5148
|
protocol: protocol,
|
|
@@ -5165,7 +5165,7 @@ export var serializeAws_restJson1ListScheduledAuditsCommand = function (input, c
|
|
|
5165
5165
|
case 1:
|
|
5166
5166
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5167
5167
|
headers = {};
|
|
5168
|
-
resolvedPath = ""
|
|
5168
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/scheduledaudits";
|
|
5169
5169
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
5170
5170
|
return [2, new __HttpRequest({
|
|
5171
5171
|
protocol: protocol,
|
|
@@ -5188,7 +5188,7 @@ export var serializeAws_restJson1ListSecurityProfilesCommand = function (input,
|
|
|
5188
5188
|
case 1:
|
|
5189
5189
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5190
5190
|
headers = {};
|
|
5191
|
-
resolvedPath = ""
|
|
5191
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profiles";
|
|
5192
5192
|
query = __assign(__assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.dimensionName !== undefined && { dimensionName: input.dimensionName })), (input.metricName !== undefined && { metricName: input.metricName }));
|
|
5193
5193
|
return [2, new __HttpRequest({
|
|
5194
5194
|
protocol: protocol,
|
|
@@ -5211,7 +5211,7 @@ export var serializeAws_restJson1ListSecurityProfilesForTargetCommand = function
|
|
|
5211
5211
|
case 1:
|
|
5212
5212
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5213
5213
|
headers = {};
|
|
5214
|
-
resolvedPath = ""
|
|
5214
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profiles-for-target";
|
|
5215
5215
|
query = __assign(__assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.recursive !== undefined && { recursive: input.recursive.toString() })), (input.securityProfileTargetArn !== undefined && { securityProfileTargetArn: input.securityProfileTargetArn }));
|
|
5216
5216
|
return [2, new __HttpRequest({
|
|
5217
5217
|
protocol: protocol,
|
|
@@ -5234,7 +5234,7 @@ export var serializeAws_restJson1ListStreamsCommand = function (input, context)
|
|
|
5234
5234
|
case 1:
|
|
5235
5235
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5236
5236
|
headers = {};
|
|
5237
|
-
resolvedPath = ""
|
|
5237
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/streams";
|
|
5238
5238
|
query = __assign(__assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.ascendingOrder !== undefined && { isAscendingOrder: input.ascendingOrder.toString() }));
|
|
5239
5239
|
return [2, new __HttpRequest({
|
|
5240
5240
|
protocol: protocol,
|
|
@@ -5257,7 +5257,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
5257
5257
|
case 1:
|
|
5258
5258
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5259
5259
|
headers = {};
|
|
5260
|
-
resolvedPath = ""
|
|
5260
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
5261
5261
|
query = __assign(__assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
5262
5262
|
return [2, new __HttpRequest({
|
|
5263
5263
|
protocol: protocol,
|
|
@@ -5280,7 +5280,7 @@ export var serializeAws_restJson1ListTargetsForPolicyCommand = function (input,
|
|
|
5280
5280
|
case 1:
|
|
5281
5281
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5282
5282
|
headers = {};
|
|
5283
|
-
resolvedPath = ""
|
|
5283
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/policy-targets/{policyName}";
|
|
5284
5284
|
if (input.policyName !== undefined) {
|
|
5285
5285
|
labelValue = input.policyName;
|
|
5286
5286
|
if (labelValue.length <= 0) {
|
|
@@ -5313,7 +5313,7 @@ export var serializeAws_restJson1ListTargetsForSecurityProfileCommand = function
|
|
|
5313
5313
|
case 1:
|
|
5314
5314
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5315
5315
|
headers = {};
|
|
5316
|
-
resolvedPath = ""
|
|
5316
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5317
5317
|
"/security-profiles/{securityProfileName}/targets";
|
|
5318
5318
|
if (input.securityProfileName !== undefined) {
|
|
5319
5319
|
labelValue = input.securityProfileName;
|
|
@@ -5347,7 +5347,7 @@ export var serializeAws_restJson1ListThingGroupsCommand = function (input, conte
|
|
|
5347
5347
|
case 1:
|
|
5348
5348
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5349
5349
|
headers = {};
|
|
5350
|
-
resolvedPath = ""
|
|
5350
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups";
|
|
5351
5351
|
query = __assign(__assign(__assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.parentGroup !== undefined && { parentGroup: input.parentGroup })), (input.namePrefixFilter !== undefined && { namePrefixFilter: input.namePrefixFilter })), (input.recursive !== undefined && { recursive: input.recursive.toString() }));
|
|
5352
5352
|
return [2, new __HttpRequest({
|
|
5353
5353
|
protocol: protocol,
|
|
@@ -5370,7 +5370,7 @@ export var serializeAws_restJson1ListThingGroupsForThingCommand = function (inpu
|
|
|
5370
5370
|
case 1:
|
|
5371
5371
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5372
5372
|
headers = {};
|
|
5373
|
-
resolvedPath = ""
|
|
5373
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/thing-groups";
|
|
5374
5374
|
if (input.thingName !== undefined) {
|
|
5375
5375
|
labelValue = input.thingName;
|
|
5376
5376
|
if (labelValue.length <= 0) {
|
|
@@ -5403,7 +5403,7 @@ export var serializeAws_restJson1ListThingPrincipalsCommand = function (input, c
|
|
|
5403
5403
|
case 1:
|
|
5404
5404
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5405
5405
|
headers = {};
|
|
5406
|
-
resolvedPath = ""
|
|
5406
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/principals";
|
|
5407
5407
|
if (input.thingName !== undefined) {
|
|
5408
5408
|
labelValue = input.thingName;
|
|
5409
5409
|
if (labelValue.length <= 0) {
|
|
@@ -5436,7 +5436,7 @@ export var serializeAws_restJson1ListThingRegistrationTaskReportsCommand = funct
|
|
|
5436
5436
|
case 1:
|
|
5437
5437
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5438
5438
|
headers = {};
|
|
5439
|
-
resolvedPath = ""
|
|
5439
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5440
5440
|
"/thing-registration-tasks/{taskId}/reports";
|
|
5441
5441
|
if (input.taskId !== undefined) {
|
|
5442
5442
|
labelValue = input.taskId;
|
|
@@ -5470,7 +5470,7 @@ export var serializeAws_restJson1ListThingRegistrationTasksCommand = function (i
|
|
|
5470
5470
|
case 1:
|
|
5471
5471
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5472
5472
|
headers = {};
|
|
5473
|
-
resolvedPath = ""
|
|
5473
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-registration-tasks";
|
|
5474
5474
|
query = __assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.status !== undefined && { status: input.status }));
|
|
5475
5475
|
return [2, new __HttpRequest({
|
|
5476
5476
|
protocol: protocol,
|
|
@@ -5493,7 +5493,7 @@ export var serializeAws_restJson1ListThingsCommand = function (input, context) {
|
|
|
5493
5493
|
case 1:
|
|
5494
5494
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5495
5495
|
headers = {};
|
|
5496
|
-
resolvedPath = ""
|
|
5496
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things";
|
|
5497
5497
|
query = __assign(__assign(__assign(__assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.attributeName !== undefined && { attributeName: input.attributeName })), (input.attributeValue !== undefined && { attributeValue: input.attributeValue })), (input.thingTypeName !== undefined && { thingTypeName: input.thingTypeName })), (input.usePrefixAttributeValue !== undefined && {
|
|
5498
5498
|
usePrefixAttributeValue: input.usePrefixAttributeValue.toString(),
|
|
5499
5499
|
}));
|
|
@@ -5518,7 +5518,7 @@ export var serializeAws_restJson1ListThingsInBillingGroupCommand = function (inp
|
|
|
5518
5518
|
case 1:
|
|
5519
5519
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5520
5520
|
headers = {};
|
|
5521
|
-
resolvedPath = ""
|
|
5521
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups/{billingGroupName}/things";
|
|
5522
5522
|
if (input.billingGroupName !== undefined) {
|
|
5523
5523
|
labelValue = input.billingGroupName;
|
|
5524
5524
|
if (labelValue.length <= 0) {
|
|
@@ -5551,7 +5551,7 @@ export var serializeAws_restJson1ListThingsInThingGroupCommand = function (input
|
|
|
5551
5551
|
case 1:
|
|
5552
5552
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5553
5553
|
headers = {};
|
|
5554
|
-
resolvedPath = ""
|
|
5554
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/{thingGroupName}/things";
|
|
5555
5555
|
if (input.thingGroupName !== undefined) {
|
|
5556
5556
|
labelValue = input.thingGroupName;
|
|
5557
5557
|
if (labelValue.length <= 0) {
|
|
@@ -5584,7 +5584,7 @@ export var serializeAws_restJson1ListThingTypesCommand = function (input, contex
|
|
|
5584
5584
|
case 1:
|
|
5585
5585
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5586
5586
|
headers = {};
|
|
5587
|
-
resolvedPath = ""
|
|
5587
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-types";
|
|
5588
5588
|
query = __assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.thingTypeName !== undefined && { thingTypeName: input.thingTypeName }));
|
|
5589
5589
|
return [2, new __HttpRequest({
|
|
5590
5590
|
protocol: protocol,
|
|
@@ -5607,7 +5607,7 @@ export var serializeAws_restJson1ListTopicRuleDestinationsCommand = function (in
|
|
|
5607
5607
|
case 1:
|
|
5608
5608
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5609
5609
|
headers = {};
|
|
5610
|
-
resolvedPath = ""
|
|
5610
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
5611
5611
|
query = __assign(__assign({}, (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
5612
5612
|
return [2, new __HttpRequest({
|
|
5613
5613
|
protocol: protocol,
|
|
@@ -5630,7 +5630,7 @@ export var serializeAws_restJson1ListTopicRulesCommand = function (input, contex
|
|
|
5630
5630
|
case 1:
|
|
5631
5631
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5632
5632
|
headers = {};
|
|
5633
|
-
resolvedPath = ""
|
|
5633
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules";
|
|
5634
5634
|
query = __assign(__assign(__assign(__assign({}, (input.topic !== undefined && { topic: input.topic })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.ruleDisabled !== undefined && { ruleDisabled: input.ruleDisabled.toString() }));
|
|
5635
5635
|
return [2, new __HttpRequest({
|
|
5636
5636
|
protocol: protocol,
|
|
@@ -5653,7 +5653,7 @@ export var serializeAws_restJson1ListV2LoggingLevelsCommand = function (input, c
|
|
|
5653
5653
|
case 1:
|
|
5654
5654
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5655
5655
|
headers = {};
|
|
5656
|
-
resolvedPath = ""
|
|
5656
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingLevel";
|
|
5657
5657
|
query = __assign(__assign(__assign({}, (input.targetType !== undefined && { targetType: input.targetType })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
5658
5658
|
return [2, new __HttpRequest({
|
|
5659
5659
|
protocol: protocol,
|
|
@@ -5676,7 +5676,7 @@ export var serializeAws_restJson1ListViolationEventsCommand = function (input, c
|
|
|
5676
5676
|
case 1:
|
|
5677
5677
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
5678
5678
|
headers = {};
|
|
5679
|
-
resolvedPath = ""
|
|
5679
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/violation-events";
|
|
5680
5680
|
query = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.startTime !== undefined && { startTime: (input.startTime.toISOString().split(".")[0] + "Z").toString() })), (input.endTime !== undefined && { endTime: (input.endTime.toISOString().split(".")[0] + "Z").toString() })), (input.thingName !== undefined && { thingName: input.thingName })), (input.securityProfileName !== undefined && { securityProfileName: input.securityProfileName })), (input.behaviorCriteriaType !== undefined && { behaviorCriteriaType: input.behaviorCriteriaType })), (input.listSuppressedAlerts !== undefined && { listSuppressedAlerts: input.listSuppressedAlerts.toString() })), (input.verificationState !== undefined && { verificationState: input.verificationState })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
5681
5681
|
return [2, new __HttpRequest({
|
|
5682
5682
|
protocol: protocol,
|
|
@@ -5701,7 +5701,7 @@ export var serializeAws_restJson1PutVerificationStateOnViolationCommand = functi
|
|
|
5701
5701
|
headers = {
|
|
5702
5702
|
"content-type": "application/json",
|
|
5703
5703
|
};
|
|
5704
|
-
resolvedPath = ""
|
|
5704
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5705
5705
|
"/violations/verification-state/{violationId}";
|
|
5706
5706
|
if (input.violationId !== undefined) {
|
|
5707
5707
|
labelValue = input.violationId;
|
|
@@ -5740,7 +5740,7 @@ export var serializeAws_restJson1RegisterCACertificateCommand = function (input,
|
|
|
5740
5740
|
headers = {
|
|
5741
5741
|
"content-type": "application/json",
|
|
5742
5742
|
};
|
|
5743
|
-
resolvedPath = ""
|
|
5743
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cacertificate";
|
|
5744
5744
|
query = __assign(__assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() })), (input.allowAutoRegistration !== undefined && { allowAutoRegistration: input.allowAutoRegistration.toString() }));
|
|
5745
5745
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.caCertificate !== undefined && input.caCertificate !== null && { caCertificate: input.caCertificate })), (input.registrationConfig !== undefined &&
|
|
5746
5746
|
input.registrationConfig !== null && {
|
|
@@ -5771,7 +5771,7 @@ export var serializeAws_restJson1RegisterCertificateCommand = function (input, c
|
|
|
5771
5771
|
headers = {
|
|
5772
5772
|
"content-type": "application/json",
|
|
5773
5773
|
};
|
|
5774
|
-
resolvedPath = ""
|
|
5774
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificate/register";
|
|
5775
5775
|
query = __assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() }));
|
|
5776
5776
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.caCertificatePem !== undefined &&
|
|
5777
5777
|
input.caCertificatePem !== null && { caCertificatePem: input.caCertificatePem })), (input.certificatePem !== undefined &&
|
|
@@ -5799,7 +5799,7 @@ export var serializeAws_restJson1RegisterCertificateWithoutCACommand = function
|
|
|
5799
5799
|
headers = {
|
|
5800
5800
|
"content-type": "application/json",
|
|
5801
5801
|
};
|
|
5802
|
-
resolvedPath = ""
|
|
5802
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificate/register-no-ca";
|
|
5803
5803
|
body = JSON.stringify(__assign(__assign({}, (input.certificatePem !== undefined &&
|
|
5804
5804
|
input.certificatePem !== null && { certificatePem: input.certificatePem })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
5805
5805
|
return [2, new __HttpRequest({
|
|
@@ -5824,7 +5824,7 @@ export var serializeAws_restJson1RegisterThingCommand = function (input, context
|
|
|
5824
5824
|
headers = {
|
|
5825
5825
|
"content-type": "application/json",
|
|
5826
5826
|
};
|
|
5827
|
-
resolvedPath = ""
|
|
5827
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things";
|
|
5828
5828
|
body = JSON.stringify(__assign(__assign({}, (input.parameters !== undefined &&
|
|
5829
5829
|
input.parameters !== null && { parameters: serializeAws_restJson1Parameters(input.parameters, context) })), (input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody })));
|
|
5830
5830
|
return [2, new __HttpRequest({
|
|
@@ -5849,7 +5849,7 @@ export var serializeAws_restJson1RejectCertificateTransferCommand = function (in
|
|
|
5849
5849
|
headers = {
|
|
5850
5850
|
"content-type": "application/json",
|
|
5851
5851
|
};
|
|
5852
|
-
resolvedPath = ""
|
|
5852
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5853
5853
|
"/reject-certificate-transfer/{certificateId}";
|
|
5854
5854
|
if (input.certificateId !== undefined) {
|
|
5855
5855
|
labelValue = input.certificateId;
|
|
@@ -5884,7 +5884,7 @@ export var serializeAws_restJson1RemoveThingFromBillingGroupCommand = function (
|
|
|
5884
5884
|
headers = {
|
|
5885
5885
|
"content-type": "application/json",
|
|
5886
5886
|
};
|
|
5887
|
-
resolvedPath = ""
|
|
5887
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5888
5888
|
"/billing-groups/removeThingFromBillingGroup";
|
|
5889
5889
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.billingGroupArn !== undefined &&
|
|
5890
5890
|
input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn })), (input.billingGroupName !== undefined &&
|
|
@@ -5911,7 +5911,7 @@ export var serializeAws_restJson1RemoveThingFromThingGroupCommand = function (in
|
|
|
5911
5911
|
headers = {
|
|
5912
5912
|
"content-type": "application/json",
|
|
5913
5913
|
};
|
|
5914
|
-
resolvedPath = ""
|
|
5914
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/removeThingFromThingGroup";
|
|
5915
5915
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn })), (input.thingGroupArn !== undefined && input.thingGroupArn !== null && { thingGroupArn: input.thingGroupArn })), (input.thingGroupName !== undefined &&
|
|
5916
5916
|
input.thingGroupName !== null && { thingGroupName: input.thingGroupName })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName })));
|
|
5917
5917
|
return [2, new __HttpRequest({
|
|
@@ -5936,7 +5936,7 @@ export var serializeAws_restJson1ReplaceTopicRuleCommand = function (input, cont
|
|
|
5936
5936
|
headers = {
|
|
5937
5937
|
"content-type": "application/json",
|
|
5938
5938
|
};
|
|
5939
|
-
resolvedPath = ""
|
|
5939
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/rules/{ruleName}";
|
|
5940
5940
|
if (input.ruleName !== undefined) {
|
|
5941
5941
|
labelValue = input.ruleName;
|
|
5942
5942
|
if (labelValue.length <= 0) {
|
|
@@ -5976,7 +5976,7 @@ export var serializeAws_restJson1SearchIndexCommand = function (input, context)
|
|
|
5976
5976
|
headers = {
|
|
5977
5977
|
"content-type": "application/json",
|
|
5978
5978
|
};
|
|
5979
|
-
resolvedPath = ""
|
|
5979
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/search";
|
|
5980
5980
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })));
|
|
5981
5981
|
return [2, new __HttpRequest({
|
|
5982
5982
|
protocol: protocol,
|
|
@@ -6000,7 +6000,7 @@ export var serializeAws_restJson1SetDefaultAuthorizerCommand = function (input,
|
|
|
6000
6000
|
headers = {
|
|
6001
6001
|
"content-type": "application/json",
|
|
6002
6002
|
};
|
|
6003
|
-
resolvedPath = ""
|
|
6003
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/default-authorizer";
|
|
6004
6004
|
body = JSON.stringify(__assign({}, (input.authorizerName !== undefined &&
|
|
6005
6005
|
input.authorizerName !== null && { authorizerName: input.authorizerName })));
|
|
6006
6006
|
return [2, new __HttpRequest({
|
|
@@ -6023,7 +6023,7 @@ export var serializeAws_restJson1SetDefaultPolicyVersionCommand = function (inpu
|
|
|
6023
6023
|
case 1:
|
|
6024
6024
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
6025
6025
|
headers = {};
|
|
6026
|
-
resolvedPath = ""
|
|
6026
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
6027
6027
|
"/policies/{policyName}/version/{policyVersionId}";
|
|
6028
6028
|
if (input.policyName !== undefined) {
|
|
6029
6029
|
labelValue = input.policyName;
|
|
@@ -6067,7 +6067,7 @@ export var serializeAws_restJson1SetLoggingOptionsCommand = function (input, con
|
|
|
6067
6067
|
headers = {
|
|
6068
6068
|
"content-type": "application/json",
|
|
6069
6069
|
};
|
|
6070
|
-
resolvedPath = ""
|
|
6070
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/loggingOptions";
|
|
6071
6071
|
if (input.loggingOptionsPayload !== undefined) {
|
|
6072
6072
|
body = serializeAws_restJson1LoggingOptionsPayload(input.loggingOptionsPayload, context);
|
|
6073
6073
|
}
|
|
@@ -6097,7 +6097,7 @@ export var serializeAws_restJson1SetV2LoggingLevelCommand = function (input, con
|
|
|
6097
6097
|
headers = {
|
|
6098
6098
|
"content-type": "application/json",
|
|
6099
6099
|
};
|
|
6100
|
-
resolvedPath = ""
|
|
6100
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingLevel";
|
|
6101
6101
|
body = JSON.stringify(__assign(__assign({}, (input.logLevel !== undefined && input.logLevel !== null && { logLevel: input.logLevel })), (input.logTarget !== undefined &&
|
|
6102
6102
|
input.logTarget !== null && { logTarget: serializeAws_restJson1LogTarget(input.logTarget, context) })));
|
|
6103
6103
|
return [2, new __HttpRequest({
|
|
@@ -6122,7 +6122,7 @@ export var serializeAws_restJson1SetV2LoggingOptionsCommand = function (input, c
|
|
|
6122
6122
|
headers = {
|
|
6123
6123
|
"content-type": "application/json",
|
|
6124
6124
|
};
|
|
6125
|
-
resolvedPath = ""
|
|
6125
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingOptions";
|
|
6126
6126
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.defaultLogLevel !== undefined &&
|
|
6127
6127
|
input.defaultLogLevel !== null && { defaultLogLevel: input.defaultLogLevel })), (input.disableAllLogs !== undefined &&
|
|
6128
6128
|
input.disableAllLogs !== null && { disableAllLogs: input.disableAllLogs })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })));
|
|
@@ -6149,7 +6149,7 @@ export var serializeAws_restJson1StartAuditMitigationActionsTaskCommand = functi
|
|
|
6149
6149
|
headers = {
|
|
6150
6150
|
"content-type": "application/json",
|
|
6151
6151
|
};
|
|
6152
|
-
resolvedPath = ""
|
|
6152
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/mitigationactions/tasks/{taskId}";
|
|
6153
6153
|
if (input.taskId !== undefined) {
|
|
6154
6154
|
labelValue = input.taskId;
|
|
6155
6155
|
if (labelValue.length <= 0) {
|
|
@@ -6190,7 +6190,7 @@ export var serializeAws_restJson1StartDetectMitigationActionsTaskCommand = funct
|
|
|
6190
6190
|
headers = {
|
|
6191
6191
|
"content-type": "application/json",
|
|
6192
6192
|
};
|
|
6193
|
-
resolvedPath = ""
|
|
6193
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detect/mitigationactions/tasks/{taskId}";
|
|
6194
6194
|
if (input.taskId !== undefined) {
|
|
6195
6195
|
labelValue = input.taskId;
|
|
6196
6196
|
if (labelValue.length <= 0) {
|
|
@@ -6235,7 +6235,7 @@ export var serializeAws_restJson1StartOnDemandAuditTaskCommand = function (input
|
|
|
6235
6235
|
headers = {
|
|
6236
6236
|
"content-type": "application/json",
|
|
6237
6237
|
};
|
|
6238
|
-
resolvedPath = ""
|
|
6238
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/tasks";
|
|
6239
6239
|
body = JSON.stringify(__assign({}, (input.targetCheckNames !== undefined &&
|
|
6240
6240
|
input.targetCheckNames !== null && {
|
|
6241
6241
|
targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
|
|
@@ -6262,7 +6262,7 @@ export var serializeAws_restJson1StartThingRegistrationTaskCommand = function (i
|
|
|
6262
6262
|
headers = {
|
|
6263
6263
|
"content-type": "application/json",
|
|
6264
6264
|
};
|
|
6265
|
-
resolvedPath = ""
|
|
6265
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-registration-tasks";
|
|
6266
6266
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputFileBucket !== undefined &&
|
|
6267
6267
|
input.inputFileBucket !== null && { inputFileBucket: input.inputFileBucket })), (input.inputFileKey !== undefined && input.inputFileKey !== null && { inputFileKey: input.inputFileKey })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody })));
|
|
6268
6268
|
return [2, new __HttpRequest({
|
|
@@ -6285,7 +6285,7 @@ export var serializeAws_restJson1StopThingRegistrationTaskCommand = function (in
|
|
|
6285
6285
|
case 1:
|
|
6286
6286
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
6287
6287
|
headers = {};
|
|
6288
|
-
resolvedPath = ""
|
|
6288
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-registration-tasks/{taskId}/cancel";
|
|
6289
6289
|
if (input.taskId !== undefined) {
|
|
6290
6290
|
labelValue = input.taskId;
|
|
6291
6291
|
if (labelValue.length <= 0) {
|
|
@@ -6318,7 +6318,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
6318
6318
|
headers = {
|
|
6319
6319
|
"content-type": "application/json",
|
|
6320
6320
|
};
|
|
6321
|
-
resolvedPath = ""
|
|
6321
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
6322
6322
|
body = JSON.stringify(__assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined &&
|
|
6323
6323
|
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
6324
6324
|
return [2, new __HttpRequest({
|
|
@@ -6343,7 +6343,7 @@ export var serializeAws_restJson1TestAuthorizationCommand = function (input, con
|
|
|
6343
6343
|
headers = {
|
|
6344
6344
|
"content-type": "application/json",
|
|
6345
6345
|
};
|
|
6346
|
-
resolvedPath = ""
|
|
6346
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/test-authorization";
|
|
6347
6347
|
query = __assign({}, (input.clientId !== undefined && { clientId: input.clientId }));
|
|
6348
6348
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authInfos !== undefined &&
|
|
6349
6349
|
input.authInfos !== null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) })), (input.cognitoIdentityPoolId !== undefined &&
|
|
@@ -6377,7 +6377,7 @@ export var serializeAws_restJson1TestInvokeAuthorizerCommand = function (input,
|
|
|
6377
6377
|
headers = {
|
|
6378
6378
|
"content-type": "application/json",
|
|
6379
6379
|
};
|
|
6380
|
-
resolvedPath = ""
|
|
6380
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/authorizer/{authorizerName}/test";
|
|
6381
6381
|
if (input.authorizerName !== undefined) {
|
|
6382
6382
|
labelValue = input.authorizerName;
|
|
6383
6383
|
if (labelValue.length <= 0) {
|
|
@@ -6415,7 +6415,7 @@ export var serializeAws_restJson1TransferCertificateCommand = function (input, c
|
|
|
6415
6415
|
headers = {
|
|
6416
6416
|
"content-type": "application/json",
|
|
6417
6417
|
};
|
|
6418
|
-
resolvedPath = ""
|
|
6418
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/transfer-certificate/{certificateId}";
|
|
6419
6419
|
if (input.certificateId !== undefined) {
|
|
6420
6420
|
labelValue = input.certificateId;
|
|
6421
6421
|
if (labelValue.length <= 0) {
|
|
@@ -6452,7 +6452,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
6452
6452
|
headers = {
|
|
6453
6453
|
"content-type": "application/json",
|
|
6454
6454
|
};
|
|
6455
|
-
resolvedPath = ""
|
|
6455
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/untag";
|
|
6456
6456
|
body = JSON.stringify(__assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
|
|
6457
6457
|
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
6458
6458
|
return [2, new __HttpRequest({
|
|
@@ -6477,7 +6477,7 @@ export var serializeAws_restJson1UpdateAccountAuditConfigurationCommand = functi
|
|
|
6477
6477
|
headers = {
|
|
6478
6478
|
"content-type": "application/json",
|
|
6479
6479
|
};
|
|
6480
|
-
resolvedPath = ""
|
|
6480
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/configuration";
|
|
6481
6481
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckConfigurations !== undefined &&
|
|
6482
6482
|
input.auditCheckConfigurations !== null && {
|
|
6483
6483
|
auditCheckConfigurations: serializeAws_restJson1AuditCheckConfigurations(input.auditCheckConfigurations, context),
|
|
@@ -6507,7 +6507,7 @@ export var serializeAws_restJson1UpdateAuditSuppressionCommand = function (input
|
|
|
6507
6507
|
headers = {
|
|
6508
6508
|
"content-type": "application/json",
|
|
6509
6509
|
};
|
|
6510
|
-
resolvedPath = ""
|
|
6510
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/update";
|
|
6511
6511
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.expirationDate !== undefined &&
|
|
6512
6512
|
input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) })), (input.resourceIdentifier !== undefined &&
|
|
6513
6513
|
input.resourceIdentifier !== null && {
|
|
@@ -6536,7 +6536,7 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
|
|
|
6536
6536
|
headers = {
|
|
6537
6537
|
"content-type": "application/json",
|
|
6538
6538
|
};
|
|
6539
|
-
resolvedPath = ""
|
|
6539
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/authorizer/{authorizerName}";
|
|
6540
6540
|
if (input.authorizerName !== undefined) {
|
|
6541
6541
|
labelValue = input.authorizerName;
|
|
6542
6542
|
if (labelValue.length <= 0) {
|
|
@@ -6575,7 +6575,7 @@ export var serializeAws_restJson1UpdateBillingGroupCommand = function (input, co
|
|
|
6575
6575
|
headers = {
|
|
6576
6576
|
"content-type": "application/json",
|
|
6577
6577
|
};
|
|
6578
|
-
resolvedPath = ""
|
|
6578
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups/{billingGroupName}";
|
|
6579
6579
|
if (input.billingGroupName !== undefined) {
|
|
6580
6580
|
labelValue = input.billingGroupName;
|
|
6581
6581
|
if (labelValue.length <= 0) {
|
|
@@ -6613,7 +6613,7 @@ export var serializeAws_restJson1UpdateCACertificateCommand = function (input, c
|
|
|
6613
6613
|
headers = {
|
|
6614
6614
|
"content-type": "application/json",
|
|
6615
6615
|
};
|
|
6616
|
-
resolvedPath = ""
|
|
6616
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cacertificate/{certificateId}";
|
|
6617
6617
|
if (input.certificateId !== undefined) {
|
|
6618
6618
|
labelValue = input.certificateId;
|
|
6619
6619
|
if (labelValue.length <= 0) {
|
|
@@ -6653,7 +6653,7 @@ export var serializeAws_restJson1UpdateCertificateCommand = function (input, con
|
|
|
6653
6653
|
case 1:
|
|
6654
6654
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
6655
6655
|
headers = {};
|
|
6656
|
-
resolvedPath = ""
|
|
6656
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates/{certificateId}";
|
|
6657
6657
|
if (input.certificateId !== undefined) {
|
|
6658
6658
|
labelValue = input.certificateId;
|
|
6659
6659
|
if (labelValue.length <= 0) {
|
|
@@ -6688,7 +6688,7 @@ export var serializeAws_restJson1UpdateCustomMetricCommand = function (input, co
|
|
|
6688
6688
|
headers = {
|
|
6689
6689
|
"content-type": "application/json",
|
|
6690
6690
|
};
|
|
6691
|
-
resolvedPath = ""
|
|
6691
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/custom-metric/{metricName}";
|
|
6692
6692
|
if (input.metricName !== undefined) {
|
|
6693
6693
|
labelValue = input.metricName;
|
|
6694
6694
|
if (labelValue.length <= 0) {
|
|
@@ -6722,7 +6722,7 @@ export var serializeAws_restJson1UpdateDimensionCommand = function (input, conte
|
|
|
6722
6722
|
headers = {
|
|
6723
6723
|
"content-type": "application/json",
|
|
6724
6724
|
};
|
|
6725
|
-
resolvedPath = ""
|
|
6725
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dimensions/{name}";
|
|
6726
6726
|
if (input.name !== undefined) {
|
|
6727
6727
|
labelValue = input.name;
|
|
6728
6728
|
if (labelValue.length <= 0) {
|
|
@@ -6759,7 +6759,7 @@ export var serializeAws_restJson1UpdateDomainConfigurationCommand = function (in
|
|
|
6759
6759
|
headers = {
|
|
6760
6760
|
"content-type": "application/json",
|
|
6761
6761
|
};
|
|
6762
|
-
resolvedPath = ""
|
|
6762
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
6763
6763
|
"/domainConfigurations/{domainConfigurationName}";
|
|
6764
6764
|
if (input.domainConfigurationName !== undefined) {
|
|
6765
6765
|
labelValue = input.domainConfigurationName;
|
|
@@ -6799,7 +6799,7 @@ export var serializeAws_restJson1UpdateDynamicThingGroupCommand = function (inpu
|
|
|
6799
6799
|
headers = {
|
|
6800
6800
|
"content-type": "application/json",
|
|
6801
6801
|
};
|
|
6802
|
-
resolvedPath = ""
|
|
6802
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dynamic-thing-groups/{thingGroupName}";
|
|
6803
6803
|
if (input.thingGroupName !== undefined) {
|
|
6804
6804
|
labelValue = input.thingGroupName;
|
|
6805
6805
|
if (labelValue.length <= 0) {
|
|
@@ -6837,7 +6837,7 @@ export var serializeAws_restJson1UpdateEventConfigurationsCommand = function (in
|
|
|
6837
6837
|
headers = {
|
|
6838
6838
|
"content-type": "application/json",
|
|
6839
6839
|
};
|
|
6840
|
-
resolvedPath = ""
|
|
6840
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations";
|
|
6841
6841
|
body = JSON.stringify(__assign({}, (input.eventConfigurations !== undefined &&
|
|
6842
6842
|
input.eventConfigurations !== null && {
|
|
6843
6843
|
eventConfigurations: serializeAws_restJson1EventConfigurations(input.eventConfigurations, context),
|
|
@@ -6864,7 +6864,7 @@ export var serializeAws_restJson1UpdateFleetMetricCommand = function (input, con
|
|
|
6864
6864
|
headers = {
|
|
6865
6865
|
"content-type": "application/json",
|
|
6866
6866
|
};
|
|
6867
|
-
resolvedPath = ""
|
|
6867
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/fleet-metric/{metricName}";
|
|
6868
6868
|
if (input.metricName !== undefined) {
|
|
6869
6869
|
labelValue = input.metricName;
|
|
6870
6870
|
if (labelValue.length <= 0) {
|
|
@@ -6903,7 +6903,7 @@ export var serializeAws_restJson1UpdateIndexingConfigurationCommand = function (
|
|
|
6903
6903
|
headers = {
|
|
6904
6904
|
"content-type": "application/json",
|
|
6905
6905
|
};
|
|
6906
|
-
resolvedPath = ""
|
|
6906
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indexing/config";
|
|
6907
6907
|
body = JSON.stringify(__assign(__assign({}, (input.thingGroupIndexingConfiguration !== undefined &&
|
|
6908
6908
|
input.thingGroupIndexingConfiguration !== null && {
|
|
6909
6909
|
thingGroupIndexingConfiguration: serializeAws_restJson1ThingGroupIndexingConfiguration(input.thingGroupIndexingConfiguration, context),
|
|
@@ -6933,7 +6933,7 @@ export var serializeAws_restJson1UpdateJobCommand = function (input, context) {
|
|
|
6933
6933
|
headers = {
|
|
6934
6934
|
"content-type": "application/json",
|
|
6935
6935
|
};
|
|
6936
|
-
resolvedPath = ""
|
|
6936
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}";
|
|
6937
6937
|
if (input.jobId !== undefined) {
|
|
6938
6938
|
labelValue = input.jobId;
|
|
6939
6939
|
if (labelValue.length <= 0) {
|
|
@@ -6982,7 +6982,7 @@ export var serializeAws_restJson1UpdateMitigationActionCommand = function (input
|
|
|
6982
6982
|
headers = {
|
|
6983
6983
|
"content-type": "application/json",
|
|
6984
6984
|
};
|
|
6985
|
-
resolvedPath = ""
|
|
6985
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/mitigationactions/actions/{actionName}";
|
|
6986
6986
|
if (input.actionName !== undefined) {
|
|
6987
6987
|
labelValue = input.actionName;
|
|
6988
6988
|
if (labelValue.length <= 0) {
|
|
@@ -7019,7 +7019,7 @@ export var serializeAws_restJson1UpdateProvisioningTemplateCommand = function (i
|
|
|
7019
7019
|
headers = {
|
|
7020
7020
|
"content-type": "application/json",
|
|
7021
7021
|
};
|
|
7022
|
-
resolvedPath = ""
|
|
7022
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/provisioning-templates/{templateName}";
|
|
7023
7023
|
if (input.templateName !== undefined) {
|
|
7024
7024
|
labelValue = input.templateName;
|
|
7025
7025
|
if (labelValue.length <= 0) {
|
|
@@ -7059,7 +7059,7 @@ export var serializeAws_restJson1UpdateRoleAliasCommand = function (input, conte
|
|
|
7059
7059
|
headers = {
|
|
7060
7060
|
"content-type": "application/json",
|
|
7061
7061
|
};
|
|
7062
|
-
resolvedPath = ""
|
|
7062
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/role-aliases/{roleAlias}";
|
|
7063
7063
|
if (input.roleAlias !== undefined) {
|
|
7064
7064
|
labelValue = input.roleAlias;
|
|
7065
7065
|
if (labelValue.length <= 0) {
|
|
@@ -7094,7 +7094,7 @@ export var serializeAws_restJson1UpdateScheduledAuditCommand = function (input,
|
|
|
7094
7094
|
headers = {
|
|
7095
7095
|
"content-type": "application/json",
|
|
7096
7096
|
};
|
|
7097
|
-
resolvedPath = ""
|
|
7097
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
7098
7098
|
"/audit/scheduledaudits/{scheduledAuditName}";
|
|
7099
7099
|
if (input.scheduledAuditName !== undefined) {
|
|
7100
7100
|
labelValue = input.scheduledAuditName;
|
|
@@ -7132,7 +7132,7 @@ export var serializeAws_restJson1UpdateSecurityProfileCommand = function (input,
|
|
|
7132
7132
|
headers = {
|
|
7133
7133
|
"content-type": "application/json",
|
|
7134
7134
|
};
|
|
7135
|
-
resolvedPath = ""
|
|
7135
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profiles/{securityProfileName}";
|
|
7136
7136
|
if (input.securityProfileName !== undefined) {
|
|
7137
7137
|
labelValue = input.securityProfileName;
|
|
7138
7138
|
if (labelValue.length <= 0) {
|
|
@@ -7182,7 +7182,7 @@ export var serializeAws_restJson1UpdateStreamCommand = function (input, context)
|
|
|
7182
7182
|
headers = {
|
|
7183
7183
|
"content-type": "application/json",
|
|
7184
7184
|
};
|
|
7185
|
-
resolvedPath = ""
|
|
7185
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/streams/{streamId}";
|
|
7186
7186
|
if (input.streamId !== undefined) {
|
|
7187
7187
|
labelValue = input.streamId;
|
|
7188
7188
|
if (labelValue.length <= 0) {
|
|
@@ -7217,7 +7217,7 @@ export var serializeAws_restJson1UpdateThingCommand = function (input, context)
|
|
|
7217
7217
|
headers = {
|
|
7218
7218
|
"content-type": "application/json",
|
|
7219
7219
|
};
|
|
7220
|
-
resolvedPath = ""
|
|
7220
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}";
|
|
7221
7221
|
if (input.thingName !== undefined) {
|
|
7222
7222
|
labelValue = input.thingName;
|
|
7223
7223
|
if (labelValue.length <= 0) {
|
|
@@ -7256,7 +7256,7 @@ export var serializeAws_restJson1UpdateThingGroupCommand = function (input, cont
|
|
|
7256
7256
|
headers = {
|
|
7257
7257
|
"content-type": "application/json",
|
|
7258
7258
|
};
|
|
7259
|
-
resolvedPath = ""
|
|
7259
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/{thingGroupName}";
|
|
7260
7260
|
if (input.thingGroupName !== undefined) {
|
|
7261
7261
|
labelValue = input.thingGroupName;
|
|
7262
7262
|
if (labelValue.length <= 0) {
|
|
@@ -7294,7 +7294,7 @@ export var serializeAws_restJson1UpdateThingGroupsForThingCommand = function (in
|
|
|
7294
7294
|
headers = {
|
|
7295
7295
|
"content-type": "application/json",
|
|
7296
7296
|
};
|
|
7297
|
-
resolvedPath = ""
|
|
7297
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/updateThingGroupsForThing";
|
|
7298
7298
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups !== undefined &&
|
|
7299
7299
|
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupsToAdd !== undefined &&
|
|
7300
7300
|
input.thingGroupsToAdd !== null && {
|
|
@@ -7325,7 +7325,7 @@ export var serializeAws_restJson1UpdateTopicRuleDestinationCommand = function (i
|
|
|
7325
7325
|
headers = {
|
|
7326
7326
|
"content-type": "application/json",
|
|
7327
7327
|
};
|
|
7328
|
-
resolvedPath = ""
|
|
7328
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
7329
7329
|
body = JSON.stringify(__assign(__assign({}, (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
7330
7330
|
return [2, new __HttpRequest({
|
|
7331
7331
|
protocol: protocol,
|
|
@@ -7349,7 +7349,7 @@ export var serializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = funct
|
|
|
7349
7349
|
headers = {
|
|
7350
7350
|
"content-type": "application/json",
|
|
7351
7351
|
};
|
|
7352
|
-
resolvedPath = ""
|
|
7352
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profile-behaviors/validate";
|
|
7353
7353
|
body = JSON.stringify(__assign({}, (input.behaviors !== undefined &&
|
|
7354
7354
|
input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) })));
|
|
7355
7355
|
return [2, new __HttpRequest({
|