@softchef/cdk-iot-device-management
Version:
IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.
960 lines • 155 kB
JavaScript
import { __extends } from "tslib";
import { AcceptCertificateTransferCommand, } from "./commands/AcceptCertificateTransferCommand";
import { AddThingToBillingGroupCommand, } from "./commands/AddThingToBillingGroupCommand";
import { AddThingToThingGroupCommand, } from "./commands/AddThingToThingGroupCommand";
import { AssociateTargetsWithJobCommand, } from "./commands/AssociateTargetsWithJobCommand";
import { AttachPolicyCommand, } from "./commands/AttachPolicyCommand";
import { AttachPrincipalPolicyCommand, } from "./commands/AttachPrincipalPolicyCommand";
import { AttachSecurityProfileCommand, } from "./commands/AttachSecurityProfileCommand";
import { AttachThingPrincipalCommand, } from "./commands/AttachThingPrincipalCommand";
import { CancelAuditMitigationActionsTaskCommand, } from "./commands/CancelAuditMitigationActionsTaskCommand";
import { CancelAuditTaskCommand, } from "./commands/CancelAuditTaskCommand";
import { CancelCertificateTransferCommand, } from "./commands/CancelCertificateTransferCommand";
import { CancelDetectMitigationActionsTaskCommand, } from "./commands/CancelDetectMitigationActionsTaskCommand";
import { CancelJobCommand } from "./commands/CancelJobCommand";
import { CancelJobExecutionCommand, } from "./commands/CancelJobExecutionCommand";
import { ClearDefaultAuthorizerCommand, } from "./commands/ClearDefaultAuthorizerCommand";
import { ConfirmTopicRuleDestinationCommand, } from "./commands/ConfirmTopicRuleDestinationCommand";
import { CreateAuditSuppressionCommand, } from "./commands/CreateAuditSuppressionCommand";
import { CreateAuthorizerCommand, } from "./commands/CreateAuthorizerCommand";
import { CreateBillingGroupCommand, } from "./commands/CreateBillingGroupCommand";
import { CreateCertificateFromCsrCommand, } from "./commands/CreateCertificateFromCsrCommand";
import { CreateCustomMetricCommand, } from "./commands/CreateCustomMetricCommand";
import { CreateDimensionCommand, } from "./commands/CreateDimensionCommand";
import { CreateDomainConfigurationCommand, } from "./commands/CreateDomainConfigurationCommand";
import { CreateDynamicThingGroupCommand, } from "./commands/CreateDynamicThingGroupCommand";
import { CreateFleetMetricCommand, } from "./commands/CreateFleetMetricCommand";
import { CreateJobCommand } from "./commands/CreateJobCommand";
import { CreateJobTemplateCommand, } from "./commands/CreateJobTemplateCommand";
import { CreateKeysAndCertificateCommand, } from "./commands/CreateKeysAndCertificateCommand";
import { CreateMitigationActionCommand, } from "./commands/CreateMitigationActionCommand";
import { CreateOTAUpdateCommand, } from "./commands/CreateOTAUpdateCommand";
import { CreatePolicyCommand, } from "./commands/CreatePolicyCommand";
import { CreatePolicyVersionCommand, } from "./commands/CreatePolicyVersionCommand";
import { CreateProvisioningClaimCommand, } from "./commands/CreateProvisioningClaimCommand";
import { CreateProvisioningTemplateCommand, } from "./commands/CreateProvisioningTemplateCommand";
import { CreateProvisioningTemplateVersionCommand, } from "./commands/CreateProvisioningTemplateVersionCommand";
import { CreateRoleAliasCommand, } from "./commands/CreateRoleAliasCommand";
import { CreateScheduledAuditCommand, } from "./commands/CreateScheduledAuditCommand";
import { CreateSecurityProfileCommand, } from "./commands/CreateSecurityProfileCommand";
import { CreateStreamCommand, } from "./commands/CreateStreamCommand";
import { CreateThingCommand } from "./commands/CreateThingCommand";
import { CreateThingGroupCommand, } from "./commands/CreateThingGroupCommand";
import { CreateThingTypeCommand, } from "./commands/CreateThingTypeCommand";
import { CreateTopicRuleCommand, } from "./commands/CreateTopicRuleCommand";
import { CreateTopicRuleDestinationCommand, } from "./commands/CreateTopicRuleDestinationCommand";
import { DeleteAccountAuditConfigurationCommand, } from "./commands/DeleteAccountAuditConfigurationCommand";
import { DeleteAuditSuppressionCommand, } from "./commands/DeleteAuditSuppressionCommand";
import { DeleteAuthorizerCommand, } from "./commands/DeleteAuthorizerCommand";
import { DeleteBillingGroupCommand, } from "./commands/DeleteBillingGroupCommand";
import { DeleteCACertificateCommand, } from "./commands/DeleteCACertificateCommand";
import { DeleteCertificateCommand, } from "./commands/DeleteCertificateCommand";
import { DeleteCustomMetricCommand, } from "./commands/DeleteCustomMetricCommand";
import { DeleteDimensionCommand, } from "./commands/DeleteDimensionCommand";
import { DeleteDomainConfigurationCommand, } from "./commands/DeleteDomainConfigurationCommand";
import { DeleteDynamicThingGroupCommand, } from "./commands/DeleteDynamicThingGroupCommand";
import { DeleteFleetMetricCommand, } from "./commands/DeleteFleetMetricCommand";
import { DeleteJobCommand } from "./commands/DeleteJobCommand";
import { DeleteJobExecutionCommand, } from "./commands/DeleteJobExecutionCommand";
import { DeleteJobTemplateCommand, } from "./commands/DeleteJobTemplateCommand";
import { DeleteMitigationActionCommand, } from "./commands/DeleteMitigationActionCommand";
import { DeleteOTAUpdateCommand, } from "./commands/DeleteOTAUpdateCommand";
import { DeletePolicyCommand, } from "./commands/DeletePolicyCommand";
import { DeletePolicyVersionCommand, } from "./commands/DeletePolicyVersionCommand";
import { DeleteProvisioningTemplateCommand, } from "./commands/DeleteProvisioningTemplateCommand";
import { DeleteProvisioningTemplateVersionCommand, } from "./commands/DeleteProvisioningTemplateVersionCommand";
import { DeleteRegistrationCodeCommand, } from "./commands/DeleteRegistrationCodeCommand";
import { DeleteRoleAliasCommand, } from "./commands/DeleteRoleAliasCommand";
import { DeleteScheduledAuditCommand, } from "./commands/DeleteScheduledAuditCommand";
import { DeleteSecurityProfileCommand, } from "./commands/DeleteSecurityProfileCommand";
import { DeleteStreamCommand, } from "./commands/DeleteStreamCommand";
import { DeleteThingCommand } from "./commands/DeleteThingCommand";
import { DeleteThingGroupCommand, } from "./commands/DeleteThingGroupCommand";
import { DeleteThingTypeCommand, } from "./commands/DeleteThingTypeCommand";
import { DeleteTopicRuleCommand, } from "./commands/DeleteTopicRuleCommand";
import { DeleteTopicRuleDestinationCommand, } from "./commands/DeleteTopicRuleDestinationCommand";
import { DeleteV2LoggingLevelCommand, } from "./commands/DeleteV2LoggingLevelCommand";
import { DeprecateThingTypeCommand, } from "./commands/DeprecateThingTypeCommand";
import { DescribeAccountAuditConfigurationCommand, } from "./commands/DescribeAccountAuditConfigurationCommand";
import { DescribeAuditFindingCommand, } from "./commands/DescribeAuditFindingCommand";
import { DescribeAuditMitigationActionsTaskCommand, } from "./commands/DescribeAuditMitigationActionsTaskCommand";
import { DescribeAuditSuppressionCommand, } from "./commands/DescribeAuditSuppressionCommand";
import { DescribeAuditTaskCommand, } from "./commands/DescribeAuditTaskCommand";
import { DescribeAuthorizerCommand, } from "./commands/DescribeAuthorizerCommand";
import { DescribeBillingGroupCommand, } from "./commands/DescribeBillingGroupCommand";
import { DescribeCACertificateCommand, } from "./commands/DescribeCACertificateCommand";
import { DescribeCertificateCommand, } from "./commands/DescribeCertificateCommand";
import { DescribeCustomMetricCommand, } from "./commands/DescribeCustomMetricCommand";
import { DescribeDefaultAuthorizerCommand, } from "./commands/DescribeDefaultAuthorizerCommand";
import { DescribeDetectMitigationActionsTaskCommand, } from "./commands/DescribeDetectMitigationActionsTaskCommand";
import { DescribeDimensionCommand, } from "./commands/DescribeDimensionCommand";
import { DescribeDomainConfigurationCommand, } from "./commands/DescribeDomainConfigurationCommand";
import { DescribeEndpointCommand, } from "./commands/DescribeEndpointCommand";
import { DescribeEventConfigurationsCommand, } from "./commands/DescribeEventConfigurationsCommand";
import { DescribeFleetMetricCommand, } from "./commands/DescribeFleetMetricCommand";
import { DescribeIndexCommand, } from "./commands/DescribeIndexCommand";
import { DescribeJobCommand } from "./commands/DescribeJobCommand";
import { DescribeJobExecutionCommand, } from "./commands/DescribeJobExecutionCommand";
import { DescribeJobTemplateCommand, } from "./commands/DescribeJobTemplateCommand";
import { DescribeManagedJobTemplateCommand, } from "./commands/DescribeManagedJobTemplateCommand";
import { DescribeMitigationActionCommand, } from "./commands/DescribeMitigationActionCommand";
import { DescribeProvisioningTemplateCommand, } from "./commands/DescribeProvisioningTemplateCommand";
import { DescribeProvisioningTemplateVersionCommand, } from "./commands/DescribeProvisioningTemplateVersionCommand";
import { DescribeRoleAliasCommand, } from "./commands/DescribeRoleAliasCommand";
import { DescribeScheduledAuditCommand, } from "./commands/DescribeScheduledAuditCommand";
import { DescribeSecurityProfileCommand, } from "./commands/DescribeSecurityProfileCommand";
import { DescribeStreamCommand, } from "./commands/DescribeStreamCommand";
import { DescribeThingCommand, } from "./commands/DescribeThingCommand";
import { DescribeThingGroupCommand, } from "./commands/DescribeThingGroupCommand";
import { DescribeThingRegistrationTaskCommand, } from "./commands/DescribeThingRegistrationTaskCommand";
import { DescribeThingTypeCommand, } from "./commands/DescribeThingTypeCommand";
import { DetachPolicyCommand, } from "./commands/DetachPolicyCommand";
import { DetachPrincipalPolicyCommand, } from "./commands/DetachPrincipalPolicyCommand";
import { DetachSecurityProfileCommand, } from "./commands/DetachSecurityProfileCommand";
import { DetachThingPrincipalCommand, } from "./commands/DetachThingPrincipalCommand";
import { DisableTopicRuleCommand, } from "./commands/DisableTopicRuleCommand";
import { EnableTopicRuleCommand, } from "./commands/EnableTopicRuleCommand";
import { GetBehaviorModelTrainingSummariesCommand, } from "./commands/GetBehaviorModelTrainingSummariesCommand";
import { GetBucketsAggregationCommand, } from "./commands/GetBucketsAggregationCommand";
import { GetCardinalityCommand, } from "./commands/GetCardinalityCommand";
import { GetEffectivePoliciesCommand, } from "./commands/GetEffectivePoliciesCommand";
import { GetIndexingConfigurationCommand, } from "./commands/GetIndexingConfigurationCommand";
import { GetJobDocumentCommand, } from "./commands/GetJobDocumentCommand";
import { GetLoggingOptionsCommand, } from "./commands/GetLoggingOptionsCommand";
import { GetOTAUpdateCommand, } from "./commands/GetOTAUpdateCommand";
import { GetPercentilesCommand, } from "./commands/GetPercentilesCommand";
import { GetPolicyCommand } from "./commands/GetPolicyCommand";
import { GetPolicyVersionCommand, } from "./commands/GetPolicyVersionCommand";
import { GetRegistrationCodeCommand, } from "./commands/GetRegistrationCodeCommand";
import { GetStatisticsCommand, } from "./commands/GetStatisticsCommand";
import { GetTopicRuleCommand, } from "./commands/GetTopicRuleCommand";
import { GetTopicRuleDestinationCommand, } from "./commands/GetTopicRuleDestinationCommand";
import { GetV2LoggingOptionsCommand, } from "./commands/GetV2LoggingOptionsCommand";
import { ListActiveViolationsCommand, } from "./commands/ListActiveViolationsCommand";
import { ListAttachedPoliciesCommand, } from "./commands/ListAttachedPoliciesCommand";
import { ListAuditFindingsCommand, } from "./commands/ListAuditFindingsCommand";
import { ListAuditMitigationActionsExecutionsCommand, } from "./commands/ListAuditMitigationActionsExecutionsCommand";
import { ListAuditMitigationActionsTasksCommand, } from "./commands/ListAuditMitigationActionsTasksCommand";
import { ListAuditSuppressionsCommand, } from "./commands/ListAuditSuppressionsCommand";
import { ListAuditTasksCommand, } from "./commands/ListAuditTasksCommand";
import { ListAuthorizersCommand, } from "./commands/ListAuthorizersCommand";
import { ListBillingGroupsCommand, } from "./commands/ListBillingGroupsCommand";
import { ListCACertificatesCommand, } from "./commands/ListCACertificatesCommand";
import { ListCertificatesByCACommand, } from "./commands/ListCertificatesByCACommand";
import { ListCertificatesCommand, } from "./commands/ListCertificatesCommand";
import { ListCustomMetricsCommand, } from "./commands/ListCustomMetricsCommand";
import { ListDetectMitigationActionsExecutionsCommand, } from "./commands/ListDetectMitigationActionsExecutionsCommand";
import { ListDetectMitigationActionsTasksCommand, } from "./commands/ListDetectMitigationActionsTasksCommand";
import { ListDimensionsCommand, } from "./commands/ListDimensionsCommand";
import { ListDomainConfigurationsCommand, } from "./commands/ListDomainConfigurationsCommand";
import { ListFleetMetricsCommand, } from "./commands/ListFleetMetricsCommand";
import { ListIndicesCommand } from "./commands/ListIndicesCommand";
import { ListJobExecutionsForJobCommand, } from "./commands/ListJobExecutionsForJobCommand";
import { ListJobExecutionsForThingCommand, } from "./commands/ListJobExecutionsForThingCommand";
import { ListJobsCommand } from "./commands/ListJobsCommand";
import { ListJobTemplatesCommand, } from "./commands/ListJobTemplatesCommand";
import { ListManagedJobTemplatesCommand, } from "./commands/ListManagedJobTemplatesCommand";
import { ListMitigationActionsCommand, } from "./commands/ListMitigationActionsCommand";
import { ListOTAUpdatesCommand, } from "./commands/ListOTAUpdatesCommand";
import { ListOutgoingCertificatesCommand, } from "./commands/ListOutgoingCertificatesCommand";
import { ListPoliciesCommand, } from "./commands/ListPoliciesCommand";
import { ListPolicyPrincipalsCommand, } from "./commands/ListPolicyPrincipalsCommand";
import { ListPolicyVersionsCommand, } from "./commands/ListPolicyVersionsCommand";
import { ListPrincipalPoliciesCommand, } from "./commands/ListPrincipalPoliciesCommand";
import { ListPrincipalThingsCommand, } from "./commands/ListPrincipalThingsCommand";
import { ListProvisioningTemplatesCommand, } from "./commands/ListProvisioningTemplatesCommand";
import { ListProvisioningTemplateVersionsCommand, } from "./commands/ListProvisioningTemplateVersionsCommand";
import { ListRoleAliasesCommand, } from "./commands/ListRoleAliasesCommand";
import { ListScheduledAuditsCommand, } from "./commands/ListScheduledAuditsCommand";
import { ListSecurityProfilesCommand, } from "./commands/ListSecurityProfilesCommand";
import { ListSecurityProfilesForTargetCommand, } from "./commands/ListSecurityProfilesForTargetCommand";
import { ListStreamsCommand } from "./commands/ListStreamsCommand";
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
import { ListTargetsForPolicyCommand, } from "./commands/ListTargetsForPolicyCommand";
import { ListTargetsForSecurityProfileCommand, } from "./commands/ListTargetsForSecurityProfileCommand";
import { ListThingGroupsCommand, } from "./commands/ListThingGroupsCommand";
import { ListThingGroupsForThingCommand, } from "./commands/ListThingGroupsForThingCommand";
import { ListThingPrincipalsCommand, } from "./commands/ListThingPrincipalsCommand";
import { ListThingRegistrationTaskReportsCommand, } from "./commands/ListThingRegistrationTaskReportsCommand";
import { ListThingRegistrationTasksCommand, } from "./commands/ListThingRegistrationTasksCommand";
import { ListThingsCommand } from "./commands/ListThingsCommand";
import { ListThingsInBillingGroupCommand, } from "./commands/ListThingsInBillingGroupCommand";
import { ListThingsInThingGroupCommand, } from "./commands/ListThingsInThingGroupCommand";
import { ListThingTypesCommand, } from "./commands/ListThingTypesCommand";
import { ListTopicRuleDestinationsCommand, } from "./commands/ListTopicRuleDestinationsCommand";
import { ListTopicRulesCommand, } from "./commands/ListTopicRulesCommand";
import { ListV2LoggingLevelsCommand, } from "./commands/ListV2LoggingLevelsCommand";
import { ListViolationEventsCommand, } from "./commands/ListViolationEventsCommand";
import { PutVerificationStateOnViolationCommand, } from "./commands/PutVerificationStateOnViolationCommand";
import { RegisterCACertificateCommand, } from "./commands/RegisterCACertificateCommand";
import { RegisterCertificateCommand, } from "./commands/RegisterCertificateCommand";
import { RegisterCertificateWithoutCACommand, } from "./commands/RegisterCertificateWithoutCACommand";
import { RegisterThingCommand, } from "./commands/RegisterThingCommand";
import { RejectCertificateTransferCommand, } from "./commands/RejectCertificateTransferCommand";
import { RemoveThingFromBillingGroupCommand, } from "./commands/RemoveThingFromBillingGroupCommand";
import { RemoveThingFromThingGroupCommand, } from "./commands/RemoveThingFromThingGroupCommand";
import { ReplaceTopicRuleCommand, } from "./commands/ReplaceTopicRuleCommand";
import { SearchIndexCommand } from "./commands/SearchIndexCommand";
import { SetDefaultAuthorizerCommand, } from "./commands/SetDefaultAuthorizerCommand";
import { SetDefaultPolicyVersionCommand, } from "./commands/SetDefaultPolicyVersionCommand";
import { SetLoggingOptionsCommand, } from "./commands/SetLoggingOptionsCommand";
import { SetV2LoggingLevelCommand, } from "./commands/SetV2LoggingLevelCommand";
import { SetV2LoggingOptionsCommand, } from "./commands/SetV2LoggingOptionsCommand";
import { StartAuditMitigationActionsTaskCommand, } from "./commands/StartAuditMitigationActionsTaskCommand";
import { StartDetectMitigationActionsTaskCommand, } from "./commands/StartDetectMitigationActionsTaskCommand";
import { StartOnDemandAuditTaskCommand, } from "./commands/StartOnDemandAuditTaskCommand";
import { StartThingRegistrationTaskCommand, } from "./commands/StartThingRegistrationTaskCommand";
import { StopThingRegistrationTaskCommand, } from "./commands/StopThingRegistrationTaskCommand";
import { TagResourceCommand } from "./commands/TagResourceCommand";
import { TestAuthorizationCommand, } from "./commands/TestAuthorizationCommand";
import { TestInvokeAuthorizerCommand, } from "./commands/TestInvokeAuthorizerCommand";
import { TransferCertificateCommand, } from "./commands/TransferCertificateCommand";
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
import { UpdateAccountAuditConfigurationCommand, } from "./commands/UpdateAccountAuditConfigurationCommand";
import { UpdateAuditSuppressionCommand, } from "./commands/UpdateAuditSuppressionCommand";
import { UpdateAuthorizerCommand, } from "./commands/UpdateAuthorizerCommand";
import { UpdateBillingGroupCommand, } from "./commands/UpdateBillingGroupCommand";
import { UpdateCACertificateCommand, } from "./commands/UpdateCACertificateCommand";
import { UpdateCertificateCommand, } from "./commands/UpdateCertificateCommand";
import { UpdateCustomMetricCommand, } from "./commands/UpdateCustomMetricCommand";
import { UpdateDimensionCommand, } from "./commands/UpdateDimensionCommand";
import { UpdateDomainConfigurationCommand, } from "./commands/UpdateDomainConfigurationCommand";
import { UpdateDynamicThingGroupCommand, } from "./commands/UpdateDynamicThingGroupCommand";
import { UpdateEventConfigurationsCommand, } from "./commands/UpdateEventConfigurationsCommand";
import { UpdateFleetMetricCommand, } from "./commands/UpdateFleetMetricCommand";
import { UpdateIndexingConfigurationCommand, } from "./commands/UpdateIndexingConfigurationCommand";
import { UpdateJobCommand } from "./commands/UpdateJobCommand";
import { UpdateMitigationActionCommand, } from "./commands/UpdateMitigationActionCommand";
import { UpdateProvisioningTemplateCommand, } from "./commands/UpdateProvisioningTemplateCommand";
import { UpdateRoleAliasCommand, } from "./commands/UpdateRoleAliasCommand";
import { UpdateScheduledAuditCommand, } from "./commands/UpdateScheduledAuditCommand";
import { UpdateSecurityProfileCommand, } from "./commands/UpdateSecurityProfileCommand";
import { UpdateStreamCommand, } from "./commands/UpdateStreamCommand";
import { UpdateThingCommand } from "./commands/UpdateThingCommand";
import { UpdateThingGroupCommand, } from "./commands/UpdateThingGroupCommand";
import { UpdateThingGroupsForThingCommand, } from "./commands/UpdateThingGroupsForThingCommand";
import { UpdateTopicRuleDestinationCommand, } from "./commands/UpdateTopicRuleDestinationCommand";
import { ValidateSecurityProfileBehaviorsCommand, } from "./commands/ValidateSecurityProfileBehaviorsCommand";
import { IoTClient } from "./IoTClient";
var IoT = (function (_super) {
__extends(IoT, _super);
function IoT() {
return _super !== null && _super.apply(this, arguments) || this;
}
IoT.prototype.acceptCertificateTransfer = function (args, optionsOrCb, cb) {
var command = new AcceptCertificateTransferCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.addThingToBillingGroup = function (args, optionsOrCb, cb) {
var command = new AddThingToBillingGroupCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.addThingToThingGroup = function (args, optionsOrCb, cb) {
var command = new AddThingToThingGroupCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.associateTargetsWithJob = function (args, optionsOrCb, cb) {
var command = new AssociateTargetsWithJobCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.attachPolicy = function (args, optionsOrCb, cb) {
var command = new AttachPolicyCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.attachPrincipalPolicy = function (args, optionsOrCb, cb) {
var command = new AttachPrincipalPolicyCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.attachSecurityProfile = function (args, optionsOrCb, cb) {
var command = new AttachSecurityProfileCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.attachThingPrincipal = function (args, optionsOrCb, cb) {
var command = new AttachThingPrincipalCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.cancelAuditMitigationActionsTask = function (args, optionsOrCb, cb) {
var command = new CancelAuditMitigationActionsTaskCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.cancelAuditTask = function (args, optionsOrCb, cb) {
var command = new CancelAuditTaskCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.cancelCertificateTransfer = function (args, optionsOrCb, cb) {
var command = new CancelCertificateTransferCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.cancelDetectMitigationActionsTask = function (args, optionsOrCb, cb) {
var command = new CancelDetectMitigationActionsTaskCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.cancelJob = function (args, optionsOrCb, cb) {
var command = new CancelJobCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.cancelJobExecution = function (args, optionsOrCb, cb) {
var command = new CancelJobExecutionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.clearDefaultAuthorizer = function (args, optionsOrCb, cb) {
var command = new ClearDefaultAuthorizerCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.confirmTopicRuleDestination = function (args, optionsOrCb, cb) {
var command = new ConfirmTopicRuleDestinationCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createAuditSuppression = function (args, optionsOrCb, cb) {
var command = new CreateAuditSuppressionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createAuthorizer = function (args, optionsOrCb, cb) {
var command = new CreateAuthorizerCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createBillingGroup = function (args, optionsOrCb, cb) {
var command = new CreateBillingGroupCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createCertificateFromCsr = function (args, optionsOrCb, cb) {
var command = new CreateCertificateFromCsrCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createCustomMetric = function (args, optionsOrCb, cb) {
var command = new CreateCustomMetricCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createDimension = function (args, optionsOrCb, cb) {
var command = new CreateDimensionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createDomainConfiguration = function (args, optionsOrCb, cb) {
var command = new CreateDomainConfigurationCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createDynamicThingGroup = function (args, optionsOrCb, cb) {
var command = new CreateDynamicThingGroupCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createFleetMetric = function (args, optionsOrCb, cb) {
var command = new CreateFleetMetricCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createJob = function (args, optionsOrCb, cb) {
var command = new CreateJobCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createJobTemplate = function (args, optionsOrCb, cb) {
var command = new CreateJobTemplateCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createKeysAndCertificate = function (args, optionsOrCb, cb) {
var command = new CreateKeysAndCertificateCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createMitigationAction = function (args, optionsOrCb, cb) {
var command = new CreateMitigationActionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createOTAUpdate = function (args, optionsOrCb, cb) {
var command = new CreateOTAUpdateCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createPolicy = function (args, optionsOrCb, cb) {
var command = new CreatePolicyCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createPolicyVersion = function (args, optionsOrCb, cb) {
var command = new CreatePolicyVersionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createProvisioningClaim = function (args, optionsOrCb, cb) {
var command = new CreateProvisioningClaimCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createProvisioningTemplate = function (args, optionsOrCb, cb) {
var command = new CreateProvisioningTemplateCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createProvisioningTemplateVersion = function (args, optionsOrCb, cb) {
var command = new CreateProvisioningTemplateVersionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createRoleAlias = function (args, optionsOrCb, cb) {
var command = new CreateRoleAliasCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createScheduledAudit = function (args, optionsOrCb, cb) {
var command = new CreateScheduledAuditCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createSecurityProfile = function (args, optionsOrCb, cb) {
var command = new CreateSecurityProfileCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createStream = function (args, optionsOrCb, cb) {
var command = new CreateStreamCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createThing = function (args, optionsOrCb, cb) {
var command = new CreateThingCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createThingGroup = function (args, optionsOrCb, cb) {
var command = new CreateThingGroupCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createThingType = function (args, optionsOrCb, cb) {
var command = new CreateThingTypeCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createTopicRule = function (args, optionsOrCb, cb) {
var command = new CreateTopicRuleCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.createTopicRuleDestination = function (args, optionsOrCb, cb) {
var command = new CreateTopicRuleDestinationCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteAccountAuditConfiguration = function (args, optionsOrCb, cb) {
var command = new DeleteAccountAuditConfigurationCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteAuditSuppression = function (args, optionsOrCb, cb) {
var command = new DeleteAuditSuppressionCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteAuthorizer = function (args, optionsOrCb, cb) {
var command = new DeleteAuthorizerCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteBillingGroup = function (args, optionsOrCb, cb) {
var command = new DeleteBillingGroupCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteCACertificate = function (args, optionsOrCb, cb) {
var command = new DeleteCACertificateCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteCertificate = function (args, optionsOrCb, cb) {
var command = new DeleteCertificateCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteCustomMetric = function (args, optionsOrCb, cb) {
var command = new DeleteCustomMetricCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error("Expect http options but get " + typeof optionsOrCb);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
};
IoT.prototype.deleteDimension = function (args, optionsOrCb, cb) {
var command = new DeleteDimensionCommand(args);
if (typeof op