sst 2.0.14 → 2.0.15
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/constructs/Auth.js +13 -9
- package/constructs/EdgeFunction.d.ts +2 -2
- package/constructs/EdgeFunction.js +18 -14
- package/constructs/SsrFunction.js +9 -5
- package/constructs/SsrSite.js +14 -11
- package/constructs/StaticSite.js +13 -9
- package/package.json +1 -1
- package/support/bridge/bridge.mjs +1 -1
|
@@ -55,7 +55,7 @@ ${(0,eE.toHex)(o)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let i=[];f
|
|
|
55
55
|
`);let n=s.parse(i),o="#text",c=Object.keys(n)[0],d=n[c];return d[o]&&(d[c]=d[o],delete d[o]),(0,me.getValueFromTextNode)(d)}return{}}),"parseBody"),Ks=r(async(e,t)=>{let i=await ls(e,t);return i.Error&&(i.Error.message=i.Error.message??i.Error.Message),i},"parseErrorBody"),Ys=r(e=>Object.entries(e).map(([t,i])=>(0,me.extendedEncodeURIComponent)(t)+"="+(0,me.extendedEncodeURIComponent)(i)).join("&"),"buildFormUrlencodedString"),Qs=r((e,t)=>{if(t.Error.Code!==void 0)return t.Error.Code;if(e.statusCode==404)return"NotFound"},"loadQueryErrorCode")});var EE=h(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.AssumeRoleCommand=void 0;var v9e=b(),E9e=C(),A9e=as(),b9e=A(),J4=di(),M4=ds(),Bd=class extends b9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,E9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,v9e.getEndpointPlugin)(i,Bd.getEndpointParameterInstructions())),this.middlewareStack.use((0,A9e.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:J4.AssumeRoleRequestFilterSensitiveLog,outputFilterSensitiveLog:J4.AssumeRoleResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,M4.serializeAws_queryAssumeRoleCommand)(t,i)}deserialize(t,i){return(0,M4.deserializeAws_queryAssumeRoleCommand)(t,i)}};r(Bd,"AssumeRoleCommand");vE.AssumeRoleCommand=Bd});var rL=h(AE=>{"use strict";Object.defineProperty(AE,"__esModule",{value:!0});AE.AssumeRoleWithSAMLCommand=void 0;var C9e=b(),T9e=C(),x9e=A(),U4=di(),O4=ds(),$d=class extends x9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,T9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,C9e.getEndpointPlugin)(i,$d.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:U4.AssumeRoleWithSAMLRequestFilterSensitiveLog,outputFilterSensitiveLog:U4.AssumeRoleWithSAMLResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,O4.serializeAws_queryAssumeRoleWithSAMLCommand)(t,i)}deserialize(t,i){return(0,O4.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,i)}};r($d,"AssumeRoleWithSAMLCommand");AE.AssumeRoleWithSAMLCommand=$d});var CE=h(bE=>{"use strict";Object.defineProperty(bE,"__esModule",{value:!0});bE.AssumeRoleWithWebIdentityCommand=void 0;var P9e=b(),I9e=C(),R9e=A(),j4=di(),G4=ds(),Hd=class extends R9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,I9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,P9e.getEndpointPlugin)(i,Hd.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:j4.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:j4.AssumeRoleWithWebIdentityResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,G4.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,i)}deserialize(t,i){return(0,G4.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,i)}};r(Hd,"AssumeRoleWithWebIdentityCommand");bE.AssumeRoleWithWebIdentityCommand=Hd});var oL=h(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0});TE.DecodeAuthorizationMessageCommand=void 0;var q9e=b(),L9e=C(),z9e=as(),F9e=A(),V4=di(),B4=ds(),Wd=class extends F9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,L9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,q9e.getEndpointPlugin)(i,Wd.getEndpointParameterInstructions())),this.middlewareStack.use((0,z9e.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:V4.DecodeAuthorizationMessageRequestFilterSensitiveLog,outputFilterSensitiveLog:V4.DecodeAuthorizationMessageResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,B4.serializeAws_queryDecodeAuthorizationMessageCommand)(t,i)}deserialize(t,i){return(0,B4.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,i)}};r(Wd,"DecodeAuthorizationMessageCommand");TE.DecodeAuthorizationMessageCommand=Wd});var aL=h(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});xE.GetAccessKeyInfoCommand=void 0;var N9e=b(),D9e=C(),k9e=as(),J9e=A(),$4=di(),H4=ds(),Kd=class extends J9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,D9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,N9e.getEndpointPlugin)(i,Kd.getEndpointParameterInstructions())),this.middlewareStack.use((0,k9e.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:$4.GetAccessKeyInfoRequestFilterSensitiveLog,outputFilterSensitiveLog:$4.GetAccessKeyInfoResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,H4.serializeAws_queryGetAccessKeyInfoCommand)(t,i)}deserialize(t,i){return(0,H4.deserializeAws_queryGetAccessKeyInfoCommand)(t,i)}};r(Kd,"GetAccessKeyInfoCommand");xE.GetAccessKeyInfoCommand=Kd});var cL=h(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});PE.GetCallerIdentityCommand=void 0;var M9e=b(),U9e=C(),O9e=as(),j9e=A(),W4=di(),K4=ds(),Yd=class extends j9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,U9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,M9e.getEndpointPlugin)(i,Yd.getEndpointParameterInstructions())),this.middlewareStack.use((0,O9e.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:W4.GetCallerIdentityRequestFilterSensitiveLog,outputFilterSensitiveLog:W4.GetCallerIdentityResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,K4.serializeAws_queryGetCallerIdentityCommand)(t,i)}deserialize(t,i){return(0,K4.deserializeAws_queryGetCallerIdentityCommand)(t,i)}};r(Yd,"GetCallerIdentityCommand");PE.GetCallerIdentityCommand=Yd});var lL=h(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.GetFederationTokenCommand=void 0;var G9e=b(),V9e=C(),B9e=as(),$9e=A(),Y4=di(),Q4=ds(),Qd=class extends $9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,V9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,G9e.getEndpointPlugin)(i,Qd.getEndpointParameterInstructions())),this.middlewareStack.use((0,B9e.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:Y4.GetFederationTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:Y4.GetFederationTokenResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,Q4.serializeAws_queryGetFederationTokenCommand)(t,i)}deserialize(t,i){return(0,Q4.deserializeAws_queryGetFederationTokenCommand)(t,i)}};r(Qd,"GetFederationTokenCommand");IE.GetFederationTokenCommand=Qd});var dL=h(RE=>{"use strict";Object.defineProperty(RE,"__esModule",{value:!0});RE.GetSessionTokenCommand=void 0;var H9e=b(),W9e=C(),K9e=as(),Y9e=A(),X4=di(),Z4=ds(),Xd=class extends Y9e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,W9e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,H9e.getEndpointPlugin)(i,Xd.getEndpointParameterInstructions())),this.middlewareStack.use((0,K9e.getAwsAuthPlugin)(i));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:X4.GetSessionTokenRequestFilterSensitiveLog,outputFilterSensitiveLog:X4.GetSessionTokenResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,Z4.serializeAws_queryGetSessionTokenCommand)(t,i)}deserialize(t,i){return(0,Z4.deserializeAws_queryGetSessionTokenCommand)(t,i)}};r(Xd,"GetSessionTokenCommand");RE.GetSessionTokenCommand=Xd});var e8=h(qE=>{"use strict";Object.defineProperty(qE,"__esModule",{value:!0});qE.resolveStsAuthConfig=void 0;var Q9e=as(),X9e=r((e,{stsClientCtor:t})=>(0,Q9e.resolveAwsAuthConfig)({...e,stsClientCtor:t}),"resolveStsAuthConfig");qE.resolveStsAuthConfig=X9e});var t8=h(LE=>{"use strict";Object.defineProperty(LE,"__esModule",{value:!0});LE.resolveClientEndpointParameters=void 0;var Z9e=r(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters");LE.resolveClientEndpointParameters=Z9e});var i8=h((LLt,eQe)=>{eQe.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.208.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo",test:"yarn test:unit","test:unit":"jest"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.208.0","@aws-sdk/credential-provider-node":"3.208.0","@aws-sdk/fetch-http-handler":"3.208.0","@aws-sdk/hash-node":"3.208.0","@aws-sdk/invalid-dependency":"3.208.0","@aws-sdk/middleware-content-length":"3.208.0","@aws-sdk/middleware-endpoint":"3.208.0","@aws-sdk/middleware-host-header":"3.208.0","@aws-sdk/middleware-logger":"3.208.0","@aws-sdk/middleware-recursion-detection":"3.208.0","@aws-sdk/middleware-retry":"3.208.0","@aws-sdk/middleware-sdk-sts":"3.208.0","@aws-sdk/middleware-serde":"3.208.0","@aws-sdk/middleware-signing":"3.208.0","@aws-sdk/middleware-stack":"3.208.0","@aws-sdk/middleware-user-agent":"3.208.0","@aws-sdk/node-config-provider":"3.208.0","@aws-sdk/node-http-handler":"3.208.0","@aws-sdk/protocol-http":"3.208.0","@aws-sdk/smithy-client":"3.208.0","@aws-sdk/types":"3.208.0","@aws-sdk/url-parser":"3.208.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-base64-browser":"3.208.0","@aws-sdk/util-base64-node":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.208.0","@aws-sdk/util-defaults-mode-node":"3.208.0","@aws-sdk/util-endpoints":"3.208.0","@aws-sdk/util-user-agent-browser":"3.208.0","@aws-sdk/util-user-agent-node":"3.208.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0","fast-xml-parser":"4.0.11",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},overrides:{typedoc:{typescript:"~4.6.2"}},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var uL=h(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.decorateDefaultCredentialProvider=Li.getDefaultRoleAssumerWithWebIdentity=Li.getDefaultRoleAssumer=void 0;var tQe=EE(),iQe=CE(),s8="us-east-1",n8=r(e=>typeof e!="function"?e===void 0?s8:e:async()=>{try{return await e()}catch{return s8}},"decorateDefaultRegion"),sQe=r((e,t)=>{let i,s;return async(n,o)=>{if(s=n,!i){let{logger:d,region:l,requestHandler:u}=e;i=new t({logger:d,credentialDefaultProvider:()=>async()=>s,region:n8(l||e.region),...u?{requestHandler:u}:{}})}let{Credentials:c}=await i.send(new tQe.AssumeRoleCommand(o));if(!c||!c.AccessKeyId||!c.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);return{accessKeyId:c.AccessKeyId,secretAccessKey:c.SecretAccessKey,sessionToken:c.SessionToken,expiration:c.Expiration}}},"getDefaultRoleAssumer");Li.getDefaultRoleAssumer=sQe;var nQe=r((e,t)=>{let i;return async s=>{if(!i){let{logger:o,region:c,requestHandler:d}=e;i=new t({logger:o,region:n8(c||e.region),...d?{requestHandler:d}:{}})}let{Credentials:n}=await i.send(new iQe.AssumeRoleWithWebIdentityCommand(s));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${s.RoleArn}`);return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration}}},"getDefaultRoleAssumerWithWebIdentity");Li.getDefaultRoleAssumerWithWebIdentity=nQe;var rQe=r(e=>t=>e({roleAssumer:(0,Li.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,Li.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t}),"decorateDefaultCredentialProvider");Li.decorateDefaultCredentialProvider=rQe});var r8=h(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.fromEnv=St.ENV_EXPIRATION=St.ENV_SESSION=St.ENV_SECRET=St.ENV_KEY=void 0;var oQe=We();St.ENV_KEY="AWS_ACCESS_KEY_ID";St.ENV_SECRET="AWS_SECRET_ACCESS_KEY";St.ENV_SESSION="AWS_SESSION_TOKEN";St.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var aQe=r(()=>async()=>{let e=process.env[St.ENV_KEY],t=process.env[St.ENV_SECRET],i=process.env[St.ENV_SESSION],s=process.env[St.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...i&&{sessionToken:i},...s&&{expiration:new Date(s)}};throw new oQe.CredentialsProviderError("Unable to find environment variable credentials.")},"fromEnv");St.fromEnv=aQe});var pL=h(mL=>{"use strict";Object.defineProperty(mL,"__esModule",{value:!0});var cQe=(de(),re(le));cQe.__exportStar(r8(),mL)});var Vm=h(zE=>{"use strict";Object.defineProperty(zE,"__esModule",{value:!0});zE.getHomeDir=void 0;var lQe=$("os"),dQe=$("path"),uQe=r(()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:i,HOMEDRIVE:s=`C:${dQe.sep}`}=process.env;return e||t||(i?`${s}${i}`:(0,lQe.homedir)())},"getHomeDir");zE.getHomeDir=uQe});var o8=h(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.getProfileName=zi.DEFAULT_PROFILE=zi.ENV_PROFILE=void 0;zi.ENV_PROFILE="AWS_PROFILE";zi.DEFAULT_PROFILE="default";var mQe=r(e=>e.profile||process.env[zi.ENV_PROFILE]||zi.DEFAULT_PROFILE,"getProfileName");zi.getProfileName=mQe});var hL=h(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0});FE.getSSOTokenFilepath=void 0;var pQe=$("crypto"),hQe=$("path"),fQe=Vm(),gQe=r(e=>{let i=(0,pQe.createHash)("sha1").update(e).digest("hex");return(0,hQe.join)((0,fQe.getHomeDir)(),".aws","sso","cache",`${i}.json`)},"getSSOTokenFilepath");FE.getSSOTokenFilepath=gQe});var a8=h(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.getSSOTokenFromFile=void 0;var wQe=$("fs"),_Qe=hL(),{readFile:yQe}=wQe.promises,SQe=r(async e=>{let t=(0,_Qe.getSSOTokenFilepath)(e),i=await yQe(t,"utf8");return JSON.parse(i)},"getSSOTokenFromFile");NE.getSSOTokenFromFile=SQe});var fL=h(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.getConfigFilepath=Un.ENV_CONFIG_PATH=void 0;var vQe=$("path"),EQe=Vm();Un.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var AQe=r(()=>process.env[Un.ENV_CONFIG_PATH]||(0,vQe.join)((0,EQe.getHomeDir)(),".aws","config"),"getConfigFilepath");Un.getConfigFilepath=AQe});var c8=h(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.getCredentialsFilepath=On.ENV_CREDENTIALS_PATH=void 0;var bQe=$("path"),CQe=Vm();On.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";var TQe=r(()=>process.env[On.ENV_CREDENTIALS_PATH]||(0,bQe.join)((0,CQe.getHomeDir)(),".aws","credentials"),"getCredentialsFilepath");On.getCredentialsFilepath=TQe});var d8=h(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.getProfileData=void 0;var l8=/^profile\s(["'])?([^\1]+)\1$/,xQe=r(e=>Object.entries(e).filter(([t])=>l8.test(t)).reduce((t,[i,s])=>({...t,[l8.exec(i)[2]]:s}),{...e.default&&{default:e.default}}),"getProfileData");DE.getProfileData=xQe});var gL=h(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0});kE.parseIni=void 0;var PQe=["__proto__","profile __proto__"],IQe=r(e=>{let t={},i;for(let s of e.split(/\r?\n/))if(s=s.split(/(^|\s)[;#]/)[0].trim(),s[0]==="["&&s[s.length-1]==="]"){if(i=s.substring(1,s.length-1),PQe.includes(i))throw new Error(`Found invalid profile name "${i}"`)}else if(i){let o=s.indexOf("="),c=0,d=s.length-1;if(o!==-1&&o!==c&&o!==d){let[u,m]=[s.substring(0,o).trim(),s.substring(o+1).trim()];t[i]=t[i]||{},t[i][u]=m}}return t},"parseIni");kE.parseIni=IQe});var _L=h(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.slurpFile=void 0;var RQe=$("fs"),{readFile:qQe}=RQe.promises,wL={},LQe=r(e=>(wL[e]||(wL[e]=qQe(e,"utf8")),wL[e]),"slurpFile");JE.slurpFile=LQe});var yL=h(ME=>{"use strict";Object.defineProperty(ME,"__esModule",{value:!0});ME.loadSharedConfigFiles=void 0;var zQe=fL(),FQe=c8(),NQe=d8(),u8=gL(),m8=_L(),p8=r(()=>({}),"swallowError"),DQe=r(async(e={})=>{let{filepath:t=(0,FQe.getCredentialsFilepath)(),configFilepath:i=(0,zQe.getConfigFilepath)()}=e,s=await Promise.all([(0,m8.slurpFile)(i).then(u8.parseIni).then(NQe.getProfileData).catch(p8),(0,m8.slurpFile)(t).then(u8.parseIni).catch(p8)]);return{configFile:s[0],credentialsFile:s[1]}},"loadSharedConfigFiles");ME.loadSharedConfigFiles=DQe});var f8=h(UE=>{"use strict";Object.defineProperty(UE,"__esModule",{value:!0});UE.getSsoSessionData=void 0;var h8=/^sso-session\s(["'])?([^\1]+)\1$/,kQe=r(e=>Object.entries(e).filter(([t])=>h8.test(t)).reduce((t,[i,s])=>({...t,[h8.exec(i)[2]]:s}),{}),"getSsoSessionData");UE.getSsoSessionData=kQe});var g8=h(OE=>{"use strict";Object.defineProperty(OE,"__esModule",{value:!0});OE.loadSsoSessionData=void 0;var JQe=fL(),MQe=f8(),UQe=gL(),OQe=_L(),jQe=r(()=>({}),"swallowError"),GQe=r(async(e={})=>{var t;return(0,OQe.slurpFile)((t=e.configFilepath)!==null&&t!==void 0?t:(0,JQe.getConfigFilepath)()).then(UQe.parseIni).then(MQe.getSsoSessionData).catch(jQe)},"loadSsoSessionData");OE.loadSsoSessionData=GQe});var w8=h(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.parseKnownFiles=void 0;var VQe=yL(),BQe=r(async e=>{let t=await(0,VQe.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}},"parseKnownFiles");jE.parseKnownFiles=BQe});var y8=h(_8=>{"use strict";Object.defineProperty(_8,"__esModule",{value:!0})});var Zs=h(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var Xs=(de(),re(le));Xs.__exportStar(Vm(),Fi);Xs.__exportStar(o8(),Fi);Xs.__exportStar(hL(),Fi);Xs.__exportStar(a8(),Fi);Xs.__exportStar(yL(),Fi);Xs.__exportStar(g8(),Fi);Xs.__exportStar(w8(),Fi);Xs.__exportStar(y8(),Fi)});var VE=h(GE=>{"use strict";Object.defineProperty(GE,"__esModule",{value:!0});GE.httpRequest=void 0;var SL=We(),$Qe=$("buffer"),HQe=$("http");function WQe(e){return new Promise((t,i)=>{var s;let n=(0,HQe.request)({method:"GET",...e,hostname:(s=e.hostname)===null||s===void 0?void 0:s.replace(/^\[(.+)\]$/,"$1")});n.on("error",o=>{i(Object.assign(new SL.ProviderError("Unable to connect to instance metadata service"),o)),n.destroy()}),n.on("timeout",()=>{i(new SL.ProviderError("TimeoutError from instance metadata service")),n.destroy()}),n.on("response",o=>{let{statusCode:c=400}=o;(c<200||300<=c)&&(i(Object.assign(new SL.ProviderError("Error response received from instance metadata service"),{statusCode:c})),n.destroy());let d=[];o.on("data",l=>{d.push(l)}),o.on("end",()=>{t($Qe.Buffer.concat(d)),n.destroy()})}),n.end()})}r(WQe,"httpRequest");GE.httpRequest=WQe});var vL=h(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.fromImdsCredentials=Zd.isImdsCredentials=void 0;var KQe=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials");Zd.isImdsCredentials=KQe;var YQe=r(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)}),"fromImdsCredentials");Zd.fromImdsCredentials=YQe});var BE=h(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.providerConfigFromInit=Ni.DEFAULT_MAX_RETRIES=Ni.DEFAULT_TIMEOUT=void 0;Ni.DEFAULT_TIMEOUT=1e3;Ni.DEFAULT_MAX_RETRIES=0;var QQe=r(({maxRetries:e=Ni.DEFAULT_MAX_RETRIES,timeout:t=Ni.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t}),"providerConfigFromInit");Ni.providerConfigFromInit=QQe});var EL=h($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.retry=void 0;var XQe=r((e,t)=>{let i=e();for(let s=0;s<t;s++)i=i.catch(e);return i},"retry");$E.retry=XQe});var v8=h(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.fromContainerMetadata=ot.ENV_CMDS_AUTH_TOKEN=ot.ENV_CMDS_RELATIVE_URI=ot.ENV_CMDS_FULL_URI=void 0;var HE=We(),ZQe=$("url"),eXe=VE(),S8=vL(),tXe=BE(),iXe=EL();ot.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";ot.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";ot.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var sXe=r((e={})=>{let{timeout:t,maxRetries:i}=(0,tXe.providerConfigFromInit)(e);return()=>(0,iXe.retry)(async()=>{let s=await cXe(),n=JSON.parse(await nXe(t,s));if(!(0,S8.isImdsCredentials)(n))throw new HE.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,S8.fromImdsCredentials)(n)},i)},"fromContainerMetadata");ot.fromContainerMetadata=sXe;var nXe=r(async(e,t)=>(process.env[ot.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[ot.ENV_CMDS_AUTH_TOKEN]}),(await(0,eXe.httpRequest)({...t,timeout:e})).toString()),"requestFromEcsImds"),rXe="169.254.170.2",oXe={localhost:!0,"127.0.0.1":!0},aXe={"http:":!0,"https:":!0},cXe=r(async()=>{if(process.env[ot.ENV_CMDS_RELATIVE_URI])return{hostname:rXe,path:process.env[ot.ENV_CMDS_RELATIVE_URI]};if(process.env[ot.ENV_CMDS_FULL_URI]){let e=(0,ZQe.parse)(process.env[ot.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in oXe))throw new HE.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in aXe))throw new HE.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new HE.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ot.ENV_CMDS_RELATIVE_URI} or ${ot.ENV_CMDS_FULL_URI} environment variable is set`,!1)},"getCmdsUri")});var E8=h(WE=>{"use strict";Object.defineProperty(WE,"__esModule",{value:!0});WE.fromEnv=void 0;var lXe=We(),dXe=r(e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new lXe.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}},"fromEnv");WE.fromEnv=dXe});var b8=h(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.fromSharedConfigFiles=void 0;var uXe=We(),A8=Zs(),mXe=r((e,{preferredFile:t="config",...i}={})=>async()=>{let s=(0,A8.getProfileName)(i),{configFile:n,credentialsFile:o}=await(0,A8.loadSharedConfigFiles)(i),c=o[s]||{},d=n[s]||{},l=t==="config"?{...c,...d}:{...d,...c};try{let u=e(l);if(u===void 0)throw new Error;return u}catch(u){throw new uXe.CredentialsProviderError(u.message||`Cannot load config for profile ${s} in SDK configuration files with getter: ${e}`)}},"fromSharedConfigFiles");KE.fromSharedConfigFiles=mXe});var C8=h(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.fromStatic=void 0;var pXe=We(),hXe=r(e=>typeof e=="function","isFunction"),fXe=r(e=>hXe(e)?async()=>await e():(0,pXe.fromStatic)(e),"fromStatic");YE.fromStatic=fXe});var x8=h(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});QE.loadConfig=void 0;var T8=We(),gXe=E8(),wXe=b8(),_Xe=C8(),yXe=r(({environmentVariableSelector:e,configFileSelector:t,default:i},s={})=>(0,T8.memoize)((0,T8.chain)((0,gXe.fromEnv)(e),(0,wXe.fromSharedConfigFiles)(t,s),(0,_Xe.fromStatic)(i))),"loadConfig");QE.loadConfig=yXe});var jn=h(AL=>{"use strict";Object.defineProperty(AL,"__esModule",{value:!0});var SXe=(de(),re(le));SXe.__exportStar(x8(),AL)});var P8=h(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.Endpoint=void 0;var vXe;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(vXe=Bm.Endpoint||(Bm.Endpoint={}))});var I8=h(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});Di.ENDPOINT_CONFIG_OPTIONS=Di.CONFIG_ENDPOINT_NAME=Di.ENV_ENDPOINT_NAME=void 0;Di.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Di.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Di.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Di.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Di.CONFIG_ENDPOINT_NAME],default:void 0}});var bL=h($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.EndpointMode=void 0;var EXe;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(EXe=$m.EndpointMode||($m.EndpointMode={}))});var R8=h(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.ENDPOINT_MODE_CONFIG_OPTIONS=ki.CONFIG_ENDPOINT_MODE_NAME=ki.ENV_ENDPOINT_MODE_NAME=void 0;var AXe=bL();ki.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";ki.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";ki.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ki.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[ki.CONFIG_ENDPOINT_MODE_NAME],default:AXe.EndpointMode.IPv4}});var TL=h(XE=>{"use strict";Object.defineProperty(XE,"__esModule",{value:!0});XE.getInstanceMetadataEndpoint=void 0;var L8=jn(),bXe=mr(),q8=P8(),CXe=I8(),CL=bL(),TXe=R8(),xXe=r(async()=>(0,bXe.parseUrl)(await PXe()||await IXe()),"getInstanceMetadataEndpoint");XE.getInstanceMetadataEndpoint=xXe;var PXe=r(async()=>(0,L8.loadConfig)(CXe.ENDPOINT_CONFIG_OPTIONS)(),"getFromEndpointConfig"),IXe=r(async()=>{let e=await(0,L8.loadConfig)(TXe.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case CL.EndpointMode.IPv4:return q8.Endpoint.IPv4;case CL.EndpointMode.IPv6:return q8.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(CL.EndpointMode)}`)}},"getFromEndpointModeConfig")});var z8=h(ZE=>{"use strict";Object.defineProperty(ZE,"__esModule",{value:!0});ZE.getExtendedInstanceMetadataCredentials=void 0;var RXe=5*60,qXe=5*60,LXe="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",zXe=r((e,t)=>{var i;let s=RXe+Math.floor(Math.random()*qXe),n=new Date(Date.now()+s*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+LXe);let o=(i=e.originalExpiration)!==null&&i!==void 0?i:e.expiration;return{...e,...o?{originalExpiration:o}:{},expiration:n}},"getExtendedInstanceMetadataCredentials");ZE.getExtendedInstanceMetadataCredentials=zXe});var N8=h(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});eA.staticStabilityProvider=void 0;var F8=z8(),FXe=r((e,t={})=>{let i=t?.logger||console,s;return async()=>{let n;try{n=await e(),n.expiration&&n.expiration.getTime()<Date.now()&&(n=(0,F8.getExtendedInstanceMetadataCredentials)(n,i))}catch(o){if(s)i.warn("Credential renew failed: ",o),n=(0,F8.getExtendedInstanceMetadataCredentials)(s,i);else throw o}return s=n,n}},"staticStabilityProvider");eA.staticStabilityProvider=FXe});var M8=h(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0});tA.fromInstanceMetadata=void 0;var NXe=We(),xL=VE(),D8=vL(),DXe=BE(),k8=EL(),kXe=TL(),JXe=N8(),J8="/latest/meta-data/iam/security-credentials/",MXe="/latest/api/token",UXe=r((e={})=>(0,JXe.staticStabilityProvider)(OXe(e),{logger:e.logger}),"fromInstanceMetadata");tA.fromInstanceMetadata=UXe;var OXe=r(e=>{let t=!1,{timeout:i,maxRetries:s}=(0,DXe.providerConfigFromInit)(e),n=r(async(o,c)=>{let d=(await(0,k8.retry)(async()=>{let l;try{l=await GXe(c)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},o)).trim();return(0,k8.retry)(async()=>{let l;try{l=await VXe(d,c)}catch(u){throw u.statusCode===401&&(t=!1),u}return l},o)},"getCredentials");return async()=>{let o=await(0,kXe.getInstanceMetadataEndpoint)();if(t)return n(s,{...o,timeout:i});{let c;try{c=(await jXe({...o,timeout:i})).toString()}catch(d){if(d?.statusCode===400)throw Object.assign(d,{message:"EC2 Metadata token request returned error"});return(d.message==="TimeoutError"||[403,404,405].includes(d.statusCode))&&(t=!0),n(s,{...o,timeout:i})}return n(s,{...o,headers:{"x-aws-ec2-metadata-token":c},timeout:i})}}},"getInstanceImdsProvider"),jXe=r(async e=>(0,xL.httpRequest)({...e,path:MXe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),GXe=r(async e=>(await(0,xL.httpRequest)({...e,path:J8})).toString(),"getProfile"),VXe=r(async(e,t)=>{let i=JSON.parse((await(0,xL.httpRequest)({...t,path:J8+e})).toString());if(!(0,D8.isImdsCredentials)(i))throw new NXe.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,D8.fromImdsCredentials)(i)},"getCredentialsFromProfile")});var O8=h(U8=>{"use strict";Object.defineProperty(U8,"__esModule",{value:!0})});var sA=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.getInstanceMetadataEndpoint=Ji.httpRequest=void 0;var iA=(de(),re(le));iA.__exportStar(v8(),Ji);iA.__exportStar(M8(),Ji);iA.__exportStar(BE(),Ji);iA.__exportStar(O8(),Ji);var BXe=VE();Object.defineProperty(Ji,"httpRequest",{enumerable:!0,get:function(){return BXe.httpRequest}});var $Xe=TL();Object.defineProperty(Ji,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return $Xe.getInstanceMetadataEndpoint}})});var G8=h(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.resolveCredentialSource=void 0;var HXe=pL(),j8=sA(),WXe=We(),KXe=r((e,t)=>{let i={EcsContainer:j8.fromContainerMetadata,Ec2InstanceMetadata:j8.fromInstanceMetadata,Environment:HXe.fromEnv};if(e in i)return i[e]();throw new WXe.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},"resolveCredentialSource");nA.resolveCredentialSource=KXe});var V8=h(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.resolveAssumeRoleCredentials=eu.isAssumeRoleProfile=void 0;var PL=We(),YXe=Zs(),QXe=G8(),XXe=IL(),ZXe=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(e7e(e)||t7e(e)),"isAssumeRoleProfile");eu.isAssumeRoleProfile=ZXe;var e7e=r(e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u","isAssumeRoleWithSourceProfile"),t7e=r(e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u","isAssumeRoleWithProviderProfile"),i7e=r(async(e,t,i,s={})=>{let n=t[e];if(!i.roleAssumer)throw new PL.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:o}=n;if(o&&o in s)throw new PL.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,YXe.getProfileName)(i)}. Profiles visited: `+Object.keys(s).join(", "),!1);let c=o?(0,XXe.resolveProfileData)(o,t,i,{...s,[o]:!0}):(0,QXe.resolveCredentialSource)(n.credential_source,e)(),d={RoleArn:n.role_arn,RoleSessionName:n.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:n.external_id},{mfa_serial:l}=n;if(l){if(!i.mfaCodeProvider)throw new PL.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);d.SerialNumber=l,d.TokenCode=await i.mfaCodeProvider(l)}let u=await c;return i.roleAssumer(u,d)},"resolveAssumeRoleCredentials");eu.resolveAssumeRoleCredentials=i7e});var RL=h(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});rA.isSsoProfile=void 0;var s7e=r(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile");rA.isSsoProfile=s7e});var aA=h(oA=>{"use strict";Object.defineProperty(oA,"__esModule",{value:!0});oA.SSOServiceException=void 0;var n7e=A(),tu=class extends n7e.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,tu.prototype)}};r(tu,"SSOServiceException");oA.SSOServiceException=tu});var Gn=h(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.LogoutRequestFilterSensitiveLog=Pe.ListAccountsResponseFilterSensitiveLog=Pe.ListAccountsRequestFilterSensitiveLog=Pe.ListAccountRolesResponseFilterSensitiveLog=Pe.RoleInfoFilterSensitiveLog=Pe.ListAccountRolesRequestFilterSensitiveLog=Pe.GetRoleCredentialsResponseFilterSensitiveLog=Pe.RoleCredentialsFilterSensitiveLog=Pe.GetRoleCredentialsRequestFilterSensitiveLog=Pe.AccountInfoFilterSensitiveLog=Pe.UnauthorizedException=Pe.TooManyRequestsException=Pe.ResourceNotFoundException=Pe.InvalidRequestException=void 0;var ou=A(),cA=aA(),iu=class extends cA.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,iu.prototype)}};r(iu,"InvalidRequestException");Pe.InvalidRequestException=iu;var su=class extends cA.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,su.prototype)}};r(su,"ResourceNotFoundException");Pe.ResourceNotFoundException=su;var nu=class extends cA.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,nu.prototype)}};r(nu,"TooManyRequestsException");Pe.TooManyRequestsException=nu;var ru=class extends cA.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,ru.prototype)}};r(ru,"UnauthorizedException");Pe.UnauthorizedException=ru;var r7e=r(e=>({...e}),"AccountInfoFilterSensitiveLog");Pe.AccountInfoFilterSensitiveLog=r7e;var o7e=r(e=>({...e,...e.accessToken&&{accessToken:ou.SENSITIVE_STRING}}),"GetRoleCredentialsRequestFilterSensitiveLog");Pe.GetRoleCredentialsRequestFilterSensitiveLog=o7e;var a7e=r(e=>({...e,...e.secretAccessKey&&{secretAccessKey:ou.SENSITIVE_STRING},...e.sessionToken&&{sessionToken:ou.SENSITIVE_STRING}}),"RoleCredentialsFilterSensitiveLog");Pe.RoleCredentialsFilterSensitiveLog=a7e;var c7e=r(e=>({...e,...e.roleCredentials&&{roleCredentials:(0,Pe.RoleCredentialsFilterSensitiveLog)(e.roleCredentials)}}),"GetRoleCredentialsResponseFilterSensitiveLog");Pe.GetRoleCredentialsResponseFilterSensitiveLog=c7e;var l7e=r(e=>({...e,...e.accessToken&&{accessToken:ou.SENSITIVE_STRING}}),"ListAccountRolesRequestFilterSensitiveLog");Pe.ListAccountRolesRequestFilterSensitiveLog=l7e;var d7e=r(e=>({...e}),"RoleInfoFilterSensitiveLog");Pe.RoleInfoFilterSensitiveLog=d7e;var u7e=r(e=>({...e}),"ListAccountRolesResponseFilterSensitiveLog");Pe.ListAccountRolesResponseFilterSensitiveLog=u7e;var m7e=r(e=>({...e,...e.accessToken&&{accessToken:ou.SENSITIVE_STRING}}),"ListAccountsRequestFilterSensitiveLog");Pe.ListAccountsRequestFilterSensitiveLog=m7e;var p7e=r(e=>({...e}),"ListAccountsResponseFilterSensitiveLog");Pe.ListAccountsResponseFilterSensitiveLog=p7e;var h7e=r(e=>({...e,...e.accessToken&&{accessToken:ou.SENSITIVE_STRING}}),"LogoutRequestFilterSensitiveLog");Pe.LogoutRequestFilterSensitiveLog=h7e});var Hm=h(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.deserializeAws_restJson1LogoutCommand=at.deserializeAws_restJson1ListAccountsCommand=at.deserializeAws_restJson1ListAccountRolesCommand=at.deserializeAws_restJson1GetRoleCredentialsCommand=at.serializeAws_restJson1LogoutCommand=at.serializeAws_restJson1ListAccountsCommand=at.serializeAws_restJson1ListAccountRolesCommand=at.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var lA=kt(),Re=A(),dA=Gn(),uA=aA(),f7e=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=bt({},fA,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/federation/credentials`,l=bt({role_name:[,e.roleName],account_id:[,e.accountId]}),u;return new lA.HttpRequest({protocol:s,hostname:i,port:n,method:"GET",headers:c,path:d,query:l,body:u})},"serializeAws_restJson1GetRoleCredentialsCommand");at.serializeAws_restJson1GetRoleCredentialsCommand=f7e;var g7e=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=bt({},fA,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/assignment/roles`,l=bt({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()],account_id:[,e.accountId]}),u;return new lA.HttpRequest({protocol:s,hostname:i,port:n,method:"GET",headers:c,path:d,query:l,body:u})},"serializeAws_restJson1ListAccountRolesCommand");at.serializeAws_restJson1ListAccountRolesCommand=g7e;var w7e=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=bt({},fA,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/assignment/accounts`,l=bt({next_token:[,e.nextToken],max_result:[()=>e.maxResults!==void 0,()=>e.maxResults.toString()]}),u;return new lA.HttpRequest({protocol:s,hostname:i,port:n,method:"GET",headers:c,path:d,query:l,body:u})},"serializeAws_restJson1ListAccountsCommand");at.serializeAws_restJson1ListAccountsCommand=w7e;var _7e=r(async(e,t)=>{let{hostname:i,protocol:s="https",port:n,path:o}=await t.endpoint(),c=bt({},fA,{"x-amz-sso_bearer_token":e.accessToken}),d=`${o?.endsWith("/")?o.slice(0,-1):o||""}/logout`,l;return new lA.HttpRequest({protocol:s,hostname:i,port:n,method:"POST",headers:c,path:d,body:l})},"serializeAws_restJson1LogoutCommand");at.serializeAws_restJson1LogoutCommand=_7e;var y7e=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return S7e(e,t);let i=bt({$metadata:en(e)}),s=(0,Re.expectNonNull)((0,Re.expectObject)(await gA(e.body,t)),"body");return s.roleCredentials!=null&&(i.roleCredentials=I7e(s.roleCredentials,t)),i},"deserializeAws_restJson1GetRoleCredentialsCommand");at.deserializeAws_restJson1GetRoleCredentialsCommand=y7e;var S7e=r(async(e,t)=>{let i={...e,body:await wA(e.body,t)},s=_A(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await mA(i,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await qL(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await pA(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await hA(i,t);default:let n=i.body;(0,Re.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:uA.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1GetRoleCredentialsCommandError"),v7e=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return E7e(e,t);let i=bt({$metadata:en(e)}),s=(0,Re.expectNonNull)((0,Re.expectObject)(await gA(e.body,t)),"body");return s.nextToken!=null&&(i.nextToken=(0,Re.expectString)(s.nextToken)),s.roleList!=null&&(i.roleList=q7e(s.roleList,t)),i},"deserializeAws_restJson1ListAccountRolesCommand");at.deserializeAws_restJson1ListAccountRolesCommand=v7e;var E7e=r(async(e,t)=>{let i={...e,body:await wA(e.body,t)},s=_A(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await mA(i,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await qL(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await pA(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await hA(i,t);default:let n=i.body;(0,Re.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:uA.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1ListAccountRolesCommandError"),A7e=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return b7e(e,t);let i=bt({$metadata:en(e)}),s=(0,Re.expectNonNull)((0,Re.expectObject)(await gA(e.body,t)),"body");return s.accountList!=null&&(i.accountList=P7e(s.accountList,t)),s.nextToken!=null&&(i.nextToken=(0,Re.expectString)(s.nextToken)),i},"deserializeAws_restJson1ListAccountsCommand");at.deserializeAws_restJson1ListAccountsCommand=A7e;var b7e=r(async(e,t)=>{let i={...e,body:await wA(e.body,t)},s=_A(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await mA(i,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await qL(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await pA(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await hA(i,t);default:let n=i.body;(0,Re.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:uA.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1ListAccountsCommandError"),C7e=r(async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return T7e(e,t);let i=bt({$metadata:en(e)});return await B8(e.body,t),i},"deserializeAws_restJson1LogoutCommand");at.deserializeAws_restJson1LogoutCommand=C7e;var T7e=r(async(e,t)=>{let i={...e,body:await wA(e.body,t)},s=_A(e,i.body);switch(s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await mA(i,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await pA(i,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await hA(i,t);default:let n=i.body;(0,Re.throwDefaultError)({output:e,parsedBody:n,exceptionCtor:uA.SSOServiceException,errorCode:s})}},"deserializeAws_restJson1LogoutCommandError"),bt=Re.map,mA=r(async(e,t)=>{let i=bt({}),s=e.body;s.message!=null&&(i.message=(0,Re.expectString)(s.message));let n=new dA.InvalidRequestException({$metadata:en(e),...i});return(0,Re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1InvalidRequestExceptionResponse"),qL=r(async(e,t)=>{let i=bt({}),s=e.body;s.message!=null&&(i.message=(0,Re.expectString)(s.message));let n=new dA.ResourceNotFoundException({$metadata:en(e),...i});return(0,Re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1ResourceNotFoundExceptionResponse"),pA=r(async(e,t)=>{let i=bt({}),s=e.body;s.message!=null&&(i.message=(0,Re.expectString)(s.message));let n=new dA.TooManyRequestsException({$metadata:en(e),...i});return(0,Re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1TooManyRequestsExceptionResponse"),hA=r(async(e,t)=>{let i=bt({}),s=e.body;s.message!=null&&(i.message=(0,Re.expectString)(s.message));let n=new dA.UnauthorizedException({$metadata:en(e),...i});return(0,Re.decorateServiceException)(n,e.body)},"deserializeAws_restJson1UnauthorizedExceptionResponse"),x7e=r((e,t)=>({accountId:(0,Re.expectString)(e.accountId),accountName:(0,Re.expectString)(e.accountName),emailAddress:(0,Re.expectString)(e.emailAddress)}),"deserializeAws_restJson1AccountInfo"),P7e=r((e,t)=>(e||[]).filter(s=>s!=null).map(s=>s===null?null:x7e(s,t)),"deserializeAws_restJson1AccountListType"),I7e=r((e,t)=>({accessKeyId:(0,Re.expectString)(e.accessKeyId),expiration:(0,Re.expectLong)(e.expiration),secretAccessKey:(0,Re.expectString)(e.secretAccessKey),sessionToken:(0,Re.expectString)(e.sessionToken)}),"deserializeAws_restJson1RoleCredentials"),R7e=r((e,t)=>({accountId:(0,Re.expectString)(e.accountId),roleName:(0,Re.expectString)(e.roleName)}),"deserializeAws_restJson1RoleInfo"),q7e=r((e,t)=>(e||[]).filter(s=>s!=null).map(s=>s===null?null:R7e(s,t)),"deserializeAws_restJson1RoleListType"),en=r(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),B8=r((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),"collectBody"),L7e=r((e,t)=>B8(e,t).then(i=>t.utf8Encoder(i)),"collectBodyString"),fA=r(e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),"isSerializableHeaderValue"),gA=r((e,t)=>L7e(e,t).then(i=>i.length?JSON.parse(i):{}),"parseBody"),wA=r(async(e,t)=>{let i=await gA(e,t);return i.message=i.message??i.Message,i},"parseErrorBody"),_A=r((e,t)=>{let i=r((o,c)=>Object.keys(o).find(d=>d.toLowerCase()===c.toLowerCase()),"findKey"),s=r(o=>{let c=o;return typeof c=="number"&&(c=c.toString()),c.indexOf(",")>=0&&(c=c.split(",")[0]),c.indexOf(":")>=0&&(c=c.split(":")[0]),c.indexOf("#")>=0&&(c=c.split("#")[1]),c},"sanitizeErrorCode"),n=i(e.headers,"x-amzn-errortype");if(n!==void 0)return s(e.headers[n]);if(t.code!==void 0)return s(t.code);if(t.__type!==void 0)return s(t.__type)},"loadRestJsonErrorCode")});var LL=h(yA=>{"use strict";Object.defineProperty(yA,"__esModule",{value:!0});yA.GetRoleCredentialsCommand=void 0;var z7e=b(),F7e=C(),N7e=A(),$8=Gn(),H8=Hm(),au=class extends N7e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,F7e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,z7e.getEndpointPlugin)(i,au.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:$8.GetRoleCredentialsRequestFilterSensitiveLog,outputFilterSensitiveLog:$8.GetRoleCredentialsResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,H8.serializeAws_restJson1GetRoleCredentialsCommand)(t,i)}deserialize(t,i){return(0,H8.deserializeAws_restJson1GetRoleCredentialsCommand)(t,i)}};r(au,"GetRoleCredentialsCommand");yA.GetRoleCredentialsCommand=au});var vA=h(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0});SA.ListAccountRolesCommand=void 0;var D7e=b(),k7e=C(),J7e=A(),W8=Gn(),K8=Hm(),cu=class extends J7e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,k7e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,D7e.getEndpointPlugin)(i,cu.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:W8.ListAccountRolesRequestFilterSensitiveLog,outputFilterSensitiveLog:W8.ListAccountRolesResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,K8.serializeAws_restJson1ListAccountRolesCommand)(t,i)}deserialize(t,i){return(0,K8.deserializeAws_restJson1ListAccountRolesCommand)(t,i)}};r(cu,"ListAccountRolesCommand");SA.ListAccountRolesCommand=cu});var AA=h(EA=>{"use strict";Object.defineProperty(EA,"__esModule",{value:!0});EA.ListAccountsCommand=void 0;var M7e=b(),U7e=C(),O7e=A(),Y8=Gn(),Q8=Hm(),lu=class extends O7e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,U7e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,M7e.getEndpointPlugin)(i,lu.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:Y8.ListAccountsRequestFilterSensitiveLog,outputFilterSensitiveLog:Y8.ListAccountsResponseFilterSensitiveLog},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,Q8.serializeAws_restJson1ListAccountsCommand)(t,i)}deserialize(t,i){return(0,Q8.deserializeAws_restJson1ListAccountsCommand)(t,i)}};r(lu,"ListAccountsCommand");EA.ListAccountsCommand=lu});var zL=h(bA=>{"use strict";Object.defineProperty(bA,"__esModule",{value:!0});bA.LogoutCommand=void 0;var j7e=b(),G7e=C(),V7e=A(),B7e=Gn(),X8=Hm(),du=class extends V7e.Command{constructor(t){super(),this.input=t}static getEndpointParameterInstructions(){return{UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}}resolveMiddleware(t,i,s){this.middlewareStack.use((0,G7e.getSerdePlugin)(i,this.serialize,this.deserialize)),this.middlewareStack.use((0,j7e.getEndpointPlugin)(i,du.getEndpointParameterInstructions()));let n=t.concat(this.middlewareStack),{logger:o}=i,l={logger:o,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:B7e.LogoutRequestFilterSensitiveLog,outputFilterSensitiveLog:m=>m},{requestHandler:u}=i;return n.resolve(m=>u.handle(m.request,s||{}),l)}serialize(t,i){return(0,X8.serializeAws_restJson1LogoutCommand)(t,i)}deserialize(t,i){return(0,X8.deserializeAws_restJson1LogoutCommand)(t,i)}};r(du,"LogoutCommand");bA.LogoutCommand=du});var Z8=h(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0});CA.resolveClientEndpointParameters=void 0;var $7e=r(e=>({...e,useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters");CA.resolveClientEndpointParameters=$7e});var e6=h((pFt,H7e)=>{H7e.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.208.0",scripts:{build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.208.0","@aws-sdk/fetch-http-handler":"3.208.0","@aws-sdk/hash-node":"3.208.0","@aws-sdk/invalid-dependency":"3.208.0","@aws-sdk/middleware-content-length":"3.208.0","@aws-sdk/middleware-endpoint":"3.208.0","@aws-sdk/middleware-host-header":"3.208.0","@aws-sdk/middleware-logger":"3.208.0","@aws-sdk/middleware-recursion-detection":"3.208.0","@aws-sdk/middleware-retry":"3.208.0","@aws-sdk/middleware-serde":"3.208.0","@aws-sdk/middleware-stack":"3.208.0","@aws-sdk/middleware-user-agent":"3.208.0","@aws-sdk/node-config-provider":"3.208.0","@aws-sdk/node-http-handler":"3.208.0","@aws-sdk/protocol-http":"3.208.0","@aws-sdk/smithy-client":"3.208.0","@aws-sdk/types":"3.208.0","@aws-sdk/url-parser":"3.208.0","@aws-sdk/util-base64":"3.208.0","@aws-sdk/util-base64-browser":"3.208.0","@aws-sdk/util-base64-node":"3.208.0","@aws-sdk/util-body-length-browser":"3.188.0","@aws-sdk/util-body-length-node":"3.208.0","@aws-sdk/util-defaults-mode-browser":"3.208.0","@aws-sdk/util-defaults-mode-node":"3.208.0","@aws-sdk/util-endpoints":"3.208.0","@aws-sdk/util-user-agent-browser":"3.208.0","@aws-sdk/util-user-agent-node":"3.208.0","@aws-sdk/util-utf8-browser":"3.188.0","@aws-sdk/util-utf8-node":"3.208.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.208.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},overrides:{typedoc:{typescript:"~4.6.2"}},engines:{node:">=14.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var Wm=h(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.fromString=uu.fromArrayBuffer=void 0;var W7e=Uq(),FL=$("buffer"),K7e=r((e,t=0,i=e.byteLength-t)=>{if(!(0,W7e.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return FL.Buffer.from(e,t,i)},"fromArrayBuffer");uu.fromArrayBuffer=K7e;var Y7e=r((e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?FL.Buffer.from(e,t):FL.Buffer.from(e)},"fromString");uu.fromString=Y7e});var PA=h(xA=>{"use strict";Object.defineProperty(xA,"__esModule",{value:!0});xA.Hash=void 0;var NL=Wm(),Q7e=$("buffer"),t6=$("crypto"),TA=class{constructor(t,i){this.hash=i?(0,t6.createHmac)(t,i6(i)):(0,t6.createHash)(t)}update(t,i){this.hash.update(i6(t,i))}digest(){return Promise.resolve(this.hash.digest())}};r(TA,"Hash");xA.Hash=TA;function i6(e,t){return Q7e.Buffer.isBuffer(e)?e:typeof e=="string"?(0,NL.fromString)(e,t):ArrayBuffer.isView(e)?(0,NL.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,NL.fromArrayBuffer)(e)}r(i6,"castSourceData")});var kL=h(IA=>{"use strict";Object.defineProperty(IA,"__esModule",{value:!0});IA.buildQueryString=void 0;var DL=Jq();function X7e(e){let t=[];for(let i of Object.keys(e).sort()){let s=e[i];if(i=(0,DL.escapeUri)(i),Array.isArray(s))for(let n=0,o=s.length;n<o;n++)t.push(`${i}=${(0,DL.escapeUri)(s[n])}`);else{let n=i;(s||typeof s=="string")&&(n+=`=${(0,DL.escapeUri)(s)}`),t.push(n)}}return t.join("&")}r(X7e,"buildQueryString");IA.buildQueryString=X7e});var s6=h(RA=>{"use strict";Object.defineProperty(RA,"__esModule",{value:!0});RA.NODEJS_TIMEOUT_ERROR_CODES=void 0;RA.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var JL=h(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});qA.getTransformedHeaders=void 0;var Z7e=r(e=>{let t={};for(let i of Object.keys(e)){let s=e[i];t[i]=Array.isArray(s)?s.join(","):s}return t},"getTransformedHeaders");qA.getTransformedHeaders=Z7e});var n6=h(LA=>{"use strict";Object.defineProperty(LA,"__esModule",{value:!0});LA.setConnectionTimeout=void 0;var eZe=r((e,t,i=0)=>{i&&e.on("socket",s=>{if(s.connecting){let n=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${i} ms`),{name:"TimeoutError"}))},i);s.on("connect",()=>{clearTimeout(n)})}})},"setConnectionTimeout");LA.setConnectionTimeout=eZe});var r6=h(zA=>{"use strict";Object.defineProperty(zA,"__esModule",{value:!0});zA.setSocketTimeout=void 0;var tZe=r((e,t,i=0)=>{e.setTimeout(i,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${i} ms`),{name:"TimeoutError"}))})},"setSocketTimeout");zA.setSocketTimeout=tZe});var ML=h(FA=>{"use strict";Object.defineProperty(FA,"__esModule",{value:!0});FA.writeRequestBody=void 0;var iZe=$("stream");function sZe(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{o6(e,t.body)}):o6(e,t.body)}r(sZe,"writeRequestBody");FA.writeRequestBody=sZe;function o6(e,t){t instanceof iZe.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}r(o6,"writeBody")});var l6=h(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0});DA.NodeHttpHandler=void 0;var nZe=kt(),rZe=kL(),a6=$("http"),c6=$("https"),oZe=s6(),aZe=JL(),cZe=n6(),lZe=r6(),dZe=ML(),NA=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((i,s)=>{typeof t=="function"?t().then(n=>{i(this.resolveDefaultConfig(n))}).catch(s):i(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:i,socketTimeout:s,httpAgent:n,httpsAgent:o}=t||{},c=!0,d=50;return{connectionTimeout:i,socketTimeout:s,httpAgent:n||new a6.Agent({keepAlive:c,maxSockets:d}),httpsAgent:o||new c6.Agent({keepAlive:c,maxSockets:d})}}destroy(){var t,i,s,n;(i=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||i===void 0||i.destroy(),(n=(s=this.config)===null||s===void 0?void 0:s.httpsAgent)===null||n===void 0||n.destroy()}async handle(t,{abortSignal:i}={}){return this.config||(this.config=await this.configProvider),new Promise((s,n)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(i?.aborted){let m=new Error("Request aborted");m.name="AbortError",n(m);return}let o=t.protocol==="https:",c=(0,rZe.buildQueryString)(t.query||{}),d={headers:t.headers,host:t.hostname,method:t.method,path:c?`${t.path}?${c}`:t.path,port:t.port,agent:o?this.config.httpsAgent:this.config.httpAgent},u=(o?c6.request:a6.request)(d,m=>{let _=new nZe.HttpResponse({statusCode:m.statusCode||-1,headers:(0,aZe.getTransformedHeaders)(m.headers),body:m});s({response:_})});u.on("error",m=>{oZe.NODEJS_TIMEOUT_ERROR_CODES.includes(m.code)?n(Object.assign(m,{name:"TimeoutError"})):n(m)}),(0,cZe.setConnectionTimeout)(u,n,this.config.connectionTimeout),(0,lZe.setSocketTimeout)(u,n,this.config.socketTimeout),i&&(i.onabort=()=>{u.abort();let m=new Error("Request aborted");m.name="AbortError",n(m)}),(0,dZe.writeRequestBody)(u,t)})}};r(NA,"NodeHttpHandler");DA.NodeHttpHandler=NA});var d6=h(JA=>{"use strict";Object.defineProperty(JA,"__esModule",{value:!0});JA.NodeHttp2Handler=void 0;var uZe=kt(),mZe=kL(),UL=$("http2"),pZe=JL(),hZe=ML(),kA=class{constructor(t){this.metadata={handlerProtocol:"h2"},this.configProvider=new Promise((i,s)=>{typeof t=="function"?t().then(n=>{i(n||{})}).catch(s):i(t||{})}),this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(i=>this.destroySession(i));this.sessionCache.clear()}async handle(t,{abortSignal:i}={}){this.config||(this.config=await this.configProvider);let{requestTimeout:s,disableConcurrentStreams:n}=this.config;return new Promise((o,c)=>{let d=!1;if(i?.aborted){d=!0;let W=new Error("Request aborted");W.name="AbortError",c(W);return}let{hostname:l,method:u,port:m,protocol:_,path:y,query:v}=t,D=`${_}//${l}${m?`:${m}`:""}`,k=this.getSession(D,n||!1),j=r(W=>{n&&this.destroySession(k),d=!0,c(W)},"reject"),J=(0,mZe.buildQueryString)(v||{}),O=k.request({...t.headers,[UL.constants.HTTP2_HEADER_PATH]:J?`${y}?${J}`:y,[UL.constants.HTTP2_HEADER_METHOD]:u});k.ref(),O.on("response",W=>{let X=new uZe.HttpResponse({statusCode:W[":status"]||-1,headers:(0,pZe.getTransformedHeaders)(W),body:O});d=!0,o({response:X}),n&&(k.close(),this.deleteSessionFromCache(D,k))}),s&&O.setTimeout(s,()=>{O.close();let W=new Error(`Stream timed out because of no activity for ${s} ms`);W.name="TimeoutError",j(W)}),i&&(i.onabort=()=>{O.close();let W=new Error("Request aborted");W.name="AbortError",j(W)}),O.on("frameError",(W,X,se)=>{j(new Error(`Frame type id ${W} in stream id ${se} has failed with code ${X}.`))}),O.on("error",j),O.on("aborted",()=>{j(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${O.rstCode}.`))}),O.on("close",()=>{k.unref(),n&&k.destroy(),d||j(new Error("Unexpected error: http2 request did not get a response"))}),(0,hZe.writeRequestBody)(O,t)})}getSession(t,i){var s;let n=this.sessionCache,o=n.get(t)||[];if(o.length>0&&!i)return o[0];let c=(0,UL.connect)(t);c.unref();let d=r(()=>{this.destroySession(c),this.deleteSessionFromCache(t,c)},"destroySessionCb");return c.on("goaway",d),c.on("error",d),c.on("frameError",d),c.on("close",()=>this.deleteSessionFromCache(t,c)),!((s=this.config)===null||s===void 0)&&s.sessionTimeout&&c.setTimeout(this.config.sessionTimeout,d),o.push(c),n.set(t,o),c}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,i){let s=this.sessionCache.get(t)||[];s.includes(i)&&this.sessionCache.set(t,s.filter(n=>n!==i))}};r(kA,"NodeHttp2Handler");JA.NodeHttp2Handler=kA});var u6=h(UA=>{"use strict";Object.defineProperty(UA,"__esModule",{value:!0});UA.Collector=void 0;var fZe=$("stream"),MA=class extends fZe.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,i,s){this.bufferedBytes.push(t),s()}};r(MA,"Collector");UA.Collector=MA});var m6=h(OA=>{"use strict";Object.defineProperty(OA,"__esModule",{value:!0});OA.streamCollector=void 0;var gZe=u6(),wZe=r(e=>new Promise((t,i)=>{let s=new gZe.Collector;e.pipe(s),e.on("error",n=>{s.end(),i(n)}),s.on("error",i),s.on("finish",function(){let n=new Uint8Array(Buffer.concat(this.bufferedBytes));t(n)})}),"streamCollector");OA.streamCollector=wZe});var jA=h(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var OL=(de(),re(le));OL.__exportStar(l6(),Km);OL.__exportStar(d6(),Km);OL.__exportStar(m6(),Km)});var h6=h(GA=>{"use strict";Object.defineProperty(GA,"__esModule",{value:!0});GA.calculateBodyLength=void 0;var p6=$("fs"),_Ze=r(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string"||Buffer.isBuffer(e.path))return(0,p6.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,p6.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength");GA.calculateBodyLength=_Ze});var VA=h(jL=>{"use strict";Object.defineProperty(jL,"__esModule",{value:!0});var yZe=(de(),re(le));yZe.__exportStar(h6(),jL)});var f6=h((OFt,SZe)=>{SZe.exports={name:"aws-crt",version:"1.14.7",description:"NodeJS/browser bindings to the aws-c-* libraries",homepage:"https://github.com/awslabs/aws-crt-nodejs",repository:{type:"git",url:"git+https://github.com/awslabs/aws-crt-nodejs.git"},contributors:["AWS Common Runtime Team <aws-sdk-common-runtime@amazon.com>"],license:"Apache-2.0",main:"./dist/index.js",browser:"./dist.browser/browser.js",types:"./dist/index.d.ts",scripts:{tsc:"node ./scripts/tsc.js",test:"npm run test:native","test:node":"npm run test:native","test:native":"npx jest --runInBand --verbose --config test/native/jest.config.js --forceExit","test:browser":"npx jest --runInBand --verbose --config test/browser/jest.config.js --forceExit","test:browser:ci":"npm run install:puppeteer && npm run test:browser","install:puppeteer":"npm install --save-dev jest-puppeteer puppeteer @types/puppeteer",prepare:"node ./scripts/tsc.js && node ./scripts/install.js",install:"node ./scripts/install.js"},devDependencies:{"@types/crypto-js":"^3.1.43","@types/jest":"^27.0.1","@types/node":"^10.17.54","@types/prettier":"2.6.0","@types/puppeteer":"^5.4.4","@types/uuid":"^3.4.8","@types/ws":"^7.4.7","aws-sdk":"^2.848.0",jest:"^27.2.1","jest-puppeteer":"^5.0.4","jest-runtime":"^27.2.1",puppeteer:"^3.3.0","ts-jest":"^27.0.5",typedoc:"^0.22.18","typedoc-plugin-merge-modules":"^3.1.0",typescript:"^4.7.4",uuid:"^8.3.2",yargs:"^17.2.1"},dependencies:{"@aws-sdk/util-utf8-browser":"^3.109.0","@httptoolkit/websocket-stream":"^6.0.0",axios:"^0.24.0","crypto-js":"^4.0.0",mqtt:"^4.3.7","cmake-js":"^6.3.2",tar:"^6.1.11"}}});var GL=h(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.crt_version=Mi.package_info=Mi.is_browser=Mi.is_nodejs=void 0;function g6(){return typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node<"u"}r(g6,"is_nodejs");Mi.is_nodejs=g6;function vZe(){return!g6()}r(vZe,"is_browser");Mi.is_browser=vZe;function w6(){try{return f6()}catch{return{name:"aws-crt-nodejs",version:"UNKNOWN"}}}r(w6,"package_info");Mi.package_info=w6;function EZe(){return w6().version}r(EZe,"crt_version");Mi.crt_version=EZe});var _6=h(mu=>{"use strict";var AZe=mu&&mu.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(_){c(_)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(_){c(_)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})};Object.defineProperty(mu,"__esModule",{value:!0});mu.using=void 0;function bZe(e,t){return AZe(this,void 0,void 0,function*(){try{yield t(e)}finally{e.close()}})}r(bZe,"using");mu.using=bZe});var ms=h(us=>{"use strict";var CZe=us&&us.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),TZe=us&&us.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),xZe=us&&us.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&CZe(t,e,i);return TZe(t,e),t};Object.defineProperty(us,"__esModule",{value:!0});var BA=xZe($("path")),y6=$("os"),A6=$("fs"),S6=$("process"),v6="Please upgrade to node >=10.16.0, or use the provided browser implementation.";if("napi"in S6.versions){if(parseInt(S6.versions.napi)<4)throw new Error("The AWS CRT native implementation requires that NAPI version 4 be present. "+v6)}else throw new Error("The current runtime is not reporting an NAPI version. "+v6);var PZe="aws-crt-nodejs",IZe=`${y6.platform}-${y6.arch}`,VL=BA.resolve(__dirname,"..",".."),E6=BA.join(VL,"dist");(0,A6.existsSync)(E6)&&(VL=E6);var RZe=BA.resolve(VL,"bin"),b6=[BA.join(RZe,IZe,PZe)],BL;for(let e of b6)if((0,A6.existsSync)(e+".node")){BL=$(e);break}if(BL==null)throw new Error(`AWS CRT binary not present in any of the following locations:
|
|
56
56
|
`+b6.join(`
|
|
57
57
|
`));us.default=BL});var T6=h(tn=>{"use strict";var qZe=tn&&tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(tn,"__esModule",{value:!0});tn.native_memory_dump=tn.native_memory=void 0;var C6=qZe(ms());function LZe(){return C6.default.native_memory()}r(LZe,"native_memory");tn.native_memory=LZe;function zZe(){return C6.default.native_memory_dump()}r(zZe,"native_memory_dump");tn.native_memory_dump=zZe});var Ym=h(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.NativeResourceMixin=pu.NativeResource=void 0;var $A=class{constructor(t){this.handle=t}native_handle(){return this.handle}};r($A,"NativeResource");pu.NativeResource=$A;function FZe(e){return class extends e{constructor(...t){let i=t.shift();super(...t),this._handle=i}_super(t){this._handle=t}native_handle(){return this._handle}}}r(FZe,"NativeResourceMixin");pu.NativeResourceMixin=FZe});var $L=h(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.SocketDomain=ui.SocketType=ui.TlsVersion=void 0;var NZe;(function(e){e[e.SSLv3=0]="SSLv3",e[e.TLSv1=1]="TLSv1",e[e.TLSv1_1=2]="TLSv1_1",e[e.TLSv1_2=3]="TLSv1_2",e[e.TLSv1_3=4]="TLSv1_3",e[e.Default=128]="Default"})(NZe=ui.TlsVersion||(ui.TlsVersion={}));var DZe;(function(e){e[e.STREAM=0]="STREAM",e[e.DGRAM=1]="DGRAM"})(DZe=ui.SocketType||(ui.SocketType={}));var kZe;(function(e){e[e.IPV4=0]="IPV4",e[e.IPV6=1]="IPV6",e[e.LOCAL=2]="LOCAL"})(kZe=ui.SocketDomain||(ui.SocketDomain={}))});var gu=h(_e=>{"use strict";var JZe=_e&&_e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0});_e.Pkcs11Lib=_e.TlsConnectionOptions=_e.ServerTlsContext=_e.ClientTlsContext=_e.TlsContext=_e.TlsContextOptions=_e.SocketOptions=_e.ClientBootstrap=_e.InputStream=_e.is_alpn_available=_e.enable_logging=_e.LogLevel=_e.error_code_to_name=_e.error_code_to_string=_e.SocketDomain=_e.SocketType=_e.TlsVersion=void 0;var Mt=JZe(ms()),fu=Ym(),HL=$L(),WL=$L();Object.defineProperty(_e,"TlsVersion",{enumerable:!0,get:function(){return WL.TlsVersion}});Object.defineProperty(_e,"SocketType",{enumerable:!0,get:function(){return WL.SocketType}});Object.defineProperty(_e,"SocketDomain",{enumerable:!0,get:function(){return WL.SocketDomain}});function MZe(e){return Mt.default.error_code_to_string(e)}r(MZe,"error_code_to_string");_e.error_code_to_string=MZe;function UZe(e){return Mt.default.error_code_to_name(e)}r(UZe,"error_code_to_name");_e.error_code_to_name=UZe;var OZe;(function(e){e[e.NONE=0]="NONE",e[e.FATAL=1]="FATAL",e[e.ERROR=2]="ERROR",e[e.WARN=3]="WARN",e[e.INFO=4]="INFO",e[e.DEBUG=5]="DEBUG",e[e.TRACE=6]="TRACE"})(OZe=_e.LogLevel||(_e.LogLevel={}));function jZe(e){Mt.default.io_logging_enable(e)}r(jZe,"enable_logging");_e.enable_logging=jZe;function GZe(){return Mt.default.is_alpn_available()}r(GZe,"is_alpn_available");_e.is_alpn_available=GZe;var HA=class extends fu.NativeResource{constructor(t){super(Mt.default.io_input_stream_new(16*1024)),this.source=t,this.source.on("data",i=>{i=Buffer.isBuffer(i)?i:new Buffer(i.toString(),"utf8"),Mt.default.io_input_stream_append(this.native_handle(),i)}),this.source.on("end",()=>{Mt.default.io_input_stream_append(this.native_handle(),void 0)})}};r(HA,"InputStream");_e.InputStream=HA;var WA=class extends fu.NativeResource{constructor(){super(Mt.default.io_client_bootstrap_new())}};r(WA,"ClientBootstrap");_e.ClientBootstrap=WA;var KA=class extends fu.NativeResource{constructor(t=HL.SocketType.STREAM,i=HL.SocketDomain.IPV6,s=5e3,n=!1,o=0,c=0,d=0){super(Mt.default.io_socket_options_new(t,i,s,o,c,d,n))}};r(KA,"SocketOptions");_e.SocketOptions=KA;var Lt=class{constructor(){this.min_tls_version=HL.TlsVersion.Default,this.alpn_list=[],this.verify_peer=!0}override_default_trust_store_from_path(t,i){this.ca_dirpath=t,this.ca_filepath=i}override_default_trust_store(t){this.certificate_authority=t}static create_client_with_mtls(t,i){let s=new Lt;return s.certificate=t,s.private_key=i,s.verify_peer=!0,s}static create_client_with_mtls_from_path(t,i){let s=new Lt;return s.certificate_filepath=t,s.private_key_filepath=i,s.verify_peer=!0,s}static create_client_with_mtls_pkcs12_from_path(t,i){let s=new Lt;return s.pkcs12_filepath=t,s.pkcs12_password=i,s.verify_peer=!0,s}static create_client_with_mtls_pkcs_from_path(t,i){return this.create_client_with_mtls_pkcs12_from_path(t,i)}static create_client_with_mtls_pkcs11(t){let i=new Lt;return i.pkcs11_options=t,i.verify_peer=!0,i}static create_client_with_mtls_windows_cert_store_path(t){let i=new Lt;return i.windows_cert_store_path=t,i.verify_peer=!0,i}static create_server_with_mtls_from_path(t,i){let s=new Lt;return s.certificate_filepath=t,s.private_key_filepath=i,s.verify_peer=!1,s}static create_server_with_mtls_pkcs_from_path(t,i){let s=new Lt;return s.pkcs12_filepath=t,s.pkcs12_password=i,s.verify_peer=!1,s}};r(Lt,"TlsContextOptions");_e.TlsContextOptions=Lt;var hu=class extends fu.NativeResource{constructor(t){super(Mt.default.io_tls_ctx_new(t.min_tls_version,t.ca_filepath,t.ca_dirpath,t.certificate_authority,t.alpn_list&&t.alpn_list.length>0?t.alpn_list.join(";"):void 0,t.certificate_filepath,t.certificate,t.private_key_filepath,t.private_key,t.pkcs12_filepath,t.pkcs12_password,t.pkcs11_options,t.windows_cert_store_path,t.verify_peer))}};r(hu,"TlsContext");_e.TlsContext=hu;var YA=class extends hu{constructor(t){t||(t=new Lt,t.verify_peer=!0),super(t)}};r(YA,"ClientTlsContext");_e.ClientTlsContext=YA;var QA=class extends hu{constructor(t){t||(t=new Lt,t.verify_peer=!1),super(t)}};r(QA,"ServerTlsContext");_e.ServerTlsContext=QA;var XA=class extends fu.NativeResource{constructor(t,i,s=[]){super(Mt.default.io_tls_connection_options_new(t.native_handle(),i,s&&s.length>0?s.join(";"):void 0)),this.tls_ctx=t,this.server_name=i,this.alpn_list=s}};r(XA,"TlsConnectionOptions");_e.TlsConnectionOptions=XA;var Vn=class extends fu.NativeResource{constructor(t,i=Vn.InitializeFinalizeBehavior.DEFAULT){super(Mt.default.io_pkcs11_lib_new(t,i))}close(){Mt.default.io_pkcs11_lib_close(this.native_handle())}};r(Vn,"Pkcs11Lib");_e.Pkcs11Lib=Vn;(function(e){let t;(function(i){i[i.DEFAULT=0]="DEFAULT",i[i.OMIT=1]="OMIT",i[i.STRICT=2]="STRICT"})(t=e.InitializeFinalizeBehavior||(e.InitializeFinalizeBehavior={}))})(Vn=_e.Pkcs11Lib||(_e.Pkcs11Lib={}))});var KL=h(tb=>{"use strict";Object.defineProperty(tb,"__esModule",{value:!0});tb.BufferedEventEmitter=void 0;var VZe=$("events"),ZA=class{constructor(t,i){this.event=t,this.args=i}};r(ZA,"BufferedEvent");var eb=class extends VZe.EventEmitter{constructor(){super(),this.corked=!1}cork(){this.corked=!0}uncork(){for(this.corked=!1;this.eventQueue;){let t=this.eventQueue;super.emit(t.event,...t.args),this.eventQueue=this.eventQueue.next}}emit(t,...i){if(this.corked){let s=this.lastQueuedEvent;return this.lastQueuedEvent=new ZA(t,i),s?s.next=this.lastQueuedEvent:this.eventQueue=this.lastQueuedEvent,this.listeners(t).length>0}return super.emit(t,...i)}};r(eb,"BufferedEventEmitter");tb.BufferedEventEmitter=eb});var _u=h(wu=>{"use strict";var BZe=wu&&wu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wu,"__esModule",{value:!0});wu.CrtError=void 0;var x6=BZe(ms()),Bn=class extends Error{constructor(t){super($Ze(t)),this.error=t,this.error_code=HZe(t),this.error_name=WZe(t)}};r(Bn,"CrtError");wu.CrtError=Bn;function $Ze(e){return typeof e=="number"?x6.default.error_code_to_string(e):e instanceof Bn?e.message:e.toString()}r($Ze,"extract_message");function HZe(e){if(typeof e=="number")return e;if(e instanceof Bn)return e.error_code}r(HZe,"extract_code");function WZe(e){if(typeof e=="number")return x6.default.error_code_to_name(e);if(e instanceof Bn)return e.error_name}r(WZe,"extract_name")});var YL=h(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.CommonHttpProxyOptions=Ui.HttpProxyAuthenticationType=Ui.HttpVersion=void 0;var KZe;(function(e){e[e.Unknown=0]="Unknown",e[e.Http1_0=1]="Http1_0",e[e.Http1_1=2]="Http1_1",e[e.Http2=3]="Http2"})(KZe=Ui.HttpVersion||(Ui.HttpVersion={}));var P6;(function(e){e[e.None=0]="None",e[e.Basic=1]="Basic"})(P6=Ui.HttpProxyAuthenticationType||(Ui.HttpProxyAuthenticationType={}));var ib=class{constructor(t,i,s=P6.None,n,o){this.host_name=t,this.port=i,this.auth_method=s,this.auth_username=n,this.auth_password=o}};r(ib,"CommonHttpProxyOptions");Ui.CommonHttpProxyOptions=ib});var XL=h(Me=>{"use strict";var YZe=Me&&Me.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Me,"__esModule",{value:!0});Me.HttpClientConnectionManager=Me.HttpClientStream=Me.HttpStream=Me.HttpClientConnection=Me.HttpProxyOptions=Me.HttpProxyConnectionType=Me.HttpConnection=Me.HttpRequest=Me.HttpHeaders=Me.HttpProxyAuthenticationType=void 0;var ti=YZe(ms()),QL=Ym(),ob=_u(),I6=YL(),QZe=YL();Object.defineProperty(Me,"HttpProxyAuthenticationType",{enumerable:!0,get:function(){return QZe.HttpProxyAuthenticationType}});var R6=KL();Me.HttpHeaders=ti.default.HttpHeaders;var XZe=ti.default.HttpRequest,sb=class extends XZe{constructor(t,i,s,n){super(t,i,s,n?.native_handle())}};r(sb,"HttpRequest");Me.HttpRequest=sb;var sn=class extends(0,QL.NativeResourceMixin)(R6.BufferedEventEmitter){constructor(t){super(),this._super(t)}close(){ti.default.http_connection_close(this.native_handle())}on(t,i){return super.on(t,i),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}};r(sn,"HttpConnection");Me.HttpConnection=sn;sn.CONNECT="connect";sn.ERROR="error";sn.CLOSE="close";var q6;(function(e){e[e.Legacy=0]="Legacy",e[e.Forwarding=1]="Forwarding",e[e.Tunneling=2]="Tunneling"})(q6=Me.HttpProxyConnectionType||(Me.HttpProxyConnectionType={}));var nb=class extends I6.CommonHttpProxyOptions{constructor(t,i,s=I6.HttpProxyAuthenticationType.None,n,o,c,d){super(t,i,s,n,o),this.tls_opts=c,this.connection_type=d}create_native_handle(){return ti.default.http_proxy_options_new(this.host_name,this.port,this.auth_method,this.auth_username,this.auth_password,this.tls_opts?this.tls_opts.native_handle():void 0,this.connection_type?this.connection_type:q6.Legacy)}};r(nb,"HttpProxyOptions");Me.HttpProxyOptions=nb;var Qm=class extends sn{constructor(t,i,s,n,o,c,d){super(d||ti.default.http_connection_new(t!=null?t.native_handle():null,(l,u)=>{this._on_setup(l,u)},(l,u)=>{this._on_shutdown(l,u)},i,s,n.native_handle(),o?o.native_handle():void 0,c?c.create_native_handle():void 0)),this.bootstrap=t,this.socket_options=n,this.tls_opts=o}_on_setup(t,i){if(i){this.emit("error",new ob.CrtError(i));return}this.emit("connect")}_on_shutdown(t,i){if(i){this.emit("error",new ob.CrtError(i));return}this.emit("close")}request(t){let i,s=r((d,l)=>{i._on_response(d,l)},"on_response_impl"),n=r(d=>{i._on_body(d)},"on_body_impl"),o=r(d=>{i._on_complete(d)},"on_complete_impl"),c=ti.default.http_stream_new(this.native_handle(),t,o,s,n);return i=new Oi(c,this,t)}};r(Qm,"HttpClientConnection");Me.HttpClientConnection=Qm;var Xm=class extends(0,QL.NativeResourceMixin)(R6.BufferedEventEmitter){constructor(t,i){super(),this.connection=i,this._super(t),this.cork()}activate(){ti.default.http_stream_activate(this.native_handle())}close(){ti.default.http_stream_close(this.native_handle())}_on_body(t){this.emit("data",t)}_on_complete(t){if(t){this.emit("error",new ob.CrtError(t)),this.close();return}this.on("end",()=>{this.close()}),this.emit("end")}};r(Xm,"HttpStream");Me.HttpStream=Xm;var Oi=class extends Xm{constructor(t,i,s){super(t,i),this.request=s}status_code(){return this.response_status_code}on(t,i){return super.on(t,i),t=="response"&&process.nextTick(()=>{this.uncork()}),this}_on_response(t,i){this.response_status_code=t;let s=new Me.HttpHeaders(i);this.emit("response",t,s)}};r(Oi,"HttpClientStream");Me.HttpClientStream=Oi;Oi.RESPONSE="response";Oi.DATA="data";Oi.ERROR="error";Oi.END="end";Oi.HEADERS="headers";var rb=class extends QL.NativeResource{constructor(t,i,s,n,o,c,d,l){super(ti.default.http_connection_manager_new(t!=null?t.native_handle():null,i,s,n,o,c.native_handle(),d?d.native_handle():void 0,l?l.create_native_handle():void 0,void 0)),this.bootstrap=t,this.host=i,this.port=s,this.max_connections=n,this.initial_window_size=o,this.socket_options=c,this.tls_opts=d,this.proxy_options=l,this.connections=new Map}acquire(){return new Promise((t,i)=>{let s=r((n,o)=>{if(o){i(new ob.CrtError(o));return}let c=this.connections.get(n);c||(c=new Qm(this.bootstrap,this.host,this.port,this.socket_options,this.tls_opts,this.proxy_options,n),this.connections.set(n,c),c.on("close",()=>{this.connections.delete(n)})),t(c)},"on_acquired");ti.default.http_connection_manager_acquire(this.native_handle(),s)})}release(t){ti.default.http_connection_manager_release(this.native_handle(),t.native_handle())}close(){ti.default.http_connection_manager_close(this.native_handle())}};r(rb,"HttpClientConnectionManager");Me.HttpClientConnectionManager=rb});var cb=h(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.DEFAULT_RECONNECT_MIN_SEC=mi.DEFAULT_RECONNECT_MAX_SEC=mi.MqttWill=mi.QoS=void 0;var ZZe;(function(e){e[e.AtMostOnce=0]="AtMostOnce",e[e.AtLeastOnce=1]="AtLeastOnce",e[e.ExactlyOnce=2]="ExactlyOnce"})(ZZe=mi.QoS||(mi.QoS={}));var ab=class{constructor(t,i,s,n=!1){this.topic=t,this.qos=i,this.payload=s,this.retain=n}};r(ab,"MqttWill");mi.MqttWill=ab;mi.DEFAULT_RECONNECT_MAX_SEC=128;mi.DEFAULT_RECONNECT_MIN_SEC=1});var k6=h(Ke=>{"use strict";var eet=Ke&&Ke.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),tet=Ke&&Ke.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),iet=Ke&&Ke.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&eet(t,e,i);return tet(t,e),t},yu=Ke&&Ke.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(_){c(_)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(_){c(_)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})},set=Ke&&Ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.MqttClientConnection=Ke.MqttClient=Ke.MqttWill=Ke.QoS=Ke.HttpProxyOptions=void 0;var ji=set(ms()),N6=Ym(),net=KL(),L6=_u(),lb=iet(gu()),ret=XL();Object.defineProperty(Ke,"HttpProxyOptions",{enumerable:!0,get:function(){return ret.HttpProxyOptions}});var z6=cb(),D6=cb();Object.defineProperty(Ke,"QoS",{enumerable:!0,get:function(){return D6.QoS}});Object.defineProperty(Ke,"MqttWill",{enumerable:!0,get:function(){return D6.MqttWill}});var db=class extends N6.NativeResource{constructor(t=void 0){super(ji.default.mqtt_client_new(t!=null?t.native_handle():null)),this.bootstrap=t}new_connection(t){return new pi(this,t)}};r(db,"MqttClient");Ke.MqttClient=db;function F6(e){if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer||typeof e=="string")return e;if(typeof e=="object")return JSON.stringify(e);throw new TypeError("payload parameter must be a string, object, or DataView.")}r(F6,"normalize_payload");var pi=class extends(0,N6.NativeResourceMixin)(net.BufferedEventEmitter){constructor(t,i){super(),this.client=t,this.config=i;let s=i.will?{topic:i.will.topic,qos:i.will.qos,payload:F6(i.will.payload),retain:i.will.retain}:void 0;var n=z6.DEFAULT_RECONNECT_MIN_SEC,o=z6.DEFAULT_RECONNECT_MAX_SEC;i.reconnect_min_sec!==void 0&&(n=i.reconnect_min_sec,o=Math.max(n,o)),i.reconnect_max_sec!==void 0&&(o=i.reconnect_max_sec,n=Math.min(n,o)),this._super(ji.default.mqtt_client_connection_new(t.native_handle(),c=>{this._on_connection_interrupted(c)},(c,d)=>{this._on_connection_resumed(c,d)},i.tls_ctx?i.tls_ctx.native_handle():null,s,i.username,i.password,i.use_websocket,i.proxy_options?i.proxy_options.create_native_handle():void 0,i.websocket_handshake_transform,n,o)),this.tls_ctx=i.tls_ctx,ji.default.mqtt_client_connection_on_message(this.native_handle(),this._on_any_publish.bind(this)),this.on("error",c=>{})}close(){ji.default.mqtt_client_connection_close(this.native_handle())}on(t,i){return super.on(t,i),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}connect(){return yu(this,void 0,void 0,function*(){return new Promise((t,i)=>{i=this._reject(i);try{ji.default.mqtt_client_connection_connect(this.native_handle(),this.config.client_id,this.config.host_name,this.config.port,this.config.socket_options.native_handle(),this.config.keep_alive,this.config.ping_timeout,this.config.protocol_operation_timeout,this.config.clean_session,this._on_connect_callback.bind(this,t,i))}catch(s){i(s)}})})}reconnect(){return yu(this,void 0,void 0,function*(){return new Promise((t,i)=>{i=this._reject(i);try{ji.default.mqtt_client_connection_reconnect(this.native_handle(),this._on_connect_callback.bind(this,t,i))}catch(s){i(s)}})})}publish(t,i,s,n=!1){return yu(this,void 0,void 0,function*(){return new Promise((o,c)=>{c=this._reject(c);try{ji.default.mqtt_client_connection_publish(this.native_handle(),t,F6(i),s,n,this._on_puback_callback.bind(this,o,c))}catch(d){c(d)}})})}subscribe(t,i,s){return yu(this,void 0,void 0,function*(){return new Promise((n,o)=>{o=this._reject(o);try{ji.default.mqtt_client_connection_subscribe(this.native_handle(),t,i,s,this._on_suback_callback.bind(this,n,o))}catch(c){o(c)}})})}unsubscribe(t){return yu(this,void 0,void 0,function*(){return new Promise((i,s)=>{s=this._reject(s);try{ji.default.mqtt_client_connection_unsubscribe(this.native_handle(),t,this._on_unsuback_callback.bind(this,i,s))}catch(n){s(n)}})})}disconnect(){return yu(this,void 0,void 0,function*(){return new Promise((t,i)=>{i=this._reject(i);try{ji.default.mqtt_client_connection_disconnect(this.native_handle(),this._on_disconnect_callback.bind(this,t))}catch(s){i(s)}})})}_reject(t){return i=>{t(i),process.nextTick(()=>{this.emit("error",new L6.CrtError(i))})}}_on_connection_interrupted(t){this.emit("interrupt",new L6.CrtError(t))}_on_connection_resumed(t,i){this.emit("resume",t,i)}_on_any_publish(t,i,s,n,o){this.emit("message",t,i,s,n,o)}_on_connect_callback(t,i,s,n,o){s==0&&n==0?(t(o),this.emit("connect",o)):s!=0?i("Failed to connect: "+lb.error_code_to_string(s)):i("Server rejected connection.")}_on_puback_callback(t,i,s,n){n==0?t({packet_id:s}):i("Failed to publish: "+lb.error_code_to_string(n))}_on_suback_callback(t,i,s,n,o,c){c==0?t({packet_id:s,topic:n,qos:o,error_code:c}):i("Failed to subscribe: "+lb.error_code_to_string(c))}_on_unsuback_callback(t,i,s,n){n==0?t({packet_id:s}):i("Failed to unsubscribe: "+lb.error_code_to_string(n))}_on_disconnect_callback(t){t(),this.emit("disconnect"),this.close()}};r(pi,"MqttClientConnection");Ke.MqttClientConnection=pi;pi.CONNECT="connect";pi.DISCONNECT="disconnect";pi.ERROR="error";pi.INTERRUPT="interrupt";pi.RESUME="resume";pi.MESSAGE="message"});var M6=h(it=>{"use strict";var oet=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.hmac_sha256=it.Sha256Hmac=it.hash_sha1=it.Sha1Hash=it.hash_sha256=it.Sha256Hash=it.hash_md5=it.Md5Hash=void 0;var ii=oet(ms()),J6=Ym(),Su=class extends J6.NativeResource{update(t){ii.default.hash_update(this.native_handle(),t)}finalize(t){return ii.default.hash_digest(this.native_handle(),t)}constructor(t){super(t)}};r(Su,"Hash");var ub=class extends Su{constructor(){super(ii.default.hash_md5_new())}};r(ub,"Md5Hash");it.Md5Hash=ub;function aet(e,t){return ii.default.hash_md5_compute(e,t)}r(aet,"hash_md5");it.hash_md5=aet;var mb=class extends Su{constructor(){super(ii.default.hash_sha256_new())}};r(mb,"Sha256Hash");it.Sha256Hash=mb;function cet(e,t){return ii.default.hash_sha256_compute(e,t)}r(cet,"hash_sha256");it.hash_sha256=cet;var pb=class extends Su{constructor(){super(ii.default.hash_sha1_new())}};r(pb,"Sha1Hash");it.Sha1Hash=pb;function det(e,t){return ii.default.hash_sha1_compute(e,t)}r(det,"hash_sha1");it.hash_sha1=det;var hb=class extends J6.NativeResource{update(t){ii.default.hmac_update(this.native_handle(),t)}finalize(t){return ii.default.hmac_digest(this.native_handle(),t)}constructor(t){super(t)}};r(hb,"Hmac");var fb=class extends hb{constructor(t){super(ii.default.hmac_sha256_new(t))}};r(fb,"Sha256Hmac");it.Sha256Hmac=fb;function uet(e,t,i){return ii.default.hmac_sha256_compute(e,t,i)}r(uet,"hmac_sha256");it.hmac_sha256=uet});var ez=h(Ge=>{"use strict";var met=Ge&&Ge.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(_){c(_)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(_){c(_)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})},pet=Ge&&Ge.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.aws_verify_sigv4a_signing=Ge.aws_sign_request=Ge.AwsSignedBodyHeaderType=Ge.AwsSignedBodyValue=Ge.AwsSignatureType=Ge.AwsSigningAlgorithm=Ge.AwsCredentialsProvider=void 0;var ZL=pet(ms()),het=_u(),fet=gu(),gb=class extends ZL.default.AwsCredentialsProvider{static newDefault(t=void 0){return super.newDefault(t!=null?t.native_handle():null)}static newStatic(t,i,s){return super.newStatic(t,i,s)}static newCognito(t){return super.newCognito(t,t.tlsContext!=null?t.tlsContext.native_handle():new fet.ClientTlsContext().native_handle(),t.bootstrap!=null?t.bootstrap.native_handle():null,t.httpProxyOptions?t.httpProxyOptions.create_native_handle():null)}};r(gb,"AwsCredentialsProvider");Ge.AwsCredentialsProvider=gb;var get;(function(e){e[e.SigV4=0]="SigV4",e[e.SigV4Asymmetric=1]="SigV4Asymmetric"})(get=Ge.AwsSigningAlgorithm||(Ge.AwsSigningAlgorithm={}));var wet;(function(e){e[e.HttpRequestViaHeaders=0]="HttpRequestViaHeaders",e[e.HttpRequestViaQueryParams=1]="HttpRequestViaQueryParams",e[e.HttpRequestChunk=2]="HttpRequestChunk",e[e.HttpRequestEvent=3]="HttpRequestEvent"})(wet=Ge.AwsSignatureType||(Ge.AwsSignatureType={}));var _et;(function(e){e.EmptySha256="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",e.UnsignedPayload="UNSIGNED-PAYLOAD",e.StreamingAws4HmacSha256Payload="STREAMING-AWS4-HMAC-SHA256-PAYLOAD",e.StreamingAws4HmacSha256Events="STREAMING-AWS4-HMAC-SHA256-EVENTS"})(_et=Ge.AwsSignedBodyValue||(Ge.AwsSignedBodyValue={}));var yet;(function(e){e[e.None=0]="None",e[e.XAmzContentSha256=1]="XAmzContentSha256"})(yet=Ge.AwsSignedBodyHeaderType||(Ge.AwsSignedBodyHeaderType={}));function vet(e,t){return met(this,void 0,void 0,function*(){return new Promise((i,s)=>{try{ZL.default.aws_sign_request(e,t,n=>{n==0?i(e):s(new het.CrtError(n))})}catch(n){s(n)}})})}r(vet,"aws_sign_request");Ge.aws_sign_request=vet;function Eet(e,t,i,s,n,o){return ZL.default.aws_verify_sigv4a_signing(e,t,i,s,n,o)}r(Eet,"aws_verify_sigv4a_signing");Ge.aws_verify_sigv4a_signing=Eet});var U6=h(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.populate_username_string_with_custom_authorizer=nn.is_string_and_not_empty=nn.add_to_username_parameter=void 0;function tz(e,t,i){let s=e;return s.indexOf("?")!=-1?s+="&":s+="?",t.indexOf(i)!=-1?s+t:s+i+t}r(tz,"add_to_username_parameter");nn.add_to_username_parameter=tz;function Zm(e){return e!=null&&typeof e=="string"&&e!=""}r(Zm,"is_string_and_not_empty");nn.is_string_and_not_empty=Zm;function Aet(e,t,i,s,n){let o="";return e&&(o+=e),Zm(t)==!1?Zm(n)&&n&&(o+=n):o+=t,Zm(i)&&i&&(o=tz(o,i,"x-amz-customauthorizer-name=")),Zm(s)&&s&&(o=tz(o,s,"x-amz-customauthorizer-signature=")),o}r(Aet,"populate_username_string_with_custom_authorizer");nn.populate_username_string_with_custom_authorizer=Aet});var j6=h(ni=>{"use strict";var bet=ni&&ni.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),Cet=ni&&ni.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),sz=ni&&ni.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&bet(t,e,i);return Cet(t,e),t},Tet=ni&&ni.__awaiter||function(e,t,i,s){function n(o){return o instanceof i?o:new i(function(c){c(o)})}return r(n,"adopt"),new(i||(i=Promise))(function(o,c){function d(m){try{u(s.next(m))}catch(_){c(_)}}r(d,"fulfilled");function l(m){try{u(s.throw(m))}catch(_){c(_)}}r(l,"rejected");function u(m){m.done?o(m.value):n(m.value).then(d,l)}r(u,"step"),u((s=s.apply(e,t||[])).next())})};Object.defineProperty(ni,"__esModule",{value:!0});ni.AwsIotMqttConnectionConfigBuilder=void 0;var O6=cb(),$n=sz(gu()),ep=gu(),xet=sz(GL()),Pet=_u(),tp=ez(),iz=sz(U6()),si=class{constructor(t){this.tls_ctx_options=t,this.params={client_id:"",host_name:"",socket_options:new $n.SocketOptions,port:8883,use_websocket:!1,clean_session:!1,keep_alive:void 0,will:void 0,username:"",password:void 0,tls_ctx:void 0,reconnect_min_sec:O6.DEFAULT_RECONNECT_MIN_SEC,reconnect_max_sec:O6.DEFAULT_RECONNECT_MAX_SEC},this.is_using_custom_authorizer=!1}static new_mtls_builder_from_path(t,i){let s=new si(ep.TlsContextOptions.create_client_with_mtls_from_path(t,i));return s.params.port=8883,$n.is_alpn_available()&&s.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),s}static new_mtls_builder(t,i){let s=new si(ep.TlsContextOptions.create_client_with_mtls(t,i));return s.params.port=8883,$n.is_alpn_available()&&s.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),s}static new_mtls_pkcs11_builder(t){let i=new si(ep.TlsContextOptions.create_client_with_mtls_pkcs11(t));return i.params.port=8883,$n.is_alpn_available()&&i.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),i}static new_mtls_windows_cert_store_path_builder(t){let i=new si(ep.TlsContextOptions.create_client_with_mtls_windows_cert_store_path(t));return i.params.port=8883,$n.is_alpn_available()&&i.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),i}static new_default_builder(){let t=new $n.TlsContextOptions;return new si(t)}static new_websocket_builder(...t){return this.new_with_websockets(...t)}static configure_websocket_handshake(t,i){return i&&(t.params.websocket_handshake_transform=(s,n)=>Tet(this,void 0,void 0,function*(){var o,c,d;let l=(c=(o=i.create_signing_config)===null||o===void 0?void 0:o.call(i))!==null&&c!==void 0?c:{algorithm:tp.AwsSigningAlgorithm.SigV4,signature_type:tp.AwsSignatureType.HttpRequestViaQueryParams,provider:i.credentials_provider,region:i.region,service:(d=i.service)!==null&&d!==void 0?d:"iotdevicegateway",signed_body_value:tp.AwsSignedBodyValue.EmptySha256,omit_session_token:!0};try{yield(0,tp.aws_sign_request)(s,l),n()}catch(u){u instanceof Pet.CrtError?n(u.error_code):n(3)}})),t}static new_with_websockets(t){let i=t?.tls_ctx_options;i||(i=new ep.TlsContextOptions,i.alpn_list=[]);let s=new si(i);return s.params.use_websocket=!0,s.params.proxy_options=t?.proxy_options,s.tls_ctx_options&&(s.params.port=443),this.configure_websocket_handshake(s,t),s}with_certificate_authority_from_path(t,i){return this.tls_ctx_options.override_default_trust_store_from_path(t,i),this}with_certificate_authority(t){return this.tls_ctx_options.override_default_trust_store(t),this}with_endpoint(t){return this.params.host_name=t,this}with_port(t){return this.params.port=t,this}with_client_id(t){return this.params.client_id=t,this}with_clean_session(t){return this.params.clean_session=t,this}with_keep_alive_seconds(t){return this.params.keep_alive=t,this}with_timeout_ms(t){return this.with_ping_timeout_ms(t),this}with_ping_timeout_ms(t){return this.params.ping_timeout=t,this}with_protocol_operation_timeout_ms(t){return this.params.protocol_operation_timeout=t,this}with_will(t){return this.params.will=t,this}with_socket_options(t){return this.params.socket_options=t,this}with_credentials(t,i,s,n){return si.configure_websocket_handshake(this,{credentials_provider:tp.AwsCredentialsProvider.newStatic(i,s,n),region:t,service:"iotdevicegateway"})}with_http_proxy_options(t){return this.params.proxy_options=t,this}with_custom_authorizer(t,i,s,n){this.is_using_custom_authorizer=!0;let o=iz.populate_username_string_with_custom_authorizer("",t,i,s,this.params.username);return this.params.username=o,this.params.password=n,this.tls_ctx_options.alpn_list=["mqtt"],this.params.port=443,this}with_username(t){return this.params.username=t,this}with_password(t){return this.params.password=t,this}with_reconnect_max_sec(t){return this.params.reconnect_max_sec=t,this}with_reconnect_min_sec(t){return this.params.reconnect_min_sec=t,this}build(){var t,i,s;if(this.params.client_id===void 0||this.params.host_name===void 0)throw"client_id and endpoint are required";return this.is_using_custom_authorizer==!1&&iz.is_string_and_not_empty(this.params.username)&&(((t=this.params.username)===null||t===void 0?void 0:t.indexOf("x-amz-customauthorizer-name="))!=-1||((i=this.params.username)===null||i===void 0?void 0:i.indexOf("x-amz-customauthorizer-signature="))!=-1)&&(this.is_using_custom_authorizer=!0),this.is_using_custom_authorizer==!0&&(this.params.port!=443&&console.log("Warning: Attempting to connect to authorizer with unsupported port. Port is not 443..."),this.tls_ctx_options.alpn_list!=["mqtt"]&&(this.tls_ctx_options.alpn_list=["mqtt"])),this.params.tls_ctx===void 0&&(this.params.tls_ctx=new $n.ClientTlsContext(this.tls_ctx_options)),iz.is_string_and_not_empty(this.params.username)==!1?this.params.username="?SDK=NodeJSv2&Version=":((s=this.params.username)===null||s===void 0?void 0:s.indexOf("?"))!=-1?this.params.username+="&SDK=NodeJSv2&Version=":this.params.username+="?SDK=NodeJSv2&Version=",this.params.username+=xet.crt_version(),this.params}};r(si,"AwsIotMqttConnectionConfigBuilder");ni.AwsIotMqttConnectionConfigBuilder=si});var V6=h(rn=>{"use strict";var Iet=rn&&rn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rn,"__esModule",{value:!0});rn.crc32c=rn.crc32=void 0;var G6=Iet(ms());function Ret(e,t){return G6.default.checksums_crc32(e,t)}r(Ret,"crc32");rn.crc32=Ret;function qet(e,t){return G6.default.checksums_crc32c(e,t)}r(qet,"crc32c");rn.crc32c=qet});var B6=h(qe=>{"use strict";var Let=qe&&qe.__createBinding||(Object.create?function(e,t,i,s){s===void 0&&(s=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,s,n)}:function(e,t,i,s){s===void 0&&(s=i),e[s]=t[i]}),zet=qe&&qe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Gi=qe&&qe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&Let(t,e,i);return zet(t,e),t};Object.defineProperty(qe,"__esModule",{value:!0});qe.CrtError=qe.checksums=qe.resource_safety=qe.platform=qe.iot=qe.auth=qe.crypto=qe.http=qe.mqtt=qe.io=qe.crt=void 0;var Fet=Gi(GL());qe.platform=Fet;var Net=Gi(_6());qe.resource_safety=Net;var Det=Gi(T6());qe.crt=Det;var ket=Gi(gu());qe.io=ket;var Jet=Gi(k6());qe.mqtt=Jet;var Met=Gi(XL());qe.http=Met;var Uet=Gi(M6());qe.crypto=Uet;var Oet=Gi(ez());qe.auth=Oet;var jet=Gi(j6());qe.iot=jet;var Get=Gi(V6());qe.checksums=Get;var Vet=_u();Object.defineProperty(qe,"CrtError",{enumerable:!0,get:function(){return Vet.CrtError}})});var $6=h((wb,nz)=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.isCrtAvailable=void 0;var Bet=r(()=>{try{return typeof $=="function"&&typeof nz<"u"&&nz.require&&B6()?["md/crt-avail"]:null}catch{return null}},"isCrtAvailable");wb.isCrtAvailable=Bet});var _b=h(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.defaultUserAgent=Vi.UA_APP_ID_INI_NAME=Vi.UA_APP_ID_ENV_NAME=void 0;var $et=jn(),H6=$("os"),rz=$("process"),Het=$6();Vi.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Vi.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Wet=r(({serviceId:e,clientVersion:t})=>{let i=[["aws-sdk-js",t],[`os/${(0,H6.platform)()}`,(0,H6.release)()],["lang/js"],["md/nodejs",`${rz.versions.node}`]],s=(0,Het.isCrtAvailable)();s&&i.push(s),e&&i.push([`api/${e}`,t]),rz.env.AWS_EXECUTION_ENV&&i.push([`exec-env/${rz.env.AWS_EXECUTION_ENV}`]);let n=(0,$et.loadConfig)({environmentVariableSelector:c=>c[Vi.UA_APP_ID_ENV_NAME],configFileSelector:c=>c[Vi.UA_APP_ID_INI_NAME],default:void 0})(),o;return async()=>{if(!o){let c=await n;o=c?[...i,[`app/${c}`]]:[...i]}return o}},"defaultUserAgent");Vi.defaultUserAgent=Wet});var yb=h(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.toUtf8=vu.fromUtf8=void 0;var W6=Wm(),Ket=r(e=>{let t=(0,W6.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8");vu.fromUtf8=Ket;var Yet=r(e=>(0,W6.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8"),"toUtf8");vu.toUtf8=Yet});var K6=h(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0});Sb.fromBase64=void 0;var Qet=Wm(),Xet=/^[A-Za-z0-9+/]*={0,2}$/,Zet=r(e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Xet.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,Qet.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},"fromBase64");Sb.fromBase64=Zet});var Y6=h(vb=>{"use strict";Object.defineProperty(vb,"__esModule",{value:!0});vb.toBase64=void 0;var ett=Wm(),ttt=r(e=>(0,ett.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64"),"toBase64");vb.toBase64=ttt});var Ab=h(Eb=>{"use strict";Object.defineProperty(Eb,"__esModule",{value:!0});var Q6=(de(),re(le));Q6.__exportStar(K6(),Eb);Q6.__exportStar(Y6(),Eb)});var X6=h((NNt,itt)=>{itt.exports={version:"1.1",partitions:[{id:"aws",regionRegex:"^(us|eu|ap|sa|ca|me|af)-\\w+-\\d+$",regions:{"af-south-1":{},"af-east-1":{},"ap-northeast-1":{},"ap-northeast-2":{},"ap-northeast-3":{},"ap-south-1":{},"ap-southeast-1":{},"ap-southeast-2":{},"ap-southeast-3":{},"ca-central-1":{},"eu-central-1":{},"eu-north-1":{},"eu-south-1":{},"eu-west-1":{},"eu-west-2":{},"eu-west-3":{},"me-south-1":{},"sa-east-1":{},"us-east-1":{},"us-east-2":{},"us-west-1":{},"us-west-2":{},"aws-global":{}},outputs:{name:"aws",dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",supportsFIPS:!0,supportsDualStack:!0}},{id:"aws-us-gov",regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"us-gov-west-1":{},"us-gov-east-1":{},"aws-us-gov-global":{}},outputs:{name:"aws-us-gov",dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",supportsFIPS:!0,supportsDualStack:!0}},{id:"aws-cn",regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"cn-north-1":{},"cn-northwest-1":{},"aws-cn-global":{}},outputs:{name:"aws-cn",dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",supportsFIPS:!0,supportsDualStack:!0}},{id:"aws-iso",regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",outputs:{name:"aws-iso",dnsSuffix:"c2s.ic.gov",supportsFIPS:!0,supportsDualStack:!1,dualStackDnsSuffix:"c2s.ic.gov"},regions:{"aws-iso-global":{}}},{id:"aws-iso-b",regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",outputs:{name:"aws-iso-b",dnsSuffix:"sc2s.sgov.gov",supportsFIPS:!0,supportsDualStack:!1,dualStackDnsSuffix:"sc2s.sgov.gov"},regions:{"aws-iso-b-global":{}}}]}});var az=h(bb=>{"use strict";Object.defineProperty(bb,"__esModule",{value:!0});bb.partition=void 0;var stt=(de(),re(le)),ntt=stt.__importDefault(X6()),{partitions:oz}=ntt.default,Z6=oz.find(e=>e.id==="aws"),rtt=r(e=>{for(let t of oz){let{regions:i,outputs:s}=t;for(let[n,o]of Object.entries(i))if(n===e)return{...s,...o}}for(let t of oz){let{regionRegex:i,outputs:s}=t;if(new RegExp(i).test(e))return{...s}}if(!Z6)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...Z6.outputs}},"partition");bb.partition=rtt});var eK=h(Cb=>{"use strict";Object.defineProperty(Cb,"__esModule",{value:!0});Cb.debugId=void 0;Cb.debugId="endpoints"});var tK=h(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0});Tb.toDebugString=void 0;function cz(e){return typeof e!="object"||e==null?e:"ref"in e?`$${cz(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(cz).join(", ")})`:JSON.stringify(e,null,2)}r(cz,"toDebugString");Tb.toDebugString=cz});var ip=h(xb=>{"use strict";Object.defineProperty(xb,"__esModule",{value:!0});var iK=(de(),re(le));iK.__exportStar(eK(),xb);iK.__exportStar(tK(),xb)});var sK=h(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});Ib.EndpointError=void 0;var Pb=class extends Error{constructor(t){super(t),this.name="EndpointError"}};r(Pb,"EndpointError");Ib.EndpointError=Pb});var rK=h(nK=>{"use strict";Object.defineProperty(nK,"__esModule",{value:!0})});var aK=h(oK=>{"use strict";Object.defineProperty(oK,"__esModule",{value:!0})});var lK=h(cK=>{"use strict";Object.defineProperty(cK,"__esModule",{value:!0})});var uK=h(dK=>{"use strict";Object.defineProperty(dK,"__esModule",{value:!0})});var pK=h(mK=>{"use strict";Object.defineProperty(mK,"__esModule",{value:!0})});var ri=h(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var Eu=(de(),re(le));Eu.__exportStar(sK(),on);Eu.__exportStar(rK(),on);Eu.__exportStar(aK(),on);Eu.__exportStar(lK(),on);Eu.__exportStar(uK(),on);Eu.__exportStar(pK(),on)});var lz=h(Rb=>{"use strict";Object.defineProperty(Rb,"__esModule",{value:!0});Rb.isIpAddress=void 0;var ott=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),att=r(e=>ott.test(e)||e.startsWith("[")&&e.endsWith("]"),"isIpAddress");Rb.isIpAddress=att});var dz=h(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.isValidHostLabel=void 0;var ctt=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),ltt=r((e,t=!1)=>{if(!t)return ctt.test(e);let i=e.split(".");for(let s of i)if(!(0,sp.isValidHostLabel)(s))return!1;return!0},"isValidHostLabel");sp.isValidHostLabel=ltt});var hK=h(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.isVirtualHostableS3Bucket=void 0;var dtt=lz(),utt=dz(),mtt=r((e,t=!1)=>{if(t){for(let i of e.split("."))if(!(0,np.isVirtualHostableS3Bucket)(i))return!1;return!0}return!(!(0,utt.isValidHostLabel)(e)||e.length<3||e.length>63||e!==e.toLowerCase()||(0,dtt.isIpAddress)(e))},"isVirtualHostableS3Bucket");np.isVirtualHostableS3Bucket=mtt});var fK=h(qb=>{"use strict";Object.defineProperty(qb,"__esModule",{value:!0});qb.parseArn=void 0;var ptt=r(e=>{let t=e.split(":");if(t.length<6)return null;let[i,s,n,o,c,...d]=t;return i!=="arn"||s===""||n===""||d[0]===""?null:{partition:s,service:n,region:o,accountId:c,resourceId:d[0].includes("/")?d[0].split("/"):d}},"parseArn");qb.parseArn=ptt});var gK=h(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});var uz=(de(),re(le));uz.__exportStar(hK(),rp);uz.__exportStar(fK(),rp);uz.__exportStar(az(),rp)});var wK=h(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.booleanEquals=void 0;var htt=r((e,t)=>e===t,"booleanEquals");Lb.booleanEquals=htt});var yK=h(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.getAttrPathList=void 0;var _K=ri(),ftt=r(e=>{let t=e.split("."),i=[];for(let s of t){let n=s.indexOf("[");if(n!==-1){if(s.indexOf("]")!==s.length-1)throw new _K.EndpointError(`Path: '${e}' does not end with ']'`);let o=s.slice(n+1,-1);if(Number.isNaN(parseInt(o)))throw new _K.EndpointError(`Invalid array index: '${o}' in path: '${e}'`);n!==0&&i.push(s.slice(0,n)),i.push(o)}else i.push(s)}return i},"getAttrPathList");zb.getAttrPathList=ftt});var SK=h(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0});Fb.getAttr=void 0;var gtt=ri(),wtt=yK(),_tt=r((e,t)=>(0,wtt.getAttrPathList)(t).reduce((i,s)=>{if(typeof i!="object")throw new gtt.EndpointError(`Index '${s}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(i)?i[parseInt(s)]:i[s]},e),"getAttr");Fb.getAttr=_tt});var vK=h(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.isSet=void 0;var ytt=r(e=>e!=null,"isSet");Nb.isSet=ytt});var EK=h(Db=>{"use strict";Object.defineProperty(Db,"__esModule",{value:!0});Db.not=void 0;var Stt=r(e=>!e,"not");Db.not=Stt});var bK=h(AK=>{"use strict";Object.defineProperty(AK,"__esModule",{value:!0})});var TK=h(CK=>{"use strict";Object.defineProperty(CK,"__esModule",{value:!0})});var PK=h(xK=>{"use strict";Object.defineProperty(xK,"__esModule",{value:!0})});var RK=h(IK=>{"use strict";Object.defineProperty(IK,"__esModule",{value:!0})});var LK=h(qK=>{"use strict";Object.defineProperty(qK,"__esModule",{value:!0})});var FK=h(zK=>{"use strict";Object.defineProperty(zK,"__esModule",{value:!0})});var NK=h(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.EndpointURLScheme=void 0;var vtt;(function(e){e.HTTP="http",e.HTTPS="https"})(vtt=op.EndpointURLScheme||(op.EndpointURLScheme={}))});var kK=h(DK=>{"use strict";Object.defineProperty(DK,"__esModule",{value:!0})});var MK=h(JK=>{"use strict";Object.defineProperty(JK,"__esModule",{value:!0})});var OK=h(UK=>{"use strict";Object.defineProperty(UK,"__esModule",{value:!0})});var GK=h(jK=>{"use strict";Object.defineProperty(jK,"__esModule",{value:!0})});var BK=h(VK=>{"use strict";Object.defineProperty(VK,"__esModule",{value:!0})});var HK=h($K=>{"use strict";Object.defineProperty($K,"__esModule",{value:!0})});var KK=h(WK=>{"use strict";Object.defineProperty(WK,"__esModule",{value:!0})});var QK=h(YK=>{"use strict";Object.defineProperty(YK,"__esModule",{value:!0})});var ZK=h(XK=>{"use strict";Object.defineProperty(XK,"__esModule",{value:!0})});var t5=h(e5=>{"use strict";Object.defineProperty(e5,"__esModule",{value:!0})});var s5=h(i5=>{"use strict";Object.defineProperty(i5,"__esModule",{value:!0})});var r5=h(n5=>{"use strict";Object.defineProperty(n5,"__esModule",{value:!0})});var a5=h(o5=>{"use strict";Object.defineProperty(o5,"__esModule",{value:!0})});var l5=h(c5=>{"use strict";Object.defineProperty(c5,"__esModule",{value:!0})});var u5=h(d5=>{"use strict";Object.defineProperty(d5,"__esModule",{value:!0})});var m5=h(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});var Ye=(de(),re(le));Ye.__exportStar(bK(),Ve);Ye.__exportStar(TK(),Ve);Ye.__exportStar(PK(),Ve);Ye.__exportStar(RK(),Ve);Ye.__exportStar(LK(),Ve);Ye.__exportStar(FK(),Ve);Ye.__exportStar(NK(),Ve);Ye.__exportStar(kK(),Ve);Ye.__exportStar(MK(),Ve);Ye.__exportStar(OK(),Ve);Ye.__exportStar(GK(),Ve);Ye.__exportStar(BK(),Ve);Ye.__exportStar(HK(),Ve);Ye.__exportStar(KK(),Ve);Ye.__exportStar(QK(),Ve);Ye.__exportStar(ZK(),Ve);Ye.__exportStar(t5(),Ve);Ye.__exportStar(s5(),Ve);Ye.__exportStar(r5(),Ve);Ye.__exportStar(a5(),Ve);Ye.__exportStar(l5(),Ve);Ye.__exportStar(u5(),Ve)});var p5=h(kb=>{"use strict";Object.defineProperty(kb,"__esModule",{value:!0});kb.parseURL=void 0;var pz=m5(),Ett=lz(),mz={[pz.EndpointURLScheme.HTTP]:80,[pz.EndpointURLScheme.HTTPS]:443},Att=r(e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:y,port:v,protocol:D="",path:k="",query:j={}}=e,J=new URL(`${D}//${y}${v?`:${v}`:""}${k}`);return J.search=Object.entries(j).map(([O,W])=>`${O}=${W}`).join("&"),J}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let i=t.href,{host:s,hostname:n,pathname:o,protocol:c,search:d}=t;if(d)return null;let l=c.slice(0,-1);if(!Object.values(pz.EndpointURLScheme).includes(l))return null;let u=(0,Ett.isIpAddress)(n),m=i.includes(`${s}:${mz[l]}`)||typeof e=="string"&&e.includes(`${s}:${mz[l]}`),_=`${s}${m?`:${mz[l]}`:""}`;return{scheme:l,authority:_,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:u}},"parseURL");kb.parseURL=Att});var h5=h(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});Jb.stringEquals=void 0;var btt=r((e,t)=>e===t,"stringEquals");Jb.stringEquals=btt});var f5=h(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.substring=void 0;var Ctt=r((e,t,i,s)=>t>=i||e.length<i?null:s?e.substring(e.length-i,e.length-t):e.substring(t,i),"substring");Mb.substring=Ctt});var g5=h(Ub=>{"use strict";Object.defineProperty(Ub,"__esModule",{value:!0});Ub.uriEncode=void 0;var Ttt=r(e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode");Ub.uriEncode=Ttt});var hz=h(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.aws=void 0;var Bi=(de(),re(le));Ut.aws=Bi.__importStar(gK());Bi.__exportStar(wK(),Ut);Bi.__exportStar(SK(),Ut);Bi.__exportStar(vK(),Ut);Bi.__exportStar(dz(),Ut);Bi.__exportStar(EK(),Ut);Bi.__exportStar(p5(),Ut);Bi.__exportStar(h5(),Ut);Bi.__exportStar(f5(),Ut);Bi.__exportStar(g5(),Ut)});var fz=h(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});Ob.evaluateTemplate=void 0;var xtt=hz(),Ptt=r((e,t)=>{let i=[],s={...t.endpointParams,...t.referenceRecord},n=0;for(;n<e.length;){let o=e.indexOf("{",n);if(o===-1){i.push(e.slice(n));break}i.push(e.slice(n,o));let c=e.indexOf("}",o);if(c===-1){i.push(e.slice(o));break}e[o+1]==="{"&&e[c+1]==="}"&&(i.push(e.slice(o+1,c)),n=c+2);let d=e.substring(o+1,c);if(d.includes("#")){let[l,u]=d.split("#");i.push((0,xtt.getAttr)(s[l],u))}else i.push(s[d]);n=c+1}return i.join("")},"evaluateTemplate");Ob.evaluateTemplate=Ptt});var w5=h(jb=>{"use strict";Object.defineProperty(jb,"__esModule",{value:!0});jb.getReferenceValue=void 0;var Itt=r(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e],"getReferenceValue");jb.getReferenceValue=Itt});var ap=h(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});Gb.evaluateExpression=void 0;var Rtt=ri(),qtt=gz(),Ltt=fz(),ztt=w5(),Ftt=r((e,t,i)=>{if(typeof e=="string")return(0,Ltt.evaluateTemplate)(e,i);if(e.fn)return(0,qtt.callFunction)(e,i);if(e.ref)return(0,ztt.getReferenceValue)(e,i);throw new Rtt.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)},"evaluateExpression");Gb.evaluateExpression=Ftt});var gz=h(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});Vb.callFunction=void 0;var Ntt=(de(),re(le)),Dtt=Ntt.__importStar(hz()),ktt=ap(),Jtt=r(({fn:e,argv:t},i)=>{let s=t.map(n=>["boolean","number"].includes(typeof n)?n:(0,ktt.evaluateExpression)(n,"arg",i));return e.split(".").reduce((n,o)=>n[o],Dtt)(...s)},"callFunction");Vb.callFunction=Jtt});var _5=h(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0});Bb.evaluateCondition=void 0;var wz=ip(),Mtt=ri(),Utt=gz(),Ott=r(({assign:e,...t},i)=>{var s,n;if(e&&e in i.referenceRecord)throw new Mtt.EndpointError(`'${e}' is already defined in Reference Record.`);let o=(0,Utt.callFunction)(t,i);return(n=(s=i.logger)===null||s===void 0?void 0:s.debug)===null||n===void 0||n.call(s,wz.debugId,`evaluateCondition: ${(0,wz.toDebugString)(t)} = ${(0,wz.toDebugString)(o)}`),{result:o===""?!0:!!o,...e!=null&&{toAssign:{name:e,value:o}}}},"evaluateCondition");Bb.evaluateCondition=Ott});var Hb=h($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});$b.evaluateConditions=void 0;var y5=ip(),jtt=_5(),Gtt=r((e=[],t)=>{var i,s;let n={};for(let o of e){let{result:c,toAssign:d}=(0,jtt.evaluateCondition)(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!c)return{result:c};d&&(n[d.name]=d.value,(s=(i=t.logger)===null||i===void 0?void 0:i.debug)===null||s===void 0||s.call(i,y5.debugId,`assign: ${d.name} := ${(0,y5.toDebugString)(d.value)}`))}return{result:!0,referenceRecord:n}},"evaluateConditions");$b.evaluateConditions=Gtt});var S5=h(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.getEndpointHeaders=void 0;var Vtt=ri(),Btt=ap(),$tt=r((e,t)=>Object.entries(e).reduce((i,[s,n])=>({...i,[s]:n.map(o=>{let c=(0,Btt.evaluateExpression)(o,"Header value entry",t);if(typeof c!="string")throw new Vtt.EndpointError(`Header '${s}' value '${c}' is not a string`);return c})}),{}),"getEndpointHeaders");Wb.getEndpointHeaders=$tt});var E5=h(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.getEndpointProperty=void 0;var v5=ri(),Htt=fz(),Wtt=_z(),Ktt=r((e,t)=>{if(Array.isArray(e))return e.map(i=>(0,cp.getEndpointProperty)(i,t));switch(typeof e){case"string":return(0,Htt.evaluateTemplate)(e,t);case"object":if(e===null)throw new v5.EndpointError(`Unexpected endpoint property: ${e}`);return(0,Wtt.getEndpointProperties)(e,t);case"boolean":return e;default:throw new v5.EndpointError(`Unexpected endpoint property type: ${typeof e}`)}},"getEndpointProperty");cp.getEndpointProperty=Ktt});var _z=h(Kb=>{"use strict";Object.defineProperty(Kb,"__esModule",{value:!0});Kb.getEndpointProperties=void 0;var Ytt=E5(),Qtt=r((e,t)=>Object.entries(e).reduce((i,[s,n])=>({...i,[s]:(0,Ytt.getEndpointProperty)(n,t)}),{}),"getEndpointProperties");Kb.getEndpointProperties=Qtt});var A5=h(Yb=>{"use strict";Object.defineProperty(Yb,"__esModule",{value:!0});Yb.getEndpointUrl=void 0;var Xtt=ri(),Ztt=ap(),eit=r((e,t)=>{let i=(0,Ztt.evaluateExpression)(e,"Endpoint URL",t);if(typeof i=="string")try{return new URL(i)}catch(s){throw console.error(`Failed to construct URL with ${i}`,s),s}throw new Xtt.EndpointError(`Endpoint URL must be a string, got ${typeof i}`)},"getEndpointUrl");Yb.getEndpointUrl=eit});var C5=h(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});Qb.evaluateEndpointRule=void 0;var b5=ip(),tit=Hb(),iit=S5(),sit=_z(),nit=A5(),rit=r((e,t)=>{var i,s;let{conditions:n,endpoint:o}=e,{result:c,referenceRecord:d}=(0,tit.evaluateConditions)(n,t);if(!c)return;let l={...t,referenceRecord:{...t.referenceRecord,...d}},{url:u,properties:m,headers:_}=o;return(s=(i=t.logger)===null||i===void 0?void 0:i.debug)===null||s===void 0||s.call(i,b5.debugId,`Resolving endpoint from template: ${(0,b5.toDebugString)(o)}`),{..._!=null&&{headers:(0,iit.getEndpointHeaders)(_,l)},...m!=null&&{properties:(0,sit.getEndpointProperties)(m,l)},url:(0,nit.getEndpointUrl)(u,l)}},"evaluateEndpointRule");Qb.evaluateEndpointRule=rit});var T5=h(Xb=>{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0});Xb.evaluateErrorRule=void 0;var oit=ri(),ait=Hb(),cit=ap(),lit=r((e,t)=>{let{conditions:i,error:s}=e,{result:n,referenceRecord:o}=(0,ait.evaluateConditions)(i,t);if(n)throw new oit.EndpointError((0,cit.evaluateExpression)(s,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},"evaluateErrorRule");Xb.evaluateErrorRule=lit});var x5=h(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0});Zb.evaluateTreeRule=void 0;var dit=Hb(),uit=yz(),mit=r((e,t)=>{let{conditions:i,rules:s}=e,{result:n,referenceRecord:o}=(0,dit.evaluateConditions)(i,t);if(n)return(0,uit.evaluateRules)(s,{...t,referenceRecord:{...t.referenceRecord,...o}})},"evaluateTreeRule");Zb.evaluateTreeRule=mit});var yz=h(eC=>{"use strict";Object.defineProperty(eC,"__esModule",{value:!0});eC.evaluateRules=void 0;var P5=ri(),pit=C5(),hit=T5(),fit=x5(),git=r((e,t)=>{for(let i of e)if(i.type==="endpoint"){let s=(0,pit.evaluateEndpointRule)(i,t);if(s)return s}else if(i.type==="error")(0,hit.evaluateErrorRule)(i,t);else if(i.type==="tree"){let s=(0,fit.evaluateTreeRule)(i,t);if(s)return s}else throw new P5.EndpointError(`Unknown endpoint rule: ${i}`);throw new P5.EndpointError("Rules evaluation failed")},"evaluateRules");eC.evaluateRules=git});var I5=h(Sz=>{"use strict";Object.defineProperty(Sz,"__esModule",{value:!0});var wit=(de(),re(le));wit.__exportStar(yz(),Sz)});var R5=h(iC=>{"use strict";Object.defineProperty(iC,"__esModule",{value:!0});iC.resolveEndpoint=void 0;var tC=ip(),_it=ri(),yit=I5(),Sit=r((e,t)=>{var i,s,n,o,c,d;let{endpointParams:l,logger:u}=t,{parameters:m,rules:_}=e;(s=(i=t.logger)===null||i===void 0?void 0:i.debug)===null||s===void 0||s.call(i,tC.debugId,`Initial EndpointParams: ${(0,tC.toDebugString)(l)}`);let y=Object.entries(m).filter(([,k])=>k.default!=null).map(([k,j])=>[k,j.default]);if(y.length>0)for(let[k,j]of y)l[k]=(n=l[k])!==null&&n!==void 0?n:j;let v=Object.entries(m).filter(([,k])=>k.required).map(([k])=>k);for(let k of v)if(l[k]==null)throw new _it.EndpointError(`Missing required parameter: '${k}'`);let D=(0,yit.evaluateRules)(_,{endpointParams:l,logger:u,referenceRecord:{}});if(!((o=t.endpointParams)===null||o===void 0)&&o.Endpoint)try{let k=new URL(t.endpointParams.Endpoint),{protocol:j,port:J}=k;D.url.protocol=j,D.url.port=J}catch{}return(d=(c=t.logger)===null||c===void 0?void 0:c.debug)===null||d===void 0||d.call(c,tC.debugId,`Resolved endpoint: ${(0,tC.toDebugString)(D)}`),D},"resolveEndpoint");iC.resolveEndpoint=Sit});var sC=h(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});var vz=(de(),re(le));vz.__exportStar(az(),lp);vz.__exportStar(R5(),lp);vz.__exportStar(ri(),lp)});var q5=h(nC=>{"use strict";Object.defineProperty(nC,"__esModule",{value:!0});nC.ruleSet=void 0;nC.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:!1,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:!0,default:!1,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:!0,default:!1,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:!1,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}});var L5=h(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});rC.defaultEndpointResolver=void 0;var vit=sC(),Eit=q5(),Ait=r((e,t={})=>(0,vit.resolveEndpoint)(Eit.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");rC.defaultEndpointResolver=Ait});var F5=h(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});oC.getRuntimeConfig=void 0;var bit=mr(),z5=Ab(),Cit=L5(),Tit=r(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??z5.fromBase64,base64Encoder:e?.base64Encoder??z5.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Cit.defaultEndpointResolver,logger:e?.logger??{},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??bit.parseUrl}),"getRuntimeConfig");oC.getRuntimeConfig=Tit});var N5=h(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.IMDS_REGION_PATH=zt.DEFAULTS_MODE_OPTIONS=zt.ENV_IMDS_DISABLED=zt.AWS_DEFAULT_REGION_ENV=zt.AWS_REGION_ENV=zt.AWS_EXECUTION_ENV=void 0;zt.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";zt.AWS_REGION_ENV="AWS_REGION";zt.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";zt.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";zt.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];zt.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var D5=h(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0});aC.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var xit="AWS_DEFAULTS_MODE",Pit="defaults_mode";aC.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[xit],configFileSelector:e=>e[Pit],default:"legacy"}});var M5=h(cC=>{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});cC.resolveDefaultsModeConfig=void 0;var Iit=Us(),k5=sA(),J5=jn(),Rit=We(),an=N5(),qit=D5(),Lit=r(({region:e=(0,J5.loadConfig)(Iit.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,J5.loadConfig)(qit.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,Rit.memoize)(async()=>{let i=typeof t=="function"?await t():t;switch(i?.toLowerCase()){case"auto":return zit(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(i?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${an.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${i}`)}}),"resolveDefaultsModeConfig");cC.resolveDefaultsModeConfig=Lit;var zit=r(async e=>{if(e){let t=typeof e=="function"?await e():e,i=await Fit();return i?t===i?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),Fit=r(async()=>{var e;if(process.env[an.AWS_EXECUTION_ENV]&&(process.env[an.AWS_REGION_ENV]||process.env[an.AWS_DEFAULT_REGION_ENV]))return(e=process.env[an.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[an.AWS_DEFAULT_REGION_ENV];if(!process.env[an.ENV_IMDS_DISABLED])try{let t=await(0,k5.getInstanceMetadataEndpoint)();return(await(0,k5.httpRequest)({...t,path:an.IMDS_REGION_PATH})).toString()}catch{}},"inferPhysicalRegion")});var lC=h(Ez=>{"use strict";Object.defineProperty(Ez,"__esModule",{value:!0});var Nit=(de(),re(le));Nit.__exportStar(M5(),Ez)});var j5=h(uC=>{"use strict";Object.defineProperty(uC,"__esModule",{value:!0});uC.getRuntimeConfig=void 0;var Dit=(de(),re(le)),kit=Dit.__importDefault(e6()),dC=Us(),Jit=PA(),Az=Nn(),dp=jn(),U5=jA(),Mit=VA(),Uit=_b(),O5=yb(),Oit=F5(),jit=A(),Git=lC(),Vit=A(),Bit=r(e=>{(0,Vit.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Git.resolveDefaultsModeConfig)(e),i=r(()=>t().then(jit.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,Oit.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Mit.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Uit.defaultUserAgent)({serviceId:s.serviceId,clientVersion:kit.default.version}),maxAttempts:e?.maxAttempts??(0,dp.loadConfig)(Az.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,dp.loadConfig)(dC.NODE_REGION_CONFIG_OPTIONS,dC.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new U5.NodeHttpHandler(i),retryMode:e?.retryMode??(0,dp.loadConfig)({...Az.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||Az.DEFAULT_RETRY_MODE}),sha256:e?.sha256??Jit.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??U5.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,dp.loadConfig)(dC.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,dp.loadConfig)(dC.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??O5.fromUtf8,utf8Encoder:e?.utf8Encoder??O5.toUtf8}},"getRuntimeConfig");uC.getRuntimeConfig=Bit});var up=h(pC=>{"use strict";Object.defineProperty(pC,"__esModule",{value:!0});pC.SSOClient=void 0;var $it=Us(),Hit=yv(),Wit=b(),G5=Sv(),Kit=vv(),Yit=Ev(),V5=Nn(),B5=uE(),Qit=A(),Xit=Z8(),Zit=j5(),mC=class extends Qit.Client{constructor(t){let i=(0,Zit.getRuntimeConfig)(t),s=(0,Xit.resolveClientEndpointParameters)(i),n=(0,$it.resolveRegionConfig)(s),o=(0,Wit.resolveEndpointConfig)(n),c=(0,V5.resolveRetryConfig)(o),d=(0,G5.resolveHostHeaderConfig)(c),l=(0,B5.resolveUserAgentConfig)(d);super(l),this.config=l,this.middlewareStack.use((0,V5.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Hit.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,G5.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Kit.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Yit.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,B5.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};r(mC,"SSOClient");pC.SSOClient=mC});var gC=h(fC=>{"use strict";Object.defineProperty(fC,"__esModule",{value:!0});fC.SSO=void 0;var est=LL(),tst=vA(),ist=AA(),sst=zL(),nst=up(),hC=class extends nst.SSOClient{getRoleCredentials(t,i,s){let n=new est.GetRoleCredentialsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAccountRoles(t,i,s){let n=new tst.ListAccountRolesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAccounts(t,i,s){let n=new ist.ListAccountsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}logout(t,i,s){let n=new sst.LogoutCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(hC,"SSO");fC.SSO=hC});var $5=h(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});var wC=(de(),re(le));wC.__exportStar(LL(),Au);wC.__exportStar(vA(),Au);wC.__exportStar(AA(),Au);wC.__exportStar(zL(),Au)});var H5=h(bz=>{"use strict";Object.defineProperty(bz,"__esModule",{value:!0});var rst=(de(),re(le));rst.__exportStar(Gn(),bz)});var K5=h(W5=>{"use strict";Object.defineProperty(W5,"__esModule",{value:!0})});var Y5=h(_C=>{"use strict";Object.defineProperty(_C,"__esModule",{value:!0});_C.paginateListAccountRoles=void 0;var ost=vA(),ast=gC(),cst=up(),lst=r(async(e,t,...i)=>await e.send(new ost.ListAccountRolesCommand(t),...i),"makePagedClientRequest"),dst=r(async(e,t,...i)=>await e.listAccountRoles(t,...i),"makePagedRequest");async function*ust(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ast.SSO)o=await dst(e.client,t,...i);else if(e.client instanceof cst.SSOClient)o=await lst(e.client,t,...i);else throw new Error("Invalid client, expected SSO | SSOClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(ust,"paginateListAccountRoles");_C.paginateListAccountRoles=ust});var Q5=h(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.paginateListAccounts=void 0;var mst=AA(),pst=gC(),hst=up(),fst=r(async(e,t,...i)=>await e.send(new mst.ListAccountsCommand(t),...i),"makePagedClientRequest"),gst=r(async(e,t,...i)=>await e.listAccounts(t,...i),"makePagedRequest");async function*wst(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof pst.SSO)o=await gst(e.client,t,...i);else if(e.client instanceof hst.SSOClient)o=await fst(e.client,t,...i);else throw new Error("Invalid client, expected SSO | SSOClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(wst,"paginateListAccounts");yC.paginateListAccounts=wst});var X5=h(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});var Cz=(de(),re(le));Cz.__exportStar(K5(),mp);Cz.__exportStar(Y5(),mp);Cz.__exportStar(Q5(),mp)});var Z5=h(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.SSOServiceException=void 0;var pp=(de(),re(le));pp.__exportStar(gC(),ps);pp.__exportStar(up(),ps);pp.__exportStar($5(),ps);pp.__exportStar(H5(),ps);pp.__exportStar(X5(),ps);var _st=aA();Object.defineProperty(ps,"SSOServiceException",{enumerable:!0,get:function(){return _st.SSOServiceException}})});var tY=h(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0});EC.resolveSSOCredentials=void 0;var eY=Z5(),SC=We(),yst=Zs(),Sst=15*60*1e3,vC=!1,vst=r(async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:i,ssoRoleName:s,ssoClient:n})=>{let o,c="To refresh this SSO session run aws sso login with the corresponding profile.";try{o=await(0,yst.getSSOTokenFromFile)(e)}catch{throw new SC.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${c}`,vC)}if(new Date(o.expiresAt).getTime()-Date.now()<=Sst)throw new SC.CredentialsProviderError(`The SSO session associated with this profile has expired. ${c}`,vC);let{accessToken:d}=o,l=n||new eY.SSOClient({region:i}),u;try{u=await l.send(new eY.GetRoleCredentialsCommand({accountId:t,roleName:s,accessToken:d}))}catch(D){throw SC.CredentialsProviderError.from(D,vC)}let{roleCredentials:{accessKeyId:m,secretAccessKey:_,sessionToken:y,expiration:v}={}}=u;if(!m||!_||!y||!v)throw new SC.CredentialsProviderError("SSO returns an invalid temporary credential.",vC);return{accessKeyId:m,secretAccessKey:_,sessionToken:y,expiration:new Date(v)}},"resolveSSOCredentials");EC.resolveSSOCredentials=vst});var Tz=h(AC=>{"use strict";Object.defineProperty(AC,"__esModule",{value:!0});AC.validateSsoProfile=void 0;var Est=We(),Ast=r(e=>{let{sso_start_url:t,sso_account_id:i,sso_region:s,sso_role_name:n}=e;if(!t||!i||!s||!n)throw new Est.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
|
|
58
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e},"validateSsoProfile");AC.validateSsoProfile=Ast});var rY=h(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});bC.fromSSO=void 0;var iY=We(),sY=Zs(),bst=RL(),nY=tY(),Cst=Tz(),Tst=r((e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o}=e;if(!t&&!i&&!s&&!n){let c=await(0,sY.parseKnownFiles)(e),d=(0,sY.getProfileName)(e),l=c[d];if(!(0,bst.isSsoProfile)(l))throw new iY.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:m,sso_region:_,sso_role_name:y}=(0,Cst.validateSsoProfile)(l);return(0,nY.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:m,ssoRegion:_,ssoRoleName:y,ssoClient:o})}else{if(!t||!i||!s||!n)throw new iY.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,nY.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o})}},"fromSSO");bC.fromSSO=Tst});var aY=h(oY=>{"use strict";Object.defineProperty(oY,"__esModule",{value:!0})});var TC=h(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var CC=(de(),re(le));CC.__exportStar(rY(),bu);CC.__exportStar(RL(),bu);CC.__exportStar(aY(),bu);CC.__exportStar(Tz(),bu)});var lY=h(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.resolveSsoCredentials=Cu.isSsoProfile=void 0;var cY=TC(),xst=TC();Object.defineProperty(Cu,"isSsoProfile",{enumerable:!0,get:function(){return xst.isSsoProfile}});var Pst=r(e=>{let{sso_start_url:t,sso_account_id:i,sso_region:s,sso_role_name:n}=(0,cY.validateSsoProfile)(e);return(0,cY.fromSSO)({ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n})()},"resolveSsoCredentials");Cu.resolveSsoCredentials=Pst});var dY=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.resolveStaticCredentials=Tu.isStaticCredsProfile=void 0;var Ist=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,"isStaticCredsProfile");Tu.isStaticCredsProfile=Ist;var Rst=r(e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),"resolveStaticCredentials");Tu.resolveStaticCredentials=Rst});var xz=h(xC=>{"use strict";Object.defineProperty(xC,"__esModule",{value:!0});xC.fromWebToken=void 0;var qst=We(),Lst=r(e=>()=>{let{roleArn:t,roleSessionName:i,webIdentityToken:s,providerId:n,policyArns:o,policy:c,durationSeconds:d,roleAssumerWithWebIdentity:l}=e;if(!l)throw new qst.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:i??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:n,PolicyArns:o,Policy:c,DurationSeconds:d})},"fromWebToken");xC.fromWebToken=Lst});var uY=h(PC=>{"use strict";Object.defineProperty(PC,"__esModule",{value:!0});PC.fromTokenFile=void 0;var zst=We(),Fst=$("fs"),Nst=xz(),Dst="AWS_WEB_IDENTITY_TOKEN_FILE",kst="AWS_ROLE_ARN",Jst="AWS_ROLE_SESSION_NAME",Mst=r((e={})=>async()=>Ust(e),"fromTokenFile");PC.fromTokenFile=Mst;var Ust=r(e=>{var t,i,s;let n=(t=e?.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Dst],o=(i=e?.roleArn)!==null&&i!==void 0?i:process.env[kst],c=(s=e?.roleSessionName)!==null&&s!==void 0?s:process.env[Jst];if(!n||!o)throw new zst.CredentialsProviderError("Web identity configuration not specified");return(0,Nst.fromWebToken)({...e,webIdentityToken:(0,Fst.readFileSync)(n,{encoding:"ascii"}),roleArn:o,roleSessionName:c})()},"resolveTokenFile")});var Pz=h(IC=>{"use strict";Object.defineProperty(IC,"__esModule",{value:!0});var mY=(de(),re(le));mY.__exportStar(uY(),IC);mY.__exportStar(xz(),IC)});var pY=h(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.resolveWebIdentityCredentials=xu.isWebIdentityProfile=void 0;var Ost=Pz(),jst=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile");xu.isWebIdentityProfile=jst;var Gst=r(async(e,t)=>(0,Ost.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})(),"resolveWebIdentityCredentials");xu.resolveWebIdentityCredentials=Gst});var IL=h(qC=>{"use strict";Object.defineProperty(qC,"__esModule",{value:!0});qC.resolveProfileData=void 0;var Vst=We(),hY=V8(),fY=lY(),RC=dY(),gY=pY(),Bst=r(async(e,t,i,s={})=>{let n=t[e];if(Object.keys(s).length>0&&(0,RC.isStaticCredsProfile)(n))return(0,RC.resolveStaticCredentials)(n);if((0,hY.isAssumeRoleProfile)(n))return(0,hY.resolveAssumeRoleCredentials)(e,t,i,s);if((0,RC.isStaticCredsProfile)(n))return(0,RC.resolveStaticCredentials)(n);if((0,gY.isWebIdentityProfile)(n))return(0,gY.resolveWebIdentityCredentials)(n,i);if((0,fY.isSsoProfile)(n))return(0,fY.resolveSsoCredentials)(n);throw new Vst.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},"resolveProfileData");qC.resolveProfileData=Bst});var _Y=h(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});LC.fromIni=void 0;var wY=Zs(),$st=IL(),Hst=r((e={})=>async()=>{let t=await(0,wY.parseKnownFiles)(e);return(0,$st.resolveProfileData)((0,wY.getProfileName)(e),t,e)},"fromIni");LC.fromIni=Hst});var yY=h(Iz=>{"use strict";Object.defineProperty(Iz,"__esModule",{value:!0});var Wst=(de(),re(le));Wst.__exportStar(_Y(),Iz)});var SY=h(zC=>{"use strict";Object.defineProperty(zC,"__esModule",{value:!0});zC.getValidatedProcessCredentials=void 0;var Kst=r((e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let i=new Date;if(new Date(t.Expiration)<i)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}},"getValidatedProcessCredentials");zC.getValidatedProcessCredentials=Kst});var vY=h(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0});FC.resolveProcessCredentials=void 0;var Rz=We(),Yst=$("child_process"),Qst=$("util"),Xst=SY(),Zst=r(async(e,t)=>{let i=t[e];if(t[e]){let s=i.credential_process;if(s!==void 0){let n=(0,Qst.promisify)(Yst.exec);try{let{stdout:o}=await n(s),c;try{c=JSON.parse(o.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,Xst.getValidatedProcessCredentials)(e,c)}catch(o){throw new Rz.CredentialsProviderError(o.message)}}else throw new Rz.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Rz.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},"resolveProcessCredentials");FC.resolveProcessCredentials=Zst});var AY=h(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});NC.fromProcess=void 0;var EY=Zs(),ent=vY(),tnt=r((e={})=>async()=>{let t=await(0,EY.parseKnownFiles)(e);return(0,ent.resolveProcessCredentials)((0,EY.getProfileName)(e),t)},"fromProcess");NC.fromProcess=tnt});var bY=h(qz=>{"use strict";Object.defineProperty(qz,"__esModule",{value:!0});var int=(de(),re(le));int.__exportStar(AY(),qz)});var CY=h(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.remoteProvider=Hn.ENV_IMDS_DISABLED=void 0;var DC=sA(),snt=We();Hn.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var nnt=r(e=>process.env[DC.ENV_CMDS_RELATIVE_URI]||process.env[DC.ENV_CMDS_FULL_URI]?(0,DC.fromContainerMetadata)(e):process.env[Hn.ENV_IMDS_DISABLED]?async()=>{throw new snt.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,DC.fromInstanceMetadata)(e),"remoteProvider");Hn.remoteProvider=nnt});var TY=h(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.defaultProvider=void 0;var rnt=pL(),ont=yY(),ant=bY(),cnt=TC(),lnt=Pz(),Lz=We(),dnt=Zs(),unt=CY(),mnt=r((e={})=>(0,Lz.memoize)((0,Lz.chain)(...e.profile||process.env[dnt.ENV_PROFILE]?[]:[(0,rnt.fromEnv)()],(0,cnt.fromSSO)(e),(0,ont.fromIni)(e),(0,ant.fromProcess)(e),(0,lnt.fromTokenFile)(e),(0,unt.remoteProvider)(e),async()=>{throw new Lz.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0),"defaultProvider");kC.defaultProvider=mnt});var Fz=h(zz=>{"use strict";Object.defineProperty(zz,"__esModule",{value:!0});var pnt=(de(),re(le));pnt.__exportStar(TY(),zz)});var xY=h(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.ruleSet=void 0;JC.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:!1,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:!0,default:!1,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:!0,default:!1,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:!1,documentation:"Override the endpoint used to send this request",type:"String"},UseGlobalEndpoint:{builtIn:"AWS::STS::UseGlobalEndpoint",required:!0,default:!1,documentation:"Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",type:"Boolean"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseGlobalEndpoint"},!0]},{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!1]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!1]},{fn:"not",argv:[{fn:"isSet",argv:[{ref:"Endpoint"}]}]}],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-northeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-south-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ca-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-north-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-3"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"sa-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:{}},type:"endpoint"}]},{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:["aws-us-gov",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}]}});var PY=h(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.defaultEndpointResolver=void 0;var hnt=sC(),fnt=xY(),gnt=r((e,t={})=>(0,hnt.resolveEndpoint)(fnt.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");MC.defaultEndpointResolver=gnt});var RY=h(UC=>{"use strict";Object.defineProperty(UC,"__esModule",{value:!0});UC.getRuntimeConfig=void 0;var wnt=mr(),IY=Ab(),_nt=PY(),ynt=r(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??IY.fromBase64,base64Encoder:e?.base64Encoder??IY.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_nt.defaultEndpointResolver,logger:e?.logger??{},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??wnt.parseUrl}),"getRuntimeConfig");UC.getRuntimeConfig=ynt});var zY=h(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.getRuntimeConfig=void 0;var Snt=(de(),re(le)),vnt=Snt.__importDefault(i8()),Ent=uL(),OC=Us(),Ant=Fz(),bnt=PA(),Nz=Nn(),hp=jn(),qY=jA(),Cnt=VA(),Tnt=_b(),LY=yb(),xnt=RY(),Pnt=A(),Int=lC(),Rnt=A(),qnt=r(e=>{(0,Rnt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Int.resolveDefaultsModeConfig)(e),i=r(()=>t().then(Pnt.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,xnt.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Cnt.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,Ent.decorateDefaultCredentialProvider)(Ant.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Tnt.defaultUserAgent)({serviceId:s.serviceId,clientVersion:vnt.default.version}),maxAttempts:e?.maxAttempts??(0,hp.loadConfig)(Nz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,hp.loadConfig)(OC.NODE_REGION_CONFIG_OPTIONS,OC.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new qY.NodeHttpHandler(i),retryMode:e?.retryMode??(0,hp.loadConfig)({...Nz.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||Nz.DEFAULT_RETRY_MODE}),sha256:e?.sha256??bnt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??qY.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,hp.loadConfig)(OC.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,hp.loadConfig)(OC.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??LY.fromUtf8,utf8Encoder:e?.utf8Encoder??LY.toUtf8}},"getRuntimeConfig");jC.getRuntimeConfig=qnt});var VC=h(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0});GC.STSClient=void 0;var Lnt=Us(),znt=yv(),Fnt=b(),FY=Sv(),Nnt=vv(),Dnt=Ev(),NY=Nn(),knt=e8(),DY=uE(),Jnt=A(),Mnt=t8(),Unt=zY(),Pu=class extends Jnt.Client{constructor(t){let i=(0,Unt.getRuntimeConfig)(t),s=(0,Mnt.resolveClientEndpointParameters)(i),n=(0,Lnt.resolveRegionConfig)(s),o=(0,Fnt.resolveEndpointConfig)(n),c=(0,NY.resolveRetryConfig)(o),d=(0,FY.resolveHostHeaderConfig)(c),l=(0,knt.resolveStsAuthConfig)(d,{stsClientCtor:Pu}),u=(0,DY.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,NY.getRetryPlugin)(this.config)),this.middlewareStack.use((0,znt.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,FY.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Nnt.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Dnt.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,DY.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};r(Pu,"STSClient");GC.STSClient=Pu});var kY=h($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});$C.STS=void 0;var Ont=EE(),jnt=rL(),Gnt=CE(),Vnt=oL(),Bnt=aL(),$nt=cL(),Hnt=lL(),Wnt=dL(),Knt=VC(),BC=class extends Knt.STSClient{assumeRole(t,i,s){let n=new Ont.AssumeRoleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithSAML(t,i,s){let n=new jnt.AssumeRoleWithSAMLCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithWebIdentity(t,i,s){let n=new Gnt.AssumeRoleWithWebIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}decodeAuthorizationMessage(t,i,s){let n=new Vnt.DecodeAuthorizationMessageCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getAccessKeyInfo(t,i,s){let n=new Bnt.GetAccessKeyInfoCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCallerIdentity(t,i,s){let n=new $nt.GetCallerIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getFederationToken(t,i,s){let n=new Hnt.GetFederationTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getSessionToken(t,i,s){let n=new Wnt.GetSessionTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(BC,"STS");$C.STS=BC});var JY=h($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var cn=(de(),re(le));cn.__exportStar(EE(),$i);cn.__exportStar(rL(),$i);cn.__exportStar(CE(),$i);cn.__exportStar(oL(),$i);cn.__exportStar(aL(),$i);cn.__exportStar(cL(),$i);cn.__exportStar(lL(),$i);cn.__exportStar(dL(),$i)});var jY=h(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.decorateDefaultCredentialProvider=Hi.getDefaultRoleAssumerWithWebIdentity=Hi.getDefaultRoleAssumer=void 0;var MY=uL(),UY=VC(),OY=r((e,t)=>t?r(class extends e{constructor(s){super(s);for(let n of t)this.middlewareStack.use(n)}},"CustomizableSTSClient"):e,"getCustomizableStsClientCtor"),Ynt=r((e={},t)=>(0,MY.getDefaultRoleAssumer)(e,OY(UY.STSClient,t)),"getDefaultRoleAssumer");Hi.getDefaultRoleAssumer=Ynt;var Qnt=r((e={},t)=>(0,MY.getDefaultRoleAssumerWithWebIdentity)(e,OY(UY.STSClient,t)),"getDefaultRoleAssumerWithWebIdentity");Hi.getDefaultRoleAssumerWithWebIdentity=Qnt;var Xnt=r(e=>t=>e({roleAssumer:(0,Hi.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,Hi.getDefaultRoleAssumerWithWebIdentity)(t),...t}),"decorateDefaultCredentialProvider");Hi.decorateDefaultCredentialProvider=Xnt});var GY=h(Dz=>{"use strict";Object.defineProperty(Dz,"__esModule",{value:!0});var Znt=(de(),re(le));Znt.__exportStar(di(),Dz)});var VY=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.STSServiceException=void 0;var fp=(de(),re(le));fp.__exportStar(kY(),hs);fp.__exportStar(VC(),hs);fp.__exportStar(JY(),hs);fp.__exportStar(jY(),hs);fp.__exportStar(GY(),hs);var ert=hE();Object.defineProperty(hs,"STSServiceException",{enumerable:!0,get:function(){return ert.STSServiceException}})});var BY=h(HC=>{"use strict";Object.defineProperty(HC,"__esModule",{value:!0});HC.ruleSet=void 0;HC.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:!1,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:!0,default:!1,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:!0,default:!1,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:!1,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[],endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://iot.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}});var $Y=h(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.defaultEndpointResolver=void 0;var trt=sC(),irt=BY(),srt=r((e,t={})=>(0,trt.resolveEndpoint)(irt.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");WC.defaultEndpointResolver=srt});var WY=h(KC=>{"use strict";Object.defineProperty(KC,"__esModule",{value:!0});KC.getRuntimeConfig=void 0;var nrt=mr(),HY=Ab(),rrt=$Y(),ort=r(e=>({apiVersion:"2015-05-28",base64Decoder:e?.base64Decoder??HY.fromBase64,base64Encoder:e?.base64Encoder??HY.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??rrt.defaultEndpointResolver,logger:e?.logger??{},serviceId:e?.serviceId??"IoT",urlParser:e?.urlParser??nrt.parseUrl}),"getRuntimeConfig");KC.getRuntimeConfig=ort});var QY=h(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.getRuntimeConfig=void 0;var art=(de(),re(le)),crt=art.__importDefault(t4()),lrt=VY(),YC=Us(),drt=Fz(),urt=PA(),kz=Nn(),gp=jn(),KY=jA(),mrt=VA(),prt=_b(),YY=yb(),hrt=WY(),frt=A(),grt=lC(),wrt=A(),_rt=r(e=>{(0,wrt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,grt.resolveDefaultsModeConfig)(e),i=r(()=>t().then(frt.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,hrt.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??mrt.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,lrt.decorateDefaultCredentialProvider)(drt.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,prt.defaultUserAgent)({serviceId:s.serviceId,clientVersion:crt.default.version}),maxAttempts:e?.maxAttempts??(0,gp.loadConfig)(kz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,gp.loadConfig)(YC.NODE_REGION_CONFIG_OPTIONS,YC.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new KY.NodeHttpHandler(i),retryMode:e?.retryMode??(0,gp.loadConfig)({...kz.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||kz.DEFAULT_RETRY_MODE}),sha256:e?.sha256??urt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??KY.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,gp.loadConfig)(YC.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,gp.loadConfig)(YC.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??YY.fromUtf8,utf8Encoder:e?.utf8Encoder??YY.toUtf8}},"getRuntimeConfig");QC.getRuntimeConfig=_rt});var oe=h(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.IoTClient=void 0;var yrt=Us(),Srt=yv(),vrt=b(),XY=Sv(),Ert=vv(),Art=Ev(),Jz=Nn(),ZY=as(),e9=uE(),brt=A(),Crt=e4(),Trt=QY(),XC=class extends brt.Client{constructor(t){let i=(0,Trt.getRuntimeConfig)(t),s=(0,Crt.resolveClientEndpointParameters)(i),n=(0,yrt.resolveRegionConfig)(s),o=(0,vrt.resolveEndpointConfig)(n),c=(0,Jz.resolveRetryConfig)(o),d=(0,XY.resolveHostHeaderConfig)(c),l=(0,ZY.resolveAwsAuthConfig)(d),u=(0,e9.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,Jz.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Srt.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,XY.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Ert.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Art.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,ZY.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,e9.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,Jz.getOmitRetryHeadersPlugin)(this.config))}destroy(){super.destroy()}};r(XC,"IoTClient");ZC.IoTClient=XC});var ue=h(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.IoT=void 0;var xrt=eI(),Prt=tI(),Irt=iI(),Rrt=sI(),qrt=nI(),Lrt=rI(),zrt=oI(),Frt=aI(),Nrt=cI(),Drt=lI(),krt=dI(),Jrt=uI(),Mrt=mI(),Urt=pI(),Ort=hI(),jrt=fI(),Grt=gI(),Vrt=wI(),Brt=_I(),$rt=yI(),Hrt=SI(),Wrt=vI(),Krt=EI(),Yrt=AI(),Qrt=bI(),Xrt=CI(),Zrt=TI(),eot=xI(),tot=PI(),iot=II(),sot=RI(),not=qI(),rot=LI(),oot=zI(),aot=FI(),cot=NI(),lot=DI(),dot=kI(),uot=JI(),mot=MI(),pot=UI(),hot=OI(),fot=jI(),got=GI(),wot=VI(),_ot=BI(),yot=$I(),Sot=HI(),vot=WI(),Eot=KI(),Aot=YI(),bot=QI(),Cot=XI(),Tot=ZI(),xot=eR(),Pot=tR(),Iot=iR(),Rot=sR(),qot=nR(),Lot=rR(),zot=oR(),Fot=aR(),Not=cR(),Dot=lR(),kot=dR(),Jot=uR(),Mot=mR(),Uot=pR(),Oot=hR(),jot=fR(),Got=gR(),Vot=wR(),Bot=_R(),$ot=yR(),Hot=SR(),Wot=vR(),Kot=ER(),Yot=AR(),Qot=bR(),Xot=CR(),Zot=TR(),eat=xR(),tat=PR(),iat=IR(),sat=RR(),nat=qR(),rat=LR(),oat=zR(),aat=FR(),cat=NR(),lat=DR(),dat=kR(),uat=JR(),mat=MR(),pat=UR(),hat=OR(),fat=jR(),gat=GR(),wat=VR(),_at=BR(),yat=$R(),Sat=HR(),vat=WR(),Eat=KR(),Aat=YR(),bat=QR(),Cat=XR(),Tat=ZR(),xat=e1(),Pat=t1(),Iat=i1(),Rat=s1(),qat=n1(),Lat=r1(),zat=o1(),Fat=Vw(),Nat=a1(),Dat=c1(),kat=l1(),Jat=d1(),Mat=u1(),Uat=m1(),Oat=p1(),jat=h1(),Gat=f1(),Vat=g1(),Bat=w1(),$at=_1(),Hat=y1(),Wat=S1(),Kat=v1(),Yat=a_(),Qat=l_(),Xat=u_(),Zat=p_(),ect=f_(),tct=w_(),ict=y_(),sct=v_(),nct=A_(),rct=C_(),oct=x_(),act=I_(),cct=q_(),lct=z_(),dct=N_(),uct=k_(),mct=M_(),pct=O_(),hct=G_(),fct=B_(),gct=H_(),wct=K_(),_ct=Q_(),yct=E1(),Sct=ey(),vct=iy(),Ect=ny(),Act=oy(),bct=cy(),Cct=dy(),Tct=A1(),xct=py(),Pct=fy(),Ict=wy(),Rct=yy(),qct=vy(),Lct=Ay(),zct=Cy(),Fct=xy(),Nct=Iy(),Dct=qy(),kct=zy(),Jct=Ny(),Mct=ky(),Uct=My(),Oct=Oy(),jct=Gy(),Gct=By(),Vct=Hy(),Bct=Ky(),$ct=Qy(),Hct=Zy(),Wct=tS(),Kct=sS(),Yct=rS(),Qct=aS(),Xct=b1(),Zct=C1(),elt=T1(),tlt=x1(),ilt=P1(),slt=I1(),nlt=R1(),rlt=q1(),olt=L1(),alt=z1(),clt=F1(),llt=N1(),dlt=D1(),ult=k1(),mlt=J1(),plt=M1(),hlt=U1(),flt=O1(),glt=j1(),wlt=G1(),_lt=V1(),ylt=B1(),Slt=$1(),vlt=H1(),Elt=W1(),Alt=K1(),blt=Y1(),Clt=Q1(),Tlt=X1(),xlt=Z1(),Plt=eq(),Ilt=tq(),Rlt=iq(),qlt=sq(),Llt=nq(),zlt=rq(),Flt=oq(),Nlt=aq(),Dlt=cq(),klt=lq(),Jlt=dq(),Mlt=uq(),Ult=mq(),Olt=pq(),jlt=hq(),Glt=fq(),Vlt=gq(),Blt=wq(),$lt=_q(),Hlt=yq(),Wlt=oe(),e0=class extends Wlt.IoTClient{acceptCertificateTransfer(t,i,s){let n=new xrt.AcceptCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToBillingGroup(t,i,s){let n=new Prt.AddThingToBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToThingGroup(t,i,s){let n=new Irt.AddThingToThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}associateTargetsWithJob(t,i,s){let n=new Rrt.AssociateTargetsWithJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPolicy(t,i,s){let n=new qrt.AttachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPrincipalPolicy(t,i,s){let n=new Lrt.AttachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachSecurityProfile(t,i,s){let n=new zrt.AttachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachThingPrincipal(t,i,s){let n=new Frt.AttachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditMitigationActionsTask(t,i,s){let n=new Nrt.CancelAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditTask(t,i,s){let n=new Drt.CancelAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelCertificateTransfer(t,i,s){let n=new krt.CancelCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelDetectMitigationActionsTask(t,i,s){let n=new Jrt.CancelDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJob(t,i,s){let n=new Mrt.CancelJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJobExecution(t,i,s){let n=new Urt.CancelJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}clearDefaultAuthorizer(t,i,s){let n=new Ort.ClearDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}confirmTopicRuleDestination(t,i,s){let n=new jrt.ConfirmTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuditSuppression(t,i,s){let n=new Grt.CreateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuthorizer(t,i,s){let n=new Vrt.CreateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createBillingGroup(t,i,s){let n=new Brt.CreateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCertificateFromCsr(t,i,s){let n=new $rt.CreateCertificateFromCsrCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCustomMetric(t,i,s){let n=new Hrt.CreateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDimension(t,i,s){let n=new Wrt.CreateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDomainConfiguration(t,i,s){let n=new Krt.CreateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDynamicThingGroup(t,i,s){let n=new Yrt.CreateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createFleetMetric(t,i,s){let n=new Qrt.CreateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJob(t,i,s){let n=new Xrt.CreateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJobTemplate(t,i,s){let n=new Zrt.CreateJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createKeysAndCertificate(t,i,s){let n=new eot.CreateKeysAndCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createMitigationAction(t,i,s){let n=new tot.CreateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createOTAUpdate(t,i,s){let n=new iot.CreateOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicy(t,i,s){let n=new sot.CreatePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicyVersion(t,i,s){let n=new not.CreatePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningClaim(t,i,s){let n=new rot.CreateProvisioningClaimCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplate(t,i,s){let n=new oot.CreateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplateVersion(t,i,s){let n=new aot.CreateProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createRoleAlias(t,i,s){let n=new cot.CreateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createScheduledAudit(t,i,s){let n=new lot.CreateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createSecurityProfile(t,i,s){let n=new dot.CreateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createStream(t,i,s){let n=new uot.CreateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThing(t,i,s){let n=new mot.CreateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingGroup(t,i,s){let n=new pot.CreateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingType(t,i,s){let n=new hot.CreateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRule(t,i,s){let n=new fot.CreateTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRuleDestination(t,i,s){let n=new got.CreateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAccountAuditConfiguration(t,i,s){let n=new wot.DeleteAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuditSuppression(t,i,s){let n=new _ot.DeleteAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuthorizer(t,i,s){let n=new yot.DeleteAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteBillingGroup(t,i,s){let n=new Sot.DeleteBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCACertificate(t,i,s){let n=new vot.DeleteCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCertificate(t,i,s){let n=new Eot.DeleteCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCustomMetric(t,i,s){let n=new Aot.DeleteCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDimension(t,i,s){let n=new bot.DeleteDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDomainConfiguration(t,i,s){let n=new Cot.DeleteDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDynamicThingGroup(t,i,s){let n=new Tot.DeleteDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteFleetMetric(t,i,s){let n=new xot.DeleteFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJob(t,i,s){let n=new Pot.DeleteJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobExecution(t,i,s){let n=new Iot.DeleteJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobTemplate(t,i,s){let n=new Rot.DeleteJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteMitigationAction(t,i,s){let n=new qot.DeleteMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteOTAUpdate(t,i,s){let n=new Lot.DeleteOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicy(t,i,s){let n=new zot.DeletePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicyVersion(t,i,s){let n=new Fot.DeletePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplate(t,i,s){let n=new Not.DeleteProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplateVersion(t,i,s){let n=new Dot.DeleteProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRegistrationCode(t,i,s){let n=new kot.DeleteRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRoleAlias(t,i,s){let n=new Jot.DeleteRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteScheduledAudit(t,i,s){let n=new Mot.DeleteScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteSecurityProfile(t,i,s){let n=new Uot.DeleteSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteStream(t,i,s){let n=new Oot.DeleteStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThing(t,i,s){let n=new jot.DeleteThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingGroup(t,i,s){let n=new Got.DeleteThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingType(t,i,s){let n=new Vot.DeleteThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRule(t,i,s){let n=new Bot.DeleteTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRuleDestination(t,i,s){let n=new $ot.DeleteTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteV2LoggingLevel(t,i,s){let n=new Hot.DeleteV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deprecateThingType(t,i,s){let n=new Wot.DeprecateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAccountAuditConfiguration(t,i,s){let n=new Kot.DescribeAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditFinding(t,i,s){let n=new Yot.DescribeAuditFindingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditMitigationActionsTask(t,i,s){let n=new Qot.DescribeAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditSuppression(t,i,s){let n=new Xot.DescribeAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditTask(t,i,s){let n=new Zot.DescribeAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuthorizer(t,i,s){let n=new eat.DescribeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeBillingGroup(t,i,s){let n=new tat.DescribeBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCACertificate(t,i,s){let n=new iat.DescribeCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCertificate(t,i,s){let n=new sat.DescribeCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCustomMetric(t,i,s){let n=new nat.DescribeCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDefaultAuthorizer(t,i,s){let n=new rat.DescribeDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDetectMitigationActionsTask(t,i,s){let n=new oat.DescribeDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDimension(t,i,s){let n=new aat.DescribeDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDomainConfiguration(t,i,s){let n=new cat.DescribeDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEndpoint(t,i,s){let n=new lat.DescribeEndpointCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEventConfigurations(t,i,s){let n=new dat.DescribeEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeFleetMetric(t,i,s){let n=new uat.DescribeFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeIndex(t,i,s){let n=new mat.DescribeIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJob(t,i,s){let n=new pat.DescribeJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobExecution(t,i,s){let n=new hat.DescribeJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobTemplate(t,i,s){let n=new fat.DescribeJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeManagedJobTemplate(t,i,s){let n=new gat.DescribeManagedJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeMitigationAction(t,i,s){let n=new wat.DescribeMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplate(t,i,s){let n=new _at.DescribeProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplateVersion(t,i,s){let n=new yat.DescribeProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeRoleAlias(t,i,s){let n=new Sat.DescribeRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeScheduledAudit(t,i,s){let n=new vat.DescribeScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeSecurityProfile(t,i,s){let n=new Eat.DescribeSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeStream(t,i,s){let n=new Aat.DescribeStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThing(t,i,s){let n=new bat.DescribeThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingGroup(t,i,s){let n=new Cat.DescribeThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingRegistrationTask(t,i,s){let n=new Tat.DescribeThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingType(t,i,s){let n=new xat.DescribeThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPolicy(t,i,s){let n=new Pat.DetachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPrincipalPolicy(t,i,s){let n=new Iat.DetachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachSecurityProfile(t,i,s){let n=new Rat.DetachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachThingPrincipal(t,i,s){let n=new qat.DetachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}disableTopicRule(t,i,s){let n=new Lat.DisableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}enableTopicRule(t,i,s){let n=new zat.EnableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBehaviorModelTrainingSummaries(t,i,s){let n=new Fat.GetBehaviorModelTrainingSummariesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBucketsAggregation(t,i,s){let n=new Nat.GetBucketsAggregationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCardinality(t,i,s){let n=new Dat.GetCardinalityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getEffectivePolicies(t,i,s){let n=new kat.GetEffectivePoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getIndexingConfiguration(t,i,s){let n=new Jat.GetIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getJobDocument(t,i,s){let n=new Mat.GetJobDocumentCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getLoggingOptions(t,i,s){let n=new Uat.GetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getOTAUpdate(t,i,s){let n=new Oat.GetOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPercentiles(t,i,s){let n=new jat.GetPercentilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicy(t,i,s){let n=new Gat.GetPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicyVersion(t,i,s){let n=new Vat.GetPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getRegistrationCode(t,i,s){let n=new Bat.GetRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getStatistics(t,i,s){let n=new $at.GetStatisticsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRule(t,i,s){let n=new Hat.GetTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRuleDestination(t,i,s){let n=new Wat.GetTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getV2LoggingOptions(t,i,s){let n=new Kat.GetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listActiveViolations(t,i,s){let n=new Yat.ListActiveViolationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAttachedPolicies(t,i,s){let n=new Qat.ListAttachedPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditFindings(t,i,s){let n=new Xat.ListAuditFindingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsExecutions(t,i,s){let n=new Zat.ListAuditMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsTasks(t,i,s){let n=new ect.ListAuditMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditSuppressions(t,i,s){let n=new tct.ListAuditSuppressionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditTasks(t,i,s){let n=new ict.ListAuditTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuthorizers(t,i,s){let n=new sct.ListAuthorizersCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listBillingGroups(t,i,s){let n=new nct.ListBillingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCACertificates(t,i,s){let n=new rct.ListCACertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificates(t,i,s){let n=new act.ListCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificatesByCA(t,i,s){let n=new oct.ListCertificatesByCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCustomMetrics(t,i,s){let n=new cct.ListCustomMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsExecutions(t,i,s){let n=new lct.ListDetectMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsTasks(t,i,s){let n=new dct.ListDetectMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDimensions(t,i,s){let n=new uct.ListDimensionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDomainConfigurations(t,i,s){let n=new mct.ListDomainConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listFleetMetrics(t,i,s){let n=new pct.ListFleetMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listIndices(t,i,s){let n=new hct.ListIndicesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForJob(t,i,s){let n=new fct.ListJobExecutionsForJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForThing(t,i,s){let n=new gct.ListJobExecutionsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobs(t,i,s){let n=new wct.ListJobsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobTemplates(t,i,s){let n=new _ct.ListJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listManagedJobTemplates(t,i,s){let n=new yct.ListManagedJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMetricValues(t,i,s){let n=new Sct.ListMetricValuesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMitigationActions(t,i,s){let n=new vct.ListMitigationActionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOTAUpdates(t,i,s){let n=new Ect.ListOTAUpdatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOutgoingCertificates(t,i,s){let n=new Act.ListOutgoingCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicies(t,i,s){let n=new bct.ListPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyPrincipals(t,i,s){let n=new Cct.ListPolicyPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyVersions(t,i,s){let n=new Tct.ListPolicyVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalPolicies(t,i,s){let n=new xct.ListPrincipalPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalThings(t,i,s){let n=new Pct.ListPrincipalThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplates(t,i,s){let n=new Ict.ListProvisioningTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplateVersions(t,i,s){let n=new Rct.ListProvisioningTemplateVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listRoleAliases(t,i,s){let n=new qct.ListRoleAliasesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listScheduledAudits(t,i,s){let n=new Lct.ListScheduledAuditsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfiles(t,i,s){let n=new zct.ListSecurityProfilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfilesForTarget(t,i,s){let n=new Fct.ListSecurityProfilesForTargetCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listStreams(t,i,s){let n=new Nct.ListStreamsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTagsForResource(t,i,s){let n=new Dct.ListTagsForResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForPolicy(t,i,s){let n=new kct.ListTargetsForPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForSecurityProfile(t,i,s){let n=new Jct.ListTargetsForSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroups(t,i,s){let n=new Mct.ListThingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroupsForThing(t,i,s){let n=new Uct.ListThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingPrincipals(t,i,s){let n=new Oct.ListThingPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTaskReports(t,i,s){let n=new jct.ListThingRegistrationTaskReportsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTasks(t,i,s){let n=new Gct.ListThingRegistrationTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThings(t,i,s){let n=new Vct.ListThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInBillingGroup(t,i,s){let n=new Bct.ListThingsInBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInThingGroup(t,i,s){let n=new $ct.ListThingsInThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingTypes(t,i,s){let n=new Hct.ListThingTypesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRuleDestinations(t,i,s){let n=new Wct.ListTopicRuleDestinationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRules(t,i,s){let n=new Kct.ListTopicRulesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listV2LoggingLevels(t,i,s){let n=new Yct.ListV2LoggingLevelsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listViolationEvents(t,i,s){let n=new Qct.ListViolationEventsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}putVerificationStateOnViolation(t,i,s){let n=new Xct.PutVerificationStateOnViolationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCACertificate(t,i,s){let n=new Zct.RegisterCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificate(t,i,s){let n=new elt.RegisterCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificateWithoutCA(t,i,s){let n=new tlt.RegisterCertificateWithoutCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerThing(t,i,s){let n=new ilt.RegisterThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}rejectCertificateTransfer(t,i,s){let n=new slt.RejectCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromBillingGroup(t,i,s){let n=new nlt.RemoveThingFromBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromThingGroup(t,i,s){let n=new rlt.RemoveThingFromThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}replaceTopicRule(t,i,s){let n=new olt.ReplaceTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}searchIndex(t,i,s){let n=new alt.SearchIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultAuthorizer(t,i,s){let n=new clt.SetDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultPolicyVersion(t,i,s){let n=new llt.SetDefaultPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setLoggingOptions(t,i,s){let n=new dlt.SetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingLevel(t,i,s){let n=new ult.SetV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingOptions(t,i,s){let n=new mlt.SetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startAuditMitigationActionsTask(t,i,s){let n=new plt.StartAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startDetectMitigationActionsTask(t,i,s){let n=new hlt.StartDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startOnDemandAuditTask(t,i,s){let n=new flt.StartOnDemandAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startThingRegistrationTask(t,i,s){let n=new glt.StartThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}stopThingRegistrationTask(t,i,s){let n=new wlt.StopThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}tagResource(t,i,s){let n=new _lt.TagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testAuthorization(t,i,s){let n=new ylt.TestAuthorizationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testInvokeAuthorizer(t,i,s){let n=new Slt.TestInvokeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}transferCertificate(t,i,s){let n=new vlt.TransferCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}untagResource(t,i,s){let n=new Elt.UntagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAccountAuditConfiguration(t,i,s){let n=new Alt.UpdateAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuditSuppression(t,i,s){let n=new blt.UpdateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuthorizer(t,i,s){let n=new Clt.UpdateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateBillingGroup(t,i,s){let n=new Tlt.UpdateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCACertificate(t,i,s){let n=new xlt.UpdateCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCertificate(t,i,s){let n=new Plt.UpdateCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCustomMetric(t,i,s){let n=new Ilt.UpdateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDimension(t,i,s){let n=new Rlt.UpdateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDomainConfiguration(t,i,s){let n=new qlt.UpdateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDynamicThingGroup(t,i,s){let n=new Llt.UpdateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateEventConfigurations(t,i,s){let n=new zlt.UpdateEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateFleetMetric(t,i,s){let n=new Flt.UpdateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateIndexingConfiguration(t,i,s){let n=new Nlt.UpdateIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateJob(t,i,s){let n=new Dlt.UpdateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateMitigationAction(t,i,s){let n=new klt.UpdateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateProvisioningTemplate(t,i,s){let n=new Jlt.UpdateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateRoleAlias(t,i,s){let n=new Mlt.UpdateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateScheduledAudit(t,i,s){let n=new Ult.UpdateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateSecurityProfile(t,i,s){let n=new Olt.UpdateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateStream(t,i,s){let n=new jlt.UpdateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThing(t,i,s){let n=new Glt.UpdateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroup(t,i,s){let n=new Vlt.UpdateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroupsForThing(t,i,s){let n=new Blt.UpdateThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateTopicRuleDestination(t,i,s){let n=new $lt.UpdateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}validateSecurityProfileBehaviors(t,i,s){let n=new Hlt.ValidateSecurityProfileBehaviorsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(e0,"IoT");t0.IoT=e0});var t9=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(de(),re(le));L.__exportStar(eI(),T);L.__exportStar(tI(),T);L.__exportStar(iI(),T);L.__exportStar(sI(),T);L.__exportStar(nI(),T);L.__exportStar(rI(),T);L.__exportStar(oI(),T);L.__exportStar(aI(),T);L.__exportStar(cI(),T);L.__exportStar(lI(),T);L.__exportStar(dI(),T);L.__exportStar(uI(),T);L.__exportStar(mI(),T);L.__exportStar(pI(),T);L.__exportStar(hI(),T);L.__exportStar(fI(),T);L.__exportStar(gI(),T);L.__exportStar(wI(),T);L.__exportStar(_I(),T);L.__exportStar(yI(),T);L.__exportStar(SI(),T);L.__exportStar(vI(),T);L.__exportStar(EI(),T);L.__exportStar(AI(),T);L.__exportStar(bI(),T);L.__exportStar(CI(),T);L.__exportStar(TI(),T);L.__exportStar(xI(),T);L.__exportStar(PI(),T);L.__exportStar(II(),T);L.__exportStar(RI(),T);L.__exportStar(qI(),T);L.__exportStar(LI(),T);L.__exportStar(zI(),T);L.__exportStar(FI(),T);L.__exportStar(NI(),T);L.__exportStar(DI(),T);L.__exportStar(kI(),T);L.__exportStar(JI(),T);L.__exportStar(MI(),T);L.__exportStar(UI(),T);L.__exportStar(OI(),T);L.__exportStar(jI(),T);L.__exportStar(GI(),T);L.__exportStar(VI(),T);L.__exportStar(BI(),T);L.__exportStar($I(),T);L.__exportStar(HI(),T);L.__exportStar(WI(),T);L.__exportStar(KI(),T);L.__exportStar(YI(),T);L.__exportStar(QI(),T);L.__exportStar(XI(),T);L.__exportStar(ZI(),T);L.__exportStar(eR(),T);L.__exportStar(tR(),T);L.__exportStar(iR(),T);L.__exportStar(sR(),T);L.__exportStar(nR(),T);L.__exportStar(rR(),T);L.__exportStar(oR(),T);L.__exportStar(aR(),T);L.__exportStar(cR(),T);L.__exportStar(lR(),T);L.__exportStar(dR(),T);L.__exportStar(uR(),T);L.__exportStar(mR(),T);L.__exportStar(pR(),T);L.__exportStar(hR(),T);L.__exportStar(fR(),T);L.__exportStar(gR(),T);L.__exportStar(wR(),T);L.__exportStar(_R(),T);L.__exportStar(yR(),T);L.__exportStar(SR(),T);L.__exportStar(vR(),T);L.__exportStar(ER(),T);L.__exportStar(AR(),T);L.__exportStar(bR(),T);L.__exportStar(CR(),T);L.__exportStar(TR(),T);L.__exportStar(xR(),T);L.__exportStar(PR(),T);L.__exportStar(IR(),T);L.__exportStar(RR(),T);L.__exportStar(qR(),T);L.__exportStar(LR(),T);L.__exportStar(zR(),T);L.__exportStar(FR(),T);L.__exportStar(NR(),T);L.__exportStar(DR(),T);L.__exportStar(kR(),T);L.__exportStar(JR(),T);L.__exportStar(MR(),T);L.__exportStar(UR(),T);L.__exportStar(OR(),T);L.__exportStar(jR(),T);L.__exportStar(GR(),T);L.__exportStar(VR(),T);L.__exportStar(BR(),T);L.__exportStar($R(),T);L.__exportStar(HR(),T);L.__exportStar(WR(),T);L.__exportStar(KR(),T);L.__exportStar(YR(),T);L.__exportStar(QR(),T);L.__exportStar(XR(),T);L.__exportStar(ZR(),T);L.__exportStar(e1(),T);L.__exportStar(t1(),T);L.__exportStar(i1(),T);L.__exportStar(s1(),T);L.__exportStar(n1(),T);L.__exportStar(r1(),T);L.__exportStar(o1(),T);L.__exportStar(Vw(),T);L.__exportStar(a1(),T);L.__exportStar(c1(),T);L.__exportStar(l1(),T);L.__exportStar(d1(),T);L.__exportStar(u1(),T);L.__exportStar(m1(),T);L.__exportStar(p1(),T);L.__exportStar(h1(),T);L.__exportStar(f1(),T);L.__exportStar(g1(),T);L.__exportStar(w1(),T);L.__exportStar(_1(),T);L.__exportStar(y1(),T);L.__exportStar(S1(),T);L.__exportStar(v1(),T);L.__exportStar(a_(),T);L.__exportStar(l_(),T);L.__exportStar(u_(),T);L.__exportStar(p_(),T);L.__exportStar(f_(),T);L.__exportStar(w_(),T);L.__exportStar(y_(),T);L.__exportStar(v_(),T);L.__exportStar(A_(),T);L.__exportStar(C_(),T);L.__exportStar(x_(),T);L.__exportStar(I_(),T);L.__exportStar(q_(),T);L.__exportStar(z_(),T);L.__exportStar(N_(),T);L.__exportStar(k_(),T);L.__exportStar(M_(),T);L.__exportStar(O_(),T);L.__exportStar(G_(),T);L.__exportStar(B_(),T);L.__exportStar(H_(),T);L.__exportStar(Q_(),T);L.__exportStar(K_(),T);L.__exportStar(E1(),T);L.__exportStar(ey(),T);L.__exportStar(iy(),T);L.__exportStar(ny(),T);L.__exportStar(oy(),T);L.__exportStar(cy(),T);L.__exportStar(dy(),T);L.__exportStar(A1(),T);L.__exportStar(py(),T);L.__exportStar(fy(),T);L.__exportStar(yy(),T);L.__exportStar(wy(),T);L.__exportStar(vy(),T);L.__exportStar(Ay(),T);L.__exportStar(Cy(),T);L.__exportStar(xy(),T);L.__exportStar(Iy(),T);L.__exportStar(qy(),T);L.__exportStar(zy(),T);L.__exportStar(Ny(),T);L.__exportStar(ky(),T);L.__exportStar(My(),T);L.__exportStar(Oy(),T);L.__exportStar(Gy(),T);L.__exportStar(By(),T);L.__exportStar(Zy(),T);L.__exportStar(Hy(),T);L.__exportStar(Ky(),T);L.__exportStar(Qy(),T);L.__exportStar(tS(),T);L.__exportStar(sS(),T);L.__exportStar(rS(),T);L.__exportStar(aS(),T);L.__exportStar(b1(),T);L.__exportStar(C1(),T);L.__exportStar(T1(),T);L.__exportStar(x1(),T);L.__exportStar(P1(),T);L.__exportStar(I1(),T);L.__exportStar(R1(),T);L.__exportStar(q1(),T);L.__exportStar(L1(),T);L.__exportStar(z1(),T);L.__exportStar(F1(),T);L.__exportStar(N1(),T);L.__exportStar(D1(),T);L.__exportStar(k1(),T);L.__exportStar(J1(),T);L.__exportStar(M1(),T);L.__exportStar(U1(),T);L.__exportStar(O1(),T);L.__exportStar(j1(),T);L.__exportStar(G1(),T);L.__exportStar(V1(),T);L.__exportStar(B1(),T);L.__exportStar($1(),T);L.__exportStar(H1(),T);L.__exportStar(W1(),T);L.__exportStar(K1(),T);L.__exportStar(Y1(),T);L.__exportStar(Q1(),T);L.__exportStar(X1(),T);L.__exportStar(Z1(),T);L.__exportStar(eq(),T);L.__exportStar(tq(),T);L.__exportStar(iq(),T);L.__exportStar(sq(),T);L.__exportStar(nq(),T);L.__exportStar(rq(),T);L.__exportStar(oq(),T);L.__exportStar(aq(),T);L.__exportStar(cq(),T);L.__exportStar(lq(),T);L.__exportStar(dq(),T);L.__exportStar(uq(),T);L.__exportStar(mq(),T);L.__exportStar(pq(),T);L.__exportStar(hq(),T);L.__exportStar(fq(),T);L.__exportStar(gq(),T);L.__exportStar(wq(),T);L.__exportStar(_q(),T);L.__exportStar(yq(),T)});var i9=h(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var Mz=(de(),re(le));Mz.__exportStar(ee(),wp);Mz.__exportStar(B(),wp);Mz.__exportStar(te(),wp)});var s9=h(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.paginateGetBehaviorModelTrainingSummaries=void 0;var Klt=Vw(),Ylt=ue(),Qlt=oe(),Xlt=r(async(e,t,...i)=>await e.send(new Klt.GetBehaviorModelTrainingSummariesCommand(t),...i),"makePagedClientRequest"),Zlt=r(async(e,t,...i)=>await e.getBehaviorModelTrainingSummaries(t,...i),"makePagedRequest");async function*edt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ylt.IoT)o=await Zlt(e.client,t,...i);else if(e.client instanceof Qlt.IoTClient)o=await Xlt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(edt,"paginateGetBehaviorModelTrainingSummaries");i0.paginateGetBehaviorModelTrainingSummaries=edt});var r9=h(n9=>{"use strict";Object.defineProperty(n9,"__esModule",{value:!0})});var o9=h(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.paginateListActiveViolations=void 0;var tdt=a_(),idt=ue(),sdt=oe(),ndt=r(async(e,t,...i)=>await e.send(new tdt.ListActiveViolationsCommand(t),...i),"makePagedClientRequest"),rdt=r(async(e,t,...i)=>await e.listActiveViolations(t,...i),"makePagedRequest");async function*odt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof idt.IoT)o=await rdt(e.client,t,...i);else if(e.client instanceof sdt.IoTClient)o=await ndt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(odt,"paginateListActiveViolations");s0.paginateListActiveViolations=odt});var a9=h(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.paginateListAttachedPolicies=void 0;var adt=l_(),cdt=ue(),ldt=oe(),ddt=r(async(e,t,...i)=>await e.send(new adt.ListAttachedPoliciesCommand(t),...i),"makePagedClientRequest"),udt=r(async(e,t,...i)=>await e.listAttachedPolicies(t,...i),"makePagedRequest");async function*mdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof cdt.IoT)o=await udt(e.client,t,...i);else if(e.client instanceof ldt.IoTClient)o=await ddt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mdt,"paginateListAttachedPolicies");n0.paginateListAttachedPolicies=mdt});var c9=h(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.paginateListAuditFindings=void 0;var pdt=u_(),hdt=ue(),fdt=oe(),gdt=r(async(e,t,...i)=>await e.send(new pdt.ListAuditFindingsCommand(t),...i),"makePagedClientRequest"),wdt=r(async(e,t,...i)=>await e.listAuditFindings(t,...i),"makePagedRequest");async function*_dt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof hdt.IoT)o=await wdt(e.client,t,...i);else if(e.client instanceof fdt.IoTClient)o=await gdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_dt,"paginateListAuditFindings");r0.paginateListAuditFindings=_dt});var l9=h(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.paginateListAuditMitigationActionsExecutions=void 0;var ydt=p_(),Sdt=ue(),vdt=oe(),Edt=r(async(e,t,...i)=>await e.send(new ydt.ListAuditMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),Adt=r(async(e,t,...i)=>await e.listAuditMitigationActionsExecutions(t,...i),"makePagedRequest");async function*bdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Sdt.IoT)o=await Adt(e.client,t,...i);else if(e.client instanceof vdt.IoTClient)o=await Edt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bdt,"paginateListAuditMitigationActionsExecutions");o0.paginateListAuditMitigationActionsExecutions=bdt});var d9=h(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.paginateListAuditMitigationActionsTasks=void 0;var Cdt=f_(),Tdt=ue(),xdt=oe(),Pdt=r(async(e,t,...i)=>await e.send(new Cdt.ListAuditMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),Idt=r(async(e,t,...i)=>await e.listAuditMitigationActionsTasks(t,...i),"makePagedRequest");async function*Rdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tdt.IoT)o=await Idt(e.client,t,...i);else if(e.client instanceof xdt.IoTClient)o=await Pdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rdt,"paginateListAuditMitigationActionsTasks");a0.paginateListAuditMitigationActionsTasks=Rdt});var u9=h(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.paginateListAuditSuppressions=void 0;var qdt=w_(),Ldt=ue(),zdt=oe(),Fdt=r(async(e,t,...i)=>await e.send(new qdt.ListAuditSuppressionsCommand(t),...i),"makePagedClientRequest"),Ndt=r(async(e,t,...i)=>await e.listAuditSuppressions(t,...i),"makePagedRequest");async function*Ddt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ldt.IoT)o=await Ndt(e.client,t,...i);else if(e.client instanceof zdt.IoTClient)o=await Fdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Ddt,"paginateListAuditSuppressions");c0.paginateListAuditSuppressions=Ddt});var m9=h(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.paginateListAuditTasks=void 0;var kdt=y_(),Jdt=ue(),Mdt=oe(),Udt=r(async(e,t,...i)=>await e.send(new kdt.ListAuditTasksCommand(t),...i),"makePagedClientRequest"),Odt=r(async(e,t,...i)=>await e.listAuditTasks(t,...i),"makePagedRequest");async function*jdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jdt.IoT)o=await Odt(e.client,t,...i);else if(e.client instanceof Mdt.IoTClient)o=await Udt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jdt,"paginateListAuditTasks");l0.paginateListAuditTasks=jdt});var p9=h(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});d0.paginateListAuthorizers=void 0;var Gdt=v_(),Vdt=ue(),Bdt=oe(),$dt=r(async(e,t,...i)=>await e.send(new Gdt.ListAuthorizersCommand(t),...i),"makePagedClientRequest"),Hdt=r(async(e,t,...i)=>await e.listAuthorizers(t,...i),"makePagedRequest");async function*Wdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Vdt.IoT)o=await Hdt(e.client,t,...i);else if(e.client instanceof Bdt.IoTClient)o=await $dt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wdt,"paginateListAuthorizers");d0.paginateListAuthorizers=Wdt});var h9=h(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.paginateListBillingGroups=void 0;var Kdt=A_(),Ydt=ue(),Qdt=oe(),Xdt=r(async(e,t,...i)=>await e.send(new Kdt.ListBillingGroupsCommand(t),...i),"makePagedClientRequest"),Zdt=r(async(e,t,...i)=>await e.listBillingGroups(t,...i),"makePagedRequest");async function*eut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ydt.IoT)o=await Zdt(e.client,t,...i);else if(e.client instanceof Qdt.IoTClient)o=await Xdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(eut,"paginateListBillingGroups");u0.paginateListBillingGroups=eut});var f9=h(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});m0.paginateListCACertificates=void 0;var tut=C_(),iut=ue(),sut=oe(),nut=r(async(e,t,...i)=>await e.send(new tut.ListCACertificatesCommand(t),...i),"makePagedClientRequest"),rut=r(async(e,t,...i)=>await e.listCACertificates(t,...i),"makePagedRequest");async function*out(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof iut.IoT)o=await rut(e.client,t,...i);else if(e.client instanceof sut.IoTClient)o=await nut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(out,"paginateListCACertificates");m0.paginateListCACertificates=out});var g9=h(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});p0.paginateListCertificatesByCA=void 0;var aut=x_(),cut=ue(),lut=oe(),dut=r(async(e,t,...i)=>await e.send(new aut.ListCertificatesByCACommand(t),...i),"makePagedClientRequest"),uut=r(async(e,t,...i)=>await e.listCertificatesByCA(t,...i),"makePagedRequest");async function*mut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof cut.IoT)o=await uut(e.client,t,...i);else if(e.client instanceof lut.IoTClient)o=await dut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mut,"paginateListCertificatesByCA");p0.paginateListCertificatesByCA=mut});var w9=h(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.paginateListCertificates=void 0;var put=I_(),hut=ue(),fut=oe(),gut=r(async(e,t,...i)=>await e.send(new put.ListCertificatesCommand(t),...i),"makePagedClientRequest"),wut=r(async(e,t,...i)=>await e.listCertificates(t,...i),"makePagedRequest");async function*_ut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof hut.IoT)o=await wut(e.client,t,...i);else if(e.client instanceof fut.IoTClient)o=await gut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_ut,"paginateListCertificates");h0.paginateListCertificates=_ut});var _9=h(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.paginateListCustomMetrics=void 0;var yut=q_(),Sut=ue(),vut=oe(),Eut=r(async(e,t,...i)=>await e.send(new yut.ListCustomMetricsCommand(t),...i),"makePagedClientRequest"),Aut=r(async(e,t,...i)=>await e.listCustomMetrics(t,...i),"makePagedRequest");async function*but(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Sut.IoT)o=await Aut(e.client,t,...i);else if(e.client instanceof vut.IoTClient)o=await Eut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(but,"paginateListCustomMetrics");f0.paginateListCustomMetrics=but});var y9=h(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});g0.paginateListDetectMitigationActionsExecutions=void 0;var Cut=z_(),Tut=ue(),xut=oe(),Put=r(async(e,t,...i)=>await e.send(new Cut.ListDetectMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),Iut=r(async(e,t,...i)=>await e.listDetectMitigationActionsExecutions(t,...i),"makePagedRequest");async function*Rut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tut.IoT)o=await Iut(e.client,t,...i);else if(e.client instanceof xut.IoTClient)o=await Put(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rut,"paginateListDetectMitigationActionsExecutions");g0.paginateListDetectMitigationActionsExecutions=Rut});var S9=h(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.paginateListDetectMitigationActionsTasks=void 0;var qut=N_(),Lut=ue(),zut=oe(),Fut=r(async(e,t,...i)=>await e.send(new qut.ListDetectMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),Nut=r(async(e,t,...i)=>await e.listDetectMitigationActionsTasks(t,...i),"makePagedRequest");async function*Dut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lut.IoT)o=await Nut(e.client,t,...i);else if(e.client instanceof zut.IoTClient)o=await Fut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dut,"paginateListDetectMitigationActionsTasks");w0.paginateListDetectMitigationActionsTasks=Dut});var v9=h(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.paginateListDimensions=void 0;var kut=k_(),Jut=ue(),Mut=oe(),Uut=r(async(e,t,...i)=>await e.send(new kut.ListDimensionsCommand(t),...i),"makePagedClientRequest"),Out=r(async(e,t,...i)=>await e.listDimensions(t,...i),"makePagedRequest");async function*jut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jut.IoT)o=await Out(e.client,t,...i);else if(e.client instanceof Mut.IoTClient)o=await Uut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jut,"paginateListDimensions");_0.paginateListDimensions=jut});var E9=h(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.paginateListDomainConfigurations=void 0;var Gut=M_(),Vut=ue(),But=oe(),$ut=r(async(e,t,...i)=>await e.send(new Gut.ListDomainConfigurationsCommand(t),...i),"makePagedClientRequest"),Hut=r(async(e,t,...i)=>await e.listDomainConfigurations(t,...i),"makePagedRequest");async function*Wut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Vut.IoT)o=await Hut(e.client,t,...i);else if(e.client instanceof But.IoTClient)o=await $ut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wut,"paginateListDomainConfigurations");y0.paginateListDomainConfigurations=Wut});var A9=h(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.paginateListFleetMetrics=void 0;var Kut=O_(),Yut=ue(),Qut=oe(),Xut=r(async(e,t,...i)=>await e.send(new Kut.ListFleetMetricsCommand(t),...i),"makePagedClientRequest"),Zut=r(async(e,t,...i)=>await e.listFleetMetrics(t,...i),"makePagedRequest");async function*emt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Yut.IoT)o=await Zut(e.client,t,...i);else if(e.client instanceof Qut.IoTClient)o=await Xut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(emt,"paginateListFleetMetrics");S0.paginateListFleetMetrics=emt});var b9=h(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});v0.paginateListIndices=void 0;var tmt=G_(),imt=ue(),smt=oe(),nmt=r(async(e,t,...i)=>await e.send(new tmt.ListIndicesCommand(t),...i),"makePagedClientRequest"),rmt=r(async(e,t,...i)=>await e.listIndices(t,...i),"makePagedRequest");async function*omt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof imt.IoT)o=await rmt(e.client,t,...i);else if(e.client instanceof smt.IoTClient)o=await nmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(omt,"paginateListIndices");v0.paginateListIndices=omt});var C9=h(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.paginateListJobExecutionsForJob=void 0;var amt=B_(),cmt=ue(),lmt=oe(),dmt=r(async(e,t,...i)=>await e.send(new amt.ListJobExecutionsForJobCommand(t),...i),"makePagedClientRequest"),umt=r(async(e,t,...i)=>await e.listJobExecutionsForJob(t,...i),"makePagedRequest");async function*mmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof cmt.IoT)o=await umt(e.client,t,...i);else if(e.client instanceof lmt.IoTClient)o=await dmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mmt,"paginateListJobExecutionsForJob");E0.paginateListJobExecutionsForJob=mmt});var T9=h(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.paginateListJobExecutionsForThing=void 0;var pmt=H_(),hmt=ue(),fmt=oe(),gmt=r(async(e,t,...i)=>await e.send(new pmt.ListJobExecutionsForThingCommand(t),...i),"makePagedClientRequest"),wmt=r(async(e,t,...i)=>await e.listJobExecutionsForThing(t,...i),"makePagedRequest");async function*_mt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof hmt.IoT)o=await wmt(e.client,t,...i);else if(e.client instanceof fmt.IoTClient)o=await gmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_mt,"paginateListJobExecutionsForThing");A0.paginateListJobExecutionsForThing=_mt});var x9=h(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.paginateListJobTemplates=void 0;var ymt=Q_(),Smt=ue(),vmt=oe(),Emt=r(async(e,t,...i)=>await e.send(new ymt.ListJobTemplatesCommand(t),...i),"makePagedClientRequest"),Amt=r(async(e,t,...i)=>await e.listJobTemplates(t,...i),"makePagedRequest");async function*bmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Smt.IoT)o=await Amt(e.client,t,...i);else if(e.client instanceof vmt.IoTClient)o=await Emt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bmt,"paginateListJobTemplates");b0.paginateListJobTemplates=bmt});var P9=h(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0});C0.paginateListJobs=void 0;var Cmt=K_(),Tmt=ue(),xmt=oe(),Pmt=r(async(e,t,...i)=>await e.send(new Cmt.ListJobsCommand(t),...i),"makePagedClientRequest"),Imt=r(async(e,t,...i)=>await e.listJobs(t,...i),"makePagedRequest");async function*Rmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tmt.IoT)o=await Imt(e.client,t,...i);else if(e.client instanceof xmt.IoTClient)o=await Pmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rmt,"paginateListJobs");C0.paginateListJobs=Rmt});var I9=h(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});T0.paginateListMetricValues=void 0;var qmt=ey(),Lmt=ue(),zmt=oe(),Fmt=r(async(e,t,...i)=>await e.send(new qmt.ListMetricValuesCommand(t),...i),"makePagedClientRequest"),Nmt=r(async(e,t,...i)=>await e.listMetricValues(t,...i),"makePagedRequest");async function*Dmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lmt.IoT)o=await Nmt(e.client,t,...i);else if(e.client instanceof zmt.IoTClient)o=await Fmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dmt,"paginateListMetricValues");T0.paginateListMetricValues=Dmt});var R9=h(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});x0.paginateListMitigationActions=void 0;var kmt=iy(),Jmt=ue(),Mmt=oe(),Umt=r(async(e,t,...i)=>await e.send(new kmt.ListMitigationActionsCommand(t),...i),"makePagedClientRequest"),Omt=r(async(e,t,...i)=>await e.listMitigationActions(t,...i),"makePagedRequest");async function*jmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jmt.IoT)o=await Omt(e.client,t,...i);else if(e.client instanceof Mmt.IoTClient)o=await Umt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jmt,"paginateListMitigationActions");x0.paginateListMitigationActions=jmt});var q9=h(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});P0.paginateListOTAUpdates=void 0;var Gmt=ny(),Vmt=ue(),Bmt=oe(),$mt=r(async(e,t,...i)=>await e.send(new Gmt.ListOTAUpdatesCommand(t),...i),"makePagedClientRequest"),Hmt=r(async(e,t,...i)=>await e.listOTAUpdates(t,...i),"makePagedRequest");async function*Wmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vmt.IoT)o=await Hmt(e.client,t,...i);else if(e.client instanceof Bmt.IoTClient)o=await $mt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wmt,"paginateListOTAUpdates");P0.paginateListOTAUpdates=Wmt});var L9=h(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});I0.paginateListOutgoingCertificates=void 0;var Kmt=oy(),Ymt=ue(),Qmt=oe(),Xmt=r(async(e,t,...i)=>await e.send(new Kmt.ListOutgoingCertificatesCommand(t),...i),"makePagedClientRequest"),Zmt=r(async(e,t,...i)=>await e.listOutgoingCertificates(t,...i),"makePagedRequest");async function*ept(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Ymt.IoT)o=await Zmt(e.client,t,...i);else if(e.client instanceof Qmt.IoTClient)o=await Xmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(ept,"paginateListOutgoingCertificates");I0.paginateListOutgoingCertificates=ept});var z9=h(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.paginateListPolicies=void 0;var tpt=cy(),ipt=ue(),spt=oe(),npt=r(async(e,t,...i)=>await e.send(new tpt.ListPoliciesCommand(t),...i),"makePagedClientRequest"),rpt=r(async(e,t,...i)=>await e.listPolicies(t,...i),"makePagedRequest");async function*opt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof ipt.IoT)o=await rpt(e.client,t,...i);else if(e.client instanceof spt.IoTClient)o=await npt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(opt,"paginateListPolicies");R0.paginateListPolicies=opt});var F9=h(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.paginateListPolicyPrincipals=void 0;var apt=dy(),cpt=ue(),lpt=oe(),dpt=r(async(e,t,...i)=>await e.send(new apt.ListPolicyPrincipalsCommand(t),...i),"makePagedClientRequest"),upt=r(async(e,t,...i)=>await e.listPolicyPrincipals(t,...i),"makePagedRequest");async function*mpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof cpt.IoT)o=await upt(e.client,t,...i);else if(e.client instanceof lpt.IoTClient)o=await dpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mpt,"paginateListPolicyPrincipals");q0.paginateListPolicyPrincipals=mpt});var N9=h(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.paginateListPrincipalPolicies=void 0;var ppt=py(),hpt=ue(),fpt=oe(),gpt=r(async(e,t,...i)=>await e.send(new ppt.ListPrincipalPoliciesCommand(t),...i),"makePagedClientRequest"),wpt=r(async(e,t,...i)=>await e.listPrincipalPolicies(t,...i),"makePagedRequest");async function*_pt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof hpt.IoT)o=await wpt(e.client,t,...i);else if(e.client instanceof fpt.IoTClient)o=await gpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_pt,"paginateListPrincipalPolicies");L0.paginateListPrincipalPolicies=_pt});var D9=h(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});z0.paginateListPrincipalThings=void 0;var ypt=fy(),Spt=ue(),vpt=oe(),Ept=r(async(e,t,...i)=>await e.send(new ypt.ListPrincipalThingsCommand(t),...i),"makePagedClientRequest"),Apt=r(async(e,t,...i)=>await e.listPrincipalThings(t,...i),"makePagedRequest");async function*bpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Spt.IoT)o=await Apt(e.client,t,...i);else if(e.client instanceof vpt.IoTClient)o=await Ept(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bpt,"paginateListPrincipalThings");z0.paginateListPrincipalThings=bpt});var k9=h(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.paginateListProvisioningTemplateVersions=void 0;var Cpt=yy(),Tpt=ue(),xpt=oe(),Ppt=r(async(e,t,...i)=>await e.send(new Cpt.ListProvisioningTemplateVersionsCommand(t),...i),"makePagedClientRequest"),Ipt=r(async(e,t,...i)=>await e.listProvisioningTemplateVersions(t,...i),"makePagedRequest");async function*Rpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tpt.IoT)o=await Ipt(e.client,t,...i);else if(e.client instanceof xpt.IoTClient)o=await Ppt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rpt,"paginateListProvisioningTemplateVersions");F0.paginateListProvisioningTemplateVersions=Rpt});var J9=h(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});N0.paginateListProvisioningTemplates=void 0;var qpt=wy(),Lpt=ue(),zpt=oe(),Fpt=r(async(e,t,...i)=>await e.send(new qpt.ListProvisioningTemplatesCommand(t),...i),"makePagedClientRequest"),Npt=r(async(e,t,...i)=>await e.listProvisioningTemplates(t,...i),"makePagedRequest");async function*Dpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lpt.IoT)o=await Npt(e.client,t,...i);else if(e.client instanceof zpt.IoTClient)o=await Fpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dpt,"paginateListProvisioningTemplates");N0.paginateListProvisioningTemplates=Dpt});var M9=h(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.paginateListRoleAliases=void 0;var kpt=vy(),Jpt=ue(),Mpt=oe(),Upt=r(async(e,t,...i)=>await e.send(new kpt.ListRoleAliasesCommand(t),...i),"makePagedClientRequest"),Opt=r(async(e,t,...i)=>await e.listRoleAliases(t,...i),"makePagedRequest");async function*jpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Jpt.IoT)o=await Opt(e.client,t,...i);else if(e.client instanceof Mpt.IoTClient)o=await Upt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jpt,"paginateListRoleAliases");D0.paginateListRoleAliases=jpt});var U9=h(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});k0.paginateListScheduledAudits=void 0;var Gpt=Ay(),Vpt=ue(),Bpt=oe(),$pt=r(async(e,t,...i)=>await e.send(new Gpt.ListScheduledAuditsCommand(t),...i),"makePagedClientRequest"),Hpt=r(async(e,t,...i)=>await e.listScheduledAudits(t,...i),"makePagedRequest");async function*Wpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vpt.IoT)o=await Hpt(e.client,t,...i);else if(e.client instanceof Bpt.IoTClient)o=await $pt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wpt,"paginateListScheduledAudits");k0.paginateListScheduledAudits=Wpt});var O9=h(J0=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});J0.paginateListSecurityProfilesForTarget=void 0;var Kpt=xy(),Ypt=ue(),Qpt=oe(),Xpt=r(async(e,t,...i)=>await e.send(new Kpt.ListSecurityProfilesForTargetCommand(t),...i),"makePagedClientRequest"),Zpt=r(async(e,t,...i)=>await e.listSecurityProfilesForTarget(t,...i),"makePagedRequest");async function*eht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ypt.IoT)o=await Zpt(e.client,t,...i);else if(e.client instanceof Qpt.IoTClient)o=await Xpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(eht,"paginateListSecurityProfilesForTarget");J0.paginateListSecurityProfilesForTarget=eht});var j9=h(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});M0.paginateListSecurityProfiles=void 0;var tht=Cy(),iht=ue(),sht=oe(),nht=r(async(e,t,...i)=>await e.send(new tht.ListSecurityProfilesCommand(t),...i),"makePagedClientRequest"),rht=r(async(e,t,...i)=>await e.listSecurityProfiles(t,...i),"makePagedRequest");async function*oht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof iht.IoT)o=await rht(e.client,t,...i);else if(e.client instanceof sht.IoTClient)o=await nht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(oht,"paginateListSecurityProfiles");M0.paginateListSecurityProfiles=oht});var G9=h(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});U0.paginateListStreams=void 0;var aht=Iy(),cht=ue(),lht=oe(),dht=r(async(e,t,...i)=>await e.send(new aht.ListStreamsCommand(t),...i),"makePagedClientRequest"),uht=r(async(e,t,...i)=>await e.listStreams(t,...i),"makePagedRequest");async function*mht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof cht.IoT)o=await uht(e.client,t,...i);else if(e.client instanceof lht.IoTClient)o=await dht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mht,"paginateListStreams");U0.paginateListStreams=mht});var V9=h(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.paginateListTagsForResource=void 0;var pht=qy(),hht=ue(),fht=oe(),ght=r(async(e,t,...i)=>await e.send(new pht.ListTagsForResourceCommand(t),...i),"makePagedClientRequest"),wht=r(async(e,t,...i)=>await e.listTagsForResource(t,...i),"makePagedRequest");async function*_ht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,e.client instanceof hht.IoT)o=await wht(e.client,t,...i);else if(e.client instanceof fht.IoTClient)o=await ght(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_ht,"paginateListTagsForResource");O0.paginateListTagsForResource=_ht});var B9=h(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.paginateListTargetsForPolicy=void 0;var yht=zy(),Sht=ue(),vht=oe(),Eht=r(async(e,t,...i)=>await e.send(new yht.ListTargetsForPolicyCommand(t),...i),"makePagedClientRequest"),Aht=r(async(e,t,...i)=>await e.listTargetsForPolicy(t,...i),"makePagedRequest");async function*bht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Sht.IoT)o=await Aht(e.client,t,...i);else if(e.client instanceof vht.IoTClient)o=await Eht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bht,"paginateListTargetsForPolicy");j0.paginateListTargetsForPolicy=bht});var $9=h(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.paginateListTargetsForSecurityProfile=void 0;var Cht=Ny(),Tht=ue(),xht=oe(),Pht=r(async(e,t,...i)=>await e.send(new Cht.ListTargetsForSecurityProfileCommand(t),...i),"makePagedClientRequest"),Iht=r(async(e,t,...i)=>await e.listTargetsForSecurityProfile(t,...i),"makePagedRequest");async function*Rht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tht.IoT)o=await Iht(e.client,t,...i);else if(e.client instanceof xht.IoTClient)o=await Pht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rht,"paginateListTargetsForSecurityProfile");G0.paginateListTargetsForSecurityProfile=Rht});var H9=h(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.paginateListThingGroupsForThing=void 0;var qht=My(),Lht=ue(),zht=oe(),Fht=r(async(e,t,...i)=>await e.send(new qht.ListThingGroupsForThingCommand(t),...i),"makePagedClientRequest"),Nht=r(async(e,t,...i)=>await e.listThingGroupsForThing(t,...i),"makePagedRequest");async function*Dht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lht.IoT)o=await Nht(e.client,t,...i);else if(e.client instanceof zht.IoTClient)o=await Fht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dht,"paginateListThingGroupsForThing");V0.paginateListThingGroupsForThing=Dht});var W9=h(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.paginateListThingGroups=void 0;var kht=ky(),Jht=ue(),Mht=oe(),Uht=r(async(e,t,...i)=>await e.send(new kht.ListThingGroupsCommand(t),...i),"makePagedClientRequest"),Oht=r(async(e,t,...i)=>await e.listThingGroups(t,...i),"makePagedRequest");async function*jht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jht.IoT)o=await Oht(e.client,t,...i);else if(e.client instanceof Mht.IoTClient)o=await Uht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jht,"paginateListThingGroups");B0.paginateListThingGroups=jht});var K9=h($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});$0.paginateListThingPrincipals=void 0;var Ght=Oy(),Vht=ue(),Bht=oe(),$ht=r(async(e,t,...i)=>await e.send(new Ght.ListThingPrincipalsCommand(t),...i),"makePagedClientRequest"),Hht=r(async(e,t,...i)=>await e.listThingPrincipals(t,...i),"makePagedRequest");async function*Wht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vht.IoT)o=await Hht(e.client,t,...i);else if(e.client instanceof Bht.IoTClient)o=await $ht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wht,"paginateListThingPrincipals");$0.paginateListThingPrincipals=Wht});var Y9=h(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});H0.paginateListThingRegistrationTaskReports=void 0;var Kht=Gy(),Yht=ue(),Qht=oe(),Xht=r(async(e,t,...i)=>await e.send(new Kht.ListThingRegistrationTaskReportsCommand(t),...i),"makePagedClientRequest"),Zht=r(async(e,t,...i)=>await e.listThingRegistrationTaskReports(t,...i),"makePagedRequest");async function*eft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Yht.IoT)o=await Zht(e.client,t,...i);else if(e.client instanceof Qht.IoTClient)o=await Xht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(eft,"paginateListThingRegistrationTaskReports");H0.paginateListThingRegistrationTaskReports=eft});var Q9=h(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.paginateListThingRegistrationTasks=void 0;var tft=By(),ift=ue(),sft=oe(),nft=r(async(e,t,...i)=>await e.send(new tft.ListThingRegistrationTasksCommand(t),...i),"makePagedClientRequest"),rft=r(async(e,t,...i)=>await e.listThingRegistrationTasks(t,...i),"makePagedRequest");async function*oft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ift.IoT)o=await rft(e.client,t,...i);else if(e.client instanceof sft.IoTClient)o=await nft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(oft,"paginateListThingRegistrationTasks");W0.paginateListThingRegistrationTasks=oft});var X9=h(K0=>{"use strict";Object.defineProperty(K0,"__esModule",{value:!0});K0.paginateListThingTypes=void 0;var aft=Zy(),cft=ue(),lft=oe(),dft=r(async(e,t,...i)=>await e.send(new aft.ListThingTypesCommand(t),...i),"makePagedClientRequest"),uft=r(async(e,t,...i)=>await e.listThingTypes(t,...i),"makePagedRequest");async function*mft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof cft.IoT)o=await uft(e.client,t,...i);else if(e.client instanceof lft.IoTClient)o=await dft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mft,"paginateListThingTypes");K0.paginateListThingTypes=mft});var Z9=h(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.paginateListThingsInBillingGroup=void 0;var pft=Ky(),hft=ue(),fft=oe(),gft=r(async(e,t,...i)=>await e.send(new pft.ListThingsInBillingGroupCommand(t),...i),"makePagedClientRequest"),wft=r(async(e,t,...i)=>await e.listThingsInBillingGroup(t,...i),"makePagedRequest");async function*_ft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof hft.IoT)o=await wft(e.client,t,...i);else if(e.client instanceof fft.IoTClient)o=await gft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_ft,"paginateListThingsInBillingGroup");Y0.paginateListThingsInBillingGroup=_ft});var eQ=h(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.paginateListThingsInThingGroup=void 0;var yft=Qy(),Sft=ue(),vft=oe(),Eft=r(async(e,t,...i)=>await e.send(new yft.ListThingsInThingGroupCommand(t),...i),"makePagedClientRequest"),Aft=r(async(e,t,...i)=>await e.listThingsInThingGroup(t,...i),"makePagedRequest");async function*bft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Sft.IoT)o=await Aft(e.client,t,...i);else if(e.client instanceof vft.IoTClient)o=await Eft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bft,"paginateListThingsInThingGroup");Q0.paginateListThingsInThingGroup=bft});var tQ=h(X0=>{"use strict";Object.defineProperty(X0,"__esModule",{value:!0});X0.paginateListThings=void 0;var Cft=Hy(),Tft=ue(),xft=oe(),Pft=r(async(e,t,...i)=>await e.send(new Cft.ListThingsCommand(t),...i),"makePagedClientRequest"),Ift=r(async(e,t,...i)=>await e.listThings(t,...i),"makePagedRequest");async function*Rft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tft.IoT)o=await Ift(e.client,t,...i);else if(e.client instanceof xft.IoTClient)o=await Pft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rft,"paginateListThings");X0.paginateListThings=Rft});var iQ=h(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});Z0.paginateListTopicRuleDestinations=void 0;var qft=tS(),Lft=ue(),zft=oe(),Fft=r(async(e,t,...i)=>await e.send(new qft.ListTopicRuleDestinationsCommand(t),...i),"makePagedClientRequest"),Nft=r(async(e,t,...i)=>await e.listTopicRuleDestinations(t,...i),"makePagedRequest");async function*Dft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lft.IoT)o=await Nft(e.client,t,...i);else if(e.client instanceof zft.IoTClient)o=await Fft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dft,"paginateListTopicRuleDestinations");Z0.paginateListTopicRuleDestinations=Dft});var sQ=h(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.paginateListTopicRules=void 0;var kft=sS(),Jft=ue(),Mft=oe(),Uft=r(async(e,t,...i)=>await e.send(new kft.ListTopicRulesCommand(t),...i),"makePagedClientRequest"),Oft=r(async(e,t,...i)=>await e.listTopicRules(t,...i),"makePagedRequest");async function*jft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jft.IoT)o=await Oft(e.client,t,...i);else if(e.client instanceof Mft.IoTClient)o=await Uft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jft,"paginateListTopicRules");eT.paginateListTopicRules=jft});var nQ=h(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});tT.paginateListV2LoggingLevels=void 0;var Gft=rS(),Vft=ue(),Bft=oe(),$ft=r(async(e,t,...i)=>await e.send(new Gft.ListV2LoggingLevelsCommand(t),...i),"makePagedClientRequest"),Hft=r(async(e,t,...i)=>await e.listV2LoggingLevels(t,...i),"makePagedRequest");async function*Wft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vft.IoT)o=await Hft(e.client,t,...i);else if(e.client instanceof Bft.IoTClient)o=await $ft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wft,"paginateListV2LoggingLevels");tT.paginateListV2LoggingLevels=Wft});var rQ=h(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.paginateListViolationEvents=void 0;var Kft=aS(),Yft=ue(),Qft=oe(),Xft=r(async(e,t,...i)=>await e.send(new Kft.ListViolationEventsCommand(t),...i),"makePagedClientRequest"),Zft=r(async(e,t,...i)=>await e.listViolationEvents(t,...i),"makePagedRequest");async function*egt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Yft.IoT)o=await Zft(e.client,t,...i);else if(e.client instanceof Qft.IoTClient)o=await Xft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(egt,"paginateListViolationEvents");iT.paginateListViolationEvents=egt});var oQ=h(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});var pe=(de(),re(le));pe.__exportStar(s9(),ae);pe.__exportStar(r9(),ae);pe.__exportStar(o9(),ae);pe.__exportStar(a9(),ae);pe.__exportStar(c9(),ae);pe.__exportStar(l9(),ae);pe.__exportStar(d9(),ae);pe.__exportStar(u9(),ae);pe.__exportStar(m9(),ae);pe.__exportStar(p9(),ae);pe.__exportStar(h9(),ae);pe.__exportStar(f9(),ae);pe.__exportStar(g9(),ae);pe.__exportStar(w9(),ae);pe.__exportStar(_9(),ae);pe.__exportStar(y9(),ae);pe.__exportStar(S9(),ae);pe.__exportStar(v9(),ae);pe.__exportStar(E9(),ae);pe.__exportStar(A9(),ae);pe.__exportStar(b9(),ae);pe.__exportStar(C9(),ae);pe.__exportStar(T9(),ae);pe.__exportStar(x9(),ae);pe.__exportStar(P9(),ae);pe.__exportStar(I9(),ae);pe.__exportStar(R9(),ae);pe.__exportStar(q9(),ae);pe.__exportStar(L9(),ae);pe.__exportStar(z9(),ae);pe.__exportStar(F9(),ae);pe.__exportStar(N9(),ae);pe.__exportStar(D9(),ae);pe.__exportStar(k9(),ae);pe.__exportStar(J9(),ae);pe.__exportStar(M9(),ae);pe.__exportStar(U9(),ae);pe.__exportStar(O9(),ae);pe.__exportStar(j9(),ae);pe.__exportStar(G9(),ae);pe.__exportStar(V9(),ae);pe.__exportStar(B9(),ae);pe.__exportStar($9(),ae);pe.__exportStar(H9(),ae);pe.__exportStar(W9(),ae);pe.__exportStar(K9(),ae);pe.__exportStar(Y9(),ae);pe.__exportStar(Q9(),ae);pe.__exportStar(X9(),ae);pe.__exportStar(Z9(),ae);pe.__exportStar(eQ(),ae);pe.__exportStar(tQ(),ae);pe.__exportStar(iQ(),ae);pe.__exportStar(sQ(),ae);pe.__exportStar(nQ(),ae);pe.__exportStar(rQ(),ae)});var aQ=h(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.IoTServiceException=void 0;var _p=(de(),re(le));_p.__exportStar(ue(),fs);_p.__exportStar(oe(),fs);_p.__exportStar(t9(),fs);_p.__exportStar(i9(),fs);_p.__exportStar(oQ(),fs);var tgt=yr();Object.defineProperty(fs,"IoTServiceException",{enumerable:!0,get:function(){return tgt.IoTServiceException}})});var lQ=Gz(dM(),1),sT=Gz(aQ(),1);import igt from"crypto";var sgt=new sT.IoTClient({}),ngt=await sgt.send(new sT.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),rgt=ngt.endpointAddress,Uz=igt.randomBytes(16).toString("hex"),dQ=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,ogt={SST_DEBUG_ENDPOINT:!0,SST_DEBUG_SRC_HANDLER:!0,SST_DEBUG_SRC_PATH:!0,AWS_LAMBDA_FUNCTION_MEMORY_SIZE:!0,AWS_LAMBDA_LOG_GROUP_NAME:!0,AWS_LAMBDA_LOG_STREAM_NAME:!0,LD_LIBRARY_PATH:!0,LAMBDA_TASK_ROOT:!0,AWS_LAMBDA_RUNTIME_API:!0,AWS_EXECUTION_ENV:!0,AWS_XRAY_DAEMON_ADDRESS:!0,AWS_LAMBDA_INITIALIZATION_TYPE:!0,PATH:!0,PWD:!0,LAMBDA_RUNTIME_DIR:!0,LANG:!0,NODE_PATH:!0,TZ:!0,SHLVL:!0,_AWS_XRAY_DAEMON_ADDRESS:!0,_AWS_XRAY_DAEMON_PORT:!0,AWS_XRAY_CONTEXT_MISSING:!0,_HANDLER:!0,_LAMBDA_CONSOLE_SOCKET:!0,_LAMBDA_CONTROL_SOCKET:!0,_LAMBDA_LOG_FD:!0,_LAMBDA_RUNTIME_LOAD_TIME:!0,_LAMBDA_SB_ID:!0,_LAMBDA_SERVER_PORT:!0,_LAMBDA_SHARED_MEM_FD:!0},agt=Object.fromEntries(Object.entries(process.env).filter(([e,t])=>ogt[e]!==!0)),yp=new lQ.default.device({protocol:"wss",host:rgt});yp.on("error",console.log);yp.on("connect",console.log);yp.subscribe(`${dQ}/events`);var cQ=new Map,uQ;yp.on("message",(e,t)=>{let i=JSON.parse(t.toString()),s=cQ.get(i.id);if(s||(s=new Map,cQ.set(i.id,s)),s.set(i.index,i),s.size===i.count){let n=[...s.values()].sort((c,d)=>c.index-d.index).map(c=>c.data).join(""),o=JSON.parse(n);uQ(o)}});async function hOt(e,t){for(let s of cgt({type:"function.invoked",properties:{workerID:Uz,requestID:t.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:t.getRemainingTimeInMillis(),event:e,context:t,env:agt}}))yp.publish(`${dQ}/events`,JSON.stringify(s));let i=await new Promise(s=>{let n=setTimeout(()=>{s({type:"function.timeout"})},5e3);uQ=r(o=>{o.type==="function.ack"&&o.properties.workerID===Uz&&clearTimeout(n),["function.success","function.error"].includes(o.type)&&o.properties.workerID===Uz&&(clearTimeout(n),s(o))},"onMessage")});if(console.log("Got result",i),i.type==="function.timeout")return"This function is in live debug mode but there is no `sst dev` session running";if(i.type==="function.success")return i.properties.body;if(i.type==="function.error"){let s=new Error(i.properties.errorMessage);throw s.stack=i.properties.trace.join(`
|
|
58
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e},"validateSsoProfile");AC.validateSsoProfile=Ast});var rY=h(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});bC.fromSSO=void 0;var iY=We(),sY=Zs(),bst=RL(),nY=tY(),Cst=Tz(),Tst=r((e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o}=e;if(!t&&!i&&!s&&!n){let c=await(0,sY.parseKnownFiles)(e),d=(0,sY.getProfileName)(e),l=c[d];if(!(0,bst.isSsoProfile)(l))throw new iY.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:m,sso_region:_,sso_role_name:y}=(0,Cst.validateSsoProfile)(l);return(0,nY.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:m,ssoRegion:_,ssoRoleName:y,ssoClient:o})}else{if(!t||!i||!s||!n)throw new iY.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,nY.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n,ssoClient:o})}},"fromSSO");bC.fromSSO=Tst});var aY=h(oY=>{"use strict";Object.defineProperty(oY,"__esModule",{value:!0})});var TC=h(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var CC=(de(),re(le));CC.__exportStar(rY(),bu);CC.__exportStar(RL(),bu);CC.__exportStar(aY(),bu);CC.__exportStar(Tz(),bu)});var lY=h(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.resolveSsoCredentials=Cu.isSsoProfile=void 0;var cY=TC(),xst=TC();Object.defineProperty(Cu,"isSsoProfile",{enumerable:!0,get:function(){return xst.isSsoProfile}});var Pst=r(e=>{let{sso_start_url:t,sso_account_id:i,sso_region:s,sso_role_name:n}=(0,cY.validateSsoProfile)(e);return(0,cY.fromSSO)({ssoStartUrl:t,ssoAccountId:i,ssoRegion:s,ssoRoleName:n})()},"resolveSsoCredentials");Cu.resolveSsoCredentials=Pst});var dY=h(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.resolveStaticCredentials=Tu.isStaticCredsProfile=void 0;var Ist=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,"isStaticCredsProfile");Tu.isStaticCredsProfile=Ist;var Rst=r(e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),"resolveStaticCredentials");Tu.resolveStaticCredentials=Rst});var xz=h(xC=>{"use strict";Object.defineProperty(xC,"__esModule",{value:!0});xC.fromWebToken=void 0;var qst=We(),Lst=r(e=>()=>{let{roleArn:t,roleSessionName:i,webIdentityToken:s,providerId:n,policyArns:o,policy:c,durationSeconds:d,roleAssumerWithWebIdentity:l}=e;if(!l)throw new qst.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:i??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:s,ProviderId:n,PolicyArns:o,Policy:c,DurationSeconds:d})},"fromWebToken");xC.fromWebToken=Lst});var uY=h(PC=>{"use strict";Object.defineProperty(PC,"__esModule",{value:!0});PC.fromTokenFile=void 0;var zst=We(),Fst=$("fs"),Nst=xz(),Dst="AWS_WEB_IDENTITY_TOKEN_FILE",kst="AWS_ROLE_ARN",Jst="AWS_ROLE_SESSION_NAME",Mst=r((e={})=>async()=>Ust(e),"fromTokenFile");PC.fromTokenFile=Mst;var Ust=r(e=>{var t,i,s;let n=(t=e?.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Dst],o=(i=e?.roleArn)!==null&&i!==void 0?i:process.env[kst],c=(s=e?.roleSessionName)!==null&&s!==void 0?s:process.env[Jst];if(!n||!o)throw new zst.CredentialsProviderError("Web identity configuration not specified");return(0,Nst.fromWebToken)({...e,webIdentityToken:(0,Fst.readFileSync)(n,{encoding:"ascii"}),roleArn:o,roleSessionName:c})()},"resolveTokenFile")});var Pz=h(IC=>{"use strict";Object.defineProperty(IC,"__esModule",{value:!0});var mY=(de(),re(le));mY.__exportStar(uY(),IC);mY.__exportStar(xz(),IC)});var pY=h(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.resolveWebIdentityCredentials=xu.isWebIdentityProfile=void 0;var Ost=Pz(),jst=r(e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile");xu.isWebIdentityProfile=jst;var Gst=r(async(e,t)=>(0,Ost.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})(),"resolveWebIdentityCredentials");xu.resolveWebIdentityCredentials=Gst});var IL=h(qC=>{"use strict";Object.defineProperty(qC,"__esModule",{value:!0});qC.resolveProfileData=void 0;var Vst=We(),hY=V8(),fY=lY(),RC=dY(),gY=pY(),Bst=r(async(e,t,i,s={})=>{let n=t[e];if(Object.keys(s).length>0&&(0,RC.isStaticCredsProfile)(n))return(0,RC.resolveStaticCredentials)(n);if((0,hY.isAssumeRoleProfile)(n))return(0,hY.resolveAssumeRoleCredentials)(e,t,i,s);if((0,RC.isStaticCredsProfile)(n))return(0,RC.resolveStaticCredentials)(n);if((0,gY.isWebIdentityProfile)(n))return(0,gY.resolveWebIdentityCredentials)(n,i);if((0,fY.isSsoProfile)(n))return(0,fY.resolveSsoCredentials)(n);throw new Vst.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},"resolveProfileData");qC.resolveProfileData=Bst});var _Y=h(LC=>{"use strict";Object.defineProperty(LC,"__esModule",{value:!0});LC.fromIni=void 0;var wY=Zs(),$st=IL(),Hst=r((e={})=>async()=>{let t=await(0,wY.parseKnownFiles)(e);return(0,$st.resolveProfileData)((0,wY.getProfileName)(e),t,e)},"fromIni");LC.fromIni=Hst});var yY=h(Iz=>{"use strict";Object.defineProperty(Iz,"__esModule",{value:!0});var Wst=(de(),re(le));Wst.__exportStar(_Y(),Iz)});var SY=h(zC=>{"use strict";Object.defineProperty(zC,"__esModule",{value:!0});zC.getValidatedProcessCredentials=void 0;var Kst=r((e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let i=new Date;if(new Date(t.Expiration)<i)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}},"getValidatedProcessCredentials");zC.getValidatedProcessCredentials=Kst});var vY=h(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0});FC.resolveProcessCredentials=void 0;var Rz=We(),Yst=$("child_process"),Qst=$("util"),Xst=SY(),Zst=r(async(e,t)=>{let i=t[e];if(t[e]){let s=i.credential_process;if(s!==void 0){let n=(0,Qst.promisify)(Yst.exec);try{let{stdout:o}=await n(s),c;try{c=JSON.parse(o.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,Xst.getValidatedProcessCredentials)(e,c)}catch(o){throw new Rz.CredentialsProviderError(o.message)}}else throw new Rz.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new Rz.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},"resolveProcessCredentials");FC.resolveProcessCredentials=Zst});var AY=h(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});NC.fromProcess=void 0;var EY=Zs(),ent=vY(),tnt=r((e={})=>async()=>{let t=await(0,EY.parseKnownFiles)(e);return(0,ent.resolveProcessCredentials)((0,EY.getProfileName)(e),t)},"fromProcess");NC.fromProcess=tnt});var bY=h(qz=>{"use strict";Object.defineProperty(qz,"__esModule",{value:!0});var int=(de(),re(le));int.__exportStar(AY(),qz)});var CY=h(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.remoteProvider=Hn.ENV_IMDS_DISABLED=void 0;var DC=sA(),snt=We();Hn.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var nnt=r(e=>process.env[DC.ENV_CMDS_RELATIVE_URI]||process.env[DC.ENV_CMDS_FULL_URI]?(0,DC.fromContainerMetadata)(e):process.env[Hn.ENV_IMDS_DISABLED]?async()=>{throw new snt.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,DC.fromInstanceMetadata)(e),"remoteProvider");Hn.remoteProvider=nnt});var TY=h(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.defaultProvider=void 0;var rnt=pL(),ont=yY(),ant=bY(),cnt=TC(),lnt=Pz(),Lz=We(),dnt=Zs(),unt=CY(),mnt=r((e={})=>(0,Lz.memoize)((0,Lz.chain)(...e.profile||process.env[dnt.ENV_PROFILE]?[]:[(0,rnt.fromEnv)()],(0,cnt.fromSSO)(e),(0,ont.fromIni)(e),(0,ant.fromProcess)(e),(0,lnt.fromTokenFile)(e),(0,unt.remoteProvider)(e),async()=>{throw new Lz.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0),"defaultProvider");kC.defaultProvider=mnt});var Fz=h(zz=>{"use strict";Object.defineProperty(zz,"__esModule",{value:!0});var pnt=(de(),re(le));pnt.__exportStar(TY(),zz)});var xY=h(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.ruleSet=void 0;JC.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:!1,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:!0,default:!1,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:!0,default:!1,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:!1,documentation:"Override the endpoint used to send this request",type:"String"},UseGlobalEndpoint:{builtIn:"AWS::STS::UseGlobalEndpoint",required:!0,default:!1,documentation:"Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.",type:"Boolean"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseGlobalEndpoint"},!0]},{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!1]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!1]},{fn:"not",argv:[{fn:"isSet",argv:[{ref:"Endpoint"}]}]}],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-northeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-south-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ap-southeast-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"ca-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-central-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-north-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"eu-west-3"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"sa-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-east-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-1"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"us-west-2"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"{Region}"}]},headers:{}},type:"endpoint"}]},{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:["aws-us-gov",{fn:"getAttr",argv:[{ref:"PartitionResult"},"name"]}]}],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],type:"tree",rules:[{conditions:[{fn:"stringEquals",argv:[{ref:"Region"},"aws-global"]}],endpoint:{url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:"sigv4",signingName:"sts",signingRegion:"us-east-1"}]},headers:{}},type:"endpoint"},{conditions:[],endpoint:{url:"https://sts.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}]}});var PY=h(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.defaultEndpointResolver=void 0;var hnt=sC(),fnt=xY(),gnt=r((e,t={})=>(0,hnt.resolveEndpoint)(fnt.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");MC.defaultEndpointResolver=gnt});var RY=h(UC=>{"use strict";Object.defineProperty(UC,"__esModule",{value:!0});UC.getRuntimeConfig=void 0;var wnt=mr(),IY=Ab(),_nt=PY(),ynt=r(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??IY.fromBase64,base64Encoder:e?.base64Encoder??IY.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??_nt.defaultEndpointResolver,logger:e?.logger??{},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??wnt.parseUrl}),"getRuntimeConfig");UC.getRuntimeConfig=ynt});var zY=h(jC=>{"use strict";Object.defineProperty(jC,"__esModule",{value:!0});jC.getRuntimeConfig=void 0;var Snt=(de(),re(le)),vnt=Snt.__importDefault(i8()),Ent=uL(),OC=Us(),Ant=Fz(),bnt=PA(),Nz=Nn(),hp=jn(),qY=jA(),Cnt=VA(),Tnt=_b(),LY=yb(),xnt=RY(),Pnt=A(),Int=lC(),Rnt=A(),qnt=r(e=>{(0,Rnt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Int.resolveDefaultsModeConfig)(e),i=r(()=>t().then(Pnt.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,xnt.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??Cnt.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,Ent.decorateDefaultCredentialProvider)(Ant.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Tnt.defaultUserAgent)({serviceId:s.serviceId,clientVersion:vnt.default.version}),maxAttempts:e?.maxAttempts??(0,hp.loadConfig)(Nz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,hp.loadConfig)(OC.NODE_REGION_CONFIG_OPTIONS,OC.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new qY.NodeHttpHandler(i),retryMode:e?.retryMode??(0,hp.loadConfig)({...Nz.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||Nz.DEFAULT_RETRY_MODE}),sha256:e?.sha256??bnt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??qY.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,hp.loadConfig)(OC.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,hp.loadConfig)(OC.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??LY.fromUtf8,utf8Encoder:e?.utf8Encoder??LY.toUtf8}},"getRuntimeConfig");jC.getRuntimeConfig=qnt});var VC=h(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0});GC.STSClient=void 0;var Lnt=Us(),znt=yv(),Fnt=b(),FY=Sv(),Nnt=vv(),Dnt=Ev(),NY=Nn(),knt=e8(),DY=uE(),Jnt=A(),Mnt=t8(),Unt=zY(),Pu=class extends Jnt.Client{constructor(t){let i=(0,Unt.getRuntimeConfig)(t),s=(0,Mnt.resolveClientEndpointParameters)(i),n=(0,Lnt.resolveRegionConfig)(s),o=(0,Fnt.resolveEndpointConfig)(n),c=(0,NY.resolveRetryConfig)(o),d=(0,FY.resolveHostHeaderConfig)(c),l=(0,knt.resolveStsAuthConfig)(d,{stsClientCtor:Pu}),u=(0,DY.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,NY.getRetryPlugin)(this.config)),this.middlewareStack.use((0,znt.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,FY.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Nnt.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Dnt.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,DY.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};r(Pu,"STSClient");GC.STSClient=Pu});var kY=h($C=>{"use strict";Object.defineProperty($C,"__esModule",{value:!0});$C.STS=void 0;var Ont=EE(),jnt=rL(),Gnt=CE(),Vnt=oL(),Bnt=aL(),$nt=cL(),Hnt=lL(),Wnt=dL(),Knt=VC(),BC=class extends Knt.STSClient{assumeRole(t,i,s){let n=new Ont.AssumeRoleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithSAML(t,i,s){let n=new jnt.AssumeRoleWithSAMLCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}assumeRoleWithWebIdentity(t,i,s){let n=new Gnt.AssumeRoleWithWebIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}decodeAuthorizationMessage(t,i,s){let n=new Vnt.DecodeAuthorizationMessageCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getAccessKeyInfo(t,i,s){let n=new Bnt.GetAccessKeyInfoCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCallerIdentity(t,i,s){let n=new $nt.GetCallerIdentityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getFederationToken(t,i,s){let n=new Hnt.GetFederationTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getSessionToken(t,i,s){let n=new Wnt.GetSessionTokenCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(BC,"STS");$C.STS=BC});var JY=h($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var cn=(de(),re(le));cn.__exportStar(EE(),$i);cn.__exportStar(rL(),$i);cn.__exportStar(CE(),$i);cn.__exportStar(oL(),$i);cn.__exportStar(aL(),$i);cn.__exportStar(cL(),$i);cn.__exportStar(lL(),$i);cn.__exportStar(dL(),$i)});var jY=h(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.decorateDefaultCredentialProvider=Hi.getDefaultRoleAssumerWithWebIdentity=Hi.getDefaultRoleAssumer=void 0;var MY=uL(),UY=VC(),OY=r((e,t)=>t?r(class extends e{constructor(s){super(s);for(let n of t)this.middlewareStack.use(n)}},"CustomizableSTSClient"):e,"getCustomizableStsClientCtor"),Ynt=r((e={},t)=>(0,MY.getDefaultRoleAssumer)(e,OY(UY.STSClient,t)),"getDefaultRoleAssumer");Hi.getDefaultRoleAssumer=Ynt;var Qnt=r((e={},t)=>(0,MY.getDefaultRoleAssumerWithWebIdentity)(e,OY(UY.STSClient,t)),"getDefaultRoleAssumerWithWebIdentity");Hi.getDefaultRoleAssumerWithWebIdentity=Qnt;var Xnt=r(e=>t=>e({roleAssumer:(0,Hi.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,Hi.getDefaultRoleAssumerWithWebIdentity)(t),...t}),"decorateDefaultCredentialProvider");Hi.decorateDefaultCredentialProvider=Xnt});var GY=h(Dz=>{"use strict";Object.defineProperty(Dz,"__esModule",{value:!0});var Znt=(de(),re(le));Znt.__exportStar(di(),Dz)});var VY=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.STSServiceException=void 0;var fp=(de(),re(le));fp.__exportStar(kY(),hs);fp.__exportStar(VC(),hs);fp.__exportStar(JY(),hs);fp.__exportStar(jY(),hs);fp.__exportStar(GY(),hs);var ert=hE();Object.defineProperty(hs,"STSServiceException",{enumerable:!0,get:function(){return ert.STSServiceException}})});var BY=h(HC=>{"use strict";Object.defineProperty(HC,"__esModule",{value:!0});HC.ruleSet=void 0;HC.ruleSet={version:"1.0",parameters:{Region:{builtIn:"AWS::Region",required:!1,documentation:"The AWS region used to dispatch the request.",type:"String"},UseDualStack:{builtIn:"AWS::UseDualStack",required:!0,default:!1,documentation:"When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",type:"Boolean"},UseFIPS:{builtIn:"AWS::UseFIPS",required:!0,default:!1,documentation:"When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",type:"Boolean"},Endpoint:{builtIn:"SDK::Endpoint",required:!1,documentation:"Override the endpoint used to send this request",type:"String"}},rules:[{conditions:[{fn:"aws.partition",argv:[{ref:"Region"}],assign:"PartitionResult"}],type:"tree",rules:[{conditions:[{fn:"isSet",argv:[{ref:"Endpoint"}]},{fn:"parseURL",argv:[{ref:"Endpoint"}],assign:"url"}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:"error"},{conditions:[],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:"error"},{conditions:[],endpoint:{url:{ref:"Endpoint"},properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]},{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]},{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseFIPS"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsFIPS"]}]}],type:"tree",rules:[{conditions:[],type:"tree",rules:[{conditions:[],endpoint:{url:"https://iot-fips.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]},{conditions:[],error:"FIPS is enabled but this partition does not support FIPS",type:"error"}]},{conditions:[{fn:"booleanEquals",argv:[{ref:"UseDualStack"},!0]}],type:"tree",rules:[{conditions:[{fn:"booleanEquals",argv:[!0,{fn:"getAttr",argv:[{ref:"PartitionResult"},"supportsDualStack"]}]}],type:"tree",rules:[{conditions:[],endpoint:{url:"https://iot.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:{},headers:{}},type:"endpoint"}]},{conditions:[],error:"DualStack is enabled but this partition does not support DualStack",type:"error"}]},{conditions:[],endpoint:{url:"https://iot.{Region}.{PartitionResult#dnsSuffix}",properties:{},headers:{}},type:"endpoint"}]}]}});var $Y=h(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.defaultEndpointResolver=void 0;var trt=sC(),irt=BY(),srt=r((e,t={})=>(0,trt.resolveEndpoint)(irt.ruleSet,{endpointParams:e,logger:t.logger}),"defaultEndpointResolver");WC.defaultEndpointResolver=srt});var WY=h(KC=>{"use strict";Object.defineProperty(KC,"__esModule",{value:!0});KC.getRuntimeConfig=void 0;var nrt=mr(),HY=Ab(),rrt=$Y(),ort=r(e=>({apiVersion:"2015-05-28",base64Decoder:e?.base64Decoder??HY.fromBase64,base64Encoder:e?.base64Encoder??HY.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??rrt.defaultEndpointResolver,logger:e?.logger??{},serviceId:e?.serviceId??"IoT",urlParser:e?.urlParser??nrt.parseUrl}),"getRuntimeConfig");KC.getRuntimeConfig=ort});var QY=h(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.getRuntimeConfig=void 0;var art=(de(),re(le)),crt=art.__importDefault(t4()),lrt=VY(),YC=Us(),drt=Fz(),urt=PA(),kz=Nn(),gp=jn(),KY=jA(),mrt=VA(),prt=_b(),YY=yb(),hrt=WY(),frt=A(),grt=lC(),wrt=A(),_rt=r(e=>{(0,wrt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,grt.resolveDefaultsModeConfig)(e),i=r(()=>t().then(frt.loadConfigsForDefaultMode),"defaultConfigProvider"),s=(0,hrt.getRuntimeConfig)(e);return{...s,...e,runtime:"node",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??mrt.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(0,lrt.decorateDefaultCredentialProvider)(drt.defaultProvider),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,prt.defaultUserAgent)({serviceId:s.serviceId,clientVersion:crt.default.version}),maxAttempts:e?.maxAttempts??(0,gp.loadConfig)(kz.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:e?.region??(0,gp.loadConfig)(YC.NODE_REGION_CONFIG_OPTIONS,YC.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:e?.requestHandler??new KY.NodeHttpHandler(i),retryMode:e?.retryMode??(0,gp.loadConfig)({...kz.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||kz.DEFAULT_RETRY_MODE}),sha256:e?.sha256??urt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??KY.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,gp.loadConfig)(YC.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:e?.useFipsEndpoint??(0,gp.loadConfig)(YC.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:e?.utf8Decoder??YY.fromUtf8,utf8Encoder:e?.utf8Encoder??YY.toUtf8}},"getRuntimeConfig");QC.getRuntimeConfig=_rt});var oe=h(ZC=>{"use strict";Object.defineProperty(ZC,"__esModule",{value:!0});ZC.IoTClient=void 0;var yrt=Us(),Srt=yv(),vrt=b(),XY=Sv(),Ert=vv(),Art=Ev(),Jz=Nn(),ZY=as(),e9=uE(),brt=A(),Crt=e4(),Trt=QY(),XC=class extends brt.Client{constructor(t){let i=(0,Trt.getRuntimeConfig)(t),s=(0,Crt.resolveClientEndpointParameters)(i),n=(0,yrt.resolveRegionConfig)(s),o=(0,vrt.resolveEndpointConfig)(n),c=(0,Jz.resolveRetryConfig)(o),d=(0,XY.resolveHostHeaderConfig)(c),l=(0,ZY.resolveAwsAuthConfig)(d),u=(0,e9.resolveUserAgentConfig)(l);super(u),this.config=u,this.middlewareStack.use((0,Jz.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Srt.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,XY.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Ert.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Art.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,ZY.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,e9.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,Jz.getOmitRetryHeadersPlugin)(this.config))}destroy(){super.destroy()}};r(XC,"IoTClient");ZC.IoTClient=XC});var ue=h(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.IoT=void 0;var xrt=eI(),Prt=tI(),Irt=iI(),Rrt=sI(),qrt=nI(),Lrt=rI(),zrt=oI(),Frt=aI(),Nrt=cI(),Drt=lI(),krt=dI(),Jrt=uI(),Mrt=mI(),Urt=pI(),Ort=hI(),jrt=fI(),Grt=gI(),Vrt=wI(),Brt=_I(),$rt=yI(),Hrt=SI(),Wrt=vI(),Krt=EI(),Yrt=AI(),Qrt=bI(),Xrt=CI(),Zrt=TI(),eot=xI(),tot=PI(),iot=II(),sot=RI(),not=qI(),rot=LI(),oot=zI(),aot=FI(),cot=NI(),lot=DI(),dot=kI(),uot=JI(),mot=MI(),pot=UI(),hot=OI(),fot=jI(),got=GI(),wot=VI(),_ot=BI(),yot=$I(),Sot=HI(),vot=WI(),Eot=KI(),Aot=YI(),bot=QI(),Cot=XI(),Tot=ZI(),xot=eR(),Pot=tR(),Iot=iR(),Rot=sR(),qot=nR(),Lot=rR(),zot=oR(),Fot=aR(),Not=cR(),Dot=lR(),kot=dR(),Jot=uR(),Mot=mR(),Uot=pR(),Oot=hR(),jot=fR(),Got=gR(),Vot=wR(),Bot=_R(),$ot=yR(),Hot=SR(),Wot=vR(),Kot=ER(),Yot=AR(),Qot=bR(),Xot=CR(),Zot=TR(),eat=xR(),tat=PR(),iat=IR(),sat=RR(),nat=qR(),rat=LR(),oat=zR(),aat=FR(),cat=NR(),lat=DR(),dat=kR(),uat=JR(),mat=MR(),pat=UR(),hat=OR(),fat=jR(),gat=GR(),wat=VR(),_at=BR(),yat=$R(),Sat=HR(),vat=WR(),Eat=KR(),Aat=YR(),bat=QR(),Cat=XR(),Tat=ZR(),xat=e1(),Pat=t1(),Iat=i1(),Rat=s1(),qat=n1(),Lat=r1(),zat=o1(),Fat=Vw(),Nat=a1(),Dat=c1(),kat=l1(),Jat=d1(),Mat=u1(),Uat=m1(),Oat=p1(),jat=h1(),Gat=f1(),Vat=g1(),Bat=w1(),$at=_1(),Hat=y1(),Wat=S1(),Kat=v1(),Yat=a_(),Qat=l_(),Xat=u_(),Zat=p_(),ect=f_(),tct=w_(),ict=y_(),sct=v_(),nct=A_(),rct=C_(),oct=x_(),act=I_(),cct=q_(),lct=z_(),dct=N_(),uct=k_(),mct=M_(),pct=O_(),hct=G_(),fct=B_(),gct=H_(),wct=K_(),_ct=Q_(),yct=E1(),Sct=ey(),vct=iy(),Ect=ny(),Act=oy(),bct=cy(),Cct=dy(),Tct=A1(),xct=py(),Pct=fy(),Ict=wy(),Rct=yy(),qct=vy(),Lct=Ay(),zct=Cy(),Fct=xy(),Nct=Iy(),Dct=qy(),kct=zy(),Jct=Ny(),Mct=ky(),Uct=My(),Oct=Oy(),jct=Gy(),Gct=By(),Vct=Hy(),Bct=Ky(),$ct=Qy(),Hct=Zy(),Wct=tS(),Kct=sS(),Yct=rS(),Qct=aS(),Xct=b1(),Zct=C1(),elt=T1(),tlt=x1(),ilt=P1(),slt=I1(),nlt=R1(),rlt=q1(),olt=L1(),alt=z1(),clt=F1(),llt=N1(),dlt=D1(),ult=k1(),mlt=J1(),plt=M1(),hlt=U1(),flt=O1(),glt=j1(),wlt=G1(),_lt=V1(),ylt=B1(),Slt=$1(),vlt=H1(),Elt=W1(),Alt=K1(),blt=Y1(),Clt=Q1(),Tlt=X1(),xlt=Z1(),Plt=eq(),Ilt=tq(),Rlt=iq(),qlt=sq(),Llt=nq(),zlt=rq(),Flt=oq(),Nlt=aq(),Dlt=cq(),klt=lq(),Jlt=dq(),Mlt=uq(),Ult=mq(),Olt=pq(),jlt=hq(),Glt=fq(),Vlt=gq(),Blt=wq(),$lt=_q(),Hlt=yq(),Wlt=oe(),e0=class extends Wlt.IoTClient{acceptCertificateTransfer(t,i,s){let n=new xrt.AcceptCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToBillingGroup(t,i,s){let n=new Prt.AddThingToBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}addThingToThingGroup(t,i,s){let n=new Irt.AddThingToThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}associateTargetsWithJob(t,i,s){let n=new Rrt.AssociateTargetsWithJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPolicy(t,i,s){let n=new qrt.AttachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachPrincipalPolicy(t,i,s){let n=new Lrt.AttachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachSecurityProfile(t,i,s){let n=new zrt.AttachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}attachThingPrincipal(t,i,s){let n=new Frt.AttachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditMitigationActionsTask(t,i,s){let n=new Nrt.CancelAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelAuditTask(t,i,s){let n=new Drt.CancelAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelCertificateTransfer(t,i,s){let n=new krt.CancelCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelDetectMitigationActionsTask(t,i,s){let n=new Jrt.CancelDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJob(t,i,s){let n=new Mrt.CancelJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}cancelJobExecution(t,i,s){let n=new Urt.CancelJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}clearDefaultAuthorizer(t,i,s){let n=new Ort.ClearDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}confirmTopicRuleDestination(t,i,s){let n=new jrt.ConfirmTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuditSuppression(t,i,s){let n=new Grt.CreateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createAuthorizer(t,i,s){let n=new Vrt.CreateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createBillingGroup(t,i,s){let n=new Brt.CreateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCertificateFromCsr(t,i,s){let n=new $rt.CreateCertificateFromCsrCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createCustomMetric(t,i,s){let n=new Hrt.CreateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDimension(t,i,s){let n=new Wrt.CreateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDomainConfiguration(t,i,s){let n=new Krt.CreateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createDynamicThingGroup(t,i,s){let n=new Yrt.CreateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createFleetMetric(t,i,s){let n=new Qrt.CreateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJob(t,i,s){let n=new Xrt.CreateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createJobTemplate(t,i,s){let n=new Zrt.CreateJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createKeysAndCertificate(t,i,s){let n=new eot.CreateKeysAndCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createMitigationAction(t,i,s){let n=new tot.CreateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createOTAUpdate(t,i,s){let n=new iot.CreateOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicy(t,i,s){let n=new sot.CreatePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createPolicyVersion(t,i,s){let n=new not.CreatePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningClaim(t,i,s){let n=new rot.CreateProvisioningClaimCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplate(t,i,s){let n=new oot.CreateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createProvisioningTemplateVersion(t,i,s){let n=new aot.CreateProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createRoleAlias(t,i,s){let n=new cot.CreateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createScheduledAudit(t,i,s){let n=new lot.CreateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createSecurityProfile(t,i,s){let n=new dot.CreateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createStream(t,i,s){let n=new uot.CreateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThing(t,i,s){let n=new mot.CreateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingGroup(t,i,s){let n=new pot.CreateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createThingType(t,i,s){let n=new hot.CreateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRule(t,i,s){let n=new fot.CreateTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}createTopicRuleDestination(t,i,s){let n=new got.CreateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAccountAuditConfiguration(t,i,s){let n=new wot.DeleteAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuditSuppression(t,i,s){let n=new _ot.DeleteAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteAuthorizer(t,i,s){let n=new yot.DeleteAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteBillingGroup(t,i,s){let n=new Sot.DeleteBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCACertificate(t,i,s){let n=new vot.DeleteCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCertificate(t,i,s){let n=new Eot.DeleteCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteCustomMetric(t,i,s){let n=new Aot.DeleteCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDimension(t,i,s){let n=new bot.DeleteDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDomainConfiguration(t,i,s){let n=new Cot.DeleteDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteDynamicThingGroup(t,i,s){let n=new Tot.DeleteDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteFleetMetric(t,i,s){let n=new xot.DeleteFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJob(t,i,s){let n=new Pot.DeleteJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobExecution(t,i,s){let n=new Iot.DeleteJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteJobTemplate(t,i,s){let n=new Rot.DeleteJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteMitigationAction(t,i,s){let n=new qot.DeleteMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteOTAUpdate(t,i,s){let n=new Lot.DeleteOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicy(t,i,s){let n=new zot.DeletePolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deletePolicyVersion(t,i,s){let n=new Fot.DeletePolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplate(t,i,s){let n=new Not.DeleteProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteProvisioningTemplateVersion(t,i,s){let n=new Dot.DeleteProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRegistrationCode(t,i,s){let n=new kot.DeleteRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteRoleAlias(t,i,s){let n=new Jot.DeleteRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteScheduledAudit(t,i,s){let n=new Mot.DeleteScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteSecurityProfile(t,i,s){let n=new Uot.DeleteSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteStream(t,i,s){let n=new Oot.DeleteStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThing(t,i,s){let n=new jot.DeleteThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingGroup(t,i,s){let n=new Got.DeleteThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteThingType(t,i,s){let n=new Vot.DeleteThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRule(t,i,s){let n=new Bot.DeleteTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteTopicRuleDestination(t,i,s){let n=new $ot.DeleteTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deleteV2LoggingLevel(t,i,s){let n=new Hot.DeleteV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}deprecateThingType(t,i,s){let n=new Wot.DeprecateThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAccountAuditConfiguration(t,i,s){let n=new Kot.DescribeAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditFinding(t,i,s){let n=new Yot.DescribeAuditFindingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditMitigationActionsTask(t,i,s){let n=new Qot.DescribeAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditSuppression(t,i,s){let n=new Xot.DescribeAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuditTask(t,i,s){let n=new Zot.DescribeAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeAuthorizer(t,i,s){let n=new eat.DescribeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeBillingGroup(t,i,s){let n=new tat.DescribeBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCACertificate(t,i,s){let n=new iat.DescribeCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCertificate(t,i,s){let n=new sat.DescribeCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeCustomMetric(t,i,s){let n=new nat.DescribeCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDefaultAuthorizer(t,i,s){let n=new rat.DescribeDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDetectMitigationActionsTask(t,i,s){let n=new oat.DescribeDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDimension(t,i,s){let n=new aat.DescribeDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeDomainConfiguration(t,i,s){let n=new cat.DescribeDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEndpoint(t,i,s){let n=new lat.DescribeEndpointCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeEventConfigurations(t,i,s){let n=new dat.DescribeEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeFleetMetric(t,i,s){let n=new uat.DescribeFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeIndex(t,i,s){let n=new mat.DescribeIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJob(t,i,s){let n=new pat.DescribeJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobExecution(t,i,s){let n=new hat.DescribeJobExecutionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeJobTemplate(t,i,s){let n=new fat.DescribeJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeManagedJobTemplate(t,i,s){let n=new gat.DescribeManagedJobTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeMitigationAction(t,i,s){let n=new wat.DescribeMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplate(t,i,s){let n=new _at.DescribeProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeProvisioningTemplateVersion(t,i,s){let n=new yat.DescribeProvisioningTemplateVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeRoleAlias(t,i,s){let n=new Sat.DescribeRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeScheduledAudit(t,i,s){let n=new vat.DescribeScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeSecurityProfile(t,i,s){let n=new Eat.DescribeSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeStream(t,i,s){let n=new Aat.DescribeStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThing(t,i,s){let n=new bat.DescribeThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingGroup(t,i,s){let n=new Cat.DescribeThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingRegistrationTask(t,i,s){let n=new Tat.DescribeThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}describeThingType(t,i,s){let n=new xat.DescribeThingTypeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPolicy(t,i,s){let n=new Pat.DetachPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachPrincipalPolicy(t,i,s){let n=new Iat.DetachPrincipalPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachSecurityProfile(t,i,s){let n=new Rat.DetachSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}detachThingPrincipal(t,i,s){let n=new qat.DetachThingPrincipalCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}disableTopicRule(t,i,s){let n=new Lat.DisableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}enableTopicRule(t,i,s){let n=new zat.EnableTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBehaviorModelTrainingSummaries(t,i,s){let n=new Fat.GetBehaviorModelTrainingSummariesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getBucketsAggregation(t,i,s){let n=new Nat.GetBucketsAggregationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getCardinality(t,i,s){let n=new Dat.GetCardinalityCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getEffectivePolicies(t,i,s){let n=new kat.GetEffectivePoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getIndexingConfiguration(t,i,s){let n=new Jat.GetIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getJobDocument(t,i,s){let n=new Mat.GetJobDocumentCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getLoggingOptions(t,i,s){let n=new Uat.GetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getOTAUpdate(t,i,s){let n=new Oat.GetOTAUpdateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPercentiles(t,i,s){let n=new jat.GetPercentilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicy(t,i,s){let n=new Gat.GetPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getPolicyVersion(t,i,s){let n=new Vat.GetPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getRegistrationCode(t,i,s){let n=new Bat.GetRegistrationCodeCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getStatistics(t,i,s){let n=new $at.GetStatisticsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRule(t,i,s){let n=new Hat.GetTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getTopicRuleDestination(t,i,s){let n=new Wat.GetTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}getV2LoggingOptions(t,i,s){let n=new Kat.GetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listActiveViolations(t,i,s){let n=new Yat.ListActiveViolationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAttachedPolicies(t,i,s){let n=new Qat.ListAttachedPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditFindings(t,i,s){let n=new Xat.ListAuditFindingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsExecutions(t,i,s){let n=new Zat.ListAuditMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditMitigationActionsTasks(t,i,s){let n=new ect.ListAuditMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditSuppressions(t,i,s){let n=new tct.ListAuditSuppressionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuditTasks(t,i,s){let n=new ict.ListAuditTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listAuthorizers(t,i,s){let n=new sct.ListAuthorizersCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listBillingGroups(t,i,s){let n=new nct.ListBillingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCACertificates(t,i,s){let n=new rct.ListCACertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificates(t,i,s){let n=new act.ListCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCertificatesByCA(t,i,s){let n=new oct.ListCertificatesByCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listCustomMetrics(t,i,s){let n=new cct.ListCustomMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsExecutions(t,i,s){let n=new lct.ListDetectMitigationActionsExecutionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDetectMitigationActionsTasks(t,i,s){let n=new dct.ListDetectMitigationActionsTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDimensions(t,i,s){let n=new uct.ListDimensionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listDomainConfigurations(t,i,s){let n=new mct.ListDomainConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listFleetMetrics(t,i,s){let n=new pct.ListFleetMetricsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listIndices(t,i,s){let n=new hct.ListIndicesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForJob(t,i,s){let n=new fct.ListJobExecutionsForJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobExecutionsForThing(t,i,s){let n=new gct.ListJobExecutionsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobs(t,i,s){let n=new wct.ListJobsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listJobTemplates(t,i,s){let n=new _ct.ListJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listManagedJobTemplates(t,i,s){let n=new yct.ListManagedJobTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMetricValues(t,i,s){let n=new Sct.ListMetricValuesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listMitigationActions(t,i,s){let n=new vct.ListMitigationActionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOTAUpdates(t,i,s){let n=new Ect.ListOTAUpdatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listOutgoingCertificates(t,i,s){let n=new Act.ListOutgoingCertificatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicies(t,i,s){let n=new bct.ListPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyPrincipals(t,i,s){let n=new Cct.ListPolicyPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPolicyVersions(t,i,s){let n=new Tct.ListPolicyVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalPolicies(t,i,s){let n=new xct.ListPrincipalPoliciesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listPrincipalThings(t,i,s){let n=new Pct.ListPrincipalThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplates(t,i,s){let n=new Ict.ListProvisioningTemplatesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listProvisioningTemplateVersions(t,i,s){let n=new Rct.ListProvisioningTemplateVersionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listRoleAliases(t,i,s){let n=new qct.ListRoleAliasesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listScheduledAudits(t,i,s){let n=new Lct.ListScheduledAuditsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfiles(t,i,s){let n=new zct.ListSecurityProfilesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listSecurityProfilesForTarget(t,i,s){let n=new Fct.ListSecurityProfilesForTargetCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listStreams(t,i,s){let n=new Nct.ListStreamsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTagsForResource(t,i,s){let n=new Dct.ListTagsForResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForPolicy(t,i,s){let n=new kct.ListTargetsForPolicyCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTargetsForSecurityProfile(t,i,s){let n=new Jct.ListTargetsForSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroups(t,i,s){let n=new Mct.ListThingGroupsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingGroupsForThing(t,i,s){let n=new Uct.ListThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingPrincipals(t,i,s){let n=new Oct.ListThingPrincipalsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTaskReports(t,i,s){let n=new jct.ListThingRegistrationTaskReportsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingRegistrationTasks(t,i,s){let n=new Gct.ListThingRegistrationTasksCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThings(t,i,s){let n=new Vct.ListThingsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInBillingGroup(t,i,s){let n=new Bct.ListThingsInBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingsInThingGroup(t,i,s){let n=new $ct.ListThingsInThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listThingTypes(t,i,s){let n=new Hct.ListThingTypesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRuleDestinations(t,i,s){let n=new Wct.ListTopicRuleDestinationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listTopicRules(t,i,s){let n=new Kct.ListTopicRulesCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listV2LoggingLevels(t,i,s){let n=new Yct.ListV2LoggingLevelsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}listViolationEvents(t,i,s){let n=new Qct.ListViolationEventsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}putVerificationStateOnViolation(t,i,s){let n=new Xct.PutVerificationStateOnViolationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCACertificate(t,i,s){let n=new Zct.RegisterCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificate(t,i,s){let n=new elt.RegisterCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerCertificateWithoutCA(t,i,s){let n=new tlt.RegisterCertificateWithoutCACommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}registerThing(t,i,s){let n=new ilt.RegisterThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}rejectCertificateTransfer(t,i,s){let n=new slt.RejectCertificateTransferCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromBillingGroup(t,i,s){let n=new nlt.RemoveThingFromBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}removeThingFromThingGroup(t,i,s){let n=new rlt.RemoveThingFromThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}replaceTopicRule(t,i,s){let n=new olt.ReplaceTopicRuleCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}searchIndex(t,i,s){let n=new alt.SearchIndexCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultAuthorizer(t,i,s){let n=new clt.SetDefaultAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setDefaultPolicyVersion(t,i,s){let n=new llt.SetDefaultPolicyVersionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setLoggingOptions(t,i,s){let n=new dlt.SetLoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingLevel(t,i,s){let n=new ult.SetV2LoggingLevelCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}setV2LoggingOptions(t,i,s){let n=new mlt.SetV2LoggingOptionsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startAuditMitigationActionsTask(t,i,s){let n=new plt.StartAuditMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startDetectMitigationActionsTask(t,i,s){let n=new hlt.StartDetectMitigationActionsTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startOnDemandAuditTask(t,i,s){let n=new flt.StartOnDemandAuditTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}startThingRegistrationTask(t,i,s){let n=new glt.StartThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}stopThingRegistrationTask(t,i,s){let n=new wlt.StopThingRegistrationTaskCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}tagResource(t,i,s){let n=new _lt.TagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testAuthorization(t,i,s){let n=new ylt.TestAuthorizationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}testInvokeAuthorizer(t,i,s){let n=new Slt.TestInvokeAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}transferCertificate(t,i,s){let n=new vlt.TransferCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}untagResource(t,i,s){let n=new Elt.UntagResourceCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAccountAuditConfiguration(t,i,s){let n=new Alt.UpdateAccountAuditConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuditSuppression(t,i,s){let n=new blt.UpdateAuditSuppressionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateAuthorizer(t,i,s){let n=new Clt.UpdateAuthorizerCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateBillingGroup(t,i,s){let n=new Tlt.UpdateBillingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCACertificate(t,i,s){let n=new xlt.UpdateCACertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCertificate(t,i,s){let n=new Plt.UpdateCertificateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateCustomMetric(t,i,s){let n=new Ilt.UpdateCustomMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDimension(t,i,s){let n=new Rlt.UpdateDimensionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDomainConfiguration(t,i,s){let n=new qlt.UpdateDomainConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateDynamicThingGroup(t,i,s){let n=new Llt.UpdateDynamicThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateEventConfigurations(t,i,s){let n=new zlt.UpdateEventConfigurationsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateFleetMetric(t,i,s){let n=new Flt.UpdateFleetMetricCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateIndexingConfiguration(t,i,s){let n=new Nlt.UpdateIndexingConfigurationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateJob(t,i,s){let n=new Dlt.UpdateJobCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateMitigationAction(t,i,s){let n=new klt.UpdateMitigationActionCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateProvisioningTemplate(t,i,s){let n=new Jlt.UpdateProvisioningTemplateCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateRoleAlias(t,i,s){let n=new Mlt.UpdateRoleAliasCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateScheduledAudit(t,i,s){let n=new Ult.UpdateScheduledAuditCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateSecurityProfile(t,i,s){let n=new Olt.UpdateSecurityProfileCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateStream(t,i,s){let n=new jlt.UpdateStreamCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThing(t,i,s){let n=new Glt.UpdateThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroup(t,i,s){let n=new Vlt.UpdateThingGroupCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateThingGroupsForThing(t,i,s){let n=new Blt.UpdateThingGroupsForThingCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}updateTopicRuleDestination(t,i,s){let n=new $lt.UpdateTopicRuleDestinationCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}validateSecurityProfileBehaviors(t,i,s){let n=new Hlt.ValidateSecurityProfileBehaviorsCommand(t);if(typeof i=="function")this.send(n,i);else if(typeof s=="function"){if(typeof i!="object")throw new Error(`Expect http options but get ${typeof i}`);this.send(n,i||{},s)}else return this.send(n,i)}};r(e0,"IoT");t0.IoT=e0});var t9=h(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});var L=(de(),re(le));L.__exportStar(eI(),T);L.__exportStar(tI(),T);L.__exportStar(iI(),T);L.__exportStar(sI(),T);L.__exportStar(nI(),T);L.__exportStar(rI(),T);L.__exportStar(oI(),T);L.__exportStar(aI(),T);L.__exportStar(cI(),T);L.__exportStar(lI(),T);L.__exportStar(dI(),T);L.__exportStar(uI(),T);L.__exportStar(mI(),T);L.__exportStar(pI(),T);L.__exportStar(hI(),T);L.__exportStar(fI(),T);L.__exportStar(gI(),T);L.__exportStar(wI(),T);L.__exportStar(_I(),T);L.__exportStar(yI(),T);L.__exportStar(SI(),T);L.__exportStar(vI(),T);L.__exportStar(EI(),T);L.__exportStar(AI(),T);L.__exportStar(bI(),T);L.__exportStar(CI(),T);L.__exportStar(TI(),T);L.__exportStar(xI(),T);L.__exportStar(PI(),T);L.__exportStar(II(),T);L.__exportStar(RI(),T);L.__exportStar(qI(),T);L.__exportStar(LI(),T);L.__exportStar(zI(),T);L.__exportStar(FI(),T);L.__exportStar(NI(),T);L.__exportStar(DI(),T);L.__exportStar(kI(),T);L.__exportStar(JI(),T);L.__exportStar(MI(),T);L.__exportStar(UI(),T);L.__exportStar(OI(),T);L.__exportStar(jI(),T);L.__exportStar(GI(),T);L.__exportStar(VI(),T);L.__exportStar(BI(),T);L.__exportStar($I(),T);L.__exportStar(HI(),T);L.__exportStar(WI(),T);L.__exportStar(KI(),T);L.__exportStar(YI(),T);L.__exportStar(QI(),T);L.__exportStar(XI(),T);L.__exportStar(ZI(),T);L.__exportStar(eR(),T);L.__exportStar(tR(),T);L.__exportStar(iR(),T);L.__exportStar(sR(),T);L.__exportStar(nR(),T);L.__exportStar(rR(),T);L.__exportStar(oR(),T);L.__exportStar(aR(),T);L.__exportStar(cR(),T);L.__exportStar(lR(),T);L.__exportStar(dR(),T);L.__exportStar(uR(),T);L.__exportStar(mR(),T);L.__exportStar(pR(),T);L.__exportStar(hR(),T);L.__exportStar(fR(),T);L.__exportStar(gR(),T);L.__exportStar(wR(),T);L.__exportStar(_R(),T);L.__exportStar(yR(),T);L.__exportStar(SR(),T);L.__exportStar(vR(),T);L.__exportStar(ER(),T);L.__exportStar(AR(),T);L.__exportStar(bR(),T);L.__exportStar(CR(),T);L.__exportStar(TR(),T);L.__exportStar(xR(),T);L.__exportStar(PR(),T);L.__exportStar(IR(),T);L.__exportStar(RR(),T);L.__exportStar(qR(),T);L.__exportStar(LR(),T);L.__exportStar(zR(),T);L.__exportStar(FR(),T);L.__exportStar(NR(),T);L.__exportStar(DR(),T);L.__exportStar(kR(),T);L.__exportStar(JR(),T);L.__exportStar(MR(),T);L.__exportStar(UR(),T);L.__exportStar(OR(),T);L.__exportStar(jR(),T);L.__exportStar(GR(),T);L.__exportStar(VR(),T);L.__exportStar(BR(),T);L.__exportStar($R(),T);L.__exportStar(HR(),T);L.__exportStar(WR(),T);L.__exportStar(KR(),T);L.__exportStar(YR(),T);L.__exportStar(QR(),T);L.__exportStar(XR(),T);L.__exportStar(ZR(),T);L.__exportStar(e1(),T);L.__exportStar(t1(),T);L.__exportStar(i1(),T);L.__exportStar(s1(),T);L.__exportStar(n1(),T);L.__exportStar(r1(),T);L.__exportStar(o1(),T);L.__exportStar(Vw(),T);L.__exportStar(a1(),T);L.__exportStar(c1(),T);L.__exportStar(l1(),T);L.__exportStar(d1(),T);L.__exportStar(u1(),T);L.__exportStar(m1(),T);L.__exportStar(p1(),T);L.__exportStar(h1(),T);L.__exportStar(f1(),T);L.__exportStar(g1(),T);L.__exportStar(w1(),T);L.__exportStar(_1(),T);L.__exportStar(y1(),T);L.__exportStar(S1(),T);L.__exportStar(v1(),T);L.__exportStar(a_(),T);L.__exportStar(l_(),T);L.__exportStar(u_(),T);L.__exportStar(p_(),T);L.__exportStar(f_(),T);L.__exportStar(w_(),T);L.__exportStar(y_(),T);L.__exportStar(v_(),T);L.__exportStar(A_(),T);L.__exportStar(C_(),T);L.__exportStar(x_(),T);L.__exportStar(I_(),T);L.__exportStar(q_(),T);L.__exportStar(z_(),T);L.__exportStar(N_(),T);L.__exportStar(k_(),T);L.__exportStar(M_(),T);L.__exportStar(O_(),T);L.__exportStar(G_(),T);L.__exportStar(B_(),T);L.__exportStar(H_(),T);L.__exportStar(Q_(),T);L.__exportStar(K_(),T);L.__exportStar(E1(),T);L.__exportStar(ey(),T);L.__exportStar(iy(),T);L.__exportStar(ny(),T);L.__exportStar(oy(),T);L.__exportStar(cy(),T);L.__exportStar(dy(),T);L.__exportStar(A1(),T);L.__exportStar(py(),T);L.__exportStar(fy(),T);L.__exportStar(yy(),T);L.__exportStar(wy(),T);L.__exportStar(vy(),T);L.__exportStar(Ay(),T);L.__exportStar(Cy(),T);L.__exportStar(xy(),T);L.__exportStar(Iy(),T);L.__exportStar(qy(),T);L.__exportStar(zy(),T);L.__exportStar(Ny(),T);L.__exportStar(ky(),T);L.__exportStar(My(),T);L.__exportStar(Oy(),T);L.__exportStar(Gy(),T);L.__exportStar(By(),T);L.__exportStar(Zy(),T);L.__exportStar(Hy(),T);L.__exportStar(Ky(),T);L.__exportStar(Qy(),T);L.__exportStar(tS(),T);L.__exportStar(sS(),T);L.__exportStar(rS(),T);L.__exportStar(aS(),T);L.__exportStar(b1(),T);L.__exportStar(C1(),T);L.__exportStar(T1(),T);L.__exportStar(x1(),T);L.__exportStar(P1(),T);L.__exportStar(I1(),T);L.__exportStar(R1(),T);L.__exportStar(q1(),T);L.__exportStar(L1(),T);L.__exportStar(z1(),T);L.__exportStar(F1(),T);L.__exportStar(N1(),T);L.__exportStar(D1(),T);L.__exportStar(k1(),T);L.__exportStar(J1(),T);L.__exportStar(M1(),T);L.__exportStar(U1(),T);L.__exportStar(O1(),T);L.__exportStar(j1(),T);L.__exportStar(G1(),T);L.__exportStar(V1(),T);L.__exportStar(B1(),T);L.__exportStar($1(),T);L.__exportStar(H1(),T);L.__exportStar(W1(),T);L.__exportStar(K1(),T);L.__exportStar(Y1(),T);L.__exportStar(Q1(),T);L.__exportStar(X1(),T);L.__exportStar(Z1(),T);L.__exportStar(eq(),T);L.__exportStar(tq(),T);L.__exportStar(iq(),T);L.__exportStar(sq(),T);L.__exportStar(nq(),T);L.__exportStar(rq(),T);L.__exportStar(oq(),T);L.__exportStar(aq(),T);L.__exportStar(cq(),T);L.__exportStar(lq(),T);L.__exportStar(dq(),T);L.__exportStar(uq(),T);L.__exportStar(mq(),T);L.__exportStar(pq(),T);L.__exportStar(hq(),T);L.__exportStar(fq(),T);L.__exportStar(gq(),T);L.__exportStar(wq(),T);L.__exportStar(_q(),T);L.__exportStar(yq(),T)});var i9=h(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});var Mz=(de(),re(le));Mz.__exportStar(ee(),wp);Mz.__exportStar(B(),wp);Mz.__exportStar(te(),wp)});var s9=h(i0=>{"use strict";Object.defineProperty(i0,"__esModule",{value:!0});i0.paginateGetBehaviorModelTrainingSummaries=void 0;var Klt=Vw(),Ylt=ue(),Qlt=oe(),Xlt=r(async(e,t,...i)=>await e.send(new Klt.GetBehaviorModelTrainingSummariesCommand(t),...i),"makePagedClientRequest"),Zlt=r(async(e,t,...i)=>await e.getBehaviorModelTrainingSummaries(t,...i),"makePagedRequest");async function*edt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ylt.IoT)o=await Zlt(e.client,t,...i);else if(e.client instanceof Qlt.IoTClient)o=await Xlt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(edt,"paginateGetBehaviorModelTrainingSummaries");i0.paginateGetBehaviorModelTrainingSummaries=edt});var r9=h(n9=>{"use strict";Object.defineProperty(n9,"__esModule",{value:!0})});var o9=h(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.paginateListActiveViolations=void 0;var tdt=a_(),idt=ue(),sdt=oe(),ndt=r(async(e,t,...i)=>await e.send(new tdt.ListActiveViolationsCommand(t),...i),"makePagedClientRequest"),rdt=r(async(e,t,...i)=>await e.listActiveViolations(t,...i),"makePagedRequest");async function*odt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof idt.IoT)o=await rdt(e.client,t,...i);else if(e.client instanceof sdt.IoTClient)o=await ndt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(odt,"paginateListActiveViolations");s0.paginateListActiveViolations=odt});var a9=h(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.paginateListAttachedPolicies=void 0;var adt=l_(),cdt=ue(),ldt=oe(),ddt=r(async(e,t,...i)=>await e.send(new adt.ListAttachedPoliciesCommand(t),...i),"makePagedClientRequest"),udt=r(async(e,t,...i)=>await e.listAttachedPolicies(t,...i),"makePagedRequest");async function*mdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof cdt.IoT)o=await udt(e.client,t,...i);else if(e.client instanceof ldt.IoTClient)o=await ddt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mdt,"paginateListAttachedPolicies");n0.paginateListAttachedPolicies=mdt});var c9=h(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.paginateListAuditFindings=void 0;var pdt=u_(),hdt=ue(),fdt=oe(),gdt=r(async(e,t,...i)=>await e.send(new pdt.ListAuditFindingsCommand(t),...i),"makePagedClientRequest"),wdt=r(async(e,t,...i)=>await e.listAuditFindings(t,...i),"makePagedRequest");async function*_dt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof hdt.IoT)o=await wdt(e.client,t,...i);else if(e.client instanceof fdt.IoTClient)o=await gdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_dt,"paginateListAuditFindings");r0.paginateListAuditFindings=_dt});var l9=h(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.paginateListAuditMitigationActionsExecutions=void 0;var ydt=p_(),Sdt=ue(),vdt=oe(),Edt=r(async(e,t,...i)=>await e.send(new ydt.ListAuditMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),Adt=r(async(e,t,...i)=>await e.listAuditMitigationActionsExecutions(t,...i),"makePagedRequest");async function*bdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Sdt.IoT)o=await Adt(e.client,t,...i);else if(e.client instanceof vdt.IoTClient)o=await Edt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bdt,"paginateListAuditMitigationActionsExecutions");o0.paginateListAuditMitigationActionsExecutions=bdt});var d9=h(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.paginateListAuditMitigationActionsTasks=void 0;var Cdt=f_(),Tdt=ue(),xdt=oe(),Pdt=r(async(e,t,...i)=>await e.send(new Cdt.ListAuditMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),Idt=r(async(e,t,...i)=>await e.listAuditMitigationActionsTasks(t,...i),"makePagedRequest");async function*Rdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tdt.IoT)o=await Idt(e.client,t,...i);else if(e.client instanceof xdt.IoTClient)o=await Pdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rdt,"paginateListAuditMitigationActionsTasks");a0.paginateListAuditMitigationActionsTasks=Rdt});var u9=h(c0=>{"use strict";Object.defineProperty(c0,"__esModule",{value:!0});c0.paginateListAuditSuppressions=void 0;var qdt=w_(),Ldt=ue(),zdt=oe(),Fdt=r(async(e,t,...i)=>await e.send(new qdt.ListAuditSuppressionsCommand(t),...i),"makePagedClientRequest"),Ndt=r(async(e,t,...i)=>await e.listAuditSuppressions(t,...i),"makePagedRequest");async function*Ddt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ldt.IoT)o=await Ndt(e.client,t,...i);else if(e.client instanceof zdt.IoTClient)o=await Fdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Ddt,"paginateListAuditSuppressions");c0.paginateListAuditSuppressions=Ddt});var m9=h(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.paginateListAuditTasks=void 0;var kdt=y_(),Jdt=ue(),Mdt=oe(),Udt=r(async(e,t,...i)=>await e.send(new kdt.ListAuditTasksCommand(t),...i),"makePagedClientRequest"),Odt=r(async(e,t,...i)=>await e.listAuditTasks(t,...i),"makePagedRequest");async function*jdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jdt.IoT)o=await Odt(e.client,t,...i);else if(e.client instanceof Mdt.IoTClient)o=await Udt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jdt,"paginateListAuditTasks");l0.paginateListAuditTasks=jdt});var p9=h(d0=>{"use strict";Object.defineProperty(d0,"__esModule",{value:!0});d0.paginateListAuthorizers=void 0;var Gdt=v_(),Vdt=ue(),Bdt=oe(),$dt=r(async(e,t,...i)=>await e.send(new Gdt.ListAuthorizersCommand(t),...i),"makePagedClientRequest"),Hdt=r(async(e,t,...i)=>await e.listAuthorizers(t,...i),"makePagedRequest");async function*Wdt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Vdt.IoT)o=await Hdt(e.client,t,...i);else if(e.client instanceof Bdt.IoTClient)o=await $dt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wdt,"paginateListAuthorizers");d0.paginateListAuthorizers=Wdt});var h9=h(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.paginateListBillingGroups=void 0;var Kdt=A_(),Ydt=ue(),Qdt=oe(),Xdt=r(async(e,t,...i)=>await e.send(new Kdt.ListBillingGroupsCommand(t),...i),"makePagedClientRequest"),Zdt=r(async(e,t,...i)=>await e.listBillingGroups(t,...i),"makePagedRequest");async function*eut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ydt.IoT)o=await Zdt(e.client,t,...i);else if(e.client instanceof Qdt.IoTClient)o=await Xdt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(eut,"paginateListBillingGroups");u0.paginateListBillingGroups=eut});var f9=h(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});m0.paginateListCACertificates=void 0;var tut=C_(),iut=ue(),sut=oe(),nut=r(async(e,t,...i)=>await e.send(new tut.ListCACertificatesCommand(t),...i),"makePagedClientRequest"),rut=r(async(e,t,...i)=>await e.listCACertificates(t,...i),"makePagedRequest");async function*out(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof iut.IoT)o=await rut(e.client,t,...i);else if(e.client instanceof sut.IoTClient)o=await nut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(out,"paginateListCACertificates");m0.paginateListCACertificates=out});var g9=h(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});p0.paginateListCertificatesByCA=void 0;var aut=x_(),cut=ue(),lut=oe(),dut=r(async(e,t,...i)=>await e.send(new aut.ListCertificatesByCACommand(t),...i),"makePagedClientRequest"),uut=r(async(e,t,...i)=>await e.listCertificatesByCA(t,...i),"makePagedRequest");async function*mut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof cut.IoT)o=await uut(e.client,t,...i);else if(e.client instanceof lut.IoTClient)o=await dut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mut,"paginateListCertificatesByCA");p0.paginateListCertificatesByCA=mut});var w9=h(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.paginateListCertificates=void 0;var put=I_(),hut=ue(),fut=oe(),gut=r(async(e,t,...i)=>await e.send(new put.ListCertificatesCommand(t),...i),"makePagedClientRequest"),wut=r(async(e,t,...i)=>await e.listCertificates(t,...i),"makePagedRequest");async function*_ut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof hut.IoT)o=await wut(e.client,t,...i);else if(e.client instanceof fut.IoTClient)o=await gut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_ut,"paginateListCertificates");h0.paginateListCertificates=_ut});var _9=h(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.paginateListCustomMetrics=void 0;var yut=q_(),Sut=ue(),vut=oe(),Eut=r(async(e,t,...i)=>await e.send(new yut.ListCustomMetricsCommand(t),...i),"makePagedClientRequest"),Aut=r(async(e,t,...i)=>await e.listCustomMetrics(t,...i),"makePagedRequest");async function*but(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Sut.IoT)o=await Aut(e.client,t,...i);else if(e.client instanceof vut.IoTClient)o=await Eut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(but,"paginateListCustomMetrics");f0.paginateListCustomMetrics=but});var y9=h(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});g0.paginateListDetectMitigationActionsExecutions=void 0;var Cut=z_(),Tut=ue(),xut=oe(),Put=r(async(e,t,...i)=>await e.send(new Cut.ListDetectMitigationActionsExecutionsCommand(t),...i),"makePagedClientRequest"),Iut=r(async(e,t,...i)=>await e.listDetectMitigationActionsExecutions(t,...i),"makePagedRequest");async function*Rut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tut.IoT)o=await Iut(e.client,t,...i);else if(e.client instanceof xut.IoTClient)o=await Put(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rut,"paginateListDetectMitigationActionsExecutions");g0.paginateListDetectMitigationActionsExecutions=Rut});var S9=h(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.paginateListDetectMitigationActionsTasks=void 0;var qut=N_(),Lut=ue(),zut=oe(),Fut=r(async(e,t,...i)=>await e.send(new qut.ListDetectMitigationActionsTasksCommand(t),...i),"makePagedClientRequest"),Nut=r(async(e,t,...i)=>await e.listDetectMitigationActionsTasks(t,...i),"makePagedRequest");async function*Dut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lut.IoT)o=await Nut(e.client,t,...i);else if(e.client instanceof zut.IoTClient)o=await Fut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dut,"paginateListDetectMitigationActionsTasks");w0.paginateListDetectMitigationActionsTasks=Dut});var v9=h(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.paginateListDimensions=void 0;var kut=k_(),Jut=ue(),Mut=oe(),Uut=r(async(e,t,...i)=>await e.send(new kut.ListDimensionsCommand(t),...i),"makePagedClientRequest"),Out=r(async(e,t,...i)=>await e.listDimensions(t,...i),"makePagedRequest");async function*jut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jut.IoT)o=await Out(e.client,t,...i);else if(e.client instanceof Mut.IoTClient)o=await Uut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jut,"paginateListDimensions");_0.paginateListDimensions=jut});var E9=h(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.paginateListDomainConfigurations=void 0;var Gut=M_(),Vut=ue(),But=oe(),$ut=r(async(e,t,...i)=>await e.send(new Gut.ListDomainConfigurationsCommand(t),...i),"makePagedClientRequest"),Hut=r(async(e,t,...i)=>await e.listDomainConfigurations(t,...i),"makePagedRequest");async function*Wut(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Vut.IoT)o=await Hut(e.client,t,...i);else if(e.client instanceof But.IoTClient)o=await $ut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wut,"paginateListDomainConfigurations");y0.paginateListDomainConfigurations=Wut});var A9=h(S0=>{"use strict";Object.defineProperty(S0,"__esModule",{value:!0});S0.paginateListFleetMetrics=void 0;var Kut=O_(),Yut=ue(),Qut=oe(),Xut=r(async(e,t,...i)=>await e.send(new Kut.ListFleetMetricsCommand(t),...i),"makePagedClientRequest"),Zut=r(async(e,t,...i)=>await e.listFleetMetrics(t,...i),"makePagedRequest");async function*emt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Yut.IoT)o=await Zut(e.client,t,...i);else if(e.client instanceof Qut.IoTClient)o=await Xut(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(emt,"paginateListFleetMetrics");S0.paginateListFleetMetrics=emt});var b9=h(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});v0.paginateListIndices=void 0;var tmt=G_(),imt=ue(),smt=oe(),nmt=r(async(e,t,...i)=>await e.send(new tmt.ListIndicesCommand(t),...i),"makePagedClientRequest"),rmt=r(async(e,t,...i)=>await e.listIndices(t,...i),"makePagedRequest");async function*omt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof imt.IoT)o=await rmt(e.client,t,...i);else if(e.client instanceof smt.IoTClient)o=await nmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(omt,"paginateListIndices");v0.paginateListIndices=omt});var C9=h(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.paginateListJobExecutionsForJob=void 0;var amt=B_(),cmt=ue(),lmt=oe(),dmt=r(async(e,t,...i)=>await e.send(new amt.ListJobExecutionsForJobCommand(t),...i),"makePagedClientRequest"),umt=r(async(e,t,...i)=>await e.listJobExecutionsForJob(t,...i),"makePagedRequest");async function*mmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof cmt.IoT)o=await umt(e.client,t,...i);else if(e.client instanceof lmt.IoTClient)o=await dmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mmt,"paginateListJobExecutionsForJob");E0.paginateListJobExecutionsForJob=mmt});var T9=h(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.paginateListJobExecutionsForThing=void 0;var pmt=H_(),hmt=ue(),fmt=oe(),gmt=r(async(e,t,...i)=>await e.send(new pmt.ListJobExecutionsForThingCommand(t),...i),"makePagedClientRequest"),wmt=r(async(e,t,...i)=>await e.listJobExecutionsForThing(t,...i),"makePagedRequest");async function*_mt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof hmt.IoT)o=await wmt(e.client,t,...i);else if(e.client instanceof fmt.IoTClient)o=await gmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_mt,"paginateListJobExecutionsForThing");A0.paginateListJobExecutionsForThing=_mt});var x9=h(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.paginateListJobTemplates=void 0;var ymt=Q_(),Smt=ue(),vmt=oe(),Emt=r(async(e,t,...i)=>await e.send(new ymt.ListJobTemplatesCommand(t),...i),"makePagedClientRequest"),Amt=r(async(e,t,...i)=>await e.listJobTemplates(t,...i),"makePagedRequest");async function*bmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Smt.IoT)o=await Amt(e.client,t,...i);else if(e.client instanceof vmt.IoTClient)o=await Emt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bmt,"paginateListJobTemplates");b0.paginateListJobTemplates=bmt});var P9=h(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0});C0.paginateListJobs=void 0;var Cmt=K_(),Tmt=ue(),xmt=oe(),Pmt=r(async(e,t,...i)=>await e.send(new Cmt.ListJobsCommand(t),...i),"makePagedClientRequest"),Imt=r(async(e,t,...i)=>await e.listJobs(t,...i),"makePagedRequest");async function*Rmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tmt.IoT)o=await Imt(e.client,t,...i);else if(e.client instanceof xmt.IoTClient)o=await Pmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rmt,"paginateListJobs");C0.paginateListJobs=Rmt});var I9=h(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});T0.paginateListMetricValues=void 0;var qmt=ey(),Lmt=ue(),zmt=oe(),Fmt=r(async(e,t,...i)=>await e.send(new qmt.ListMetricValuesCommand(t),...i),"makePagedClientRequest"),Nmt=r(async(e,t,...i)=>await e.listMetricValues(t,...i),"makePagedRequest");async function*Dmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lmt.IoT)o=await Nmt(e.client,t,...i);else if(e.client instanceof zmt.IoTClient)o=await Fmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dmt,"paginateListMetricValues");T0.paginateListMetricValues=Dmt});var R9=h(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});x0.paginateListMitigationActions=void 0;var kmt=iy(),Jmt=ue(),Mmt=oe(),Umt=r(async(e,t,...i)=>await e.send(new kmt.ListMitigationActionsCommand(t),...i),"makePagedClientRequest"),Omt=r(async(e,t,...i)=>await e.listMitigationActions(t,...i),"makePagedRequest");async function*jmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jmt.IoT)o=await Omt(e.client,t,...i);else if(e.client instanceof Mmt.IoTClient)o=await Umt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jmt,"paginateListMitigationActions");x0.paginateListMitigationActions=jmt});var q9=h(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});P0.paginateListOTAUpdates=void 0;var Gmt=ny(),Vmt=ue(),Bmt=oe(),$mt=r(async(e,t,...i)=>await e.send(new Gmt.ListOTAUpdatesCommand(t),...i),"makePagedClientRequest"),Hmt=r(async(e,t,...i)=>await e.listOTAUpdates(t,...i),"makePagedRequest");async function*Wmt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vmt.IoT)o=await Hmt(e.client,t,...i);else if(e.client instanceof Bmt.IoTClient)o=await $mt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wmt,"paginateListOTAUpdates");P0.paginateListOTAUpdates=Wmt});var L9=h(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});I0.paginateListOutgoingCertificates=void 0;var Kmt=oy(),Ymt=ue(),Qmt=oe(),Xmt=r(async(e,t,...i)=>await e.send(new Kmt.ListOutgoingCertificatesCommand(t),...i),"makePagedClientRequest"),Zmt=r(async(e,t,...i)=>await e.listOutgoingCertificates(t,...i),"makePagedRequest");async function*ept(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Ymt.IoT)o=await Zmt(e.client,t,...i);else if(e.client instanceof Qmt.IoTClient)o=await Xmt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(ept,"paginateListOutgoingCertificates");I0.paginateListOutgoingCertificates=ept});var z9=h(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.paginateListPolicies=void 0;var tpt=cy(),ipt=ue(),spt=oe(),npt=r(async(e,t,...i)=>await e.send(new tpt.ListPoliciesCommand(t),...i),"makePagedClientRequest"),rpt=r(async(e,t,...i)=>await e.listPolicies(t,...i),"makePagedRequest");async function*opt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof ipt.IoT)o=await rpt(e.client,t,...i);else if(e.client instanceof spt.IoTClient)o=await npt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(opt,"paginateListPolicies");R0.paginateListPolicies=opt});var F9=h(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.paginateListPolicyPrincipals=void 0;var apt=dy(),cpt=ue(),lpt=oe(),dpt=r(async(e,t,...i)=>await e.send(new apt.ListPolicyPrincipalsCommand(t),...i),"makePagedClientRequest"),upt=r(async(e,t,...i)=>await e.listPolicyPrincipals(t,...i),"makePagedRequest");async function*mpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof cpt.IoT)o=await upt(e.client,t,...i);else if(e.client instanceof lpt.IoTClient)o=await dpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mpt,"paginateListPolicyPrincipals");q0.paginateListPolicyPrincipals=mpt});var N9=h(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.paginateListPrincipalPolicies=void 0;var ppt=py(),hpt=ue(),fpt=oe(),gpt=r(async(e,t,...i)=>await e.send(new ppt.ListPrincipalPoliciesCommand(t),...i),"makePagedClientRequest"),wpt=r(async(e,t,...i)=>await e.listPrincipalPolicies(t,...i),"makePagedRequest");async function*_pt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof hpt.IoT)o=await wpt(e.client,t,...i);else if(e.client instanceof fpt.IoTClient)o=await gpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_pt,"paginateListPrincipalPolicies");L0.paginateListPrincipalPolicies=_pt});var D9=h(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});z0.paginateListPrincipalThings=void 0;var ypt=fy(),Spt=ue(),vpt=oe(),Ept=r(async(e,t,...i)=>await e.send(new ypt.ListPrincipalThingsCommand(t),...i),"makePagedClientRequest"),Apt=r(async(e,t,...i)=>await e.listPrincipalThings(t,...i),"makePagedRequest");async function*bpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Spt.IoT)o=await Apt(e.client,t,...i);else if(e.client instanceof vpt.IoTClient)o=await Ept(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bpt,"paginateListPrincipalThings");z0.paginateListPrincipalThings=bpt});var k9=h(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.paginateListProvisioningTemplateVersions=void 0;var Cpt=yy(),Tpt=ue(),xpt=oe(),Ppt=r(async(e,t,...i)=>await e.send(new Cpt.ListProvisioningTemplateVersionsCommand(t),...i),"makePagedClientRequest"),Ipt=r(async(e,t,...i)=>await e.listProvisioningTemplateVersions(t,...i),"makePagedRequest");async function*Rpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tpt.IoT)o=await Ipt(e.client,t,...i);else if(e.client instanceof xpt.IoTClient)o=await Ppt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rpt,"paginateListProvisioningTemplateVersions");F0.paginateListProvisioningTemplateVersions=Rpt});var J9=h(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});N0.paginateListProvisioningTemplates=void 0;var qpt=wy(),Lpt=ue(),zpt=oe(),Fpt=r(async(e,t,...i)=>await e.send(new qpt.ListProvisioningTemplatesCommand(t),...i),"makePagedClientRequest"),Npt=r(async(e,t,...i)=>await e.listProvisioningTemplates(t,...i),"makePagedRequest");async function*Dpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lpt.IoT)o=await Npt(e.client,t,...i);else if(e.client instanceof zpt.IoTClient)o=await Fpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dpt,"paginateListProvisioningTemplates");N0.paginateListProvisioningTemplates=Dpt});var M9=h(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.paginateListRoleAliases=void 0;var kpt=vy(),Jpt=ue(),Mpt=oe(),Upt=r(async(e,t,...i)=>await e.send(new kpt.ListRoleAliasesCommand(t),...i),"makePagedClientRequest"),Opt=r(async(e,t,...i)=>await e.listRoleAliases(t,...i),"makePagedRequest");async function*jpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Jpt.IoT)o=await Opt(e.client,t,...i);else if(e.client instanceof Mpt.IoTClient)o=await Upt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jpt,"paginateListRoleAliases");D0.paginateListRoleAliases=jpt});var U9=h(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});k0.paginateListScheduledAudits=void 0;var Gpt=Ay(),Vpt=ue(),Bpt=oe(),$pt=r(async(e,t,...i)=>await e.send(new Gpt.ListScheduledAuditsCommand(t),...i),"makePagedClientRequest"),Hpt=r(async(e,t,...i)=>await e.listScheduledAudits(t,...i),"makePagedRequest");async function*Wpt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vpt.IoT)o=await Hpt(e.client,t,...i);else if(e.client instanceof Bpt.IoTClient)o=await $pt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wpt,"paginateListScheduledAudits");k0.paginateListScheduledAudits=Wpt});var O9=h(J0=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});J0.paginateListSecurityProfilesForTarget=void 0;var Kpt=xy(),Ypt=ue(),Qpt=oe(),Xpt=r(async(e,t,...i)=>await e.send(new Kpt.ListSecurityProfilesForTargetCommand(t),...i),"makePagedClientRequest"),Zpt=r(async(e,t,...i)=>await e.listSecurityProfilesForTarget(t,...i),"makePagedRequest");async function*eht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Ypt.IoT)o=await Zpt(e.client,t,...i);else if(e.client instanceof Qpt.IoTClient)o=await Xpt(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(eht,"paginateListSecurityProfilesForTarget");J0.paginateListSecurityProfilesForTarget=eht});var j9=h(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});M0.paginateListSecurityProfiles=void 0;var tht=Cy(),iht=ue(),sht=oe(),nht=r(async(e,t,...i)=>await e.send(new tht.ListSecurityProfilesCommand(t),...i),"makePagedClientRequest"),rht=r(async(e,t,...i)=>await e.listSecurityProfiles(t,...i),"makePagedRequest");async function*oht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof iht.IoT)o=await rht(e.client,t,...i);else if(e.client instanceof sht.IoTClient)o=await nht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(oht,"paginateListSecurityProfiles");M0.paginateListSecurityProfiles=oht});var G9=h(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});U0.paginateListStreams=void 0;var aht=Iy(),cht=ue(),lht=oe(),dht=r(async(e,t,...i)=>await e.send(new aht.ListStreamsCommand(t),...i),"makePagedClientRequest"),uht=r(async(e,t,...i)=>await e.listStreams(t,...i),"makePagedRequest");async function*mht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof cht.IoT)o=await uht(e.client,t,...i);else if(e.client instanceof lht.IoTClient)o=await dht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mht,"paginateListStreams");U0.paginateListStreams=mht});var V9=h(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.paginateListTagsForResource=void 0;var pht=qy(),hht=ue(),fht=oe(),ght=r(async(e,t,...i)=>await e.send(new pht.ListTagsForResourceCommand(t),...i),"makePagedClientRequest"),wht=r(async(e,t,...i)=>await e.listTagsForResource(t,...i),"makePagedRequest");async function*_ht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,e.client instanceof hht.IoT)o=await wht(e.client,t,...i);else if(e.client instanceof fht.IoTClient)o=await ght(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_ht,"paginateListTagsForResource");O0.paginateListTagsForResource=_ht});var B9=h(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.paginateListTargetsForPolicy=void 0;var yht=zy(),Sht=ue(),vht=oe(),Eht=r(async(e,t,...i)=>await e.send(new yht.ListTargetsForPolicyCommand(t),...i),"makePagedClientRequest"),Aht=r(async(e,t,...i)=>await e.listTargetsForPolicy(t,...i),"makePagedRequest");async function*bht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.marker=s,t.pageSize=e.pageSize,e.client instanceof Sht.IoT)o=await Aht(e.client,t,...i);else if(e.client instanceof vht.IoTClient)o=await Eht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextMarker,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bht,"paginateListTargetsForPolicy");j0.paginateListTargetsForPolicy=bht});var $9=h(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.paginateListTargetsForSecurityProfile=void 0;var Cht=Ny(),Tht=ue(),xht=oe(),Pht=r(async(e,t,...i)=>await e.send(new Cht.ListTargetsForSecurityProfileCommand(t),...i),"makePagedClientRequest"),Iht=r(async(e,t,...i)=>await e.listTargetsForSecurityProfile(t,...i),"makePagedRequest");async function*Rht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tht.IoT)o=await Iht(e.client,t,...i);else if(e.client instanceof xht.IoTClient)o=await Pht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rht,"paginateListTargetsForSecurityProfile");G0.paginateListTargetsForSecurityProfile=Rht});var H9=h(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.paginateListThingGroupsForThing=void 0;var qht=My(),Lht=ue(),zht=oe(),Fht=r(async(e,t,...i)=>await e.send(new qht.ListThingGroupsForThingCommand(t),...i),"makePagedClientRequest"),Nht=r(async(e,t,...i)=>await e.listThingGroupsForThing(t,...i),"makePagedRequest");async function*Dht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lht.IoT)o=await Nht(e.client,t,...i);else if(e.client instanceof zht.IoTClient)o=await Fht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dht,"paginateListThingGroupsForThing");V0.paginateListThingGroupsForThing=Dht});var W9=h(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.paginateListThingGroups=void 0;var kht=ky(),Jht=ue(),Mht=oe(),Uht=r(async(e,t,...i)=>await e.send(new kht.ListThingGroupsCommand(t),...i),"makePagedClientRequest"),Oht=r(async(e,t,...i)=>await e.listThingGroups(t,...i),"makePagedRequest");async function*jht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jht.IoT)o=await Oht(e.client,t,...i);else if(e.client instanceof Mht.IoTClient)o=await Uht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jht,"paginateListThingGroups");B0.paginateListThingGroups=jht});var K9=h($0=>{"use strict";Object.defineProperty($0,"__esModule",{value:!0});$0.paginateListThingPrincipals=void 0;var Ght=Oy(),Vht=ue(),Bht=oe(),$ht=r(async(e,t,...i)=>await e.send(new Ght.ListThingPrincipalsCommand(t),...i),"makePagedClientRequest"),Hht=r(async(e,t,...i)=>await e.listThingPrincipals(t,...i),"makePagedRequest");async function*Wht(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vht.IoT)o=await Hht(e.client,t,...i);else if(e.client instanceof Bht.IoTClient)o=await $ht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wht,"paginateListThingPrincipals");$0.paginateListThingPrincipals=Wht});var Y9=h(H0=>{"use strict";Object.defineProperty(H0,"__esModule",{value:!0});H0.paginateListThingRegistrationTaskReports=void 0;var Kht=Gy(),Yht=ue(),Qht=oe(),Xht=r(async(e,t,...i)=>await e.send(new Kht.ListThingRegistrationTaskReportsCommand(t),...i),"makePagedClientRequest"),Zht=r(async(e,t,...i)=>await e.listThingRegistrationTaskReports(t,...i),"makePagedRequest");async function*eft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Yht.IoT)o=await Zht(e.client,t,...i);else if(e.client instanceof Qht.IoTClient)o=await Xht(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(eft,"paginateListThingRegistrationTaskReports");H0.paginateListThingRegistrationTaskReports=eft});var Q9=h(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.paginateListThingRegistrationTasks=void 0;var tft=By(),ift=ue(),sft=oe(),nft=r(async(e,t,...i)=>await e.send(new tft.ListThingRegistrationTasksCommand(t),...i),"makePagedClientRequest"),rft=r(async(e,t,...i)=>await e.listThingRegistrationTasks(t,...i),"makePagedRequest");async function*oft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof ift.IoT)o=await rft(e.client,t,...i);else if(e.client instanceof sft.IoTClient)o=await nft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(oft,"paginateListThingRegistrationTasks");W0.paginateListThingRegistrationTasks=oft});var X9=h(K0=>{"use strict";Object.defineProperty(K0,"__esModule",{value:!0});K0.paginateListThingTypes=void 0;var aft=Zy(),cft=ue(),lft=oe(),dft=r(async(e,t,...i)=>await e.send(new aft.ListThingTypesCommand(t),...i),"makePagedClientRequest"),uft=r(async(e,t,...i)=>await e.listThingTypes(t,...i),"makePagedRequest");async function*mft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof cft.IoT)o=await uft(e.client,t,...i);else if(e.client instanceof lft.IoTClient)o=await dft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(mft,"paginateListThingTypes");K0.paginateListThingTypes=mft});var Z9=h(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.paginateListThingsInBillingGroup=void 0;var pft=Ky(),hft=ue(),fft=oe(),gft=r(async(e,t,...i)=>await e.send(new pft.ListThingsInBillingGroupCommand(t),...i),"makePagedClientRequest"),wft=r(async(e,t,...i)=>await e.listThingsInBillingGroup(t,...i),"makePagedRequest");async function*_ft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof hft.IoT)o=await wft(e.client,t,...i);else if(e.client instanceof fft.IoTClient)o=await gft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(_ft,"paginateListThingsInBillingGroup");Y0.paginateListThingsInBillingGroup=_ft});var eQ=h(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.paginateListThingsInThingGroup=void 0;var yft=Qy(),Sft=ue(),vft=oe(),Eft=r(async(e,t,...i)=>await e.send(new yft.ListThingsInThingGroupCommand(t),...i),"makePagedClientRequest"),Aft=r(async(e,t,...i)=>await e.listThingsInThingGroup(t,...i),"makePagedRequest");async function*bft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Sft.IoT)o=await Aft(e.client,t,...i);else if(e.client instanceof vft.IoTClient)o=await Eft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(bft,"paginateListThingsInThingGroup");Q0.paginateListThingsInThingGroup=bft});var tQ=h(X0=>{"use strict";Object.defineProperty(X0,"__esModule",{value:!0});X0.paginateListThings=void 0;var Cft=Hy(),Tft=ue(),xft=oe(),Pft=r(async(e,t,...i)=>await e.send(new Cft.ListThingsCommand(t),...i),"makePagedClientRequest"),Ift=r(async(e,t,...i)=>await e.listThings(t,...i),"makePagedRequest");async function*Rft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Tft.IoT)o=await Ift(e.client,t,...i);else if(e.client instanceof xft.IoTClient)o=await Pft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Rft,"paginateListThings");X0.paginateListThings=Rft});var iQ=h(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});Z0.paginateListTopicRuleDestinations=void 0;var qft=tS(),Lft=ue(),zft=oe(),Fft=r(async(e,t,...i)=>await e.send(new qft.ListTopicRuleDestinationsCommand(t),...i),"makePagedClientRequest"),Nft=r(async(e,t,...i)=>await e.listTopicRuleDestinations(t,...i),"makePagedRequest");async function*Dft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Lft.IoT)o=await Nft(e.client,t,...i);else if(e.client instanceof zft.IoTClient)o=await Fft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Dft,"paginateListTopicRuleDestinations");Z0.paginateListTopicRuleDestinations=Dft});var sQ=h(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.paginateListTopicRules=void 0;var kft=sS(),Jft=ue(),Mft=oe(),Uft=r(async(e,t,...i)=>await e.send(new kft.ListTopicRulesCommand(t),...i),"makePagedClientRequest"),Oft=r(async(e,t,...i)=>await e.listTopicRules(t,...i),"makePagedRequest");async function*jft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Jft.IoT)o=await Oft(e.client,t,...i);else if(e.client instanceof Mft.IoTClient)o=await Uft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(jft,"paginateListTopicRules");eT.paginateListTopicRules=jft});var nQ=h(tT=>{"use strict";Object.defineProperty(tT,"__esModule",{value:!0});tT.paginateListV2LoggingLevels=void 0;var Gft=rS(),Vft=ue(),Bft=oe(),$ft=r(async(e,t,...i)=>await e.send(new Gft.ListV2LoggingLevelsCommand(t),...i),"makePagedClientRequest"),Hft=r(async(e,t,...i)=>await e.listV2LoggingLevels(t,...i),"makePagedRequest");async function*Wft(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Vft.IoT)o=await Hft(e.client,t,...i);else if(e.client instanceof Bft.IoTClient)o=await $ft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(Wft,"paginateListV2LoggingLevels");tT.paginateListV2LoggingLevels=Wft});var rQ=h(iT=>{"use strict";Object.defineProperty(iT,"__esModule",{value:!0});iT.paginateListViolationEvents=void 0;var Kft=aS(),Yft=ue(),Qft=oe(),Xft=r(async(e,t,...i)=>await e.send(new Kft.ListViolationEventsCommand(t),...i),"makePagedClientRequest"),Zft=r(async(e,t,...i)=>await e.listViolationEvents(t,...i),"makePagedRequest");async function*egt(e,t,...i){let s=e.startingToken||void 0,n=!0,o;for(;n;){if(t.nextToken=s,t.maxResults=e.pageSize,e.client instanceof Yft.IoT)o=await Zft(e.client,t,...i);else if(e.client instanceof Qft.IoTClient)o=await Xft(e.client,t,...i);else throw new Error("Invalid client, expected IoT | IoTClient");yield o;let c=s;s=o.nextToken,n=!!(s&&(!e.stopOnSameToken||s!==c))}return void 0}r(egt,"paginateListViolationEvents");iT.paginateListViolationEvents=egt});var oQ=h(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});var pe=(de(),re(le));pe.__exportStar(s9(),ae);pe.__exportStar(r9(),ae);pe.__exportStar(o9(),ae);pe.__exportStar(a9(),ae);pe.__exportStar(c9(),ae);pe.__exportStar(l9(),ae);pe.__exportStar(d9(),ae);pe.__exportStar(u9(),ae);pe.__exportStar(m9(),ae);pe.__exportStar(p9(),ae);pe.__exportStar(h9(),ae);pe.__exportStar(f9(),ae);pe.__exportStar(g9(),ae);pe.__exportStar(w9(),ae);pe.__exportStar(_9(),ae);pe.__exportStar(y9(),ae);pe.__exportStar(S9(),ae);pe.__exportStar(v9(),ae);pe.__exportStar(E9(),ae);pe.__exportStar(A9(),ae);pe.__exportStar(b9(),ae);pe.__exportStar(C9(),ae);pe.__exportStar(T9(),ae);pe.__exportStar(x9(),ae);pe.__exportStar(P9(),ae);pe.__exportStar(I9(),ae);pe.__exportStar(R9(),ae);pe.__exportStar(q9(),ae);pe.__exportStar(L9(),ae);pe.__exportStar(z9(),ae);pe.__exportStar(F9(),ae);pe.__exportStar(N9(),ae);pe.__exportStar(D9(),ae);pe.__exportStar(k9(),ae);pe.__exportStar(J9(),ae);pe.__exportStar(M9(),ae);pe.__exportStar(U9(),ae);pe.__exportStar(O9(),ae);pe.__exportStar(j9(),ae);pe.__exportStar(G9(),ae);pe.__exportStar(V9(),ae);pe.__exportStar(B9(),ae);pe.__exportStar($9(),ae);pe.__exportStar(H9(),ae);pe.__exportStar(W9(),ae);pe.__exportStar(K9(),ae);pe.__exportStar(Y9(),ae);pe.__exportStar(Q9(),ae);pe.__exportStar(X9(),ae);pe.__exportStar(Z9(),ae);pe.__exportStar(eQ(),ae);pe.__exportStar(tQ(),ae);pe.__exportStar(iQ(),ae);pe.__exportStar(sQ(),ae);pe.__exportStar(nQ(),ae);pe.__exportStar(rQ(),ae)});var aQ=h(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.IoTServiceException=void 0;var _p=(de(),re(le));_p.__exportStar(ue(),fs);_p.__exportStar(oe(),fs);_p.__exportStar(t9(),fs);_p.__exportStar(i9(),fs);_p.__exportStar(oQ(),fs);var tgt=yr();Object.defineProperty(fs,"IoTServiceException",{enumerable:!0,get:function(){return tgt.IoTServiceException}})});var lQ=Gz(dM(),1),sT=Gz(aQ(),1);import igt from"crypto";var sgt=new sT.IoTClient({}),ngt=await sgt.send(new sT.DescribeEndpointCommand({endpointType:"iot:Data-ATS"})),rgt=ngt.endpointAddress,Uz=igt.randomBytes(16).toString("hex"),dQ=`/sst/${process.env.SST_APP}/${process.env.SST_STAGE}`,ogt={SST_DEBUG_ENDPOINT:!0,SST_DEBUG_SRC_HANDLER:!0,SST_DEBUG_SRC_PATH:!0,AWS_LAMBDA_FUNCTION_MEMORY_SIZE:!0,AWS_LAMBDA_LOG_GROUP_NAME:!0,AWS_LAMBDA_LOG_STREAM_NAME:!0,LD_LIBRARY_PATH:!0,LAMBDA_TASK_ROOT:!0,AWS_LAMBDA_RUNTIME_API:!0,AWS_EXECUTION_ENV:!0,AWS_XRAY_DAEMON_ADDRESS:!0,AWS_LAMBDA_INITIALIZATION_TYPE:!0,PATH:!0,PWD:!0,LAMBDA_RUNTIME_DIR:!0,LANG:!0,NODE_PATH:!0,TZ:!0,SHLVL:!0,_AWS_XRAY_DAEMON_ADDRESS:!0,_AWS_XRAY_DAEMON_PORT:!0,AWS_XRAY_CONTEXT_MISSING:!0,_HANDLER:!0,_LAMBDA_CONSOLE_SOCKET:!0,_LAMBDA_CONTROL_SOCKET:!0,_LAMBDA_LOG_FD:!0,_LAMBDA_RUNTIME_LOAD_TIME:!0,_LAMBDA_SB_ID:!0,_LAMBDA_SERVER_PORT:!0,_LAMBDA_SHARED_MEM_FD:!0},agt=Object.fromEntries(Object.entries(process.env).filter(([e,t])=>ogt[e]!==!0)),yp=new lQ.default.device({protocol:"wss",host:rgt});yp.on("error",console.log);yp.on("connect",console.log);yp.subscribe(`${dQ}/events`);var cQ=new Map,uQ;yp.on("message",(e,t)=>{let i=JSON.parse(t.toString()),s=cQ.get(i.id);if(s||(s=new Map,cQ.set(i.id,s)),s.set(i.index,i),s.size===i.count){let n=[...s.values()].sort((c,d)=>c.index-d.index).map(c=>c.data).join(""),o=JSON.parse(n);uQ(o)}});async function hOt(e,t){for(let s of cgt({type:"function.invoked",properties:{workerID:Uz,requestID:t.awsRequestId,functionID:process.env.SST_FUNCTION_ID,deadline:t.getRemainingTimeInMillis(),event:e,context:t,env:agt}}))yp.publish(`${dQ}/events`,JSON.stringify(s));let i=await new Promise(s=>{let n=setTimeout(()=>{s({type:"function.timeout"})},5e3);uQ=r(o=>{o.type==="function.ack"&&o.properties.workerID===Uz&&clearTimeout(n),["function.success","function.error"].includes(o.type)&&o.properties.workerID===Uz&&(clearTimeout(n),s(o))},"onMessage")});if(console.log("Got result",i),i.type==="function.timeout")return"This function is in live debug mode but did not get a response from your machine. If you do have an `sst dev` session running, there have been reports of certain firewalls blocking communication. Please join our discord so we can work through the issue: https://sst.dev/discord";if(i.type==="function.success")return i.properties.body;if(i.type==="function.error"){let s=new Error(i.properties.errorMessage);throw s.stack=i.properties.trace.join(`
|
|
59
59
|
`),s}}r(hOt,"handler");function cgt(e){let i=JSON.stringify(e).match(/.{1,100000}/g);if(!i)return[];let s=Math.random().toString();return i.map((n,o)=>({id:s,index:o,count:i?.length,data:n}))}r(cgt,"encode");export{hOt as handler};
|
|
60
60
|
/*! Bundled license information:
|
|
61
61
|
|