@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.
942 lines • 157 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IoT = void 0;
const AcceptCertificateTransferCommand_1 = require("./commands/AcceptCertificateTransferCommand");
const AddThingToBillingGroupCommand_1 = require("./commands/AddThingToBillingGroupCommand");
const AddThingToThingGroupCommand_1 = require("./commands/AddThingToThingGroupCommand");
const AssociateTargetsWithJobCommand_1 = require("./commands/AssociateTargetsWithJobCommand");
const AttachPolicyCommand_1 = require("./commands/AttachPolicyCommand");
const AttachPrincipalPolicyCommand_1 = require("./commands/AttachPrincipalPolicyCommand");
const AttachSecurityProfileCommand_1 = require("./commands/AttachSecurityProfileCommand");
const AttachThingPrincipalCommand_1 = require("./commands/AttachThingPrincipalCommand");
const CancelAuditMitigationActionsTaskCommand_1 = require("./commands/CancelAuditMitigationActionsTaskCommand");
const CancelAuditTaskCommand_1 = require("./commands/CancelAuditTaskCommand");
const CancelCertificateTransferCommand_1 = require("./commands/CancelCertificateTransferCommand");
const CancelDetectMitigationActionsTaskCommand_1 = require("./commands/CancelDetectMitigationActionsTaskCommand");
const CancelJobCommand_1 = require("./commands/CancelJobCommand");
const CancelJobExecutionCommand_1 = require("./commands/CancelJobExecutionCommand");
const ClearDefaultAuthorizerCommand_1 = require("./commands/ClearDefaultAuthorizerCommand");
const ConfirmTopicRuleDestinationCommand_1 = require("./commands/ConfirmTopicRuleDestinationCommand");
const CreateAuditSuppressionCommand_1 = require("./commands/CreateAuditSuppressionCommand");
const CreateAuthorizerCommand_1 = require("./commands/CreateAuthorizerCommand");
const CreateBillingGroupCommand_1 = require("./commands/CreateBillingGroupCommand");
const CreateCertificateFromCsrCommand_1 = require("./commands/CreateCertificateFromCsrCommand");
const CreateCustomMetricCommand_1 = require("./commands/CreateCustomMetricCommand");
const CreateDimensionCommand_1 = require("./commands/CreateDimensionCommand");
const CreateDomainConfigurationCommand_1 = require("./commands/CreateDomainConfigurationCommand");
const CreateDynamicThingGroupCommand_1 = require("./commands/CreateDynamicThingGroupCommand");
const CreateFleetMetricCommand_1 = require("./commands/CreateFleetMetricCommand");
const CreateJobCommand_1 = require("./commands/CreateJobCommand");
const CreateJobTemplateCommand_1 = require("./commands/CreateJobTemplateCommand");
const CreateKeysAndCertificateCommand_1 = require("./commands/CreateKeysAndCertificateCommand");
const CreateMitigationActionCommand_1 = require("./commands/CreateMitigationActionCommand");
const CreateOTAUpdateCommand_1 = require("./commands/CreateOTAUpdateCommand");
const CreatePolicyCommand_1 = require("./commands/CreatePolicyCommand");
const CreatePolicyVersionCommand_1 = require("./commands/CreatePolicyVersionCommand");
const CreateProvisioningClaimCommand_1 = require("./commands/CreateProvisioningClaimCommand");
const CreateProvisioningTemplateCommand_1 = require("./commands/CreateProvisioningTemplateCommand");
const CreateProvisioningTemplateVersionCommand_1 = require("./commands/CreateProvisioningTemplateVersionCommand");
const CreateRoleAliasCommand_1 = require("./commands/CreateRoleAliasCommand");
const CreateScheduledAuditCommand_1 = require("./commands/CreateScheduledAuditCommand");
const CreateSecurityProfileCommand_1 = require("./commands/CreateSecurityProfileCommand");
const CreateStreamCommand_1 = require("./commands/CreateStreamCommand");
const CreateThingCommand_1 = require("./commands/CreateThingCommand");
const CreateThingGroupCommand_1 = require("./commands/CreateThingGroupCommand");
const CreateThingTypeCommand_1 = require("./commands/CreateThingTypeCommand");
const CreateTopicRuleCommand_1 = require("./commands/CreateTopicRuleCommand");
const CreateTopicRuleDestinationCommand_1 = require("./commands/CreateTopicRuleDestinationCommand");
const DeleteAccountAuditConfigurationCommand_1 = require("./commands/DeleteAccountAuditConfigurationCommand");
const DeleteAuditSuppressionCommand_1 = require("./commands/DeleteAuditSuppressionCommand");
const DeleteAuthorizerCommand_1 = require("./commands/DeleteAuthorizerCommand");
const DeleteBillingGroupCommand_1 = require("./commands/DeleteBillingGroupCommand");
const DeleteCACertificateCommand_1 = require("./commands/DeleteCACertificateCommand");
const DeleteCertificateCommand_1 = require("./commands/DeleteCertificateCommand");
const DeleteCustomMetricCommand_1 = require("./commands/DeleteCustomMetricCommand");
const DeleteDimensionCommand_1 = require("./commands/DeleteDimensionCommand");
const DeleteDomainConfigurationCommand_1 = require("./commands/DeleteDomainConfigurationCommand");
const DeleteDynamicThingGroupCommand_1 = require("./commands/DeleteDynamicThingGroupCommand");
const DeleteFleetMetricCommand_1 = require("./commands/DeleteFleetMetricCommand");
const DeleteJobCommand_1 = require("./commands/DeleteJobCommand");
const DeleteJobExecutionCommand_1 = require("./commands/DeleteJobExecutionCommand");
const DeleteJobTemplateCommand_1 = require("./commands/DeleteJobTemplateCommand");
const DeleteMitigationActionCommand_1 = require("./commands/DeleteMitigationActionCommand");
const DeleteOTAUpdateCommand_1 = require("./commands/DeleteOTAUpdateCommand");
const DeletePolicyCommand_1 = require("./commands/DeletePolicyCommand");
const DeletePolicyVersionCommand_1 = require("./commands/DeletePolicyVersionCommand");
const DeleteProvisioningTemplateCommand_1 = require("./commands/DeleteProvisioningTemplateCommand");
const DeleteProvisioningTemplateVersionCommand_1 = require("./commands/DeleteProvisioningTemplateVersionCommand");
const DeleteRegistrationCodeCommand_1 = require("./commands/DeleteRegistrationCodeCommand");
const DeleteRoleAliasCommand_1 = require("./commands/DeleteRoleAliasCommand");
const DeleteScheduledAuditCommand_1 = require("./commands/DeleteScheduledAuditCommand");
const DeleteSecurityProfileCommand_1 = require("./commands/DeleteSecurityProfileCommand");
const DeleteStreamCommand_1 = require("./commands/DeleteStreamCommand");
const DeleteThingCommand_1 = require("./commands/DeleteThingCommand");
const DeleteThingGroupCommand_1 = require("./commands/DeleteThingGroupCommand");
const DeleteThingTypeCommand_1 = require("./commands/DeleteThingTypeCommand");
const DeleteTopicRuleCommand_1 = require("./commands/DeleteTopicRuleCommand");
const DeleteTopicRuleDestinationCommand_1 = require("./commands/DeleteTopicRuleDestinationCommand");
const DeleteV2LoggingLevelCommand_1 = require("./commands/DeleteV2LoggingLevelCommand");
const DeprecateThingTypeCommand_1 = require("./commands/DeprecateThingTypeCommand");
const DescribeAccountAuditConfigurationCommand_1 = require("./commands/DescribeAccountAuditConfigurationCommand");
const DescribeAuditFindingCommand_1 = require("./commands/DescribeAuditFindingCommand");
const DescribeAuditMitigationActionsTaskCommand_1 = require("./commands/DescribeAuditMitigationActionsTaskCommand");
const DescribeAuditSuppressionCommand_1 = require("./commands/DescribeAuditSuppressionCommand");
const DescribeAuditTaskCommand_1 = require("./commands/DescribeAuditTaskCommand");
const DescribeAuthorizerCommand_1 = require("./commands/DescribeAuthorizerCommand");
const DescribeBillingGroupCommand_1 = require("./commands/DescribeBillingGroupCommand");
const DescribeCACertificateCommand_1 = require("./commands/DescribeCACertificateCommand");
const DescribeCertificateCommand_1 = require("./commands/DescribeCertificateCommand");
const DescribeCustomMetricCommand_1 = require("./commands/DescribeCustomMetricCommand");
const DescribeDefaultAuthorizerCommand_1 = require("./commands/DescribeDefaultAuthorizerCommand");
const DescribeDetectMitigationActionsTaskCommand_1 = require("./commands/DescribeDetectMitigationActionsTaskCommand");
const DescribeDimensionCommand_1 = require("./commands/DescribeDimensionCommand");
const DescribeDomainConfigurationCommand_1 = require("./commands/DescribeDomainConfigurationCommand");
const DescribeEndpointCommand_1 = require("./commands/DescribeEndpointCommand");
const DescribeEventConfigurationsCommand_1 = require("./commands/DescribeEventConfigurationsCommand");
const DescribeFleetMetricCommand_1 = require("./commands/DescribeFleetMetricCommand");
const DescribeIndexCommand_1 = require("./commands/DescribeIndexCommand");
const DescribeJobCommand_1 = require("./commands/DescribeJobCommand");
const DescribeJobExecutionCommand_1 = require("./commands/DescribeJobExecutionCommand");
const DescribeJobTemplateCommand_1 = require("./commands/DescribeJobTemplateCommand");
const DescribeManagedJobTemplateCommand_1 = require("./commands/DescribeManagedJobTemplateCommand");
const DescribeMitigationActionCommand_1 = require("./commands/DescribeMitigationActionCommand");
const DescribeProvisioningTemplateCommand_1 = require("./commands/DescribeProvisioningTemplateCommand");
const DescribeProvisioningTemplateVersionCommand_1 = require("./commands/DescribeProvisioningTemplateVersionCommand");
const DescribeRoleAliasCommand_1 = require("./commands/DescribeRoleAliasCommand");
const DescribeScheduledAuditCommand_1 = require("./commands/DescribeScheduledAuditCommand");
const DescribeSecurityProfileCommand_1 = require("./commands/DescribeSecurityProfileCommand");
const DescribeStreamCommand_1 = require("./commands/DescribeStreamCommand");
const DescribeThingCommand_1 = require("./commands/DescribeThingCommand");
const DescribeThingGroupCommand_1 = require("./commands/DescribeThingGroupCommand");
const DescribeThingRegistrationTaskCommand_1 = require("./commands/DescribeThingRegistrationTaskCommand");
const DescribeThingTypeCommand_1 = require("./commands/DescribeThingTypeCommand");
const DetachPolicyCommand_1 = require("./commands/DetachPolicyCommand");
const DetachPrincipalPolicyCommand_1 = require("./commands/DetachPrincipalPolicyCommand");
const DetachSecurityProfileCommand_1 = require("./commands/DetachSecurityProfileCommand");
const DetachThingPrincipalCommand_1 = require("./commands/DetachThingPrincipalCommand");
const DisableTopicRuleCommand_1 = require("./commands/DisableTopicRuleCommand");
const EnableTopicRuleCommand_1 = require("./commands/EnableTopicRuleCommand");
const GetBehaviorModelTrainingSummariesCommand_1 = require("./commands/GetBehaviorModelTrainingSummariesCommand");
const GetBucketsAggregationCommand_1 = require("./commands/GetBucketsAggregationCommand");
const GetCardinalityCommand_1 = require("./commands/GetCardinalityCommand");
const GetEffectivePoliciesCommand_1 = require("./commands/GetEffectivePoliciesCommand");
const GetIndexingConfigurationCommand_1 = require("./commands/GetIndexingConfigurationCommand");
const GetJobDocumentCommand_1 = require("./commands/GetJobDocumentCommand");
const GetLoggingOptionsCommand_1 = require("./commands/GetLoggingOptionsCommand");
const GetOTAUpdateCommand_1 = require("./commands/GetOTAUpdateCommand");
const GetPercentilesCommand_1 = require("./commands/GetPercentilesCommand");
const GetPolicyCommand_1 = require("./commands/GetPolicyCommand");
const GetPolicyVersionCommand_1 = require("./commands/GetPolicyVersionCommand");
const GetRegistrationCodeCommand_1 = require("./commands/GetRegistrationCodeCommand");
const GetStatisticsCommand_1 = require("./commands/GetStatisticsCommand");
const GetTopicRuleCommand_1 = require("./commands/GetTopicRuleCommand");
const GetTopicRuleDestinationCommand_1 = require("./commands/GetTopicRuleDestinationCommand");
const GetV2LoggingOptionsCommand_1 = require("./commands/GetV2LoggingOptionsCommand");
const ListActiveViolationsCommand_1 = require("./commands/ListActiveViolationsCommand");
const ListAttachedPoliciesCommand_1 = require("./commands/ListAttachedPoliciesCommand");
const ListAuditFindingsCommand_1 = require("./commands/ListAuditFindingsCommand");
const ListAuditMitigationActionsExecutionsCommand_1 = require("./commands/ListAuditMitigationActionsExecutionsCommand");
const ListAuditMitigationActionsTasksCommand_1 = require("./commands/ListAuditMitigationActionsTasksCommand");
const ListAuditSuppressionsCommand_1 = require("./commands/ListAuditSuppressionsCommand");
const ListAuditTasksCommand_1 = require("./commands/ListAuditTasksCommand");
const ListAuthorizersCommand_1 = require("./commands/ListAuthorizersCommand");
const ListBillingGroupsCommand_1 = require("./commands/ListBillingGroupsCommand");
const ListCACertificatesCommand_1 = require("./commands/ListCACertificatesCommand");
const ListCertificatesByCACommand_1 = require("./commands/ListCertificatesByCACommand");
const ListCertificatesCommand_1 = require("./commands/ListCertificatesCommand");
const ListCustomMetricsCommand_1 = require("./commands/ListCustomMetricsCommand");
const ListDetectMitigationActionsExecutionsCommand_1 = require("./commands/ListDetectMitigationActionsExecutionsCommand");
const ListDetectMitigationActionsTasksCommand_1 = require("./commands/ListDetectMitigationActionsTasksCommand");
const ListDimensionsCommand_1 = require("./commands/ListDimensionsCommand");
const ListDomainConfigurationsCommand_1 = require("./commands/ListDomainConfigurationsCommand");
const ListFleetMetricsCommand_1 = require("./commands/ListFleetMetricsCommand");
const ListIndicesCommand_1 = require("./commands/ListIndicesCommand");
const ListJobExecutionsForJobCommand_1 = require("./commands/ListJobExecutionsForJobCommand");
const ListJobExecutionsForThingCommand_1 = require("./commands/ListJobExecutionsForThingCommand");
const ListJobsCommand_1 = require("./commands/ListJobsCommand");
const ListJobTemplatesCommand_1 = require("./commands/ListJobTemplatesCommand");
const ListManagedJobTemplatesCommand_1 = require("./commands/ListManagedJobTemplatesCommand");
const ListMitigationActionsCommand_1 = require("./commands/ListMitigationActionsCommand");
const ListOTAUpdatesCommand_1 = require("./commands/ListOTAUpdatesCommand");
const ListOutgoingCertificatesCommand_1 = require("./commands/ListOutgoingCertificatesCommand");
const ListPoliciesCommand_1 = require("./commands/ListPoliciesCommand");
const ListPolicyPrincipalsCommand_1 = require("./commands/ListPolicyPrincipalsCommand");
const ListPolicyVersionsCommand_1 = require("./commands/ListPolicyVersionsCommand");
const ListPrincipalPoliciesCommand_1 = require("./commands/ListPrincipalPoliciesCommand");
const ListPrincipalThingsCommand_1 = require("./commands/ListPrincipalThingsCommand");
const ListProvisioningTemplatesCommand_1 = require("./commands/ListProvisioningTemplatesCommand");
const ListProvisioningTemplateVersionsCommand_1 = require("./commands/ListProvisioningTemplateVersionsCommand");
const ListRoleAliasesCommand_1 = require("./commands/ListRoleAliasesCommand");
const ListScheduledAuditsCommand_1 = require("./commands/ListScheduledAuditsCommand");
const ListSecurityProfilesCommand_1 = require("./commands/ListSecurityProfilesCommand");
const ListSecurityProfilesForTargetCommand_1 = require("./commands/ListSecurityProfilesForTargetCommand");
const ListStreamsCommand_1 = require("./commands/ListStreamsCommand");
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
const ListTargetsForPolicyCommand_1 = require("./commands/ListTargetsForPolicyCommand");
const ListTargetsForSecurityProfileCommand_1 = require("./commands/ListTargetsForSecurityProfileCommand");
const ListThingGroupsCommand_1 = require("./commands/ListThingGroupsCommand");
const ListThingGroupsForThingCommand_1 = require("./commands/ListThingGroupsForThingCommand");
const ListThingPrincipalsCommand_1 = require("./commands/ListThingPrincipalsCommand");
const ListThingRegistrationTaskReportsCommand_1 = require("./commands/ListThingRegistrationTaskReportsCommand");
const ListThingRegistrationTasksCommand_1 = require("./commands/ListThingRegistrationTasksCommand");
const ListThingsCommand_1 = require("./commands/ListThingsCommand");
const ListThingsInBillingGroupCommand_1 = require("./commands/ListThingsInBillingGroupCommand");
const ListThingsInThingGroupCommand_1 = require("./commands/ListThingsInThingGroupCommand");
const ListThingTypesCommand_1 = require("./commands/ListThingTypesCommand");
const ListTopicRuleDestinationsCommand_1 = require("./commands/ListTopicRuleDestinationsCommand");
const ListTopicRulesCommand_1 = require("./commands/ListTopicRulesCommand");
const ListV2LoggingLevelsCommand_1 = require("./commands/ListV2LoggingLevelsCommand");
const ListViolationEventsCommand_1 = require("./commands/ListViolationEventsCommand");
const PutVerificationStateOnViolationCommand_1 = require("./commands/PutVerificationStateOnViolationCommand");
const RegisterCACertificateCommand_1 = require("./commands/RegisterCACertificateCommand");
const RegisterCertificateCommand_1 = require("./commands/RegisterCertificateCommand");
const RegisterCertificateWithoutCACommand_1 = require("./commands/RegisterCertificateWithoutCACommand");
const RegisterThingCommand_1 = require("./commands/RegisterThingCommand");
const RejectCertificateTransferCommand_1 = require("./commands/RejectCertificateTransferCommand");
const RemoveThingFromBillingGroupCommand_1 = require("./commands/RemoveThingFromBillingGroupCommand");
const RemoveThingFromThingGroupCommand_1 = require("./commands/RemoveThingFromThingGroupCommand");
const ReplaceTopicRuleCommand_1 = require("./commands/ReplaceTopicRuleCommand");
const SearchIndexCommand_1 = require("./commands/SearchIndexCommand");
const SetDefaultAuthorizerCommand_1 = require("./commands/SetDefaultAuthorizerCommand");
const SetDefaultPolicyVersionCommand_1 = require("./commands/SetDefaultPolicyVersionCommand");
const SetLoggingOptionsCommand_1 = require("./commands/SetLoggingOptionsCommand");
const SetV2LoggingLevelCommand_1 = require("./commands/SetV2LoggingLevelCommand");
const SetV2LoggingOptionsCommand_1 = require("./commands/SetV2LoggingOptionsCommand");
const StartAuditMitigationActionsTaskCommand_1 = require("./commands/StartAuditMitigationActionsTaskCommand");
const StartDetectMitigationActionsTaskCommand_1 = require("./commands/StartDetectMitigationActionsTaskCommand");
const StartOnDemandAuditTaskCommand_1 = require("./commands/StartOnDemandAuditTaskCommand");
const StartThingRegistrationTaskCommand_1 = require("./commands/StartThingRegistrationTaskCommand");
const StopThingRegistrationTaskCommand_1 = require("./commands/StopThingRegistrationTaskCommand");
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
const TestAuthorizationCommand_1 = require("./commands/TestAuthorizationCommand");
const TestInvokeAuthorizerCommand_1 = require("./commands/TestInvokeAuthorizerCommand");
const TransferCertificateCommand_1 = require("./commands/TransferCertificateCommand");
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
const UpdateAccountAuditConfigurationCommand_1 = require("./commands/UpdateAccountAuditConfigurationCommand");
const UpdateAuditSuppressionCommand_1 = require("./commands/UpdateAuditSuppressionCommand");
const UpdateAuthorizerCommand_1 = require("./commands/UpdateAuthorizerCommand");
const UpdateBillingGroupCommand_1 = require("./commands/UpdateBillingGroupCommand");
const UpdateCACertificateCommand_1 = require("./commands/UpdateCACertificateCommand");
const UpdateCertificateCommand_1 = require("./commands/UpdateCertificateCommand");
const UpdateCustomMetricCommand_1 = require("./commands/UpdateCustomMetricCommand");
const UpdateDimensionCommand_1 = require("./commands/UpdateDimensionCommand");
const UpdateDomainConfigurationCommand_1 = require("./commands/UpdateDomainConfigurationCommand");
const UpdateDynamicThingGroupCommand_1 = require("./commands/UpdateDynamicThingGroupCommand");
const UpdateEventConfigurationsCommand_1 = require("./commands/UpdateEventConfigurationsCommand");
const UpdateFleetMetricCommand_1 = require("./commands/UpdateFleetMetricCommand");
const UpdateIndexingConfigurationCommand_1 = require("./commands/UpdateIndexingConfigurationCommand");
const UpdateJobCommand_1 = require("./commands/UpdateJobCommand");
const UpdateMitigationActionCommand_1 = require("./commands/UpdateMitigationActionCommand");
const UpdateProvisioningTemplateCommand_1 = require("./commands/UpdateProvisioningTemplateCommand");
const UpdateRoleAliasCommand_1 = require("./commands/UpdateRoleAliasCommand");
const UpdateScheduledAuditCommand_1 = require("./commands/UpdateScheduledAuditCommand");
const UpdateSecurityProfileCommand_1 = require("./commands/UpdateSecurityProfileCommand");
const UpdateStreamCommand_1 = require("./commands/UpdateStreamCommand");
const UpdateThingCommand_1 = require("./commands/UpdateThingCommand");
const UpdateThingGroupCommand_1 = require("./commands/UpdateThingGroupCommand");
const UpdateThingGroupsForThingCommand_1 = require("./commands/UpdateThingGroupsForThingCommand");
const UpdateTopicRuleDestinationCommand_1 = require("./commands/UpdateTopicRuleDestinationCommand");
const ValidateSecurityProfileBehaviorsCommand_1 = require("./commands/ValidateSecurityProfileBehaviorsCommand");
const IoTClient_1 = require("./IoTClient");
class IoT extends IoTClient_1.IoTClient {
acceptCertificateTransfer(args, optionsOrCb, cb) {
const command = new AcceptCertificateTransferCommand_1.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);
}
}
addThingToBillingGroup(args, optionsOrCb, cb) {
const command = new AddThingToBillingGroupCommand_1.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);
}
}
addThingToThingGroup(args, optionsOrCb, cb) {
const command = new AddThingToThingGroupCommand_1.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);
}
}
associateTargetsWithJob(args, optionsOrCb, cb) {
const command = new AssociateTargetsWithJobCommand_1.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);
}
}
attachPolicy(args, optionsOrCb, cb) {
const command = new AttachPolicyCommand_1.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);
}
}
attachPrincipalPolicy(args, optionsOrCb, cb) {
const command = new AttachPrincipalPolicyCommand_1.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);
}
}
attachSecurityProfile(args, optionsOrCb, cb) {
const command = new AttachSecurityProfileCommand_1.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);
}
}
attachThingPrincipal(args, optionsOrCb, cb) {
const command = new AttachThingPrincipalCommand_1.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);
}
}
cancelAuditMitigationActionsTask(args, optionsOrCb, cb) {
const command = new CancelAuditMitigationActionsTaskCommand_1.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);
}
}
cancelAuditTask(args, optionsOrCb, cb) {
const command = new CancelAuditTaskCommand_1.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);
}
}
cancelCertificateTransfer(args, optionsOrCb, cb) {
const command = new CancelCertificateTransferCommand_1.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);
}
}
cancelDetectMitigationActionsTask(args, optionsOrCb, cb) {
const command = new CancelDetectMitigationActionsTaskCommand_1.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);
}
}
cancelJob(args, optionsOrCb, cb) {
const command = new CancelJobCommand_1.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);
}
}
cancelJobExecution(args, optionsOrCb, cb) {
const command = new CancelJobExecutionCommand_1.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);
}
}
clearDefaultAuthorizer(args, optionsOrCb, cb) {
const command = new ClearDefaultAuthorizerCommand_1.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);
}
}
confirmTopicRuleDestination(args, optionsOrCb, cb) {
const command = new ConfirmTopicRuleDestinationCommand_1.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);
}
}
createAuditSuppression(args, optionsOrCb, cb) {
const command = new CreateAuditSuppressionCommand_1.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);
}
}
createAuthorizer(args, optionsOrCb, cb) {
const command = new CreateAuthorizerCommand_1.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);
}
}
createBillingGroup(args, optionsOrCb, cb) {
const command = new CreateBillingGroupCommand_1.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);
}
}
createCertificateFromCsr(args, optionsOrCb, cb) {
const command = new CreateCertificateFromCsrCommand_1.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);
}
}
createCustomMetric(args, optionsOrCb, cb) {
const command = new CreateCustomMetricCommand_1.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);
}
}
createDimension(args, optionsOrCb, cb) {
const command = new CreateDimensionCommand_1.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);
}
}
createDomainConfiguration(args, optionsOrCb, cb) {
const command = new CreateDomainConfigurationCommand_1.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);
}
}
createDynamicThingGroup(args, optionsOrCb, cb) {
const command = new CreateDynamicThingGroupCommand_1.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);
}
}
createFleetMetric(args, optionsOrCb, cb) {
const command = new CreateFleetMetricCommand_1.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);
}
}
createJob(args, optionsOrCb, cb) {
const command = new CreateJobCommand_1.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);
}
}
createJobTemplate(args, optionsOrCb, cb) {
const command = new CreateJobTemplateCommand_1.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);
}
}
createKeysAndCertificate(args, optionsOrCb, cb) {
const command = new CreateKeysAndCertificateCommand_1.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);
}
}
createMitigationAction(args, optionsOrCb, cb) {
const command = new CreateMitigationActionCommand_1.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);
}
}
createOTAUpdate(args, optionsOrCb, cb) {
const command = new CreateOTAUpdateCommand_1.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);
}
}
createPolicy(args, optionsOrCb, cb) {
const command = new CreatePolicyCommand_1.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);
}
}
createPolicyVersion(args, optionsOrCb, cb) {
const command = new CreatePolicyVersionCommand_1.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);
}
}
createProvisioningClaim(args, optionsOrCb, cb) {
const command = new CreateProvisioningClaimCommand_1.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);
}
}
createProvisioningTemplate(args, optionsOrCb, cb) {
const command = new CreateProvisioningTemplateCommand_1.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);
}
}
createProvisioningTemplateVersion(args, optionsOrCb, cb) {
const command = new CreateProvisioningTemplateVersionCommand_1.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);
}
}
createRoleAlias(args, optionsOrCb, cb) {
const command = new CreateRoleAliasCommand_1.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);
}
}
createScheduledAudit(args, optionsOrCb, cb) {
const command = new CreateScheduledAuditCommand_1.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);
}
}
createSecurityProfile(args, optionsOrCb, cb) {
const command = new CreateSecurityProfileCommand_1.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);
}
}
createStream(args, optionsOrCb, cb) {
const command = new CreateStreamCommand_1.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);
}
}
createThing(args, optionsOrCb, cb) {
const command = new CreateThingCommand_1.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);
}
}
createThingGroup(args, optionsOrCb, cb) {
const command = new CreateThingGroupCommand_1.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);
}
}
createThingType(args, optionsOrCb, cb) {
const command = new CreateThingTypeCommand_1.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);
}
}
createTopicRule(args, optionsOrCb, cb) {
const command = new CreateTopicRuleCommand_1.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);
}
}
createTopicRuleDestination(args, optionsOrCb, cb) {
const command = new CreateTopicRuleDestinationCommand_1.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);
}
}
deleteAccountAuditConfiguration(args, optionsOrCb, cb) {
const command = new DeleteAccountAuditConfigurationCommand_1.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);
}
}
deleteAuditSuppression(args, optionsOrCb, cb) {
const command = new DeleteAuditSuppressionCommand_1.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);
}
}
deleteAuthorizer(args, optionsOrCb, cb) {
const command = new DeleteAuthorizerCommand_1.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);
}
}
deleteBillingGroup(args, optionsOrCb, cb) {
const command = new DeleteBillingGroupCommand_1.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);
}
}
deleteCACertificate(args, optionsOrCb, cb) {
const command = new DeleteCACertificateCommand_1.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);
}
}
deleteCertificate(args, optionsOrCb, cb) {
const command = new DeleteCertificateCommand_1.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);
}
}
deleteCustomMetric(args, o