2021-07-06 20:24:08 +02:00
/******/ ( ( ) => { // webpackBootstrap
/******/ var _ _webpack _modules _ _ = ( {
2020-08-21 13:33:37 +02:00
2021-12-20 10:00:03 +01:00
/***/ 6748 :
/***/ ( ( module ) => {
"use strict" ;
2021-12-30 20:43:44 +01:00
module . exports = JSON . parse ( '{"name":"@aws-sdk/client-ecr-public","description":"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"jest --coverage --passWithNoTests"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.45.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/credential-provider-node":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-signing":"3.45.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.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-ecr-public","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr-public"}}' ) ;
2021-12-30 19:35:40 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6879 :
/***/ ( ( module ) => {
"use strict" ;
2021-12-30 19:35:40 +01:00
module . exports = JSON . parse ( '{"name":"@aws-sdk/client-ecr","description":"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"exit 0"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.45.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/credential-provider-node":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-signing":"3.45.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","@aws-sdk/util-waiter":"3.40.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.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-ecr","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}' ) ;
2021-12-20 10:00:03 +01:00
/***/ } ) ,
/***/ 3966 :
/***/ ( ( module ) => {
"use strict" ;
2021-12-30 20:43:44 +01:00
module . exports = JSON . parse ( '{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"exit 0"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.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"}}' ) ;
2021-12-20 10:00:03 +01:00
/***/ } ) ,
/***/ 1121 :
/***/ ( ( module ) => {
"use strict" ;
2021-12-30 20:43:44 +01:00
module . exports = JSON . parse ( '{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.45.0","scripts":{"build":"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.json","build:docs":"yarn clean:docs && typedoc ./","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","clean":"yarn clean:dist && yarn clean:docs","clean:dist":"rimraf ./dist","clean:docs":"rimraf ./docs","downlevel-dts":"downlevel-dts dist-types dist-types/ts3.4","test":"exit 0"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.45.0","@aws-sdk/credential-provider-node":"3.45.0","@aws-sdk/fetch-http-handler":"3.40.0","@aws-sdk/hash-node":"3.40.0","@aws-sdk/invalid-dependency":"3.40.0","@aws-sdk/middleware-content-length":"3.40.0","@aws-sdk/middleware-host-header":"3.40.0","@aws-sdk/middleware-logger":"3.40.0","@aws-sdk/middleware-retry":"3.40.0","@aws-sdk/middleware-sdk-sts":"3.45.0","@aws-sdk/middleware-serde":"3.40.0","@aws-sdk/middleware-signing":"3.45.0","@aws-sdk/middleware-stack":"3.40.0","@aws-sdk/middleware-user-agent":"3.40.0","@aws-sdk/node-config-provider":"3.40.0","@aws-sdk/node-http-handler":"3.40.0","@aws-sdk/protocol-http":"3.40.0","@aws-sdk/smithy-client":"3.41.0","@aws-sdk/types":"3.40.0","@aws-sdk/url-parser":"3.40.0","@aws-sdk/util-base64-browser":"3.37.0","@aws-sdk/util-base64-node":"3.37.0","@aws-sdk/util-body-length-browser":"3.37.0","@aws-sdk/util-body-length-node":"3.37.0","@aws-sdk/util-user-agent-browser":"3.40.0","@aws-sdk/util-user-agent-node":"3.40.0","@aws-sdk/util-utf8-browser":"3.37.0","@aws-sdk/util-utf8-node":"3.37.0","entities":"2.2.0","fast-xml-parser":"3.19.0","tslib":"^2.3.0"},"devDependencies":{"@aws-sdk/service-client-documentation-generator":"3.38.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","ts-jest":"^26.4.1","typedoc":"^0.19.2","typescript":"~4.3.5"},"engines":{"node":">=10.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"}}' ) ;
2021-12-20 10:00:03 +01:00
/***/ } ) ,
/***/ 5981 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-08-21 13:33:37 +02:00
2021-07-06 20:24:08 +02:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-07-06 20:24:08 +02:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:43:09 +01:00
exports . getRegistriesData = exports . getAccountIDs = exports . getRegion = exports . isPubECR = exports . isECR = void 0 ;
2021-12-20 10:00:03 +01:00
const core = _ _importStar ( _ _nccwpck _require _ _ ( 2186 ) ) ;
const client _ecr _1 = _ _nccwpck _require _ _ ( 8923 ) ;
const client _ecr _public _1 = _ _nccwpck _require _ _ ( 2308 ) ;
2021-07-06 20:24:08 +02:00
const ecrRegistryRegex = /^(([0-9]{12})\.dkr\.ecr\.(.+)\.amazonaws\.com(.cn)?)(\/([^:]+)(:.+)?)?$/ ;
exports . isECR = ( registry ) => {
return ecrRegistryRegex . test ( registry ) || exports . isPubECR ( registry ) ;
} ;
exports . isPubECR = ( registry ) => {
return registry === 'public.ecr.aws' ;
} ;
exports . getRegion = ( registry ) => {
if ( exports . isPubECR ( registry ) ) {
return process . env . AWS _REGION || process . env . AWS _DEFAULT _REGION || 'us-east-1' ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
const matches = registry . match ( ecrRegistryRegex ) ;
if ( ! matches ) {
return '' ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
return matches [ 3 ] ;
} ;
exports . getAccountIDs = ( registry ) => {
if ( exports . isPubECR ( registry ) ) {
return [ ] ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
const matches = registry . match ( ecrRegistryRegex ) ;
if ( ! matches ) {
return [ ] ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
let accountIDs = [ matches [ 2 ] ] ;
if ( process . env . AWS _ACCOUNT _IDS ) {
accountIDs . push ( ... process . env . AWS _ACCOUNT _IDS . split ( ',' ) ) ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
return accountIDs . filter ( ( item , index ) => accountIDs . indexOf ( item ) === index ) ;
} ;
2021-12-20 10:43:09 +01:00
exports . getRegistriesData = ( registry , username , password ) => _ _awaiter ( void 0 , void 0 , void 0 , function * ( ) {
const region = exports . getRegion ( registry ) ;
const accountIDs = exports . getAccountIDs ( registry ) ;
const authTokenRequest = { } ;
if ( accountIDs . length > 0 ) {
core . debug ( ` Requesting AWS ECR auth token for ${ accountIDs . join ( ', ' ) } ` ) ;
authTokenRequest [ 'registryIds' ] = accountIDs ;
2020-08-21 14:45:16 +02:00
}
2021-12-20 10:00:03 +01:00
const credentials = username && password
? {
accessKeyId : username ,
secretAccessKey : password
}
: undefined ;
2021-12-20 10:43:09 +01:00
if ( exports . isPubECR ( registry ) ) {
core . info ( ` AWS Public ECR detected with ${ region } region ` ) ;
2021-12-20 10:00:03 +01:00
const ecrPublic = new client _ecr _public _1 . ECRPUBLIC ( {
2021-12-20 10:43:09 +01:00
customUserAgent : 'docker-login-action' ,
2021-12-20 10:00:03 +01:00
credentials ,
2021-12-20 10:43:09 +01:00
region : region
2021-07-06 20:24:08 +02:00
} ) ;
2021-12-20 10:00:03 +01:00
const authTokenResponse = yield ecrPublic . getAuthorizationToken ( authTokenRequest ) ;
2021-12-20 10:43:09 +01:00
if ( ! authTokenResponse . authorizationData || ! authTokenResponse . authorizationData . authorizationToken ) {
throw new Error ( 'Could not retrieve an authorization token from AWS Public ECR' ) ;
}
const authToken = Buffer . from ( authTokenResponse . authorizationData . authorizationToken , 'base64' ) . toString ( 'utf-8' ) ;
const creds = authToken . split ( ':' , 2 ) ;
return [
{
registry : 'public.ecr.aws' ,
username : creds [ 0 ] ,
password : creds [ 1 ]
}
] ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
else {
2021-12-20 10:43:09 +01:00
core . info ( ` AWS ECR detected with ${ region } region ` ) ;
2021-12-20 10:00:03 +01:00
const ecr = new client _ecr _1 . ECR ( {
2021-12-20 10:43:09 +01:00
customUserAgent : 'docker-login-action' ,
2021-12-20 10:00:03 +01:00
credentials ,
2021-12-20 10:43:09 +01:00
region : region
2021-07-06 20:24:08 +02:00
} ) ;
2021-12-20 10:00:03 +01:00
const authTokenResponse = yield ecr . getAuthorizationToken ( authTokenRequest ) ;
2021-12-20 10:43:09 +01:00
if ( ! Array . isArray ( authTokenResponse . authorizationData ) || ! authTokenResponse . authorizationData . length ) {
throw new Error ( 'Could not retrieve an authorization token from AWS ECR' ) ;
}
const regDatas = [ ] ;
for ( const authData of authTokenResponse . authorizationData ) {
const authToken = Buffer . from ( authData . authorizationToken || '' , 'base64' ) . toString ( 'utf-8' ) ;
const creds = authToken . split ( ':' , 2 ) ;
regDatas . push ( {
registry : authData . proxyEndpoint || '' ,
username : creds [ 0 ] ,
password : creds [ 1 ]
} ) ;
}
return regDatas ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
} ) ;
//# sourceMappingURL=aws.js.map
2020-08-21 14:45:16 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 3842 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-08-15 14:45:36 +02:00
"use strict" ;
2020-08-21 13:33:37 +02:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
2021-07-06 20:24:08 +02:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getInputs = void 0 ;
2021-12-20 10:00:03 +01:00
const core = _ _importStar ( _ _nccwpck _require _ _ ( 2186 ) ) ;
2021-07-06 20:24:08 +02:00
function getInputs ( ) {
return {
registry : core . getInput ( 'registry' ) ,
username : core . getInput ( 'username' ) ,
password : core . getInput ( 'password' ) ,
2021-12-20 10:59:11 +01:00
ecr : core . getInput ( 'ecr' ) ,
2021-07-06 20:24:08 +02:00
logout : core . getBooleanInput ( 'logout' )
} ;
}
exports . getInputs = getInputs ;
//# sourceMappingURL=context.js.map
/***/ } ) ,
/***/ 3758 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . loginECR = exports . loginStandard = exports . logout = exports . login = void 0 ;
2021-12-20 10:00:03 +01:00
const aws = _ _importStar ( _ _nccwpck _require _ _ ( 5981 ) ) ;
const core = _ _importStar ( _ _nccwpck _require _ _ ( 2186 ) ) ;
const exec = _ _importStar ( _ _nccwpck _require _ _ ( 1514 ) ) ;
2021-12-20 10:59:11 +01:00
function login ( registry , username , password , ecr ) {
2021-07-06 20:24:08 +02:00
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
2021-12-20 10:59:11 +01:00
if ( /true/i . test ( ecr ) || ( ecr == 'auto' && aws . isECR ( registry ) ) ) {
2021-07-06 20:24:08 +02:00
yield loginECR ( registry , username , password ) ;
}
else {
yield loginStandard ( registry , username , password ) ;
}
} ) ;
}
exports . login = login ;
function logout ( registry ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
yield exec
. getExecOutput ( 'docker' , [ 'logout' , registry ] , {
ignoreReturnCode : true
} )
. then ( res => {
if ( res . stderr . length > 0 && res . exitCode != 0 ) {
core . warning ( res . stderr . trim ( ) ) ;
}
} ) ;
} ) ;
}
exports . logout = logout ;
function loginStandard ( registry , username , password ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
if ( ! username || ! password ) {
throw new Error ( 'Username and password required' ) ;
}
let loginArgs = [ 'login' , '--password-stdin' ] ;
loginArgs . push ( '--username' , username ) ;
loginArgs . push ( registry ) ;
if ( registry ) {
core . info ( ` Logging into ${ registry } ... ` ) ;
}
else {
core . info ( ` Logging into Docker Hub... ` ) ;
}
yield exec
. getExecOutput ( 'docker' , loginArgs , {
ignoreReturnCode : true ,
silent : true ,
input : Buffer . from ( password )
} )
. then ( res => {
if ( res . stderr . length > 0 && res . exitCode != 0 ) {
throw new Error ( res . stderr . trim ( ) ) ;
}
core . info ( ` Login Succeeded! ` ) ;
} ) ;
} ) ;
}
exports . loginStandard = loginStandard ;
function loginECR ( registry , username , password ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
2021-12-20 10:43:09 +01:00
core . info ( ` Retrieving registries data through AWS SDK... ` ) ;
const regDatas = yield aws . getRegistriesData ( registry , username , password ) ;
for ( const regData of regDatas ) {
core . info ( ` Logging into ${ regData . registry } ... ` ) ;
yield exec
. getExecOutput ( 'docker' , [ 'login' , '--password-stdin' , '--username' , regData . username , regData . registry ] , {
2021-07-06 20:24:08 +02:00
ignoreReturnCode : true ,
2021-12-20 10:43:09 +01:00
silent : true ,
input : Buffer . from ( regData . password )
2021-07-06 20:24:08 +02:00
} )
. then ( res => {
if ( res . stderr . length > 0 && res . exitCode != 0 ) {
throw new Error ( res . stderr . trim ( ) ) ;
}
2021-12-20 10:43:09 +01:00
core . info ( 'Login Succeeded!' ) ;
2021-07-06 20:24:08 +02:00
} ) ;
2021-12-20 10:43:09 +01:00
}
2021-07-06 20:24:08 +02:00
} ) ;
}
exports . loginECR = loginECR ;
//# sourceMappingURL=docker.js.map
/***/ } ) ,
/***/ 3109 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . run = void 0 ;
2021-12-20 10:00:03 +01:00
const core = _ _importStar ( _ _nccwpck _require _ _ ( 2186 ) ) ;
const context = _ _importStar ( _ _nccwpck _require _ _ ( 3842 ) ) ;
2021-07-06 20:24:08 +02:00
const docker = _ _importStar ( _ _nccwpck _require _ _ ( 3758 ) ) ;
2021-12-20 10:00:03 +01:00
const stateHelper = _ _importStar ( _ _nccwpck _require _ _ ( 8647 ) ) ;
2021-07-06 20:24:08 +02:00
function run ( ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
try {
2021-12-20 10:59:11 +01:00
const input = context . getInputs ( ) ;
stateHelper . setRegistry ( input . registry ) ;
stateHelper . setLogout ( input . logout ) ;
yield docker . login ( input . registry , input . username , input . password , input . ecr ) ;
2020-08-15 14:45:36 +02:00
}
2020-08-21 13:33:37 +02:00
catch ( error ) {
core . setFailed ( error . message ) ;
2020-08-15 14:45:36 +02:00
}
} ) ;
}
2020-10-16 18:24:41 +02:00
exports . run = run ;
2020-08-21 13:33:37 +02:00
function logout ( ) {
2020-08-15 14:45:36 +02:00
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
2020-08-21 13:33:37 +02:00
if ( ! stateHelper . logout ) {
return ;
2020-08-15 14:45:36 +02:00
}
2020-08-21 13:33:37 +02:00
yield docker . logout ( stateHelper . registry ) ;
2020-08-15 14:45:36 +02:00
} ) ;
}
2020-08-21 13:33:37 +02:00
if ( ! stateHelper . IsPost ) {
run ( ) ;
}
else {
logout ( ) ;
}
//# sourceMappingURL=main.js.map
2020-08-21 14:45:16 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8647 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-08-21 14:45:16 +02:00
2021-07-06 20:24:08 +02:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-07-06 20:24:08 +02:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . setLogout = exports . setRegistry = exports . logout = exports . registry = exports . IsPost = void 0 ;
2021-12-20 10:00:03 +01:00
const core = _ _importStar ( _ _nccwpck _require _ _ ( 2186 ) ) ;
2021-07-06 20:24:08 +02:00
exports . IsPost = ! ! process . env [ 'STATE_isPost' ] ;
exports . registry = process . env [ 'STATE_registry' ] || '' ;
exports . logout = /true/i . test ( process . env [ 'STATE_logout' ] || '' ) ;
function setRegistry ( registry ) {
core . saveState ( 'registry' , registry ) ;
}
exports . setRegistry = setRegistry ;
function setLogout ( logout ) {
core . saveState ( 'logout' , logout ) ;
}
exports . setLogout = setLogout ;
if ( ! exports . IsPost ) {
core . saveState ( 'isPost' , 'true' ) ;
}
//# sourceMappingURL=state-helper.js.map
2020-08-21 14:45:16 +02:00
2020-08-21 13:33:37 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7351 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-05-25 00:44:03 +02:00
"use strict" ;
2021-07-06 20:24:08 +02:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . issue = exports . issueCommand = void 0 ;
2021-12-20 10:00:03 +01:00
const os = _ _importStar ( _ _nccwpck _require _ _ ( 2087 ) ) ;
2021-07-06 20:24:08 +02:00
const utils _1 = _ _nccwpck _require _ _ ( 5278 ) ;
/ * *
* Commands
*
* Command Format :
* : : name key = value , key = value : : message
*
* Examples :
* : : warning : : This is the message
* : : set - env name = MY _VAR : : some value
* /
function issueCommand ( command , properties , message ) {
const cmd = new Command ( command , properties , message ) ;
process . stdout . write ( cmd . toString ( ) + os . EOL ) ;
}
exports . issueCommand = issueCommand ;
function issue ( name , message = '' ) {
issueCommand ( name , { } , message ) ;
}
exports . issue = issue ;
const CMD _STRING = '::' ;
class Command {
constructor ( command , properties , message ) {
if ( ! command ) {
command = 'missing.command' ;
}
this . command = command ;
this . properties = properties ;
this . message = message ;
}
toString ( ) {
let cmdStr = CMD _STRING + this . command ;
if ( this . properties && Object . keys ( this . properties ) . length > 0 ) {
cmdStr += ' ' ;
let first = true ;
for ( const key in this . properties ) {
if ( this . properties . hasOwnProperty ( key ) ) {
const val = this . properties [ key ] ;
if ( val ) {
if ( first ) {
first = false ;
}
else {
cmdStr += ',' ;
}
cmdStr += ` ${ key } = ${ escapeProperty ( val ) } ` ;
}
}
}
}
cmdStr += ` ${ CMD _STRING } ${ escapeData ( this . message ) } ` ;
return cmdStr ;
}
}
function escapeData ( s ) {
return utils _1 . toCommandValue ( s )
. replace ( /%/g , '%25' )
. replace ( /\r/g , '%0D' )
. replace ( /\n/g , '%0A' ) ;
}
function escapeProperty ( s ) {
return utils _1 . toCommandValue ( s )
. replace ( /%/g , '%25' )
. replace ( /\r/g , '%0D' )
. replace ( /\n/g , '%0A' )
. replace ( /:/g , '%3A' )
. replace ( /,/g , '%2C' ) ;
}
//# sourceMappingURL=command.js.map
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
/***/ 2186 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
"use strict" ;
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-10-04 13:14:44 +02:00
exports . getIDToken = exports . getState = exports . saveState = exports . group = exports . endGroup = exports . startGroup = exports . info = exports . notice = exports . warning = exports . error = exports . debug = exports . isDebug = exports . setFailed = exports . setCommandEcho = exports . setOutput = exports . getBooleanInput = exports . getMultilineInput = exports . getInput = exports . addPath = exports . setSecret = exports . exportVariable = exports . ExitCode = void 0 ;
2021-12-20 10:00:03 +01:00
const command _1 = _ _nccwpck _require _ _ ( 7351 ) ;
2021-07-06 20:24:08 +02:00
const file _command _1 = _ _nccwpck _require _ _ ( 717 ) ;
const utils _1 = _ _nccwpck _require _ _ ( 5278 ) ;
2021-12-20 10:00:03 +01:00
const os = _ _importStar ( _ _nccwpck _require _ _ ( 2087 ) ) ;
const path = _ _importStar ( _ _nccwpck _require _ _ ( 5622 ) ) ;
const oidc _utils _1 = _ _nccwpck _require _ _ ( 8041 ) ;
2021-07-06 20:24:08 +02:00
/ * *
* The code to exit an action
* /
var ExitCode ;
( function ( ExitCode ) {
/ * *
* A code indicating that the action was successful
* /
ExitCode [ ExitCode [ "Success" ] = 0 ] = "Success" ;
/ * *
* A code indicating that the action was a failure
* /
ExitCode [ ExitCode [ "Failure" ] = 1 ] = "Failure" ;
} ) ( ExitCode = exports . ExitCode || ( exports . ExitCode = { } ) ) ;
//-----------------------------------------------------------------------
// Variables
//-----------------------------------------------------------------------
/ * *
* Sets env variable for this action and future actions in the job
* @ param name the name of the variable to set
* @ param val the value of the variable . Non - string values will be converted to a string via JSON . stringify
* /
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function exportVariable ( name , val ) {
const convertedVal = utils _1 . toCommandValue ( val ) ;
process . env [ name ] = convertedVal ;
const filePath = process . env [ 'GITHUB_ENV' ] || '' ;
if ( filePath ) {
const delimiter = '_GitHubActionsFileCommandDelimeter_' ;
const commandValue = ` ${ name } << ${ delimiter } ${ os . EOL } ${ convertedVal } ${ os . EOL } ${ delimiter } ` ;
file _command _1 . issueCommand ( 'ENV' , commandValue ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
else {
command _1 . issueCommand ( 'set-env' , { name } , convertedVal ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
}
exports . exportVariable = exportVariable ;
/ * *
* Registers a secret which will get masked from logs
* @ param secret value of the secret
* /
function setSecret ( secret ) {
command _1 . issueCommand ( 'add-mask' , { } , secret ) ;
}
exports . setSecret = setSecret ;
/ * *
* Prepends inputPath to the PATH ( for this action and future actions )
* @ param inputPath
* /
function addPath ( inputPath ) {
const filePath = process . env [ 'GITHUB_PATH' ] || '' ;
if ( filePath ) {
file _command _1 . issueCommand ( 'PATH' , inputPath ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
else {
command _1 . issueCommand ( 'add-path' , { } , inputPath ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
process . env [ 'PATH' ] = ` ${ inputPath } ${ path . delimiter } ${ process . env [ 'PATH' ] } ` ;
}
exports . addPath = addPath ;
/ * *
* Gets the value of an input .
* Unless trimWhitespace is set to false in InputOptions , the value is also trimmed .
* Returns an empty string if the value is not defined .
*
* @ param name name of the input to get
* @ param options optional . See InputOptions .
* @ returns string
* /
function getInput ( name , options ) {
const val = process . env [ ` INPUT_ ${ name . replace ( / /g , '_' ) . toUpperCase ( ) } ` ] || '' ;
if ( options && options . required && ! val ) {
throw new Error ( ` Input required and not supplied: ${ name } ` ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
if ( options && options . trimWhitespace === false ) {
return val ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
return val . trim ( ) ;
}
exports . getInput = getInput ;
/ * *
* Gets the values of an multiline input . Each value is also trimmed .
*
* @ param name name of the input to get
* @ param options optional . See InputOptions .
* @ returns string [ ]
*
* /
function getMultilineInput ( name , options ) {
const inputs = getInput ( name , options )
. split ( '\n' )
. filter ( x => x !== '' ) ;
return inputs ;
}
exports . getMultilineInput = getMultilineInput ;
/ * *
* Gets the input value of the boolean type in the YAML 1.2 "core schema" specification .
* Support boolean input list : ` true | True | TRUE | false | False | FALSE ` .
* The return value is also in boolean type .
* ref : https : //yaml.org/spec/1.2/spec.html#id2804923
*
* @ param name name of the input to get
* @ param options optional . See InputOptions .
* @ returns boolean
* /
function getBooleanInput ( name , options ) {
const trueValue = [ 'true' , 'True' , 'TRUE' ] ;
const falseValue = [ 'false' , 'False' , 'FALSE' ] ;
const val = getInput ( name , options ) ;
if ( trueValue . includes ( val ) )
return true ;
if ( falseValue . includes ( val ) )
return false ;
throw new TypeError ( ` Input does not meet YAML 1.2 "Core Schema" specification: ${ name } \n ` +
` Support boolean input list: \` true | True | TRUE | false | False | FALSE \` ` ) ;
}
exports . getBooleanInput = getBooleanInput ;
/ * *
* Sets the value of an output .
*
* @ param name name of the output to set
* @ param value value to store . Non - string values will be converted to a string via JSON . stringify
* /
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setOutput ( name , value ) {
process . stdout . write ( os . EOL ) ;
command _1 . issueCommand ( 'set-output' , { name } , value ) ;
}
exports . setOutput = setOutput ;
/ * *
* Enables or disables the echoing of commands into stdout for the rest of the step .
* Echoing is disabled by default if ACTIONS _STEP _DEBUG is not set .
*
* /
function setCommandEcho ( enabled ) {
command _1 . issue ( 'echo' , enabled ? 'on' : 'off' ) ;
}
exports . setCommandEcho = setCommandEcho ;
//-----------------------------------------------------------------------
// Results
//-----------------------------------------------------------------------
/ * *
* Sets the action status to failed .
* When the action exits it will be with an exit code of 1
* @ param message add error issue message
* /
function setFailed ( message ) {
process . exitCode = ExitCode . Failure ;
error ( message ) ;
}
exports . setFailed = setFailed ;
//-----------------------------------------------------------------------
// Logging Commands
//-----------------------------------------------------------------------
/ * *
* Gets whether Actions Step Debug is on or not
* /
function isDebug ( ) {
return process . env [ 'RUNNER_DEBUG' ] === '1' ;
}
exports . isDebug = isDebug ;
/ * *
* Writes debug message to user log
* @ param message debug message
* /
function debug ( message ) {
command _1 . issueCommand ( 'debug' , { } , message ) ;
}
exports . debug = debug ;
/ * *
* Adds an error issue
* @ param message error issue message . Errors will be converted to string via toString ( )
2021-08-20 10:34:52 +02:00
* @ param properties optional properties to add to the annotation .
2021-07-06 20:24:08 +02:00
* /
2021-08-20 10:34:52 +02:00
function error ( message , properties = { } ) {
command _1 . issueCommand ( 'error' , utils _1 . toCommandProperties ( properties ) , message instanceof Error ? message . toString ( ) : message ) ;
2021-07-06 20:24:08 +02:00
}
exports . error = error ;
/ * *
2021-08-20 10:34:52 +02:00
* Adds a warning issue
2021-07-06 20:24:08 +02:00
* @ param message warning issue message . Errors will be converted to string via toString ( )
2021-08-20 10:34:52 +02:00
* @ param properties optional properties to add to the annotation .
2021-07-06 20:24:08 +02:00
* /
2021-08-20 10:34:52 +02:00
function warning ( message , properties = { } ) {
command _1 . issueCommand ( 'warning' , utils _1 . toCommandProperties ( properties ) , message instanceof Error ? message . toString ( ) : message ) ;
2021-07-06 20:24:08 +02:00
}
exports . warning = warning ;
2021-08-20 10:34:52 +02:00
/ * *
* Adds a notice issue
* @ param message notice issue message . Errors will be converted to string via toString ( )
* @ param properties optional properties to add to the annotation .
* /
function notice ( message , properties = { } ) {
command _1 . issueCommand ( 'notice' , utils _1 . toCommandProperties ( properties ) , message instanceof Error ? message . toString ( ) : message ) ;
}
exports . notice = notice ;
2021-07-06 20:24:08 +02:00
/ * *
* Writes info to log with console . log .
* @ param message info message
* /
function info ( message ) {
process . stdout . write ( message + os . EOL ) ;
}
exports . info = info ;
/ * *
* Begin an output group .
*
* Output until the next ` groupEnd ` will be foldable in this group
*
* @ param name The name of the output group
* /
function startGroup ( name ) {
command _1 . issue ( 'group' , name ) ;
}
exports . startGroup = startGroup ;
/ * *
* End an output group .
* /
function endGroup ( ) {
command _1 . issue ( 'endgroup' ) ;
}
exports . endGroup = endGroup ;
/ * *
* Wrap an asynchronous function call in a group .
*
* Returns the same type as the function itself .
*
* @ param name The name of the group
* @ param fn The function to wrap in the group
* /
function group ( name , fn ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
startGroup ( name ) ;
let result ;
try {
result = yield fn ( ) ;
}
finally {
endGroup ( ) ;
}
return result ;
} ) ;
}
exports . group = group ;
//-----------------------------------------------------------------------
// Wrapper action state
//-----------------------------------------------------------------------
/ * *
* Saves state for current action , the state can only be retrieved by this action ' s post job execution .
*
* @ param name name of the state to store
* @ param value value to store . Non - string values will be converted to a string via JSON . stringify
* /
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function saveState ( name , value ) {
command _1 . issueCommand ( 'save-state' , { name } , value ) ;
}
exports . saveState = saveState ;
/ * *
* Gets the value of an state set by this action ' s main execution .
*
* @ param name name of the state to get
* @ returns string
* /
function getState ( name ) {
return process . env [ ` STATE_ ${ name } ` ] || '' ;
}
exports . getState = getState ;
2021-10-04 13:14:44 +02:00
function getIDToken ( aud ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
return yield oidc _utils _1 . OidcClient . getIDToken ( aud ) ;
} ) ;
}
exports . getIDToken = getIDToken ;
2021-07-06 20:24:08 +02:00
//# sourceMappingURL=core.js.map
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ 717 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
"use strict" ;
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
// For internal use, subject to change.
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . issueCommand = void 0 ;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
2021-12-20 10:00:03 +01:00
const fs = _ _importStar ( _ _nccwpck _require _ _ ( 5747 ) ) ;
const os = _ _importStar ( _ _nccwpck _require _ _ ( 2087 ) ) ;
2021-07-06 20:24:08 +02:00
const utils _1 = _ _nccwpck _require _ _ ( 5278 ) ;
function issueCommand ( command , message ) {
const filePath = process . env [ ` GITHUB_ ${ command } ` ] ;
if ( ! filePath ) {
throw new Error ( ` Unable to find environment variable for file command ${ command } ` ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
if ( ! fs . existsSync ( filePath ) ) {
throw new Error ( ` Missing file at path: ${ filePath } ` ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
fs . appendFileSync ( filePath , ` ${ utils _1 . toCommandValue ( message ) } ${ os . EOL } ` , {
encoding : 'utf8'
} ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
exports . issueCommand = issueCommand ;
//# sourceMappingURL=file-command.js.map
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
/***/ 8041 :
2021-10-04 13:14:44 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . OidcClient = void 0 ;
2021-12-20 10:00:03 +01:00
const http _client _1 = _ _nccwpck _require _ _ ( 9925 ) ;
const auth _1 = _ _nccwpck _require _ _ ( 3702 ) ;
const core _1 = _ _nccwpck _require _ _ ( 2186 ) ;
2021-10-04 13:14:44 +02:00
class OidcClient {
static createHttpClient ( allowRetry = true , maxRetry = 10 ) {
const requestOptions = {
allowRetries : allowRetry ,
maxRetries : maxRetry
} ;
return new http _client _1 . HttpClient ( 'actions/oidc-client' , [ new auth _1 . BearerCredentialHandler ( OidcClient . getRequestToken ( ) ) ] , requestOptions ) ;
}
static getRequestToken ( ) {
const token = process . env [ 'ACTIONS_ID_TOKEN_REQUEST_TOKEN' ] ;
if ( ! token ) {
throw new Error ( 'Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable' ) ;
}
return token ;
}
static getIDTokenUrl ( ) {
const runtimeUrl = process . env [ 'ACTIONS_ID_TOKEN_REQUEST_URL' ] ;
if ( ! runtimeUrl ) {
throw new Error ( 'Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable' ) ;
}
return runtimeUrl ;
}
static getCall ( id _token _url ) {
var _a ;
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const httpclient = OidcClient . createHttpClient ( ) ;
const res = yield httpclient
. getJson ( id _token _url )
. catch ( error => {
throw new Error ( ` Failed to get ID Token. \n
Error Code : $ { error . statusCode } \ n
Error Message : $ { error . result . message } ` );
} ) ;
const id _token = ( _a = res . result ) === null || _a === void 0 ? void 0 : _a . value ;
if ( ! id _token ) {
throw new Error ( 'Response json body do not have ID Token field' ) ;
}
return id _token ;
} ) ;
}
static getIDToken ( audience ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
try {
// New ID Token is requested from action service
let id _token _url = OidcClient . getIDTokenUrl ( ) ;
if ( audience ) {
const encodedAudience = encodeURIComponent ( audience ) ;
id _token _url = ` ${ id _token _url } &audience= ${ encodedAudience } ` ;
}
core _1 . debug ( ` ID token url is ${ id _token _url } ` ) ;
const id _token = yield OidcClient . getCall ( id _token _url ) ;
core _1 . setSecret ( id _token ) ;
return id _token ;
}
catch ( error ) {
throw new Error ( ` Error message: ${ error . message } ` ) ;
}
} ) ;
}
}
exports . OidcClient = OidcClient ;
//# sourceMappingURL=oidc-utils.js.map
/***/ } ) ,
2021-07-06 20:24:08 +02:00
/***/ 5278 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
"use strict" ;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-08-20 10:34:52 +02:00
exports . toCommandProperties = exports . toCommandValue = void 0 ;
2021-07-06 20:24:08 +02:00
/ * *
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @ param input input to sanitize into a string
* /
function toCommandValue ( input ) {
if ( input === null || input === undefined ) {
return '' ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
else if ( typeof input === 'string' || input instanceof String ) {
return input ;
}
return JSON . stringify ( input ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
exports . toCommandValue = toCommandValue ;
2021-08-20 10:34:52 +02:00
/ * *
*
* @ param annotationProperties
* @ returns The command properties to send with the actual annotation command
* See IssueCommandProperties : https : //github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
* /
function toCommandProperties ( annotationProperties ) {
if ( ! Object . keys ( annotationProperties ) . length ) {
return { } ;
}
return {
title : annotationProperties . title ,
2021-10-04 13:14:44 +02:00
file : annotationProperties . file ,
2021-08-20 10:34:52 +02:00
line : annotationProperties . startLine ,
endLine : annotationProperties . endLine ,
col : annotationProperties . startColumn ,
endColumn : annotationProperties . endColumn
} ;
}
exports . toCommandProperties = toCommandProperties ;
2021-07-06 20:24:08 +02:00
//# sourceMappingURL=utils.js.map
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
/***/ 1514 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
"use strict" ;
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getExecOutput = exports . exec = void 0 ;
2021-12-20 10:00:03 +01:00
const string _decoder _1 = _ _nccwpck _require _ _ ( 4304 ) ;
const tr = _ _importStar ( _ _nccwpck _require _ _ ( 8159 ) ) ;
2021-07-06 20:24:08 +02:00
/ * *
* Exec a command .
* Output will be streamed to the live console .
* Returns promise with return code
*
* @ param commandLine command to execute ( can include additional args ) . Must be correctly escaped .
* @ param args optional arguments for tool . Escaping is handled by the lib .
* @ param options optional exec options . See ExecOptions
* @ returns Promise < number > exit code
* /
function exec ( commandLine , args , options ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const commandArgs = tr . argStringToArray ( commandLine ) ;
if ( commandArgs . length === 0 ) {
throw new Error ( ` Parameter 'commandLine' cannot be null or empty. ` ) ;
}
// Path to tool to execute should be first arg
const toolPath = commandArgs [ 0 ] ;
args = commandArgs . slice ( 1 ) . concat ( args || [ ] ) ;
const runner = new tr . ToolRunner ( toolPath , args , options ) ;
return runner . exec ( ) ;
} ) ;
2021-05-25 00:44:03 +02:00
}
2021-07-06 20:24:08 +02:00
exports . exec = exec ;
/ * *
* Exec a command and get the output .
* Output will be streamed to the live console .
* Returns promise with the exit code and collected stdout and stderr
*
* @ param commandLine command to execute ( can include additional args ) . Must be correctly escaped .
* @ param args optional arguments for tool . Escaping is handled by the lib .
* @ param options optional exec options . See ExecOptions
* @ returns Promise < ExecOutput > exit code , stdout , and stderr
* /
function getExecOutput ( commandLine , args , options ) {
var _a , _b ;
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
let stdout = '' ;
let stderr = '' ;
//Using string decoder covers the case where a mult-byte character is split
const stdoutDecoder = new string _decoder _1 . StringDecoder ( 'utf8' ) ;
const stderrDecoder = new string _decoder _1 . StringDecoder ( 'utf8' ) ;
const originalStdoutListener = ( _a = options === null || options === void 0 ? void 0 : options . listeners ) === null || _a === void 0 ? void 0 : _a . stdout ;
const originalStdErrListener = ( _b = options === null || options === void 0 ? void 0 : options . listeners ) === null || _b === void 0 ? void 0 : _b . stderr ;
const stdErrListener = ( data ) => {
stderr += stderrDecoder . write ( data ) ;
if ( originalStdErrListener ) {
originalStdErrListener ( data ) ;
}
} ;
const stdOutListener = ( data ) => {
stdout += stdoutDecoder . write ( data ) ;
if ( originalStdoutListener ) {
originalStdoutListener ( data ) ;
}
} ;
const listeners = Object . assign ( Object . assign ( { } , options === null || options === void 0 ? void 0 : options . listeners ) , { stdout : stdOutListener , stderr : stdErrListener } ) ;
const exitCode = yield exec ( commandLine , args , Object . assign ( Object . assign ( { } , options ) , { listeners } ) ) ;
//flush any remaining characters
stdout += stdoutDecoder . end ( ) ;
stderr += stderrDecoder . end ( ) ;
return {
exitCode ,
stdout ,
stderr
} ;
} ) ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
exports . getExecOutput = getExecOutput ;
//# sourceMappingURL=exec.js.map
2020-08-21 14:45:16 +02:00
2020-08-21 13:33:37 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8159 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2020-08-21 13:33:37 +02:00
"use strict" ;
2021-06-22 10:00:24 +02:00
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
2020-08-21 13:33:37 +02:00
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
2021-07-06 20:24:08 +02:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-06-22 10:00:24 +02:00
exports . argStringToArray = exports . ToolRunner = void 0 ;
2021-12-20 10:00:03 +01:00
const os = _ _importStar ( _ _nccwpck _require _ _ ( 2087 ) ) ;
const events = _ _importStar ( _ _nccwpck _require _ _ ( 8614 ) ) ;
const child = _ _importStar ( _ _nccwpck _require _ _ ( 3129 ) ) ;
const path = _ _importStar ( _ _nccwpck _require _ _ ( 5622 ) ) ;
const io = _ _importStar ( _ _nccwpck _require _ _ ( 7436 ) ) ;
const ioUtil = _ _importStar ( _ _nccwpck _require _ _ ( 1962 ) ) ;
const timers _1 = _ _nccwpck _require _ _ ( 8213 ) ;
2020-08-21 13:33:37 +02:00
/* eslint-disable @typescript-eslint/unbound-method */
const IS _WINDOWS = process . platform === 'win32' ;
/ *
* Class for running command line tools . Handles quoting and arg parsing in a platform agnostic way .
2020-08-15 14:45:36 +02:00
* /
2020-08-21 13:33:37 +02:00
class ToolRunner extends events . EventEmitter {
constructor ( toolPath , args , options ) {
super ( ) ;
if ( ! toolPath ) {
throw new Error ( "Parameter 'toolPath' cannot be null or empty." ) ;
}
this . toolPath = toolPath ;
this . args = args || [ ] ;
this . options = options || { } ;
}
_debug ( message ) {
if ( this . options . listeners && this . options . listeners . debug ) {
this . options . listeners . debug ( message ) ;
}
}
_getCommandString ( options , noPrefix ) {
const toolPath = this . _getSpawnFileName ( ) ;
const args = this . _getSpawnArgs ( options ) ;
let cmd = noPrefix ? '' : '[command]' ; // omit prefix when piped to a second tool
if ( IS _WINDOWS ) {
// Windows + cmd file
if ( this . _isCmdFile ( ) ) {
cmd += toolPath ;
for ( const a of args ) {
cmd += ` ${ a } ` ;
2020-08-15 14:45:36 +02:00
}
}
2020-08-21 13:33:37 +02:00
// Windows + verbatim
else if ( options . windowsVerbatimArguments ) {
cmd += ` " ${ toolPath } " ` ;
for ( const a of args ) {
cmd += ` ${ a } ` ;
}
2020-08-15 14:45:36 +02:00
}
2020-08-21 13:33:37 +02:00
// Windows (regular)
else {
cmd += this . _windowsQuoteCmdArg ( toolPath ) ;
for ( const a of args ) {
cmd += ` ${ this . _windowsQuoteCmdArg ( a ) } ` ;
}
2020-08-15 14:45:36 +02:00
}
}
else {
2020-08-21 13:33:37 +02:00
// OSX/Linux - this can likely be improved with some form of quoting.
// creating processes on Unix is fundamentally different than Windows.
// on Unix, execvp() takes an arg array.
cmd += toolPath ;
for ( const a of args ) {
cmd += ` ${ a } ` ;
2020-08-15 14:45:36 +02:00
}
2020-08-21 13:33:37 +02:00
}
return cmd ;
}
_processLineBuffer ( data , strBuffer , onLine ) {
try {
let s = strBuffer + data . toString ( ) ;
let n = s . indexOf ( os . EOL ) ;
while ( n > - 1 ) {
const line = s . substring ( 0 , n ) ;
onLine ( line ) ;
// the rest of the string ...
s = s . substring ( n + os . EOL . length ) ;
n = s . indexOf ( os . EOL ) ;
2020-08-15 14:45:36 +02:00
}
2021-06-22 10:00:24 +02:00
return s ;
2020-08-15 14:45:36 +02:00
}
catch ( err ) {
// streaming lines to console is best effort. Don't fail a build.
this . _debug ( ` error processing line. Failed with error ${ err } ` ) ;
2021-06-22 10:00:24 +02:00
return '' ;
2020-08-15 14:45:36 +02:00
}
}
_getSpawnFileName ( ) {
if ( IS _WINDOWS ) {
if ( this . _isCmdFile ( ) ) {
return process . env [ 'COMSPEC' ] || 'cmd.exe' ;
}
}
return this . toolPath ;
}
_getSpawnArgs ( options ) {
if ( IS _WINDOWS ) {
if ( this . _isCmdFile ( ) ) {
let argline = ` /D /S /C " ${ this . _windowsQuoteCmdArg ( this . toolPath ) } ` ;
for ( const a of this . args ) {
argline += ' ' ;
argline += options . windowsVerbatimArguments
? a
: this . _windowsQuoteCmdArg ( a ) ;
}
argline += '"' ;
return [ argline ] ;
}
}
return this . args ;
}
_endsWith ( str , end ) {
return str . endsWith ( end ) ;
}
_isCmdFile ( ) {
const upperToolPath = this . toolPath . toUpperCase ( ) ;
return ( this . _endsWith ( upperToolPath , '.CMD' ) ||
this . _endsWith ( upperToolPath , '.BAT' ) ) ;
}
_windowsQuoteCmdArg ( arg ) {
// for .exe, apply the normal quoting rules that libuv applies
if ( ! this . _isCmdFile ( ) ) {
return this . _uvQuoteCmdArg ( arg ) ;
}
// otherwise apply quoting rules specific to the cmd.exe command line parser.
// the libuv rules are generic and are not designed specifically for cmd.exe
// command line parser.
//
// for a detailed description of the cmd.exe command line parser, refer to
// http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912
// need quotes for empty arg
if ( ! arg ) {
return '""' ;
}
// determine whether the arg needs to be quoted
const cmdSpecialChars = [
' ' ,
'\t' ,
'&' ,
'(' ,
')' ,
'[' ,
']' ,
'{' ,
'}' ,
'^' ,
'=' ,
';' ,
'!' ,
"'" ,
'+' ,
',' ,
'`' ,
'~' ,
'|' ,
'<' ,
'>' ,
'"'
] ;
let needsQuotes = false ;
for ( const char of arg ) {
if ( cmdSpecialChars . some ( x => x === char ) ) {
needsQuotes = true ;
break ;
}
}
// short-circuit if quotes not needed
if ( ! needsQuotes ) {
return arg ;
}
// the following quoting rules are very similar to the rules that by libuv applies.
//
// 1) wrap the string in quotes
//
// 2) double-up quotes - i.e. " => ""
//
// this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately
// doesn't work well with a cmd.exe command line.
//
// note, replacing " with "" also works well if the arg is passed to a downstream .NET console app.
// for example, the command line:
// foo.exe "myarg:""my val"""
// is parsed by a .NET console app into an arg array:
// [ "myarg:\"my val\"" ]
// which is the same end result when applying libuv quoting rules. although the actual
// command line from libuv quoting rules would look like:
// foo.exe "myarg:\"my val\""
//
// 3) double-up slashes that precede a quote,
// e.g. hello \world => "hello \world"
// hello\"world => "hello\\""world"
// hello\\"world => "hello\\\\""world"
// hello world\ => "hello world\\"
//
// technically this is not required for a cmd.exe command line, or the batch argument parser.
// the reasons for including this as a .cmd quoting rule are:
//
// a) this is optimized for the scenario where the argument is passed from the .cmd file to an
// external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule.
//
// b) it's what we've been doing previously (by deferring to node default behavior) and we
// haven't heard any complaints about that aspect.
//
// note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be
// escaped when used on the command line directly - even though within a .cmd file % can be escaped
// by using %%.
//
// the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts
// the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing.
//
// one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would
// often work, since it is unlikely that var^ would exist, and the ^ character is removed when the
// variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args
// to an external program.
//
// an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file.
// % can be escaped within a .cmd file.
let reverse = '"' ;
let quoteHit = true ;
for ( let i = arg . length ; i > 0 ; i -- ) {
// walk the string in reverse
reverse += arg [ i - 1 ] ;
if ( quoteHit && arg [ i - 1 ] === '\\' ) {
reverse += '\\' ; // double the slash
}
else if ( arg [ i - 1 ] === '"' ) {
quoteHit = true ;
reverse += '"' ; // double the quote
}
else {
quoteHit = false ;
}
}
reverse += '"' ;
return reverse
. split ( '' )
. reverse ( )
. join ( '' ) ;
}
_uvQuoteCmdArg ( arg ) {
// Tool runner wraps child_process.spawn() and needs to apply the same quoting as
// Node in certain cases where the undocumented spawn option windowsVerbatimArguments
// is used.
//
// Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV,
// see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details),
// pasting copyright notice from Node within this function:
//
// Copyright Joyent, Inc. and other Node contributors. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
if ( ! arg ) {
// Need double quotation for empty argument
return '""' ;
}
if ( ! arg . includes ( ' ' ) && ! arg . includes ( '\t' ) && ! arg . includes ( '"' ) ) {
// No quotation needed
return arg ;
}
if ( ! arg . includes ( '"' ) && ! arg . includes ( '\\' ) ) {
// No embedded double quotes or backslashes, so I can just wrap
// quote marks around the whole thing.
return ` " ${ arg } " ` ;
}
// Expected input/output:
// input : hello"world
// output: "hello\"world"
// input : hello""world
// output: "hello\"\"world"
// input : hello\world
// output: hello\world
// input : hello\\world
// output: hello\\world
// input : hello\"world
// output: "hello\\\"world"
// input : hello\\"world
// output: "hello\\\\\"world"
// input : hello world\
// output: "hello world\\" - note the comment in libuv actually reads "hello world\"
// but it appears the comment is wrong, it should be "hello world\\"
let reverse = '"' ;
let quoteHit = true ;
for ( let i = arg . length ; i > 0 ; i -- ) {
// walk the string in reverse
reverse += arg [ i - 1 ] ;
if ( quoteHit && arg [ i - 1 ] === '\\' ) {
reverse += '\\' ;
}
else if ( arg [ i - 1 ] === '"' ) {
quoteHit = true ;
reverse += '\\' ;
}
else {
quoteHit = false ;
}
}
reverse += '"' ;
return reverse
. split ( '' )
. reverse ( )
. join ( '' ) ;
}
_cloneExecOptions ( options ) {
options = options || { } ;
const result = {
cwd : options . cwd || process . cwd ( ) ,
env : options . env || process . env ,
silent : options . silent || false ,
windowsVerbatimArguments : options . windowsVerbatimArguments || false ,
failOnStdErr : options . failOnStdErr || false ,
ignoreReturnCode : options . ignoreReturnCode || false ,
delay : options . delay || 10000
} ;
result . outStream = options . outStream || process . stdout ;
result . errStream = options . errStream || process . stderr ;
return result ;
}
_getSpawnOptions ( options , toolPath ) {
options = options || { } ;
const result = { } ;
result . cwd = options . cwd ;
result . env = options . env ;
result [ 'windowsVerbatimArguments' ] =
options . windowsVerbatimArguments || this . _isCmdFile ( ) ;
if ( options . windowsVerbatimArguments ) {
result . argv0 = ` " ${ toolPath } " ` ;
}
return result ;
}
/ * *
* Exec a tool .
* Output will be streamed to the live console .
* Returns promise with return code
*
* @ param tool path to tool to exec
* @ param options optional exec options . See ExecOptions
* @ returns number
* /
exec ( ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
// root the tool path if it is unrooted and contains relative pathing
if ( ! ioUtil . isRooted ( this . toolPath ) &&
( this . toolPath . includes ( '/' ) ||
( IS _WINDOWS && this . toolPath . includes ( '\\' ) ) ) ) {
// prefer options.cwd if it is specified, however options.cwd may also need to be rooted
this . toolPath = path . resolve ( process . cwd ( ) , this . options . cwd || process . cwd ( ) , this . toolPath ) ;
}
// if the tool is only a file name, then resolve it from the PATH
// otherwise verify it exists (add extension on Windows if necessary)
this . toolPath = yield io . which ( this . toolPath , true ) ;
2021-06-22 10:00:24 +02:00
return new Promise ( ( resolve , reject ) => _ _awaiter ( this , void 0 , void 0 , function * ( ) {
2020-08-15 14:45:36 +02:00
this . _debug ( ` exec tool: ${ this . toolPath } ` ) ;
this . _debug ( 'arguments:' ) ;
for ( const arg of this . args ) {
this . _debug ( ` ${ arg } ` ) ;
}
const optionsNonNull = this . _cloneExecOptions ( this . options ) ;
if ( ! optionsNonNull . silent && optionsNonNull . outStream ) {
optionsNonNull . outStream . write ( this . _getCommandString ( optionsNonNull ) + os . EOL ) ;
}
const state = new ExecState ( optionsNonNull , this . toolPath ) ;
state . on ( 'debug' , ( message ) => {
this . _debug ( message ) ;
} ) ;
2021-06-22 10:00:24 +02:00
if ( this . options . cwd && ! ( yield ioUtil . exists ( this . options . cwd ) ) ) {
return reject ( new Error ( ` The cwd: ${ this . options . cwd } does not exist! ` ) ) ;
}
2020-08-15 14:45:36 +02:00
const fileName = this . _getSpawnFileName ( ) ;
const cp = child . spawn ( fileName , this . _getSpawnArgs ( optionsNonNull ) , this . _getSpawnOptions ( this . options , fileName ) ) ;
2021-06-22 10:00:24 +02:00
let stdbuffer = '' ;
2020-08-15 14:45:36 +02:00
if ( cp . stdout ) {
cp . stdout . on ( 'data' , ( data ) => {
if ( this . options . listeners && this . options . listeners . stdout ) {
this . options . listeners . stdout ( data ) ;
}
if ( ! optionsNonNull . silent && optionsNonNull . outStream ) {
optionsNonNull . outStream . write ( data ) ;
}
2021-06-22 10:00:24 +02:00
stdbuffer = this . _processLineBuffer ( data , stdbuffer , ( line ) => {
2020-08-15 14:45:36 +02:00
if ( this . options . listeners && this . options . listeners . stdline ) {
this . options . listeners . stdline ( line ) ;
}
} ) ;
} ) ;
}
2021-06-22 10:00:24 +02:00
let errbuffer = '' ;
2020-08-15 14:45:36 +02:00
if ( cp . stderr ) {
cp . stderr . on ( 'data' , ( data ) => {
state . processStderr = true ;
if ( this . options . listeners && this . options . listeners . stderr ) {
this . options . listeners . stderr ( data ) ;
}
if ( ! optionsNonNull . silent &&
optionsNonNull . errStream &&
optionsNonNull . outStream ) {
const s = optionsNonNull . failOnStdErr
? optionsNonNull . errStream
: optionsNonNull . outStream ;
s . write ( data ) ;
}
2021-06-22 10:00:24 +02:00
errbuffer = this . _processLineBuffer ( data , errbuffer , ( line ) => {
2020-08-15 14:45:36 +02:00
if ( this . options . listeners && this . options . listeners . errline ) {
this . options . listeners . errline ( line ) ;
}
} ) ;
} ) ;
}
cp . on ( 'error' , ( err ) => {
state . processError = err . message ;
state . processExited = true ;
state . processClosed = true ;
state . CheckComplete ( ) ;
} ) ;
cp . on ( 'exit' , ( code ) => {
state . processExitCode = code ;
state . processExited = true ;
this . _debug ( ` Exit code ${ code } received from tool ' ${ this . toolPath } ' ` ) ;
state . CheckComplete ( ) ;
} ) ;
cp . on ( 'close' , ( code ) => {
state . processExitCode = code ;
state . processExited = true ;
state . processClosed = true ;
this . _debug ( ` STDIO streams have closed for tool ' ${ this . toolPath } ' ` ) ;
state . CheckComplete ( ) ;
} ) ;
state . on ( 'done' , ( error , exitCode ) => {
if ( stdbuffer . length > 0 ) {
this . emit ( 'stdline' , stdbuffer ) ;
}
if ( errbuffer . length > 0 ) {
this . emit ( 'errline' , errbuffer ) ;
}
cp . removeAllListeners ( ) ;
if ( error ) {
reject ( error ) ;
}
else {
resolve ( exitCode ) ;
}
} ) ;
if ( this . options . input ) {
if ( ! cp . stdin ) {
throw new Error ( 'child process missing stdin' ) ;
}
cp . stdin . end ( this . options . input ) ;
}
2021-06-22 10:00:24 +02:00
} ) ) ;
2020-08-15 14:45:36 +02:00
} ) ;
}
}
exports . ToolRunner = ToolRunner ;
/ * *
* Convert an arg string to an array of args . Handles escaping
*
* @ param argString string of arguments
* @ returns string [ ] array of arguments
* /
function argStringToArray ( argString ) {
const args = [ ] ;
let inQuotes = false ;
let escaped = false ;
let arg = '' ;
function append ( c ) {
// we only escape double quotes.
if ( escaped && c !== '"' ) {
arg += '\\' ;
}
arg += c ;
escaped = false ;
}
for ( let i = 0 ; i < argString . length ; i ++ ) {
const c = argString . charAt ( i ) ;
if ( c === '"' ) {
if ( ! escaped ) {
inQuotes = ! inQuotes ;
}
else {
append ( c ) ;
}
continue ;
}
if ( c === '\\' && escaped ) {
append ( c ) ;
continue ;
}
if ( c === '\\' && inQuotes ) {
escaped = true ;
continue ;
}
if ( c === ' ' && ! inQuotes ) {
if ( arg . length > 0 ) {
args . push ( arg ) ;
arg = '' ;
}
continue ;
}
append ( c ) ;
}
if ( arg . length > 0 ) {
args . push ( arg . trim ( ) ) ;
}
return args ;
}
exports . argStringToArray = argStringToArray ;
class ExecState extends events . EventEmitter {
constructor ( options , toolPath ) {
super ( ) ;
this . processClosed = false ; // tracks whether the process has exited and stdio is closed
this . processError = '' ;
this . processExitCode = 0 ;
this . processExited = false ; // tracks whether the process has exited
this . processStderr = false ; // tracks whether stderr was written to
this . delay = 10000 ; // 10 seconds
this . done = false ;
this . timeout = null ;
if ( ! toolPath ) {
throw new Error ( 'toolPath must not be empty' ) ;
}
this . options = options ;
this . toolPath = toolPath ;
if ( options . delay ) {
this . delay = options . delay ;
}
}
CheckComplete ( ) {
if ( this . done ) {
return ;
}
if ( this . processClosed ) {
this . _setResult ( ) ;
}
else if ( this . processExited ) {
2021-06-22 10:00:24 +02:00
this . timeout = timers _1 . setTimeout ( ExecState . HandleTimeout , this . delay , this ) ;
2020-08-15 14:45:36 +02:00
}
}
_debug ( message ) {
this . emit ( 'debug' , message ) ;
}
_setResult ( ) {
// determine whether there is an error
let error ;
if ( this . processExited ) {
if ( this . processError ) {
error = new Error ( ` There was an error when attempting to execute the process ' ${ this . toolPath } '. This may indicate the process failed to start. Error: ${ this . processError } ` ) ;
}
else if ( this . processExitCode !== 0 && ! this . options . ignoreReturnCode ) {
error = new Error ( ` The process ' ${ this . toolPath } ' failed with exit code ${ this . processExitCode } ` ) ;
}
else if ( this . processStderr && this . options . failOnStdErr ) {
error = new Error ( ` The process ' ${ this . toolPath } ' failed because one or more lines were written to the STDERR stream ` ) ;
}
}
// clear the timeout
if ( this . timeout ) {
clearTimeout ( this . timeout ) ;
this . timeout = null ;
}
this . done = true ;
this . emit ( 'done' , error , this . processExitCode ) ;
}
static HandleTimeout ( state ) {
if ( state . done ) {
return ;
}
if ( ! state . processClosed && state . processExited ) {
const message = ` The STDIO streams did not close within ${ state . delay /
1000 } seconds of the exit event from process '${state.toolPath}' . This may indicate a child process inherited the STDIO streams and has not yet exited . ` ;
2021-07-06 20:24:08 +02:00
state . _debug ( message ) ;
}
state . _setResult ( ) ;
2021-05-25 01:08:08 +02:00
}
2021-06-22 09:47:22 +02:00
}
2021-07-06 20:24:08 +02:00
//# sourceMappingURL=toolrunner.js.map
2021-10-04 13:14:44 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3702 :
2021-10-04 13:14:44 +02:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
class BasicCredentialHandler {
constructor ( username , password ) {
this . username = username ;
this . password = password ;
}
prepareRequest ( options ) {
options . headers [ 'Authorization' ] =
'Basic ' +
Buffer . from ( this . username + ':' + this . password ) . toString ( 'base64' ) ;
}
// This handler cannot handle 401
canHandleAuthentication ( response ) {
return false ;
}
handleAuthentication ( httpClient , requestInfo , objs ) {
return null ;
}
}
exports . BasicCredentialHandler = BasicCredentialHandler ;
class BearerCredentialHandler {
constructor ( token ) {
this . token = token ;
}
// currently implements pre-authorization
// TODO: support preAuth = false where it hooks on 401
prepareRequest ( options ) {
options . headers [ 'Authorization' ] = 'Bearer ' + this . token ;
}
// This handler cannot handle 401
canHandleAuthentication ( response ) {
return false ;
}
handleAuthentication ( httpClient , requestInfo , objs ) {
return null ;
}
}
exports . BearerCredentialHandler = BearerCredentialHandler ;
class PersonalAccessTokenCredentialHandler {
constructor ( token ) {
this . token = token ;
}
// currently implements pre-authorization
// TODO: support preAuth = false where it hooks on 401
prepareRequest ( options ) {
options . headers [ 'Authorization' ] =
'Basic ' + Buffer . from ( 'PAT:' + this . token ) . toString ( 'base64' ) ;
}
// This handler cannot handle 401
canHandleAuthentication ( response ) {
return false ;
}
handleAuthentication ( httpClient , requestInfo , objs ) {
return null ;
}
}
exports . PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9925 :
2021-10-04 13:14:44 +02:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:00:03 +01:00
const http = _ _nccwpck _require _ _ ( 8605 ) ;
const https = _ _nccwpck _require _ _ ( 7211 ) ;
const pm = _ _nccwpck _require _ _ ( 6443 ) ;
2021-10-04 13:14:44 +02:00
let tunnel ;
var HttpCodes ;
( function ( HttpCodes ) {
HttpCodes [ HttpCodes [ "OK" ] = 200 ] = "OK" ;
HttpCodes [ HttpCodes [ "MultipleChoices" ] = 300 ] = "MultipleChoices" ;
HttpCodes [ HttpCodes [ "MovedPermanently" ] = 301 ] = "MovedPermanently" ;
HttpCodes [ HttpCodes [ "ResourceMoved" ] = 302 ] = "ResourceMoved" ;
HttpCodes [ HttpCodes [ "SeeOther" ] = 303 ] = "SeeOther" ;
HttpCodes [ HttpCodes [ "NotModified" ] = 304 ] = "NotModified" ;
HttpCodes [ HttpCodes [ "UseProxy" ] = 305 ] = "UseProxy" ;
HttpCodes [ HttpCodes [ "SwitchProxy" ] = 306 ] = "SwitchProxy" ;
HttpCodes [ HttpCodes [ "TemporaryRedirect" ] = 307 ] = "TemporaryRedirect" ;
HttpCodes [ HttpCodes [ "PermanentRedirect" ] = 308 ] = "PermanentRedirect" ;
HttpCodes [ HttpCodes [ "BadRequest" ] = 400 ] = "BadRequest" ;
HttpCodes [ HttpCodes [ "Unauthorized" ] = 401 ] = "Unauthorized" ;
HttpCodes [ HttpCodes [ "PaymentRequired" ] = 402 ] = "PaymentRequired" ;
HttpCodes [ HttpCodes [ "Forbidden" ] = 403 ] = "Forbidden" ;
HttpCodes [ HttpCodes [ "NotFound" ] = 404 ] = "NotFound" ;
HttpCodes [ HttpCodes [ "MethodNotAllowed" ] = 405 ] = "MethodNotAllowed" ;
HttpCodes [ HttpCodes [ "NotAcceptable" ] = 406 ] = "NotAcceptable" ;
HttpCodes [ HttpCodes [ "ProxyAuthenticationRequired" ] = 407 ] = "ProxyAuthenticationRequired" ;
HttpCodes [ HttpCodes [ "RequestTimeout" ] = 408 ] = "RequestTimeout" ;
HttpCodes [ HttpCodes [ "Conflict" ] = 409 ] = "Conflict" ;
HttpCodes [ HttpCodes [ "Gone" ] = 410 ] = "Gone" ;
HttpCodes [ HttpCodes [ "TooManyRequests" ] = 429 ] = "TooManyRequests" ;
HttpCodes [ HttpCodes [ "InternalServerError" ] = 500 ] = "InternalServerError" ;
HttpCodes [ HttpCodes [ "NotImplemented" ] = 501 ] = "NotImplemented" ;
HttpCodes [ HttpCodes [ "BadGateway" ] = 502 ] = "BadGateway" ;
HttpCodes [ HttpCodes [ "ServiceUnavailable" ] = 503 ] = "ServiceUnavailable" ;
HttpCodes [ HttpCodes [ "GatewayTimeout" ] = 504 ] = "GatewayTimeout" ;
} ) ( HttpCodes = exports . HttpCodes || ( exports . HttpCodes = { } ) ) ;
var Headers ;
( function ( Headers ) {
Headers [ "Accept" ] = "accept" ;
Headers [ "ContentType" ] = "content-type" ;
} ) ( Headers = exports . Headers || ( exports . Headers = { } ) ) ;
var MediaTypes ;
( function ( MediaTypes ) {
MediaTypes [ "ApplicationJson" ] = "application/json" ;
} ) ( MediaTypes = exports . MediaTypes || ( exports . MediaTypes = { } ) ) ;
/ * *
* Returns the proxy URL , depending upon the supplied url and proxy environment variables .
* @ param serverUrl The server URL where the request will be sent . For example , https : //api.github.com
* /
function getProxyUrl ( serverUrl ) {
let proxyUrl = pm . getProxyUrl ( new URL ( serverUrl ) ) ;
return proxyUrl ? proxyUrl . href : '' ;
}
exports . getProxyUrl = getProxyUrl ;
const HttpRedirectCodes = [
HttpCodes . MovedPermanently ,
HttpCodes . ResourceMoved ,
HttpCodes . SeeOther ,
HttpCodes . TemporaryRedirect ,
HttpCodes . PermanentRedirect
] ;
const HttpResponseRetryCodes = [
HttpCodes . BadGateway ,
HttpCodes . ServiceUnavailable ,
HttpCodes . GatewayTimeout
] ;
const RetryableHttpVerbs = [ 'OPTIONS' , 'GET' , 'DELETE' , 'HEAD' ] ;
const ExponentialBackoffCeiling = 10 ;
const ExponentialBackoffTimeSlice = 5 ;
class HttpClientError extends Error {
constructor ( message , statusCode ) {
super ( message ) ;
this . name = 'HttpClientError' ;
this . statusCode = statusCode ;
Object . setPrototypeOf ( this , HttpClientError . prototype ) ;
}
}
exports . HttpClientError = HttpClientError ;
class HttpClientResponse {
constructor ( message ) {
this . message = message ;
}
readBody ( ) {
return new Promise ( async ( resolve , reject ) => {
let output = Buffer . alloc ( 0 ) ;
this . message . on ( 'data' , ( chunk ) => {
output = Buffer . concat ( [ output , chunk ] ) ;
} ) ;
this . message . on ( 'end' , ( ) => {
resolve ( output . toString ( ) ) ;
} ) ;
} ) ;
}
}
exports . HttpClientResponse = HttpClientResponse ;
function isHttps ( requestUrl ) {
let parsedUrl = new URL ( requestUrl ) ;
return parsedUrl . protocol === 'https:' ;
}
exports . isHttps = isHttps ;
class HttpClient {
constructor ( userAgent , handlers , requestOptions ) {
this . _ignoreSslError = false ;
this . _allowRedirects = true ;
this . _allowRedirectDowngrade = false ;
this . _maxRedirects = 50 ;
this . _allowRetries = false ;
this . _maxRetries = 1 ;
this . _keepAlive = false ;
this . _disposed = false ;
this . userAgent = userAgent ;
this . handlers = handlers || [ ] ;
this . requestOptions = requestOptions ;
if ( requestOptions ) {
if ( requestOptions . ignoreSslError != null ) {
this . _ignoreSslError = requestOptions . ignoreSslError ;
}
this . _socketTimeout = requestOptions . socketTimeout ;
if ( requestOptions . allowRedirects != null ) {
this . _allowRedirects = requestOptions . allowRedirects ;
}
if ( requestOptions . allowRedirectDowngrade != null ) {
this . _allowRedirectDowngrade = requestOptions . allowRedirectDowngrade ;
}
if ( requestOptions . maxRedirects != null ) {
this . _maxRedirects = Math . max ( requestOptions . maxRedirects , 0 ) ;
}
if ( requestOptions . keepAlive != null ) {
this . _keepAlive = requestOptions . keepAlive ;
}
if ( requestOptions . allowRetries != null ) {
this . _allowRetries = requestOptions . allowRetries ;
}
if ( requestOptions . maxRetries != null ) {
this . _maxRetries = requestOptions . maxRetries ;
}
}
}
options ( requestUrl , additionalHeaders ) {
return this . request ( 'OPTIONS' , requestUrl , null , additionalHeaders || { } ) ;
}
get ( requestUrl , additionalHeaders ) {
return this . request ( 'GET' , requestUrl , null , additionalHeaders || { } ) ;
}
del ( requestUrl , additionalHeaders ) {
return this . request ( 'DELETE' , requestUrl , null , additionalHeaders || { } ) ;
}
post ( requestUrl , data , additionalHeaders ) {
return this . request ( 'POST' , requestUrl , data , additionalHeaders || { } ) ;
}
patch ( requestUrl , data , additionalHeaders ) {
return this . request ( 'PATCH' , requestUrl , data , additionalHeaders || { } ) ;
}
put ( requestUrl , data , additionalHeaders ) {
return this . request ( 'PUT' , requestUrl , data , additionalHeaders || { } ) ;
}
head ( requestUrl , additionalHeaders ) {
return this . request ( 'HEAD' , requestUrl , null , additionalHeaders || { } ) ;
}
sendStream ( verb , requestUrl , stream , additionalHeaders ) {
return this . request ( verb , requestUrl , stream , additionalHeaders ) ;
}
/ * *
* Gets a typed object from an endpoint
* Be aware that not found returns a null . Other errors ( 4 xx , 5 xx ) reject the promise
* /
async getJson ( requestUrl , additionalHeaders = { } ) {
additionalHeaders [ Headers . Accept ] = this . _getExistingOrDefaultHeader ( additionalHeaders , Headers . Accept , MediaTypes . ApplicationJson ) ;
let res = await this . get ( requestUrl , additionalHeaders ) ;
return this . _processResponse ( res , this . requestOptions ) ;
}
async postJson ( requestUrl , obj , additionalHeaders = { } ) {
let data = JSON . stringify ( obj , null , 2 ) ;
additionalHeaders [ Headers . Accept ] = this . _getExistingOrDefaultHeader ( additionalHeaders , Headers . Accept , MediaTypes . ApplicationJson ) ;
additionalHeaders [ Headers . ContentType ] = this . _getExistingOrDefaultHeader ( additionalHeaders , Headers . ContentType , MediaTypes . ApplicationJson ) ;
let res = await this . post ( requestUrl , data , additionalHeaders ) ;
return this . _processResponse ( res , this . requestOptions ) ;
}
async putJson ( requestUrl , obj , additionalHeaders = { } ) {
let data = JSON . stringify ( obj , null , 2 ) ;
additionalHeaders [ Headers . Accept ] = this . _getExistingOrDefaultHeader ( additionalHeaders , Headers . Accept , MediaTypes . ApplicationJson ) ;
additionalHeaders [ Headers . ContentType ] = this . _getExistingOrDefaultHeader ( additionalHeaders , Headers . ContentType , MediaTypes . ApplicationJson ) ;
let res = await this . put ( requestUrl , data , additionalHeaders ) ;
return this . _processResponse ( res , this . requestOptions ) ;
}
async patchJson ( requestUrl , obj , additionalHeaders = { } ) {
let data = JSON . stringify ( obj , null , 2 ) ;
additionalHeaders [ Headers . Accept ] = this . _getExistingOrDefaultHeader ( additionalHeaders , Headers . Accept , MediaTypes . ApplicationJson ) ;
additionalHeaders [ Headers . ContentType ] = this . _getExistingOrDefaultHeader ( additionalHeaders , Headers . ContentType , MediaTypes . ApplicationJson ) ;
let res = await this . patch ( requestUrl , data , additionalHeaders ) ;
return this . _processResponse ( res , this . requestOptions ) ;
}
/ * *
* Makes a raw http request .
* All other methods such as get , post , patch , and request ultimately call this .
* Prefer get , del , post and patch
* /
async request ( verb , requestUrl , data , headers ) {
if ( this . _disposed ) {
throw new Error ( 'Client has already been disposed.' ) ;
}
let parsedUrl = new URL ( requestUrl ) ;
let info = this . _prepareRequest ( verb , parsedUrl , headers ) ;
// Only perform retries on reads since writes may not be idempotent.
let maxTries = this . _allowRetries && RetryableHttpVerbs . indexOf ( verb ) != - 1
? this . _maxRetries + 1
: 1 ;
let numTries = 0 ;
let response ;
while ( numTries < maxTries ) {
response = await this . requestRaw ( info , data ) ;
// Check if it's an authentication challenge
if ( response &&
response . message &&
response . message . statusCode === HttpCodes . Unauthorized ) {
let authenticationHandler ;
for ( let i = 0 ; i < this . handlers . length ; i ++ ) {
if ( this . handlers [ i ] . canHandleAuthentication ( response ) ) {
authenticationHandler = this . handlers [ i ] ;
break ;
}
}
if ( authenticationHandler ) {
return authenticationHandler . handleAuthentication ( this , info , data ) ;
}
else {
// We have received an unauthorized response but have no handlers to handle it.
// Let the response return to the caller.
return response ;
}
}
let redirectsRemaining = this . _maxRedirects ;
while ( HttpRedirectCodes . indexOf ( response . message . statusCode ) != - 1 &&
this . _allowRedirects &&
redirectsRemaining > 0 ) {
const redirectUrl = response . message . headers [ 'location' ] ;
if ( ! redirectUrl ) {
// if there's no location to redirect to, we won't
break ;
}
let parsedRedirectUrl = new URL ( redirectUrl ) ;
if ( parsedUrl . protocol == 'https:' &&
parsedUrl . protocol != parsedRedirectUrl . protocol &&
! this . _allowRedirectDowngrade ) {
throw new Error ( 'Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.' ) ;
}
// we need to finish reading the response before reassigning response
// which will leak the open socket.
await response . readBody ( ) ;
// strip authorization header if redirected to a different hostname
if ( parsedRedirectUrl . hostname !== parsedUrl . hostname ) {
for ( let header in headers ) {
// header names are case insensitive
if ( header . toLowerCase ( ) === 'authorization' ) {
delete headers [ header ] ;
}
}
}
// let's make the request with the new redirectUrl
info = this . _prepareRequest ( verb , parsedRedirectUrl , headers ) ;
response = await this . requestRaw ( info , data ) ;
redirectsRemaining -- ;
}
if ( HttpResponseRetryCodes . indexOf ( response . message . statusCode ) == - 1 ) {
// If not a retry code, return immediately instead of retrying
return response ;
}
numTries += 1 ;
if ( numTries < maxTries ) {
await response . readBody ( ) ;
await this . _performExponentialBackoff ( numTries ) ;
}
}
return response ;
}
/ * *
* Needs to be called if keepAlive is set to true in request options .
* /
dispose ( ) {
if ( this . _agent ) {
this . _agent . destroy ( ) ;
}
this . _disposed = true ;
}
/ * *
* Raw request .
* @ param info
* @ param data
* /
requestRaw ( info , data ) {
return new Promise ( ( resolve , reject ) => {
let callbackForResult = function ( err , res ) {
if ( err ) {
reject ( err ) ;
}
resolve ( res ) ;
} ;
this . requestRawWithCallback ( info , data , callbackForResult ) ;
} ) ;
}
/ * *
* Raw request with callback .
* @ param info
* @ param data
* @ param onResult
* /
requestRawWithCallback ( info , data , onResult ) {
let socket ;
if ( typeof data === 'string' ) {
info . options . headers [ 'Content-Length' ] = Buffer . byteLength ( data , 'utf8' ) ;
}
let callbackCalled = false ;
let handleResult = ( err , res ) => {
if ( ! callbackCalled ) {
callbackCalled = true ;
onResult ( err , res ) ;
}
} ;
let req = info . httpModule . request ( info . options , ( msg ) => {
let res = new HttpClientResponse ( msg ) ;
handleResult ( null , res ) ;
} ) ;
req . on ( 'socket' , sock => {
socket = sock ;
} ) ;
// If we ever get disconnected, we want the socket to timeout eventually
req . setTimeout ( this . _socketTimeout || 3 * 60000 , ( ) => {
if ( socket ) {
socket . end ( ) ;
}
handleResult ( new Error ( 'Request timeout: ' + info . options . path ) , null ) ;
} ) ;
req . on ( 'error' , function ( err ) {
// err has statusCode property
// res should have headers
handleResult ( err , null ) ;
} ) ;
if ( data && typeof data === 'string' ) {
req . write ( data , 'utf8' ) ;
}
if ( data && typeof data !== 'string' ) {
data . on ( 'close' , function ( ) {
req . end ( ) ;
} ) ;
data . pipe ( req ) ;
}
else {
req . end ( ) ;
}
}
/ * *
* Gets an http agent . This function is useful when you need an http agent that handles
* routing through a proxy server - depending upon the url and proxy environment variables .
* @ param serverUrl The server URL where the request will be sent . For example , https : //api.github.com
* /
getAgent ( serverUrl ) {
let parsedUrl = new URL ( serverUrl ) ;
return this . _getAgent ( parsedUrl ) ;
}
_prepareRequest ( method , requestUrl , headers ) {
const info = { } ;
info . parsedUrl = requestUrl ;
const usingSsl = info . parsedUrl . protocol === 'https:' ;
info . httpModule = usingSsl ? https : http ;
const defaultPort = usingSsl ? 443 : 80 ;
info . options = { } ;
info . options . host = info . parsedUrl . hostname ;
info . options . port = info . parsedUrl . port
? parseInt ( info . parsedUrl . port )
: defaultPort ;
info . options . path =
( info . parsedUrl . pathname || '' ) + ( info . parsedUrl . search || '' ) ;
info . options . method = method ;
info . options . headers = this . _mergeHeaders ( headers ) ;
if ( this . userAgent != null ) {
info . options . headers [ 'user-agent' ] = this . userAgent ;
}
info . options . agent = this . _getAgent ( info . parsedUrl ) ;
// gives handlers an opportunity to participate
if ( this . handlers ) {
this . handlers . forEach ( handler => {
handler . prepareRequest ( info . options ) ;
} ) ;
}
return info ;
}
_mergeHeaders ( headers ) {
const lowercaseKeys = obj => Object . keys ( obj ) . reduce ( ( c , k ) => ( ( c [ k . toLowerCase ( ) ] = obj [ k ] ) , c ) , { } ) ;
if ( this . requestOptions && this . requestOptions . headers ) {
return Object . assign ( { } , lowercaseKeys ( this . requestOptions . headers ) , lowercaseKeys ( headers ) ) ;
}
return lowercaseKeys ( headers || { } ) ;
}
_getExistingOrDefaultHeader ( additionalHeaders , header , _default ) {
const lowercaseKeys = obj => Object . keys ( obj ) . reduce ( ( c , k ) => ( ( c [ k . toLowerCase ( ) ] = obj [ k ] ) , c ) , { } ) ;
let clientHeader ;
if ( this . requestOptions && this . requestOptions . headers ) {
clientHeader = lowercaseKeys ( this . requestOptions . headers ) [ header ] ;
}
return additionalHeaders [ header ] || clientHeader || _default ;
}
_getAgent ( parsedUrl ) {
let agent ;
let proxyUrl = pm . getProxyUrl ( parsedUrl ) ;
let useProxy = proxyUrl && proxyUrl . hostname ;
if ( this . _keepAlive && useProxy ) {
agent = this . _proxyAgent ;
}
if ( this . _keepAlive && ! useProxy ) {
agent = this . _agent ;
}
// if agent is already assigned use that agent.
if ( ! ! agent ) {
return agent ;
}
const usingSsl = parsedUrl . protocol === 'https:' ;
let maxSockets = 100 ;
if ( ! ! this . requestOptions ) {
maxSockets = this . requestOptions . maxSockets || http . globalAgent . maxSockets ;
}
if ( useProxy ) {
// If using proxy, need tunnel
if ( ! tunnel ) {
2021-12-20 10:00:03 +01:00
tunnel = _ _nccwpck _require _ _ ( 4294 ) ;
2021-10-04 13:14:44 +02:00
}
const agentOptions = {
maxSockets : maxSockets ,
keepAlive : this . _keepAlive ,
proxy : {
... ( ( proxyUrl . username || proxyUrl . password ) && {
proxyAuth : ` ${ proxyUrl . username } : ${ proxyUrl . password } `
} ) ,
host : proxyUrl . hostname ,
port : proxyUrl . port
}
} ;
let tunnelAgent ;
const overHttps = proxyUrl . protocol === 'https:' ;
if ( usingSsl ) {
tunnelAgent = overHttps ? tunnel . httpsOverHttps : tunnel . httpsOverHttp ;
}
else {
tunnelAgent = overHttps ? tunnel . httpOverHttps : tunnel . httpOverHttp ;
}
agent = tunnelAgent ( agentOptions ) ;
this . _proxyAgent = agent ;
}
// if reusing agent across request and tunneling agent isn't assigned create a new agent
if ( this . _keepAlive && ! agent ) {
const options = { keepAlive : this . _keepAlive , maxSockets : maxSockets } ;
agent = usingSsl ? new https . Agent ( options ) : new http . Agent ( options ) ;
this . _agent = agent ;
}
// if not using private agent and tunnel agent isn't setup then use global agent
if ( ! agent ) {
agent = usingSsl ? https . globalAgent : http . globalAgent ;
}
if ( usingSsl && this . _ignoreSslError ) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
// we have to cast it to any and change it directly
agent . options = Object . assign ( agent . options || { } , {
rejectUnauthorized : false
} ) ;
}
return agent ;
}
_performExponentialBackoff ( retryNumber ) {
retryNumber = Math . min ( ExponentialBackoffCeiling , retryNumber ) ;
const ms = ExponentialBackoffTimeSlice * Math . pow ( 2 , retryNumber ) ;
return new Promise ( resolve => setTimeout ( ( ) => resolve ( ) , ms ) ) ;
}
static dateTimeDeserializer ( key , value ) {
if ( typeof value === 'string' ) {
let a = new Date ( value ) ;
if ( ! isNaN ( a . valueOf ( ) ) ) {
return a ;
}
}
return value ;
}
async _processResponse ( res , options ) {
return new Promise ( async ( resolve , reject ) => {
const statusCode = res . message . statusCode ;
const response = {
statusCode : statusCode ,
result : null ,
headers : { }
} ;
// not found leads to null obj returned
if ( statusCode == HttpCodes . NotFound ) {
resolve ( response ) ;
}
let obj ;
let contents ;
// get the result from the body
try {
contents = await res . readBody ( ) ;
if ( contents && contents . length > 0 ) {
if ( options && options . deserializeDates ) {
obj = JSON . parse ( contents , HttpClient . dateTimeDeserializer ) ;
}
else {
obj = JSON . parse ( contents ) ;
}
response . result = obj ;
}
response . headers = res . message . headers ;
}
catch ( err ) {
// Invalid resource (contents not json); leaving result obj null
}
// note that 3xx redirects are handled by the http layer.
if ( statusCode > 299 ) {
let msg ;
// if exception/error in body, attempt to get better error
if ( obj && obj . message ) {
msg = obj . message ;
}
else if ( contents && contents . length > 0 ) {
// it may be the case that the exception is in the body message as string
msg = contents ;
}
else {
msg = 'Failed request: (' + statusCode + ')' ;
}
let err = new HttpClientError ( msg , statusCode ) ;
err . result = response . result ;
reject ( err ) ;
}
else {
resolve ( response ) ;
}
} ) ;
}
}
exports . HttpClient = HttpClient ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6443 :
2021-10-04 13:14:44 +02:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
function getProxyUrl ( reqUrl ) {
let usingSsl = reqUrl . protocol === 'https:' ;
let proxyUrl ;
if ( checkBypass ( reqUrl ) ) {
return proxyUrl ;
}
let proxyVar ;
if ( usingSsl ) {
proxyVar = process . env [ 'https_proxy' ] || process . env [ 'HTTPS_PROXY' ] ;
}
else {
proxyVar = process . env [ 'http_proxy' ] || process . env [ 'HTTP_PROXY' ] ;
}
if ( proxyVar ) {
proxyUrl = new URL ( proxyVar ) ;
}
return proxyUrl ;
}
exports . getProxyUrl = getProxyUrl ;
function checkBypass ( reqUrl ) {
if ( ! reqUrl . hostname ) {
return false ;
}
let noProxy = process . env [ 'no_proxy' ] || process . env [ 'NO_PROXY' ] || '' ;
if ( ! noProxy ) {
return false ;
}
// Determine the request port
let reqPort ;
if ( reqUrl . port ) {
reqPort = Number ( reqUrl . port ) ;
}
else if ( reqUrl . protocol === 'http:' ) {
reqPort = 80 ;
}
else if ( reqUrl . protocol === 'https:' ) {
reqPort = 443 ;
}
// Format the request hostname and hostname with port
let upperReqHosts = [ reqUrl . hostname . toUpperCase ( ) ] ;
if ( typeof reqPort === 'number' ) {
upperReqHosts . push ( ` ${ upperReqHosts [ 0 ] } : ${ reqPort } ` ) ;
}
// Compare request host against noproxy
for ( let upperNoProxyItem of noProxy
. split ( ',' )
. map ( x => x . trim ( ) . toUpperCase ( ) )
. filter ( x => x ) ) {
if ( upperReqHosts . some ( x => x === upperNoProxyItem ) ) {
return true ;
}
}
return false ;
}
exports . checkBypass = checkBypass ;
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1962 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
var _a ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getCmdPath = exports . tryGetExecutablePath = exports . isRooted = exports . isDirectory = exports . exists = exports . IS _WINDOWS = exports . unlink = exports . symlink = exports . stat = exports . rmdir = exports . rename = exports . readlink = exports . readdir = exports . mkdir = exports . lstat = exports . copyFile = exports . chmod = void 0 ;
2021-12-20 10:00:03 +01:00
const fs = _ _importStar ( _ _nccwpck _require _ _ ( 5747 ) ) ;
const path = _ _importStar ( _ _nccwpck _require _ _ ( 5622 ) ) ;
2021-07-06 20:24:08 +02:00
_a = fs . promises , exports . chmod = _a . chmod , exports . copyFile = _a . copyFile , exports . lstat = _a . lstat , exports . mkdir = _a . mkdir , exports . readdir = _a . readdir , exports . readlink = _a . readlink , exports . rename = _a . rename , exports . rmdir = _a . rmdir , exports . stat = _a . stat , exports . symlink = _a . symlink , exports . unlink = _a . unlink ;
exports . IS _WINDOWS = process . platform === 'win32' ;
function exists ( fsPath ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
try {
yield exports . stat ( fsPath ) ;
}
catch ( err ) {
if ( err . code === 'ENOENT' ) {
return false ;
}
throw err ;
}
2021-05-25 01:08:08 +02:00
return true ;
2021-07-06 20:24:08 +02:00
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . exists = exists ;
function isDirectory ( fsPath , useStat = false ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const stats = useStat ? yield exports . stat ( fsPath ) : yield exports . lstat ( fsPath ) ;
return stats . isDirectory ( ) ;
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . isDirectory = isDirectory ;
2020-08-21 13:33:37 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* On OSX / Linux , true if path starts with '/' . On Windows , true for paths like :
* \ , \ hello , \ \ hello \ share , C : , and C : \ hello ( and corresponding alternate separator cases ) .
2020-08-21 13:33:37 +02:00
* /
2021-07-06 20:24:08 +02:00
function isRooted ( p ) {
p = normalizeSeparators ( p ) ;
if ( ! p ) {
throw new Error ( 'isRooted() parameter "p" cannot be empty' ) ;
}
if ( exports . IS _WINDOWS ) {
return ( p . startsWith ( '\\' ) || /^[A-Z]:/i . test ( p ) // e.g. \ or \hello or \\hello
) ; // e.g. C: or C:\hello
}
return p . startsWith ( '/' ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . isRooted = isRooted ;
2020-08-21 13:33:37 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* Best effort attempt to determine whether a file exists and is executable .
* @ param filePath file path to check
* @ param extensions additional file extensions to try
* @ return if file exists and is executable , returns the file path . otherwise empty string .
2020-08-21 13:33:37 +02:00
* /
2021-07-06 20:24:08 +02:00
function tryGetExecutablePath ( filePath , extensions ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
let stats = undefined ;
try {
// test file exists
stats = yield exports . stat ( filePath ) ;
}
catch ( err ) {
if ( err . code !== 'ENOENT' ) {
// eslint-disable-next-line no-console
console . log ( ` Unexpected error attempting to determine if executable file exists ' ${ filePath } ': ${ err } ` ) ;
}
}
if ( stats && stats . isFile ( ) ) {
if ( exports . IS _WINDOWS ) {
// on Windows, test for valid extension
const upperExt = path . extname ( filePath ) . toUpperCase ( ) ;
if ( extensions . some ( validExt => validExt . toUpperCase ( ) === upperExt ) ) {
return filePath ;
}
}
else {
if ( isUnixExecutable ( stats ) ) {
return filePath ;
}
}
}
// try each extension
const originalFilePath = filePath ;
for ( const extension of extensions ) {
filePath = originalFilePath + extension ;
stats = undefined ;
try {
stats = yield exports . stat ( filePath ) ;
}
catch ( err ) {
if ( err . code !== 'ENOENT' ) {
// eslint-disable-next-line no-console
console . log ( ` Unexpected error attempting to determine if executable file exists ' ${ filePath } ': ${ err } ` ) ;
}
}
if ( stats && stats . isFile ( ) ) {
if ( exports . IS _WINDOWS ) {
// preserve the case of the actual file (since an extension was appended)
try {
const directory = path . dirname ( filePath ) ;
const upperName = path . basename ( filePath ) . toUpperCase ( ) ;
for ( const actualName of yield exports . readdir ( directory ) ) {
if ( upperName === actualName . toUpperCase ( ) ) {
filePath = path . join ( directory , actualName ) ;
break ;
}
}
}
catch ( err ) {
// eslint-disable-next-line no-console
console . log ( ` Unexpected error attempting to determine the actual case of the file ' ${ filePath } ': ${ err } ` ) ;
}
return filePath ;
}
else {
if ( isUnixExecutable ( stats ) ) {
return filePath ;
}
}
}
}
return '' ;
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . tryGetExecutablePath = tryGetExecutablePath ;
function normalizeSeparators ( p ) {
p = p || '' ;
if ( exports . IS _WINDOWS ) {
// convert slashes on Windows
p = p . replace ( /\//g , '\\' ) ;
// remove redundant slashes
return p . replace ( /\\\\+/g , '\\' ) ;
}
// remove redundant slashes
return p . replace ( /\/\/+/g , '/' ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
// on Mac/Linux, test the execute bit
// R W X R W X R W X
// 256 128 64 32 16 8 4 2 1
function isUnixExecutable ( stats ) {
return ( ( stats . mode & 1 ) > 0 ||
( ( stats . mode & 8 ) > 0 && stats . gid === process . getgid ( ) ) ||
( ( stats . mode & 64 ) > 0 && stats . uid === process . getuid ( ) ) ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
// Get the path of cmd.exe in windows
function getCmdPath ( ) {
var _a ;
return ( _a = process . env [ 'COMSPEC' ] ) !== null && _a !== void 0 ? _a : ` cmd.exe ` ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . getCmdPath = getCmdPath ;
//# sourceMappingURL=io-util.js.map
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7436 :
2021-07-06 20:24:08 +02:00
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
"use strict" ;
var _ _createBinding = ( this && this . _ _createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ) ;
var _ _setModuleDefault = ( this && this . _ _setModuleDefault ) || ( Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ) ;
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
var _ _awaiter = ( this && this . _ _awaiter ) || function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . findInPath = exports . which = exports . mkdirP = exports . rmRF = exports . mv = exports . cp = void 0 ;
2021-12-20 10:00:03 +01:00
const assert _1 = _ _nccwpck _require _ _ ( 2357 ) ;
const childProcess = _ _importStar ( _ _nccwpck _require _ _ ( 3129 ) ) ;
const path = _ _importStar ( _ _nccwpck _require _ _ ( 5622 ) ) ;
const util _1 = _ _nccwpck _require _ _ ( 1669 ) ;
const ioUtil = _ _importStar ( _ _nccwpck _require _ _ ( 1962 ) ) ;
2021-07-06 20:24:08 +02:00
const exec = util _1 . promisify ( childProcess . exec ) ;
const execFile = util _1 . promisify ( childProcess . execFile ) ;
2020-08-21 13:33:37 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* Copies a file or folder .
* Based off of shelljs - https : //github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js
2020-08-21 13:33:37 +02:00
*
2021-07-06 20:24:08 +02:00
* @ param source source path
* @ param dest destination path
* @ param options optional . See CopyOptions .
2020-08-21 13:33:37 +02:00
* /
2021-07-06 20:24:08 +02:00
function cp ( source , dest , options = { } ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
const { force , recursive , copySourceDirectory } = readCopyOptions ( options ) ;
const destStat = ( yield ioUtil . exists ( dest ) ) ? yield ioUtil . stat ( dest ) : null ;
// Dest is an existing file, but not forcing
if ( destStat && destStat . isFile ( ) && ! force ) {
return ;
}
// If dest is an existing directory, should copy inside.
const newDest = destStat && destStat . isDirectory ( ) && copySourceDirectory
? path . join ( dest , path . basename ( source ) )
: dest ;
if ( ! ( yield ioUtil . exists ( source ) ) ) {
throw new Error ( ` no such file or directory: ${ source } ` ) ;
}
const sourceStat = yield ioUtil . stat ( source ) ;
if ( sourceStat . isDirectory ( ) ) {
if ( ! recursive ) {
throw new Error ( ` Failed to copy. ${ source } is a directory, but tried to copy without recursive flag. ` ) ;
}
else {
yield cpDirRecursive ( source , newDest , 0 , force ) ;
}
}
else {
if ( path . relative ( source , newDest ) === '' ) {
// a file cannot be copied to itself
throw new Error ( ` ' ${ newDest } ' and ' ${ source } ' are the same file ` ) ;
}
yield copyFile ( source , newDest , force ) ;
}
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . cp = cp ;
2020-08-21 13:33:37 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* Moves a path .
2020-08-21 13:33:37 +02:00
*
2021-07-06 20:24:08 +02:00
* @ param source source path
* @ param dest destination path
* @ param options optional . See MoveOptions .
2020-08-21 13:33:37 +02:00
* /
2021-07-06 20:24:08 +02:00
function mv ( source , dest , options = { } ) {
2020-08-21 13:33:37 +02:00
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
2021-07-06 20:24:08 +02:00
if ( yield ioUtil . exists ( dest ) ) {
let destExists = true ;
if ( yield ioUtil . isDirectory ( dest ) ) {
// If dest is directory copy src into dest
dest = path . join ( dest , path . basename ( source ) ) ;
destExists = yield ioUtil . exists ( dest ) ;
}
if ( destExists ) {
if ( options . force == null || options . force ) {
yield rmRF ( dest ) ;
}
else {
throw new Error ( 'Destination already exists' ) ;
}
}
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
yield mkdirP ( path . dirname ( dest ) ) ;
yield ioUtil . rename ( source , dest ) ;
2020-08-21 13:33:37 +02:00
} ) ;
}
2021-07-06 20:24:08 +02:00
exports . mv = mv ;
2020-08-21 13:33:37 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* Remove a path recursively with force
2020-08-21 13:33:37 +02:00
*
2021-07-06 20:24:08 +02:00
* @ param inputPath path to remove
2020-08-21 13:33:37 +02:00
* /
2021-07-06 20:24:08 +02:00
function rmRF ( inputPath ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
if ( ioUtil . IS _WINDOWS ) {
// Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another
// program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del.
// Check for invalid characters
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
if ( /[*"<>|]/ . test ( inputPath ) ) {
throw new Error ( 'File path must not contain `*`, `"`, `<`, `>` or `|` on Windows' ) ;
}
try {
const cmdPath = ioUtil . getCmdPath ( ) ;
if ( yield ioUtil . isDirectory ( inputPath , true ) ) {
yield exec ( ` ${ cmdPath } /s /c "rd /s /q "%inputPath%"" ` , {
env : { inputPath }
} ) ;
}
else {
yield exec ( ` ${ cmdPath } /s /c "del /f /a "%inputPath%"" ` , {
env : { inputPath }
} ) ;
}
}
catch ( err ) {
// if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid
if ( err . code !== 'ENOENT' )
throw err ;
}
// Shelling out fails to remove a symlink folder with missing source, this unlink catches that
try {
yield ioUtil . unlink ( inputPath ) ;
}
catch ( err ) {
// if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid
if ( err . code !== 'ENOENT' )
throw err ;
}
}
else {
let isDir = false ;
try {
isDir = yield ioUtil . isDirectory ( inputPath ) ;
}
catch ( err ) {
// if you try to delete a file that doesn't exist, desired result is achieved
// other errors are valid
if ( err . code !== 'ENOENT' )
throw err ;
return ;
}
if ( isDir ) {
yield execFile ( ` rm ` , [ ` -rf ` , ` ${ inputPath } ` ] ) ;
}
else {
yield ioUtil . unlink ( inputPath ) ;
}
}
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . rmRF = rmRF ;
2020-08-21 13:33:37 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* Make a directory . Creates the full path with folders in between
* Will throw if it fails
2020-08-21 13:33:37 +02:00
*
2021-07-06 20:24:08 +02:00
* @ param fsPath path to create
* @ returns Promise < void >
2020-08-21 13:33:37 +02:00
* /
2021-07-06 20:24:08 +02:00
function mkdirP ( fsPath ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
assert _1 . ok ( fsPath , 'a path argument must be provided' ) ;
yield ioUtil . mkdir ( fsPath , { recursive : true } ) ;
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . mkdirP = mkdirP ;
2020-10-01 19:31:10 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* Returns path of a tool had the tool actually been invoked . Resolves via paths .
* If you check and the tool does not exist , it will throw .
*
* @ param tool name of the tool
* @ param check whether to check if tool exists
* @ returns Promise < string > path to tool
2020-10-01 19:31:10 +02:00
* /
2021-07-06 20:24:08 +02:00
function which ( tool , check ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
if ( ! tool ) {
throw new Error ( "parameter 'tool' is required" ) ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
// recursive when check=true
if ( check ) {
const result = yield which ( tool , false ) ;
if ( ! result ) {
if ( ioUtil . IS _WINDOWS ) {
throw new Error ( ` Unable to locate executable file: ${ tool } . Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file. ` ) ;
}
else {
throw new Error ( ` Unable to locate executable file: ${ tool } . Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable. ` ) ;
}
}
return result ;
}
const matches = yield findInPath ( tool ) ;
if ( matches && matches . length > 0 ) {
return matches [ 0 ] ;
}
return '' ;
} ) ;
2020-08-21 14:45:16 +02:00
}
2021-07-06 20:24:08 +02:00
exports . which = which ;
2020-08-21 13:33:37 +02:00
/ * *
2021-07-06 20:24:08 +02:00
* Returns a list of all occurrences of the given tool on the system path .
2020-08-21 13:33:37 +02:00
*
2021-07-06 20:24:08 +02:00
* @ returns Promise < string [ ] > the paths of the tool
2020-08-21 13:33:37 +02:00
* /
2021-07-06 20:24:08 +02:00
function findInPath ( tool ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
if ( ! tool ) {
throw new Error ( "parameter 'tool' is required" ) ;
}
// build the list of extensions to try
const extensions = [ ] ;
if ( ioUtil . IS _WINDOWS && process . env [ 'PATHEXT' ] ) {
for ( const extension of process . env [ 'PATHEXT' ] . split ( path . delimiter ) ) {
if ( extension ) {
extensions . push ( extension ) ;
}
}
}
// if it's rooted, return it if exists. otherwise return empty.
if ( ioUtil . isRooted ( tool ) ) {
const filePath = yield ioUtil . tryGetExecutablePath ( tool , extensions ) ;
if ( filePath ) {
return [ filePath ] ;
}
return [ ] ;
}
// if any path separators, return empty
if ( tool . includes ( path . sep ) ) {
return [ ] ;
}
// build the list of directories
//
// Note, technically "where" checks the current directory on Windows. From a toolkit perspective,
// it feels like we should not do this. Checking the current directory seems like more of a use
// case of a shell, and the which() function exposed by the toolkit should strive for consistency
// across platforms.
const directories = [ ] ;
if ( process . env . PATH ) {
for ( const p of process . env . PATH . split ( path . delimiter ) ) {
if ( p ) {
directories . push ( p ) ;
}
}
}
// find all matches
const matches = [ ] ;
for ( const directory of directories ) {
const filePath = yield ioUtil . tryGetExecutablePath ( path . join ( directory , tool ) , extensions ) ;
if ( filePath ) {
matches . push ( filePath ) ;
}
}
return matches ;
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
exports . findInPath = findInPath ;
function readCopyOptions ( options ) {
const force = options . force == null ? true : options . force ;
const recursive = Boolean ( options . recursive ) ;
const copySourceDirectory = options . copySourceDirectory == null
? true
: Boolean ( options . copySourceDirectory ) ;
return { force , recursive , copySourceDirectory } ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
function cpDirRecursive ( sourceDir , destDir , currentDepth , force ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
// Ensure there is not a run away recursive copy
if ( currentDepth >= 255 )
return ;
currentDepth ++ ;
yield mkdirP ( destDir ) ;
const files = yield ioUtil . readdir ( sourceDir ) ;
for ( const fileName of files ) {
const srcFile = ` ${ sourceDir } / ${ fileName } ` ;
const destFile = ` ${ destDir } / ${ fileName } ` ;
const srcFileStat = yield ioUtil . lstat ( srcFile ) ;
if ( srcFileStat . isDirectory ( ) ) {
// Recurse
yield cpDirRecursive ( srcFile , destFile , currentDepth , force ) ;
}
else {
yield copyFile ( srcFile , destFile , force ) ;
}
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
// Change the mode for the newly created directory
yield ioUtil . chmod ( destDir , ( yield ioUtil . stat ( sourceDir ) ) . mode ) ;
} ) ;
}
// Buffered file copy
function copyFile ( srcFile , destFile , force ) {
return _ _awaiter ( this , void 0 , void 0 , function * ( ) {
if ( ( yield ioUtil . lstat ( srcFile ) ) . isSymbolicLink ( ) ) {
// unlink/re-link it
try {
yield ioUtil . lstat ( destFile ) ;
yield ioUtil . unlink ( destFile ) ;
}
catch ( e ) {
// Try to override file permission
if ( e . code === 'EPERM' ) {
yield ioUtil . chmod ( destFile , '0666' ) ;
yield ioUtil . unlink ( destFile ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
// other errors = it doesn't exist, no work to do
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
// Copy over symlink
const symlinkFull = yield ioUtil . readlink ( srcFile ) ;
yield ioUtil . symlink ( symlinkFull , destFile , ioUtil . IS _WINDOWS ? 'junction' : null ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
else if ( ! ( yield ioUtil . exists ( destFile ) ) || force ) {
yield ioUtil . copyFile ( srcFile , destFile ) ;
}
} ) ;
2020-08-21 13:33:37 +02:00
}
2021-07-06 20:24:08 +02:00
//# sourceMappingURL=io.js.map
2020-08-21 13:33:37 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6087 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 13:33:37 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 13:33:37 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ECRPUBLIC = void 0 ;
const BatchCheckLayerAvailabilityCommand _1 = _ _nccwpck _require _ _ ( 9464 ) ;
const BatchDeleteImageCommand _1 = _ _nccwpck _require _ _ ( 6517 ) ;
const CompleteLayerUploadCommand _1 = _ _nccwpck _require _ _ ( 5490 ) ;
const CreateRepositoryCommand _1 = _ _nccwpck _require _ _ ( 9633 ) ;
const DeleteRepositoryCommand _1 = _ _nccwpck _require _ _ ( 467 ) ;
const DeleteRepositoryPolicyCommand _1 = _ _nccwpck _require _ _ ( 2528 ) ;
const DescribeImagesCommand _1 = _ _nccwpck _require _ _ ( 2776 ) ;
const DescribeImageTagsCommand _1 = _ _nccwpck _require _ _ ( 7670 ) ;
const DescribeRegistriesCommand _1 = _ _nccwpck _require _ _ ( 8696 ) ;
const DescribeRepositoriesCommand _1 = _ _nccwpck _require _ _ ( 2218 ) ;
const GetAuthorizationTokenCommand _1 = _ _nccwpck _require _ _ ( 2674 ) ;
const GetRegistryCatalogDataCommand _1 = _ _nccwpck _require _ _ ( 6518 ) ;
const GetRepositoryCatalogDataCommand _1 = _ _nccwpck _require _ _ ( 3189 ) ;
const GetRepositoryPolicyCommand _1 = _ _nccwpck _require _ _ ( 8562 ) ;
const InitiateLayerUploadCommand _1 = _ _nccwpck _require _ _ ( 3675 ) ;
const ListTagsForResourceCommand _1 = _ _nccwpck _require _ _ ( 575 ) ;
const PutImageCommand _1 = _ _nccwpck _require _ _ ( 6486 ) ;
const PutRegistryCatalogDataCommand _1 = _ _nccwpck _require _ _ ( 6805 ) ;
const PutRepositoryCatalogDataCommand _1 = _ _nccwpck _require _ _ ( 3753 ) ;
2021-12-30 20:43:44 +01:00
const SetRepositoryPolicyCommand _1 = _ _nccwpck _require _ _ ( 1796 ) ;
2021-12-20 10:00:03 +01:00
const TagResourceCommand _1 = _ _nccwpck _require _ _ ( 9869 ) ;
const UntagResourceCommand _1 = _ _nccwpck _require _ _ ( 6689 ) ;
const UploadLayerPartCommand _1 = _ _nccwpck _require _ _ ( 7429 ) ;
const ECRPUBLICClient _1 = _ _nccwpck _require _ _ ( 608 ) ;
class ECRPUBLIC extends ECRPUBLICClient _1 . ECRPUBLICClient {
batchCheckLayerAvailability ( args , optionsOrCb , cb ) {
const command = new BatchCheckLayerAvailabilityCommand _1 . BatchCheckLayerAvailabilityCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
batchDeleteImage ( args , optionsOrCb , cb ) {
const command = new BatchDeleteImageCommand _1 . BatchDeleteImageCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
completeLayerUpload ( args , optionsOrCb , cb ) {
const command = new CompleteLayerUploadCommand _1 . CompleteLayerUploadCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
createRepository ( args , optionsOrCb , cb ) {
const command = new CreateRepositoryCommand _1 . CreateRepositoryCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
deleteRepository ( args , optionsOrCb , cb ) {
const command = new DeleteRepositoryCommand _1 . DeleteRepositoryCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
deleteRepositoryPolicy ( args , optionsOrCb , cb ) {
const command = new DeleteRepositoryPolicyCommand _1 . DeleteRepositoryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeImages ( args , optionsOrCb , cb ) {
const command = new DescribeImagesCommand _1 . DescribeImagesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeImageTags ( args , optionsOrCb , cb ) {
const command = new DescribeImageTagsCommand _1 . DescribeImageTagsCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeRegistries ( args , optionsOrCb , cb ) {
const command = new DescribeRegistriesCommand _1 . DescribeRegistriesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeRepositories ( args , optionsOrCb , cb ) {
const command = new DescribeRepositoriesCommand _1 . DescribeRepositoriesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getAuthorizationToken ( args , optionsOrCb , cb ) {
const command = new GetAuthorizationTokenCommand _1 . GetAuthorizationTokenCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getRegistryCatalogData ( args , optionsOrCb , cb ) {
const command = new GetRegistryCatalogDataCommand _1 . GetRegistryCatalogDataCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getRepositoryCatalogData ( args , optionsOrCb , cb ) {
const command = new GetRepositoryCatalogDataCommand _1 . GetRepositoryCatalogDataCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getRepositoryPolicy ( args , optionsOrCb , cb ) {
const command = new GetRepositoryPolicyCommand _1 . GetRepositoryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
initiateLayerUpload ( args , optionsOrCb , cb ) {
const command = new InitiateLayerUploadCommand _1 . InitiateLayerUploadCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
listTagsForResource ( args , optionsOrCb , cb ) {
const command = new ListTagsForResourceCommand _1 . ListTagsForResourceCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putImage ( args , optionsOrCb , cb ) {
const command = new PutImageCommand _1 . PutImageCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putRegistryCatalogData ( args , optionsOrCb , cb ) {
const command = new PutRegistryCatalogDataCommand _1 . PutRegistryCatalogDataCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putRepositoryCatalogData ( args , optionsOrCb , cb ) {
const command = new PutRepositoryCatalogDataCommand _1 . PutRepositoryCatalogDataCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
setRepositoryPolicy ( args , optionsOrCb , cb ) {
const command = new SetRepositoryPolicyCommand _1 . SetRepositoryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
tagResource ( args , optionsOrCb , cb ) {
const command = new TagResourceCommand _1 . TagResourceCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
untagResource ( args , optionsOrCb , cb ) {
const command = new UntagResourceCommand _1 . UntagResourceCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
uploadLayerPart ( args , optionsOrCb , cb ) {
const command = new UploadLayerPartCommand _1 . UploadLayerPartCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
}
exports . ECRPUBLIC = ECRPUBLIC ;
2020-08-21 13:33:37 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 608 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ECRPUBLICClient = void 0 ;
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
const middleware _content _length _1 = _ _nccwpck _require _ _ ( 2245 ) ;
const middleware _host _header _1 = _ _nccwpck _require _ _ ( 2545 ) ;
const middleware _logger _1 = _ _nccwpck _require _ _ ( 14 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
const middleware _user _agent _1 = _ _nccwpck _require _ _ ( 4688 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const runtimeConfig _1 = _ _nccwpck _require _ _ ( 9324 ) ;
class ECRPUBLICClient extends smithy _client _1 . Client {
constructor ( configuration ) {
const _config _0 = runtimeConfig _1 . getRuntimeConfig ( configuration ) ;
const _config _1 = config _resolver _1 . resolveRegionConfig ( _config _0 ) ;
const _config _2 = config _resolver _1 . resolveEndpointsConfig ( _config _1 ) ;
const _config _3 = middleware _retry _1 . resolveRetryConfig ( _config _2 ) ;
const _config _4 = middleware _host _header _1 . resolveHostHeaderConfig ( _config _3 ) ;
const _config _5 = middleware _signing _1 . resolveAwsAuthConfig ( _config _4 ) ;
const _config _6 = middleware _user _agent _1 . resolveUserAgentConfig ( _config _5 ) ;
super ( _config _6 ) ;
this . config = _config _6 ;
this . middlewareStack . use ( middleware _retry _1 . getRetryPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _content _length _1 . getContentLengthPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _host _header _1 . getHostHeaderPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _logger _1 . getLoggerPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _user _agent _1 . getUserAgentPlugin ( this . config ) ) ;
}
destroy ( ) {
super . destroy ( ) ;
}
}
exports . ECRPUBLICClient = ECRPUBLICClient ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 9464 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . BatchCheckLayerAvailabilityCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class BatchCheckLayerAvailabilityCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "BatchCheckLayerAvailabilityCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . BatchCheckLayerAvailabilityRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . BatchCheckLayerAvailabilityResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1BatchCheckLayerAvailabilityCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand ( output , context ) ;
}
}
exports . BatchCheckLayerAvailabilityCommand = BatchCheckLayerAvailabilityCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 6517 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . BatchDeleteImageCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class BatchDeleteImageCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "BatchDeleteImageCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . BatchDeleteImageRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . BatchDeleteImageResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1BatchDeleteImageCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1BatchDeleteImageCommand ( output , context ) ;
}
}
exports . BatchDeleteImageCommand = BatchDeleteImageCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 5490 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . CompleteLayerUploadCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class CompleteLayerUploadCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "CompleteLayerUploadCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . CompleteLayerUploadRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . CompleteLayerUploadResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1CompleteLayerUploadCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1CompleteLayerUploadCommand ( output , context ) ;
}
}
exports . CompleteLayerUploadCommand = CompleteLayerUploadCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 9633 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . CreateRepositoryCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class CreateRepositoryCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "CreateRepositoryCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . CreateRepositoryRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . CreateRepositoryResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1CreateRepositoryCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1CreateRepositoryCommand ( output , context ) ;
}
}
exports . CreateRepositoryCommand = CreateRepositoryCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 467 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DeleteRepositoryCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class DeleteRepositoryCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "DeleteRepositoryCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DeleteRepositoryRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DeleteRepositoryResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DeleteRepositoryCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DeleteRepositoryCommand ( output , context ) ;
}
}
exports . DeleteRepositoryCommand = DeleteRepositoryCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 2528 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 13:33:37 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DeleteRepositoryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class DeleteRepositoryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "DeleteRepositoryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DeleteRepositoryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DeleteRepositoryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DeleteRepositoryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DeleteRepositoryPolicyCommand ( output , context ) ;
}
}
exports . DeleteRepositoryPolicyCommand = DeleteRepositoryPolicyCommand ;
2020-08-21 13:33:37 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 13:33:37 +02:00
2021-12-20 10:00:03 +01:00
/***/ 7670 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 13:33:37 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeImageTagsCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class DescribeImageTagsCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "DescribeImageTagsCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeImageTagsRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeImageTagsResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeImageTagsCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeImageTagsCommand ( output , context ) ;
}
}
exports . DescribeImageTagsCommand = DescribeImageTagsCommand ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
/***/ 2776 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeImagesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class DescribeImagesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "DescribeImagesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeImagesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeImagesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeImagesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeImagesCommand ( output , context ) ;
}
}
exports . DescribeImagesCommand = DescribeImagesCommand ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
/***/ 8696 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-15 14:45:36 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeRegistriesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class DescribeRegistriesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "DescribeRegistriesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeRegistriesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeRegistriesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeRegistriesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeRegistriesCommand ( output , context ) ;
}
}
exports . DescribeRegistriesCommand = DescribeRegistriesCommand ;
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2218 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeRepositoriesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class DescribeRepositoriesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "DescribeRepositoriesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeRepositoriesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeRepositoriesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeRepositoriesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeRepositoriesCommand ( output , context ) ;
}
}
exports . DescribeRepositoriesCommand = DescribeRepositoriesCommand ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 2674 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetAuthorizationTokenCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class GetAuthorizationTokenCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "GetAuthorizationTokenCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetAuthorizationTokenRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetAuthorizationTokenResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetAuthorizationTokenCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetAuthorizationTokenCommand ( output , context ) ;
}
}
exports . GetAuthorizationTokenCommand = GetAuthorizationTokenCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 6518 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetRegistryCatalogDataCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class GetRegistryCatalogDataCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "GetRegistryCatalogDataCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetRegistryCatalogDataRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetRegistryCatalogDataResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetRegistryCatalogDataCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetRegistryCatalogDataCommand ( output , context ) ;
}
}
exports . GetRegistryCatalogDataCommand = GetRegistryCatalogDataCommand ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 3189 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetRepositoryCatalogDataCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class GetRepositoryCatalogDataCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "GetRepositoryCatalogDataCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetRepositoryCatalogDataRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetRepositoryCatalogDataResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetRepositoryCatalogDataCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetRepositoryCatalogDataCommand ( output , context ) ;
}
}
exports . GetRepositoryCatalogDataCommand = GetRepositoryCatalogDataCommand ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8562 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetRepositoryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class GetRepositoryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "GetRepositoryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetRepositoryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetRepositoryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetRepositoryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetRepositoryPolicyCommand ( output , context ) ;
}
}
exports . GetRepositoryPolicyCommand = GetRepositoryPolicyCommand ;
2021-07-06 20:24:08 +02:00
2020-08-21 14:45:16 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3675 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . InitiateLayerUploadCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class InitiateLayerUploadCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "InitiateLayerUploadCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . InitiateLayerUploadRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . InitiateLayerUploadResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1InitiateLayerUploadCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1InitiateLayerUploadCommand ( output , context ) ;
}
}
exports . InitiateLayerUploadCommand = InitiateLayerUploadCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 575 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ListTagsForResourceCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class ListTagsForResourceCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "ListTagsForResourceCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . ListTagsForResourceRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . ListTagsForResourceResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1ListTagsForResourceCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1ListTagsForResourceCommand ( output , context ) ;
}
}
exports . ListTagsForResourceCommand = ListTagsForResourceCommand ;
2020-08-21 14:45:16 +02:00
2020-08-15 14:45:36 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-15 14:45:36 +02:00
2021-12-20 10:00:03 +01:00
/***/ 6486 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-15 14:45:36 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 13:33:37 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutImageCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class PutImageCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "PutImageCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutImageRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutImageResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutImageCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutImageCommand ( output , context ) ;
}
}
exports . PutImageCommand = PutImageCommand ;
2020-08-21 13:33:37 +02:00
2020-08-15 14:45:36 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-15 14:45:36 +02:00
2021-12-20 10:00:03 +01:00
/***/ 6805 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutRegistryCatalogDataCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class PutRegistryCatalogDataCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "PutRegistryCatalogDataCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutRegistryCatalogDataRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutRegistryCatalogDataResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutRegistryCatalogDataCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutRegistryCatalogDataCommand ( output , context ) ;
}
}
exports . PutRegistryCatalogDataCommand = PutRegistryCatalogDataCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 3753 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutRepositoryCatalogDataCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class PutRepositoryCatalogDataCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "PutRepositoryCatalogDataCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutRepositoryCatalogDataRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutRepositoryCatalogDataResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutRepositoryCatalogDataCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutRepositoryCatalogDataCommand ( output , context ) ;
}
}
exports . PutRepositoryCatalogDataCommand = PutRepositoryCatalogDataCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-30 20:43:44 +01:00
/***/ 1796 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . SetRepositoryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class SetRepositoryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "SetRepositoryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . SetRepositoryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . SetRepositoryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1SetRepositoryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1SetRepositoryPolicyCommand ( output , context ) ;
}
}
exports . SetRepositoryPolicyCommand = SetRepositoryPolicyCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 9869 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . TagResourceCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class TagResourceCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "TagResourceCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . TagResourceRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . TagResourceResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1TagResourceCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1TagResourceCommand ( output , context ) ;
}
}
exports . TagResourceCommand = TagResourceCommand ;
2020-08-21 14:45:16 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 6689 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . UntagResourceCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class UntagResourceCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "UntagResourceCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . UntagResourceRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . UntagResourceResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1UntagResourceCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1UntagResourceCommand ( output , context ) ;
}
}
exports . UntagResourceCommand = UntagResourceCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 7429 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . UploadLayerPartCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 8818 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 4170 ) ;
class UploadLayerPartCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRPUBLICClient" ;
const commandName = "UploadLayerPartCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . UploadLayerPartRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . UploadLayerPartResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1UploadLayerPartCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1UploadLayerPartCommand ( output , context ) ;
}
}
exports . UploadLayerPartCommand = UploadLayerPartCommand ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 5442 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9464 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6517 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5490 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9633 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 467 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2528 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7670 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2776 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8696 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2218 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2674 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6518 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3189 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8562 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3675 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 575 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6486 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6805 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3753 ) , exports ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1796 ) , exports ) ;
2021-12-20 10:00:03 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9869 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6689 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7429 ) , exports ) ;
/***/ } ) ,
/***/ 8593 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultRegionInfoProvider = void 0 ;
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
const regionHash = { } ;
const partitionHash = {
aws : {
regions : [
"af-south-1" ,
"ap-east-1" ,
"ap-northeast-1" ,
"ap-northeast-2" ,
"ap-northeast-3" ,
"ap-south-1" ,
"ap-southeast-1" ,
"ap-southeast-2" ,
2021-12-30 20:43:44 +01:00
"ap-southeast-3" ,
2021-12-20 10:00:03 +01:00
"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" ,
] ,
regionRegex : "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr-public.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "api.ecr-public.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-cn" : {
regions : [ "cn-north-1" , "cn-northwest-1" ] ,
regionRegex : "^cn\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr-public.{region}.amazonaws.com.cn" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.amazonaws.com.cn" ,
tags : [ "fips" ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "api.ecr-public.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-iso" : {
regions : [ "us-iso-east-1" , "us-iso-west-1" ] ,
regionRegex : "^us\\-iso\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr-public.{region}.c2s.ic.gov" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.c2s.ic.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-iso-b" : {
regions : [ "us-isob-east-1" ] ,
regionRegex : "^us\\-isob\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr-public.{region}.sc2s.sgov.gov" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.sc2s.sgov.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-us-gov" : {
regions : [ "us-gov-east-1" , "us-gov-west-1" ] ,
regionRegex : "^us\\-gov\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr-public.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "api.ecr-public-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "api.ecr-public.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
} ;
const defaultRegionInfoProvider = async ( region , options ) => config _resolver _1 . getRegionInfo ( region , {
... options ,
signingService : "ecr-public" ,
regionHash ,
partitionHash ,
} ) ;
exports . defaultRegionInfoProvider = defaultRegionInfoProvider ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 2308 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6087 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 608 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5442 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 183 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5945 ) , exports ) ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 183 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8818 ) , exports ) ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 8818 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . RegistryAliasStatus = exports . DescribeRegistriesRequest = exports . DescribeImageTagsResponse = exports . ImageTagDetail = exports . ReferencedImageDetail = exports . DescribeImageTagsRequest = exports . ImageNotFoundException = exports . DescribeImagesResponse = exports . ImageDetail = exports . DescribeImagesRequest = exports . RepositoryPolicyNotFoundException = exports . DeleteRepositoryPolicyResponse = exports . DeleteRepositoryPolicyRequest = exports . RepositoryNotEmptyException = exports . DeleteRepositoryResponse = exports . DeleteRepositoryRequest = exports . TooManyTagsException = exports . RepositoryAlreadyExistsException = exports . LimitExceededException = exports . InvalidTagParameterException = exports . CreateRepositoryResponse = exports . Repository = exports . RepositoryCatalogData = exports . CreateRepositoryRequest = exports . Tag = exports . RepositoryCatalogDataInput = exports . UploadNotFoundException = exports . UnsupportedCommandException = exports . LayerPartTooSmallException = exports . LayerAlreadyExistsException = exports . InvalidLayerException = exports . EmptyUploadException = exports . CompleteLayerUploadResponse = exports . CompleteLayerUploadRequest = exports . BatchDeleteImageResponse = exports . ImageFailure = exports . ImageFailureCode = exports . BatchDeleteImageRequest = exports . ImageIdentifier = exports . ServerException = exports . RepositoryNotFoundException = exports . RegistryNotFoundException = exports . InvalidParameterException = exports . BatchCheckLayerAvailabilityResponse = exports . Layer = exports . LayerAvailability = exports . LayerFailure = exports . LayerFailureCode = exports . BatchCheckLayerAvailabilityRequest = exports . AuthorizationData = void 0 ;
exports . UploadLayerPartResponse = exports . UploadLayerPartRequest = exports . UntagResourceResponse = exports . UntagResourceRequest = exports . TagResourceResponse = exports . TagResourceRequest = exports . SetRepositoryPolicyResponse = exports . SetRepositoryPolicyRequest = exports . PutRepositoryCatalogDataResponse = exports . PutRepositoryCatalogDataRequest = exports . PutRegistryCatalogDataResponse = exports . PutRegistryCatalogDataRequest = exports . ReferencedImagesNotFoundException = exports . PutImageResponse = exports . PutImageRequest = exports . ListTagsForResourceResponse = exports . ListTagsForResourceRequest = exports . LayersNotFoundException = exports . InvalidLayerPartException = exports . InitiateLayerUploadResponse = exports . InitiateLayerUploadRequest = exports . ImageTagAlreadyExistsException = exports . ImageDigestDoesNotMatchException = exports . ImageAlreadyExistsException = exports . Image = exports . GetRepositoryPolicyResponse = exports . GetRepositoryPolicyRequest = exports . GetRepositoryCatalogDataResponse = exports . GetRepositoryCatalogDataRequest = exports . GetRegistryCatalogDataResponse = exports . RegistryCatalogData = exports . GetRegistryCatalogDataRequest = exports . GetAuthorizationTokenResponse = exports . GetAuthorizationTokenRequest = exports . DescribeRepositoriesResponse = exports . DescribeRepositoriesRequest = exports . DescribeRegistriesResponse = exports . Registry = exports . RegistryAlias = void 0 ;
var AuthorizationData ;
( function ( AuthorizationData ) {
AuthorizationData . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AuthorizationData = exports . AuthorizationData || ( exports . AuthorizationData = { } ) ) ;
var BatchCheckLayerAvailabilityRequest ;
( function ( BatchCheckLayerAvailabilityRequest ) {
BatchCheckLayerAvailabilityRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchCheckLayerAvailabilityRequest = exports . BatchCheckLayerAvailabilityRequest || ( exports . BatchCheckLayerAvailabilityRequest = { } ) ) ;
var LayerFailureCode ;
( function ( LayerFailureCode ) {
LayerFailureCode [ "InvalidLayerDigest" ] = "InvalidLayerDigest" ;
LayerFailureCode [ "MissingLayerDigest" ] = "MissingLayerDigest" ;
} ) ( LayerFailureCode = exports . LayerFailureCode || ( exports . LayerFailureCode = { } ) ) ;
var LayerFailure ;
( function ( LayerFailure ) {
LayerFailure . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayerFailure = exports . LayerFailure || ( exports . LayerFailure = { } ) ) ;
var LayerAvailability ;
( function ( LayerAvailability ) {
LayerAvailability [ "AVAILABLE" ] = "AVAILABLE" ;
LayerAvailability [ "UNAVAILABLE" ] = "UNAVAILABLE" ;
} ) ( LayerAvailability = exports . LayerAvailability || ( exports . LayerAvailability = { } ) ) ;
var Layer ;
( function ( Layer ) {
Layer . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Layer = exports . Layer || ( exports . Layer = { } ) ) ;
var BatchCheckLayerAvailabilityResponse ;
( function ( BatchCheckLayerAvailabilityResponse ) {
BatchCheckLayerAvailabilityResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchCheckLayerAvailabilityResponse = exports . BatchCheckLayerAvailabilityResponse || ( exports . BatchCheckLayerAvailabilityResponse = { } ) ) ;
var InvalidParameterException ;
( function ( InvalidParameterException ) {
InvalidParameterException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidParameterException = exports . InvalidParameterException || ( exports . InvalidParameterException = { } ) ) ;
var RegistryNotFoundException ;
( function ( RegistryNotFoundException ) {
RegistryNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RegistryNotFoundException = exports . RegistryNotFoundException || ( exports . RegistryNotFoundException = { } ) ) ;
var RepositoryNotFoundException ;
( function ( RepositoryNotFoundException ) {
RepositoryNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryNotFoundException = exports . RepositoryNotFoundException || ( exports . RepositoryNotFoundException = { } ) ) ;
var ServerException ;
( function ( ServerException ) {
ServerException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ServerException = exports . ServerException || ( exports . ServerException = { } ) ) ;
var ImageIdentifier ;
( function ( ImageIdentifier ) {
ImageIdentifier . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageIdentifier = exports . ImageIdentifier || ( exports . ImageIdentifier = { } ) ) ;
var BatchDeleteImageRequest ;
( function ( BatchDeleteImageRequest ) {
BatchDeleteImageRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchDeleteImageRequest = exports . BatchDeleteImageRequest || ( exports . BatchDeleteImageRequest = { } ) ) ;
var ImageFailureCode ;
( function ( ImageFailureCode ) {
ImageFailureCode [ "ImageNotFound" ] = "ImageNotFound" ;
ImageFailureCode [ "ImageReferencedByManifestList" ] = "ImageReferencedByManifestList" ;
ImageFailureCode [ "ImageTagDoesNotMatchDigest" ] = "ImageTagDoesNotMatchDigest" ;
ImageFailureCode [ "InvalidImageDigest" ] = "InvalidImageDigest" ;
ImageFailureCode [ "InvalidImageTag" ] = "InvalidImageTag" ;
ImageFailureCode [ "KmsError" ] = "KmsError" ;
ImageFailureCode [ "MissingDigestAndTag" ] = "MissingDigestAndTag" ;
} ) ( ImageFailureCode = exports . ImageFailureCode || ( exports . ImageFailureCode = { } ) ) ;
var ImageFailure ;
( function ( ImageFailure ) {
ImageFailure . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageFailure = exports . ImageFailure || ( exports . ImageFailure = { } ) ) ;
var BatchDeleteImageResponse ;
( function ( BatchDeleteImageResponse ) {
BatchDeleteImageResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchDeleteImageResponse = exports . BatchDeleteImageResponse || ( exports . BatchDeleteImageResponse = { } ) ) ;
var CompleteLayerUploadRequest ;
( function ( CompleteLayerUploadRequest ) {
CompleteLayerUploadRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CompleteLayerUploadRequest = exports . CompleteLayerUploadRequest || ( exports . CompleteLayerUploadRequest = { } ) ) ;
var CompleteLayerUploadResponse ;
( function ( CompleteLayerUploadResponse ) {
CompleteLayerUploadResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CompleteLayerUploadResponse = exports . CompleteLayerUploadResponse || ( exports . CompleteLayerUploadResponse = { } ) ) ;
var EmptyUploadException ;
( function ( EmptyUploadException ) {
EmptyUploadException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( EmptyUploadException = exports . EmptyUploadException || ( exports . EmptyUploadException = { } ) ) ;
var InvalidLayerException ;
( function ( InvalidLayerException ) {
InvalidLayerException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidLayerException = exports . InvalidLayerException || ( exports . InvalidLayerException = { } ) ) ;
var LayerAlreadyExistsException ;
( function ( LayerAlreadyExistsException ) {
LayerAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayerAlreadyExistsException = exports . LayerAlreadyExistsException || ( exports . LayerAlreadyExistsException = { } ) ) ;
var LayerPartTooSmallException ;
( function ( LayerPartTooSmallException ) {
LayerPartTooSmallException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayerPartTooSmallException = exports . LayerPartTooSmallException || ( exports . LayerPartTooSmallException = { } ) ) ;
var UnsupportedCommandException ;
( function ( UnsupportedCommandException ) {
UnsupportedCommandException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UnsupportedCommandException = exports . UnsupportedCommandException || ( exports . UnsupportedCommandException = { } ) ) ;
var UploadNotFoundException ;
( function ( UploadNotFoundException ) {
UploadNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UploadNotFoundException = exports . UploadNotFoundException || ( exports . UploadNotFoundException = { } ) ) ;
var RepositoryCatalogDataInput ;
( function ( RepositoryCatalogDataInput ) {
RepositoryCatalogDataInput . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryCatalogDataInput = exports . RepositoryCatalogDataInput || ( exports . RepositoryCatalogDataInput = { } ) ) ;
var Tag ;
( function ( Tag ) {
Tag . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Tag = exports . Tag || ( exports . Tag = { } ) ) ;
var CreateRepositoryRequest ;
( function ( CreateRepositoryRequest ) {
CreateRepositoryRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CreateRepositoryRequest = exports . CreateRepositoryRequest || ( exports . CreateRepositoryRequest = { } ) ) ;
var RepositoryCatalogData ;
( function ( RepositoryCatalogData ) {
RepositoryCatalogData . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryCatalogData = exports . RepositoryCatalogData || ( exports . RepositoryCatalogData = { } ) ) ;
var Repository ;
( function ( Repository ) {
Repository . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Repository = exports . Repository || ( exports . Repository = { } ) ) ;
var CreateRepositoryResponse ;
( function ( CreateRepositoryResponse ) {
CreateRepositoryResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CreateRepositoryResponse = exports . CreateRepositoryResponse || ( exports . CreateRepositoryResponse = { } ) ) ;
var InvalidTagParameterException ;
( function ( InvalidTagParameterException ) {
InvalidTagParameterException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidTagParameterException = exports . InvalidTagParameterException || ( exports . InvalidTagParameterException = { } ) ) ;
var LimitExceededException ;
( function ( LimitExceededException ) {
LimitExceededException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LimitExceededException = exports . LimitExceededException || ( exports . LimitExceededException = { } ) ) ;
var RepositoryAlreadyExistsException ;
( function ( RepositoryAlreadyExistsException ) {
RepositoryAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryAlreadyExistsException = exports . RepositoryAlreadyExistsException || ( exports . RepositoryAlreadyExistsException = { } ) ) ;
var TooManyTagsException ;
( function ( TooManyTagsException ) {
TooManyTagsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( TooManyTagsException = exports . TooManyTagsException || ( exports . TooManyTagsException = { } ) ) ;
var DeleteRepositoryRequest ;
( function ( DeleteRepositoryRequest ) {
DeleteRepositoryRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryRequest = exports . DeleteRepositoryRequest || ( exports . DeleteRepositoryRequest = { } ) ) ;
var DeleteRepositoryResponse ;
( function ( DeleteRepositoryResponse ) {
DeleteRepositoryResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryResponse = exports . DeleteRepositoryResponse || ( exports . DeleteRepositoryResponse = { } ) ) ;
var RepositoryNotEmptyException ;
( function ( RepositoryNotEmptyException ) {
RepositoryNotEmptyException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryNotEmptyException = exports . RepositoryNotEmptyException || ( exports . RepositoryNotEmptyException = { } ) ) ;
var DeleteRepositoryPolicyRequest ;
( function ( DeleteRepositoryPolicyRequest ) {
DeleteRepositoryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryPolicyRequest = exports . DeleteRepositoryPolicyRequest || ( exports . DeleteRepositoryPolicyRequest = { } ) ) ;
var DeleteRepositoryPolicyResponse ;
( function ( DeleteRepositoryPolicyResponse ) {
DeleteRepositoryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryPolicyResponse = exports . DeleteRepositoryPolicyResponse || ( exports . DeleteRepositoryPolicyResponse = { } ) ) ;
var RepositoryPolicyNotFoundException ;
( function ( RepositoryPolicyNotFoundException ) {
RepositoryPolicyNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryPolicyNotFoundException = exports . RepositoryPolicyNotFoundException || ( exports . RepositoryPolicyNotFoundException = { } ) ) ;
var DescribeImagesRequest ;
( function ( DescribeImagesRequest ) {
DescribeImagesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImagesRequest = exports . DescribeImagesRequest || ( exports . DescribeImagesRequest = { } ) ) ;
var ImageDetail ;
( function ( ImageDetail ) {
ImageDetail . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageDetail = exports . ImageDetail || ( exports . ImageDetail = { } ) ) ;
var DescribeImagesResponse ;
( function ( DescribeImagesResponse ) {
DescribeImagesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImagesResponse = exports . DescribeImagesResponse || ( exports . DescribeImagesResponse = { } ) ) ;
var ImageNotFoundException ;
( function ( ImageNotFoundException ) {
ImageNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageNotFoundException = exports . ImageNotFoundException || ( exports . ImageNotFoundException = { } ) ) ;
var DescribeImageTagsRequest ;
( function ( DescribeImageTagsRequest ) {
DescribeImageTagsRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImageTagsRequest = exports . DescribeImageTagsRequest || ( exports . DescribeImageTagsRequest = { } ) ) ;
var ReferencedImageDetail ;
( function ( ReferencedImageDetail ) {
ReferencedImageDetail . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ReferencedImageDetail = exports . ReferencedImageDetail || ( exports . ReferencedImageDetail = { } ) ) ;
var ImageTagDetail ;
( function ( ImageTagDetail ) {
ImageTagDetail . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageTagDetail = exports . ImageTagDetail || ( exports . ImageTagDetail = { } ) ) ;
var DescribeImageTagsResponse ;
( function ( DescribeImageTagsResponse ) {
DescribeImageTagsResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImageTagsResponse = exports . DescribeImageTagsResponse || ( exports . DescribeImageTagsResponse = { } ) ) ;
var DescribeRegistriesRequest ;
( function ( DescribeRegistriesRequest ) {
DescribeRegistriesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRegistriesRequest = exports . DescribeRegistriesRequest || ( exports . DescribeRegistriesRequest = { } ) ) ;
var RegistryAliasStatus ;
( function ( RegistryAliasStatus ) {
RegistryAliasStatus [ "ACTIVE" ] = "ACTIVE" ;
RegistryAliasStatus [ "PENDING" ] = "PENDING" ;
RegistryAliasStatus [ "REJECTED" ] = "REJECTED" ;
} ) ( RegistryAliasStatus = exports . RegistryAliasStatus || ( exports . RegistryAliasStatus = { } ) ) ;
var RegistryAlias ;
( function ( RegistryAlias ) {
RegistryAlias . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RegistryAlias = exports . RegistryAlias || ( exports . RegistryAlias = { } ) ) ;
var Registry ;
( function ( Registry ) {
Registry . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Registry = exports . Registry || ( exports . Registry = { } ) ) ;
var DescribeRegistriesResponse ;
( function ( DescribeRegistriesResponse ) {
DescribeRegistriesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRegistriesResponse = exports . DescribeRegistriesResponse || ( exports . DescribeRegistriesResponse = { } ) ) ;
var DescribeRepositoriesRequest ;
( function ( DescribeRepositoriesRequest ) {
DescribeRepositoriesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRepositoriesRequest = exports . DescribeRepositoriesRequest || ( exports . DescribeRepositoriesRequest = { } ) ) ;
var DescribeRepositoriesResponse ;
( function ( DescribeRepositoriesResponse ) {
DescribeRepositoriesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRepositoriesResponse = exports . DescribeRepositoriesResponse || ( exports . DescribeRepositoriesResponse = { } ) ) ;
var GetAuthorizationTokenRequest ;
( function ( GetAuthorizationTokenRequest ) {
GetAuthorizationTokenRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetAuthorizationTokenRequest = exports . GetAuthorizationTokenRequest || ( exports . GetAuthorizationTokenRequest = { } ) ) ;
var GetAuthorizationTokenResponse ;
( function ( GetAuthorizationTokenResponse ) {
GetAuthorizationTokenResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetAuthorizationTokenResponse = exports . GetAuthorizationTokenResponse || ( exports . GetAuthorizationTokenResponse = { } ) ) ;
var GetRegistryCatalogDataRequest ;
( function ( GetRegistryCatalogDataRequest ) {
GetRegistryCatalogDataRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRegistryCatalogDataRequest = exports . GetRegistryCatalogDataRequest || ( exports . GetRegistryCatalogDataRequest = { } ) ) ;
var RegistryCatalogData ;
( function ( RegistryCatalogData ) {
RegistryCatalogData . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RegistryCatalogData = exports . RegistryCatalogData || ( exports . RegistryCatalogData = { } ) ) ;
var GetRegistryCatalogDataResponse ;
( function ( GetRegistryCatalogDataResponse ) {
GetRegistryCatalogDataResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRegistryCatalogDataResponse = exports . GetRegistryCatalogDataResponse || ( exports . GetRegistryCatalogDataResponse = { } ) ) ;
var GetRepositoryCatalogDataRequest ;
( function ( GetRepositoryCatalogDataRequest ) {
GetRepositoryCatalogDataRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRepositoryCatalogDataRequest = exports . GetRepositoryCatalogDataRequest || ( exports . GetRepositoryCatalogDataRequest = { } ) ) ;
var GetRepositoryCatalogDataResponse ;
( function ( GetRepositoryCatalogDataResponse ) {
GetRepositoryCatalogDataResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRepositoryCatalogDataResponse = exports . GetRepositoryCatalogDataResponse || ( exports . GetRepositoryCatalogDataResponse = { } ) ) ;
var GetRepositoryPolicyRequest ;
( function ( GetRepositoryPolicyRequest ) {
GetRepositoryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRepositoryPolicyRequest = exports . GetRepositoryPolicyRequest || ( exports . GetRepositoryPolicyRequest = { } ) ) ;
var GetRepositoryPolicyResponse ;
( function ( GetRepositoryPolicyResponse ) {
GetRepositoryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRepositoryPolicyResponse = exports . GetRepositoryPolicyResponse || ( exports . GetRepositoryPolicyResponse = { } ) ) ;
var Image ;
( function ( Image ) {
Image . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Image = exports . Image || ( exports . Image = { } ) ) ;
var ImageAlreadyExistsException ;
( function ( ImageAlreadyExistsException ) {
ImageAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageAlreadyExistsException = exports . ImageAlreadyExistsException || ( exports . ImageAlreadyExistsException = { } ) ) ;
var ImageDigestDoesNotMatchException ;
( function ( ImageDigestDoesNotMatchException ) {
ImageDigestDoesNotMatchException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageDigestDoesNotMatchException = exports . ImageDigestDoesNotMatchException || ( exports . ImageDigestDoesNotMatchException = { } ) ) ;
var ImageTagAlreadyExistsException ;
( function ( ImageTagAlreadyExistsException ) {
ImageTagAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageTagAlreadyExistsException = exports . ImageTagAlreadyExistsException || ( exports . ImageTagAlreadyExistsException = { } ) ) ;
var InitiateLayerUploadRequest ;
( function ( InitiateLayerUploadRequest ) {
InitiateLayerUploadRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InitiateLayerUploadRequest = exports . InitiateLayerUploadRequest || ( exports . InitiateLayerUploadRequest = { } ) ) ;
var InitiateLayerUploadResponse ;
( function ( InitiateLayerUploadResponse ) {
InitiateLayerUploadResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InitiateLayerUploadResponse = exports . InitiateLayerUploadResponse || ( exports . InitiateLayerUploadResponse = { } ) ) ;
var InvalidLayerPartException ;
( function ( InvalidLayerPartException ) {
InvalidLayerPartException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidLayerPartException = exports . InvalidLayerPartException || ( exports . InvalidLayerPartException = { } ) ) ;
var LayersNotFoundException ;
( function ( LayersNotFoundException ) {
LayersNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayersNotFoundException = exports . LayersNotFoundException || ( exports . LayersNotFoundException = { } ) ) ;
var ListTagsForResourceRequest ;
( function ( ListTagsForResourceRequest ) {
ListTagsForResourceRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListTagsForResourceRequest = exports . ListTagsForResourceRequest || ( exports . ListTagsForResourceRequest = { } ) ) ;
var ListTagsForResourceResponse ;
( function ( ListTagsForResourceResponse ) {
ListTagsForResourceResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListTagsForResourceResponse = exports . ListTagsForResourceResponse || ( exports . ListTagsForResourceResponse = { } ) ) ;
var PutImageRequest ;
( function ( PutImageRequest ) {
PutImageRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageRequest = exports . PutImageRequest || ( exports . PutImageRequest = { } ) ) ;
var PutImageResponse ;
( function ( PutImageResponse ) {
PutImageResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageResponse = exports . PutImageResponse || ( exports . PutImageResponse = { } ) ) ;
var ReferencedImagesNotFoundException ;
( function ( ReferencedImagesNotFoundException ) {
ReferencedImagesNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ReferencedImagesNotFoundException = exports . ReferencedImagesNotFoundException || ( exports . ReferencedImagesNotFoundException = { } ) ) ;
var PutRegistryCatalogDataRequest ;
( function ( PutRegistryCatalogDataRequest ) {
PutRegistryCatalogDataRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRegistryCatalogDataRequest = exports . PutRegistryCatalogDataRequest || ( exports . PutRegistryCatalogDataRequest = { } ) ) ;
var PutRegistryCatalogDataResponse ;
( function ( PutRegistryCatalogDataResponse ) {
PutRegistryCatalogDataResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRegistryCatalogDataResponse = exports . PutRegistryCatalogDataResponse || ( exports . PutRegistryCatalogDataResponse = { } ) ) ;
var PutRepositoryCatalogDataRequest ;
( function ( PutRepositoryCatalogDataRequest ) {
PutRepositoryCatalogDataRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRepositoryCatalogDataRequest = exports . PutRepositoryCatalogDataRequest || ( exports . PutRepositoryCatalogDataRequest = { } ) ) ;
var PutRepositoryCatalogDataResponse ;
( function ( PutRepositoryCatalogDataResponse ) {
PutRepositoryCatalogDataResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRepositoryCatalogDataResponse = exports . PutRepositoryCatalogDataResponse || ( exports . PutRepositoryCatalogDataResponse = { } ) ) ;
var SetRepositoryPolicyRequest ;
( function ( SetRepositoryPolicyRequest ) {
SetRepositoryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( SetRepositoryPolicyRequest = exports . SetRepositoryPolicyRequest || ( exports . SetRepositoryPolicyRequest = { } ) ) ;
var SetRepositoryPolicyResponse ;
( function ( SetRepositoryPolicyResponse ) {
SetRepositoryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( SetRepositoryPolicyResponse = exports . SetRepositoryPolicyResponse || ( exports . SetRepositoryPolicyResponse = { } ) ) ;
var TagResourceRequest ;
( function ( TagResourceRequest ) {
TagResourceRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( TagResourceRequest = exports . TagResourceRequest || ( exports . TagResourceRequest = { } ) ) ;
var TagResourceResponse ;
( function ( TagResourceResponse ) {
TagResourceResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( TagResourceResponse = exports . TagResourceResponse || ( exports . TagResourceResponse = { } ) ) ;
var UntagResourceRequest ;
( function ( UntagResourceRequest ) {
UntagResourceRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UntagResourceRequest = exports . UntagResourceRequest || ( exports . UntagResourceRequest = { } ) ) ;
var UntagResourceResponse ;
( function ( UntagResourceResponse ) {
UntagResourceResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UntagResourceResponse = exports . UntagResourceResponse || ( exports . UntagResourceResponse = { } ) ) ;
var UploadLayerPartRequest ;
( function ( UploadLayerPartRequest ) {
UploadLayerPartRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UploadLayerPartRequest = exports . UploadLayerPartRequest || ( exports . UploadLayerPartRequest = { } ) ) ;
var UploadLayerPartResponse ;
( function ( UploadLayerPartResponse ) {
UploadLayerPartResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UploadLayerPartResponse = exports . UploadLayerPartResponse || ( exports . UploadLayerPartResponse = { } ) ) ;
2021-07-06 20:24:08 +02:00
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 9634 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribeImageTags = void 0 ;
const DescribeImageTagsCommand _1 = _ _nccwpck _require _ _ ( 7670 ) ;
const ECRPUBLIC _1 = _ _nccwpck _require _ _ ( 6087 ) ;
const ECRPUBLICClient _1 = _ _nccwpck _require _ _ ( 608 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribeImageTagsCommand _1 . DescribeImageTagsCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describeImageTags ( input , ... args ) ;
} ;
async function * paginateDescribeImageTags ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECRPUBLIC _1 . ECRPUBLIC ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRPUBLICClient _1 . ECRPUBLICClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECRPUBLIC | ECRPUBLICClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribeImageTags = paginateDescribeImageTags ;
2020-08-21 14:45:16 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4128 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribeImages = void 0 ;
const DescribeImagesCommand _1 = _ _nccwpck _require _ _ ( 2776 ) ;
const ECRPUBLIC _1 = _ _nccwpck _require _ _ ( 6087 ) ;
const ECRPUBLICClient _1 = _ _nccwpck _require _ _ ( 608 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribeImagesCommand _1 . DescribeImagesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describeImages ( input , ... args ) ;
} ;
async function * paginateDescribeImages ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECRPUBLIC _1 . ECRPUBLIC ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRPUBLICClient _1 . ECRPUBLICClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECRPUBLIC | ECRPUBLICClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribeImages = paginateDescribeImages ;
2020-08-21 14:45:16 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1720 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribeRegistries = void 0 ;
const DescribeRegistriesCommand _1 = _ _nccwpck _require _ _ ( 8696 ) ;
const ECRPUBLIC _1 = _ _nccwpck _require _ _ ( 6087 ) ;
const ECRPUBLICClient _1 = _ _nccwpck _require _ _ ( 608 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribeRegistriesCommand _1 . DescribeRegistriesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describeRegistries ( input , ... args ) ;
} ;
async function * paginateDescribeRegistries ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECRPUBLIC _1 . ECRPUBLIC ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRPUBLICClient _1 . ECRPUBLICClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECRPUBLIC | ECRPUBLICClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribeRegistries = paginateDescribeRegistries ;
2020-08-20 16:40:33 +02:00
2020-08-21 13:33:37 +02:00
2021-05-25 00:44:03 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5474 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribeRepositories = void 0 ;
const DescribeRepositoriesCommand _1 = _ _nccwpck _require _ _ ( 2218 ) ;
const ECRPUBLIC _1 = _ _nccwpck _require _ _ ( 6087 ) ;
const ECRPUBLICClient _1 = _ _nccwpck _require _ _ ( 608 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribeRepositoriesCommand _1 . DescribeRepositoriesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describeRepositories ( input , ... args ) ;
} ;
async function * paginateDescribeRepositories ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECRPUBLIC _1 . ECRPUBLIC ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRPUBLICClient _1 . ECRPUBLICClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECRPUBLIC | ECRPUBLICClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribeRepositories = paginateDescribeRepositories ;
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
/***/ 3463 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
/***/ 5945 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9634 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4128 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1720 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5474 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3463 ) , exports ) ;
2021-05-25 00:44:03 +02:00
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
/***/ 4170 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
"use strict" ;
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . deserializeAws _json1 _1UploadLayerPartCommand = exports . deserializeAws _json1 _1UntagResourceCommand = exports . deserializeAws _json1 _1TagResourceCommand = exports . deserializeAws _json1 _1SetRepositoryPolicyCommand = exports . deserializeAws _json1 _1PutRepositoryCatalogDataCommand = exports . deserializeAws _json1 _1PutRegistryCatalogDataCommand = exports . deserializeAws _json1 _1PutImageCommand = exports . deserializeAws _json1 _1ListTagsForResourceCommand = exports . deserializeAws _json1 _1InitiateLayerUploadCommand = exports . deserializeAws _json1 _1GetRepositoryPolicyCommand = exports . deserializeAws _json1 _1GetRepositoryCatalogDataCommand = exports . deserializeAws _json1 _1GetRegistryCatalogDataCommand = exports . deserializeAws _json1 _1GetAuthorizationTokenCommand = exports . deserializeAws _json1 _1DescribeRepositoriesCommand = exports . deserializeAws _json1 _1DescribeRegistriesCommand = exports . deserializeAws _json1 _1DescribeImageTagsCommand = exports . deserializeAws _json1 _1DescribeImagesCommand = exports . deserializeAws _json1 _1DeleteRepositoryPolicyCommand = exports . deserializeAws _json1 _1DeleteRepositoryCommand = exports . deserializeAws _json1 _1CreateRepositoryCommand = exports . deserializeAws _json1 _1CompleteLayerUploadCommand = exports . deserializeAws _json1 _1BatchDeleteImageCommand = exports . deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand = exports . serializeAws _json1 _1UploadLayerPartCommand = exports . serializeAws _json1 _1UntagResourceCommand = exports . serializeAws _json1 _1TagResourceCommand = exports . serializeAws _json1 _1SetRepositoryPolicyCommand = exports . serializeAws _json1 _1PutRepositoryCatalogDataCommand = exports . serializeAws _json1 _1PutRegistryCatalogDataCommand = exports . serializeAws _json1 _1PutImageCommand = exports . serializeAws _json1 _1ListTagsForResourceCommand = exports . serializeAws _json1 _1InitiateLayerUploadCommand = exports . serializeAws _json1 _1GetRepositoryPolicyCommand = exports . serializeAws _json1 _1GetRepositoryCatalogDataCommand = exports . serializeAws _json1 _1GetRegistryCatalogDataCommand = exports . serializeAws _json1 _1GetAuthorizationTokenCommand = exports . serializeAws _json1 _1DescribeRepositoriesCommand = exports . serializeAws _json1 _1DescribeRegistriesCommand = exports . serializeAws _json1 _1DescribeImageTagsCommand = exports . serializeAws _json1 _1DescribeImagesCommand = exports . serializeAws _json1 _1DeleteRepositoryPolicyCommand = exports . serializeAws _json1 _1DeleteRepositoryCommand = exports . serializeAws _json1 _1CreateRepositoryCommand = exports . serializeAws _json1 _1CompleteLayerUploadCommand = exports . serializeAws _json1 _1BatchDeleteImageCommand = exports . serializeAws _json1 _1BatchCheckLayerAvailabilityCommand = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const serializeAws _json1 _1BatchCheckLayerAvailabilityCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.BatchCheckLayerAvailability" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1BatchCheckLayerAvailabilityRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1BatchCheckLayerAvailabilityCommand = serializeAws _json1 _1BatchCheckLayerAvailabilityCommand ;
const serializeAws _json1 _1BatchDeleteImageCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.BatchDeleteImage" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1BatchDeleteImageRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1BatchDeleteImageCommand = serializeAws _json1 _1BatchDeleteImageCommand ;
const serializeAws _json1 _1CompleteLayerUploadCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.CompleteLayerUpload" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1CompleteLayerUploadRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1CompleteLayerUploadCommand = serializeAws _json1 _1CompleteLayerUploadCommand ;
const serializeAws _json1 _1CreateRepositoryCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.CreateRepository" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1CreateRepositoryRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1CreateRepositoryCommand = serializeAws _json1 _1CreateRepositoryCommand ;
const serializeAws _json1 _1DeleteRepositoryCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.DeleteRepository" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DeleteRepositoryRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DeleteRepositoryCommand = serializeAws _json1 _1DeleteRepositoryCommand ;
const serializeAws _json1 _1DeleteRepositoryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.DeleteRepositoryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DeleteRepositoryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DeleteRepositoryPolicyCommand = serializeAws _json1 _1DeleteRepositoryPolicyCommand ;
const serializeAws _json1 _1DescribeImagesCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.DescribeImages" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeImagesRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeImagesCommand = serializeAws _json1 _1DescribeImagesCommand ;
const serializeAws _json1 _1DescribeImageTagsCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.DescribeImageTags" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeImageTagsRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeImageTagsCommand = serializeAws _json1 _1DescribeImageTagsCommand ;
const serializeAws _json1 _1DescribeRegistriesCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.DescribeRegistries" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeRegistriesRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeRegistriesCommand = serializeAws _json1 _1DescribeRegistriesCommand ;
const serializeAws _json1 _1DescribeRepositoriesCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.DescribeRepositories" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeRepositoriesRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeRepositoriesCommand = serializeAws _json1 _1DescribeRepositoriesCommand ;
const serializeAws _json1 _1GetAuthorizationTokenCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.GetAuthorizationToken" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetAuthorizationTokenRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetAuthorizationTokenCommand = serializeAws _json1 _1GetAuthorizationTokenCommand ;
const serializeAws _json1 _1GetRegistryCatalogDataCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.GetRegistryCatalogData" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetRegistryCatalogDataRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetRegistryCatalogDataCommand = serializeAws _json1 _1GetRegistryCatalogDataCommand ;
const serializeAws _json1 _1GetRepositoryCatalogDataCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.GetRepositoryCatalogData" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetRepositoryCatalogDataRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetRepositoryCatalogDataCommand = serializeAws _json1 _1GetRepositoryCatalogDataCommand ;
const serializeAws _json1 _1GetRepositoryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.GetRepositoryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetRepositoryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetRepositoryPolicyCommand = serializeAws _json1 _1GetRepositoryPolicyCommand ;
const serializeAws _json1 _1InitiateLayerUploadCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.InitiateLayerUpload" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1InitiateLayerUploadRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1InitiateLayerUploadCommand = serializeAws _json1 _1InitiateLayerUploadCommand ;
const serializeAws _json1 _1ListTagsForResourceCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.ListTagsForResource" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1ListTagsForResourceRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1ListTagsForResourceCommand = serializeAws _json1 _1ListTagsForResourceCommand ;
const serializeAws _json1 _1PutImageCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.PutImage" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutImageRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutImageCommand = serializeAws _json1 _1PutImageCommand ;
const serializeAws _json1 _1PutRegistryCatalogDataCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.PutRegistryCatalogData" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutRegistryCatalogDataRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutRegistryCatalogDataCommand = serializeAws _json1 _1PutRegistryCatalogDataCommand ;
const serializeAws _json1 _1PutRepositoryCatalogDataCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.PutRepositoryCatalogData" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutRepositoryCatalogDataRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutRepositoryCatalogDataCommand = serializeAws _json1 _1PutRepositoryCatalogDataCommand ;
const serializeAws _json1 _1SetRepositoryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.SetRepositoryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1SetRepositoryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1SetRepositoryPolicyCommand = serializeAws _json1 _1SetRepositoryPolicyCommand ;
const serializeAws _json1 _1TagResourceCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.TagResource" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1TagResourceRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1TagResourceCommand = serializeAws _json1 _1TagResourceCommand ;
const serializeAws _json1 _1UntagResourceCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.UntagResource" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1UntagResourceRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1UntagResourceCommand = serializeAws _json1 _1UntagResourceCommand ;
const serializeAws _json1 _1UploadLayerPartCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "SpencerFrontendService.UploadLayerPart" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1UploadLayerPartRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1UploadLayerPartCommand = serializeAws _json1 _1UploadLayerPartCommand ;
const deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1BatchCheckLayerAvailabilityCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1BatchCheckLayerAvailabilityResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand = deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand ;
const deserializeAws _json1 _1BatchCheckLayerAvailabilityCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegistryNotFoundException" :
case "com.amazonaws.ecrpublic#RegistryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RegistryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1BatchDeleteImageCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1BatchDeleteImageCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1BatchDeleteImageResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1BatchDeleteImageCommand = deserializeAws _json1 _1BatchDeleteImageCommand ;
const deserializeAws _json1 _1BatchDeleteImageCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1CompleteLayerUploadCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1CompleteLayerUploadCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1CompleteLayerUploadResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1CompleteLayerUploadCommand = deserializeAws _json1 _1CompleteLayerUploadCommand ;
const deserializeAws _json1 _1CompleteLayerUploadCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "EmptyUploadException" :
case "com.amazonaws.ecrpublic#EmptyUploadException" :
response = {
... ( await deserializeAws _json1 _1EmptyUploadExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidLayerException" :
case "com.amazonaws.ecrpublic#InvalidLayerException" :
response = {
... ( await deserializeAws _json1 _1InvalidLayerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayerAlreadyExistsException" :
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1LayerAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayerPartTooSmallException" :
case "com.amazonaws.ecrpublic#LayerPartTooSmallException" :
response = {
... ( await deserializeAws _json1 _1LayerPartTooSmallExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegistryNotFoundException" :
case "com.amazonaws.ecrpublic#RegistryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RegistryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedCommandException" :
case "com.amazonaws.ecrpublic#UnsupportedCommandException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedCommandExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UploadNotFoundException" :
case "com.amazonaws.ecrpublic#UploadNotFoundException" :
response = {
... ( await deserializeAws _json1 _1UploadNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1CreateRepositoryCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1CreateRepositoryCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1CreateRepositoryResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1CreateRepositoryCommand = deserializeAws _json1 _1CreateRepositoryCommand ;
const deserializeAws _json1 _1CreateRepositoryCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidTagParameterException" :
case "com.amazonaws.ecrpublic#InvalidTagParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidTagParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecrpublic#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryAlreadyExistsException" :
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1RepositoryAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyTagsException" :
case "com.amazonaws.ecrpublic#TooManyTagsException" :
response = {
... ( await deserializeAws _json1 _1TooManyTagsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DeleteRepositoryCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DeleteRepositoryCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DeleteRepositoryResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DeleteRepositoryCommand = deserializeAws _json1 _1DeleteRepositoryCommand ;
const deserializeAws _json1 _1DeleteRepositoryCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotEmptyException" :
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotEmptyExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DeleteRepositoryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DeleteRepositoryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DeleteRepositoryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DeleteRepositoryPolicyCommand = deserializeAws _json1 _1DeleteRepositoryPolicyCommand ;
const deserializeAws _json1 _1DeleteRepositoryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryPolicyNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryPolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeImagesCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeImagesCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeImagesResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeImagesCommand = deserializeAws _json1 _1DescribeImagesCommand ;
const deserializeAws _json1 _1DescribeImagesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ImageNotFoundException" :
case "com.amazonaws.ecrpublic#ImageNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ImageNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeImageTagsCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeImageTagsCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeImageTagsResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeImageTagsCommand = deserializeAws _json1 _1DescribeImageTagsCommand ;
const deserializeAws _json1 _1DescribeImageTagsCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeRegistriesCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeRegistriesCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeRegistriesResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeRegistriesCommand = deserializeAws _json1 _1DescribeRegistriesCommand ;
const deserializeAws _json1 _1DescribeRegistriesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedCommandException" :
case "com.amazonaws.ecrpublic#UnsupportedCommandException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedCommandExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeRepositoriesCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeRepositoriesCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeRepositoriesResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeRepositoriesCommand = deserializeAws _json1 _1DescribeRepositoriesCommand ;
const deserializeAws _json1 _1DescribeRepositoriesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetAuthorizationTokenCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetAuthorizationTokenCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetAuthorizationTokenResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetAuthorizationTokenCommand = deserializeAws _json1 _1GetAuthorizationTokenCommand ;
const deserializeAws _json1 _1GetAuthorizationTokenCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetRegistryCatalogDataCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetRegistryCatalogDataCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetRegistryCatalogDataResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetRegistryCatalogDataCommand = deserializeAws _json1 _1GetRegistryCatalogDataCommand ;
const deserializeAws _json1 _1GetRegistryCatalogDataCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedCommandException" :
case "com.amazonaws.ecrpublic#UnsupportedCommandException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedCommandExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetRepositoryCatalogDataCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetRepositoryCatalogDataCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetRepositoryCatalogDataResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetRepositoryCatalogDataCommand = deserializeAws _json1 _1GetRepositoryCatalogDataCommand ;
const deserializeAws _json1 _1GetRepositoryCatalogDataCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetRepositoryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetRepositoryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetRepositoryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetRepositoryPolicyCommand = deserializeAws _json1 _1GetRepositoryPolicyCommand ;
const deserializeAws _json1 _1GetRepositoryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryPolicyNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryPolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1InitiateLayerUploadCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1InitiateLayerUploadCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1InitiateLayerUploadResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1InitiateLayerUploadCommand = deserializeAws _json1 _1InitiateLayerUploadCommand ;
const deserializeAws _json1 _1InitiateLayerUploadCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegistryNotFoundException" :
case "com.amazonaws.ecrpublic#RegistryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RegistryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedCommandException" :
case "com.amazonaws.ecrpublic#UnsupportedCommandException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedCommandExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1ListTagsForResourceCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1ListTagsForResourceCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1ListTagsForResourceResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1ListTagsForResourceCommand = deserializeAws _json1 _1ListTagsForResourceCommand ;
const deserializeAws _json1 _1ListTagsForResourceCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutImageCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutImageCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutImageResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutImageCommand = deserializeAws _json1 _1PutImageCommand ;
const deserializeAws _json1 _1PutImageCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ImageAlreadyExistsException" :
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1ImageAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ImageDigestDoesNotMatchException" :
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException" :
response = {
... ( await deserializeAws _json1 _1ImageDigestDoesNotMatchExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ImageTagAlreadyExistsException" :
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1ImageTagAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayersNotFoundException" :
case "com.amazonaws.ecrpublic#LayersNotFoundException" :
response = {
... ( await deserializeAws _json1 _1LayersNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecrpublic#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ReferencedImagesNotFoundException" :
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ReferencedImagesNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegistryNotFoundException" :
case "com.amazonaws.ecrpublic#RegistryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RegistryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedCommandException" :
case "com.amazonaws.ecrpublic#UnsupportedCommandException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedCommandExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutRegistryCatalogDataCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutRegistryCatalogDataCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutRegistryCatalogDataResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutRegistryCatalogDataCommand = deserializeAws _json1 _1PutRegistryCatalogDataCommand ;
const deserializeAws _json1 _1PutRegistryCatalogDataCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedCommandException" :
case "com.amazonaws.ecrpublic#UnsupportedCommandException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedCommandExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutRepositoryCatalogDataCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutRepositoryCatalogDataCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutRepositoryCatalogDataResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutRepositoryCatalogDataCommand = deserializeAws _json1 _1PutRepositoryCatalogDataCommand ;
const deserializeAws _json1 _1PutRepositoryCatalogDataCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1SetRepositoryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1SetRepositoryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1SetRepositoryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1SetRepositoryPolicyCommand = deserializeAws _json1 _1SetRepositoryPolicyCommand ;
const deserializeAws _json1 _1SetRepositoryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1TagResourceCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1TagResourceCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1TagResourceResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1TagResourceCommand = deserializeAws _json1 _1TagResourceCommand ;
const deserializeAws _json1 _1TagResourceCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidTagParameterException" :
case "com.amazonaws.ecrpublic#InvalidTagParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidTagParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyTagsException" :
case "com.amazonaws.ecrpublic#TooManyTagsException" :
response = {
... ( await deserializeAws _json1 _1TooManyTagsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1UntagResourceCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1UntagResourceCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1UntagResourceResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1UntagResourceCommand = deserializeAws _json1 _1UntagResourceCommand ;
const deserializeAws _json1 _1UntagResourceCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidTagParameterException" :
case "com.amazonaws.ecrpublic#InvalidTagParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidTagParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyTagsException" :
case "com.amazonaws.ecrpublic#TooManyTagsException" :
response = {
... ( await deserializeAws _json1 _1TooManyTagsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1UploadLayerPartCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1UploadLayerPartCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1UploadLayerPartResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1UploadLayerPartCommand = deserializeAws _json1 _1UploadLayerPartCommand ;
const deserializeAws _json1 _1UploadLayerPartCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidLayerPartException" :
case "com.amazonaws.ecrpublic#InvalidLayerPartException" :
response = {
... ( await deserializeAws _json1 _1InvalidLayerPartExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecrpublic#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecrpublic#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegistryNotFoundException" :
case "com.amazonaws.ecrpublic#RegistryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RegistryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecrpublic#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecrpublic#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedCommandException" :
case "com.amazonaws.ecrpublic#UnsupportedCommandException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedCommandExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UploadNotFoundException" :
case "com.amazonaws.ecrpublic#UploadNotFoundException" :
response = {
... ( await deserializeAws _json1 _1UploadNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1EmptyUploadExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1EmptyUploadException ( body , context ) ;
const contents = {
name : "EmptyUploadException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageAlreadyExistsException ( body , context ) ;
const contents = {
name : "ImageAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageDigestDoesNotMatchExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageDigestDoesNotMatchException ( body , context ) ;
const contents = {
name : "ImageDigestDoesNotMatchException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageNotFoundException ( body , context ) ;
const contents = {
name : "ImageNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageTagAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageTagAlreadyExistsException ( body , context ) ;
const contents = {
name : "ImageTagAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidLayerExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidLayerException ( body , context ) ;
const contents = {
name : "InvalidLayerException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidLayerPartExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidLayerPartException ( body , context ) ;
const contents = {
name : "InvalidLayerPartException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidParameterExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidParameterException ( body , context ) ;
const contents = {
name : "InvalidParameterException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidTagParameterExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidTagParameterException ( body , context ) ;
const contents = {
name : "InvalidTagParameterException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LayerAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LayerAlreadyExistsException ( body , context ) ;
const contents = {
name : "LayerAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LayerPartTooSmallExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LayerPartTooSmallException ( body , context ) ;
const contents = {
name : "LayerPartTooSmallException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LayersNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LayersNotFoundException ( body , context ) ;
const contents = {
name : "LayersNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LimitExceededExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LimitExceededException ( body , context ) ;
const contents = {
name : "LimitExceededException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ReferencedImagesNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ReferencedImagesNotFoundException ( body , context ) ;
const contents = {
name : "ReferencedImagesNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RegistryNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RegistryNotFoundException ( body , context ) ;
const contents = {
name : "RegistryNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryAlreadyExistsException ( body , context ) ;
const contents = {
name : "RepositoryAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryNotEmptyExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryNotEmptyException ( body , context ) ;
const contents = {
name : "RepositoryNotEmptyException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryNotFoundException ( body , context ) ;
const contents = {
name : "RepositoryNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryPolicyNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryPolicyNotFoundException ( body , context ) ;
const contents = {
name : "RepositoryPolicyNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ServerExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ServerException ( body , context ) ;
const contents = {
name : "ServerException" ,
$fault : "server" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1TooManyTagsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1TooManyTagsException ( body , context ) ;
const contents = {
name : "TooManyTagsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1UnsupportedCommandExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1UnsupportedCommandException ( body , context ) ;
const contents = {
name : "UnsupportedCommandException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1UploadNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1UploadNotFoundException ( body , context ) ;
const contents = {
name : "UploadNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const serializeAws _json1 _1ArchitectureList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1BatchCheckLayerAvailabilityRequest = ( input , context ) => {
return {
... ( input . layerDigests !== undefined &&
input . layerDigests !== null && {
layerDigests : serializeAws _json1 _1BatchedOperationLayerDigestList ( input . layerDigests , context ) ,
} ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1BatchDeleteImageRequest = ( input , context ) => {
return {
... ( input . imageIds !== undefined &&
input . imageIds !== null && { imageIds : serializeAws _json1 _1ImageIdentifierList ( input . imageIds , context ) } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1BatchedOperationLayerDigestList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1CompleteLayerUploadRequest = ( input , context ) => {
return {
... ( input . layerDigests !== undefined &&
input . layerDigests !== null && {
layerDigests : serializeAws _json1 _1LayerDigestList ( input . layerDigests , context ) ,
} ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
... ( input . uploadId !== undefined && input . uploadId !== null && { uploadId : input . uploadId } ) ,
} ;
} ;
const serializeAws _json1 _1CreateRepositoryRequest = ( input , context ) => {
return {
... ( input . catalogData !== undefined &&
input . catalogData !== null && {
catalogData : serializeAws _json1 _1RepositoryCatalogDataInput ( input . catalogData , context ) ,
} ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
... ( input . tags !== undefined && input . tags !== null && { tags : serializeAws _json1 _1TagList ( input . tags , context ) } ) ,
} ;
} ;
const serializeAws _json1 _1DeleteRepositoryPolicyRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DeleteRepositoryRequest = ( input , context ) => {
return {
... ( input . force !== undefined && input . force !== null && { force : input . force } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeImagesRequest = ( input , context ) => {
return {
... ( input . imageIds !== undefined &&
input . imageIds !== null && { imageIds : serializeAws _json1 _1ImageIdentifierList ( input . imageIds , context ) } ) ,
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeImageTagsRequest = ( input , context ) => {
return {
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeRegistriesRequest = ( input , context ) => {
return {
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeRepositoriesRequest = ( input , context ) => {
return {
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryNames !== undefined &&
input . repositoryNames !== null && {
repositoryNames : serializeAws _json1 _1RepositoryNameList ( input . repositoryNames , context ) ,
} ) ,
} ;
} ;
const serializeAws _json1 _1GetAuthorizationTokenRequest = ( input , context ) => {
return { } ;
} ;
const serializeAws _json1 _1GetRegistryCatalogDataRequest = ( input , context ) => {
return { } ;
} ;
const serializeAws _json1 _1GetRepositoryCatalogDataRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1GetRepositoryPolicyRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1ImageIdentifier = ( input , context ) => {
return {
... ( input . imageDigest !== undefined && input . imageDigest !== null && { imageDigest : input . imageDigest } ) ,
... ( input . imageTag !== undefined && input . imageTag !== null && { imageTag : input . imageTag } ) ,
} ;
} ;
const serializeAws _json1 _1ImageIdentifierList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1ImageIdentifier ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1InitiateLayerUploadRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1LayerDigestList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1ListTagsForResourceRequest = ( input , context ) => {
return {
... ( input . resourceArn !== undefined && input . resourceArn !== null && { resourceArn : input . resourceArn } ) ,
} ;
} ;
const serializeAws _json1 _1OperatingSystemList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1PutImageRequest = ( input , context ) => {
return {
... ( input . imageDigest !== undefined && input . imageDigest !== null && { imageDigest : input . imageDigest } ) ,
... ( input . imageManifest !== undefined && input . imageManifest !== null && { imageManifest : input . imageManifest } ) ,
... ( input . imageManifestMediaType !== undefined &&
input . imageManifestMediaType !== null && { imageManifestMediaType : input . imageManifestMediaType } ) ,
... ( input . imageTag !== undefined && input . imageTag !== null && { imageTag : input . imageTag } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1PutRegistryCatalogDataRequest = ( input , context ) => {
return {
... ( input . displayName !== undefined && input . displayName !== null && { displayName : input . displayName } ) ,
} ;
} ;
const serializeAws _json1 _1PutRepositoryCatalogDataRequest = ( input , context ) => {
return {
... ( input . catalogData !== undefined &&
input . catalogData !== null && {
catalogData : serializeAws _json1 _1RepositoryCatalogDataInput ( input . catalogData , context ) ,
} ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1RepositoryCatalogDataInput = ( input , context ) => {
return {
... ( input . aboutText !== undefined && input . aboutText !== null && { aboutText : input . aboutText } ) ,
... ( input . architectures !== undefined &&
input . architectures !== null && {
architectures : serializeAws _json1 _1ArchitectureList ( input . architectures , context ) ,
} ) ,
... ( input . description !== undefined && input . description !== null && { description : input . description } ) ,
... ( input . logoImageBlob !== undefined &&
input . logoImageBlob !== null && { logoImageBlob : context . base64Encoder ( input . logoImageBlob ) } ) ,
... ( input . operatingSystems !== undefined &&
input . operatingSystems !== null && {
operatingSystems : serializeAws _json1 _1OperatingSystemList ( input . operatingSystems , context ) ,
} ) ,
... ( input . usageText !== undefined && input . usageText !== null && { usageText : input . usageText } ) ,
} ;
} ;
const serializeAws _json1 _1RepositoryNameList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1SetRepositoryPolicyRequest = ( input , context ) => {
return {
... ( input . force !== undefined && input . force !== null && { force : input . force } ) ,
... ( input . policyText !== undefined && input . policyText !== null && { policyText : input . policyText } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1Tag = ( input , context ) => {
return {
... ( input . Key !== undefined && input . Key !== null && { Key : input . Key } ) ,
... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) ,
} ;
} ;
const serializeAws _json1 _1TagKeyList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1TagList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1Tag ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1TagResourceRequest = ( input , context ) => {
return {
... ( input . resourceArn !== undefined && input . resourceArn !== null && { resourceArn : input . resourceArn } ) ,
... ( input . tags !== undefined && input . tags !== null && { tags : serializeAws _json1 _1TagList ( input . tags , context ) } ) ,
} ;
} ;
const serializeAws _json1 _1UntagResourceRequest = ( input , context ) => {
return {
... ( input . resourceArn !== undefined && input . resourceArn !== null && { resourceArn : input . resourceArn } ) ,
... ( input . tagKeys !== undefined &&
input . tagKeys !== null && { tagKeys : serializeAws _json1 _1TagKeyList ( input . tagKeys , context ) } ) ,
} ;
} ;
const serializeAws _json1 _1UploadLayerPartRequest = ( input , context ) => {
return {
... ( input . layerPartBlob !== undefined &&
input . layerPartBlob !== null && { layerPartBlob : context . base64Encoder ( input . layerPartBlob ) } ) ,
... ( input . partFirstByte !== undefined && input . partFirstByte !== null && { partFirstByte : input . partFirstByte } ) ,
... ( input . partLastByte !== undefined && input . partLastByte !== null && { partLastByte : input . partLastByte } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
... ( input . uploadId !== undefined && input . uploadId !== null && { uploadId : input . uploadId } ) ,
} ;
} ;
const deserializeAws _json1 _1ArchitectureList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return smithy _client _1 . expectString ( entry ) ;
} ) ;
} ;
const deserializeAws _json1 _1AuthorizationData = ( output , context ) => {
return {
authorizationToken : smithy _client _1 . expectString ( output . authorizationToken ) ,
expiresAt : output . expiresAt !== undefined && output . expiresAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . expiresAt ) ) )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1BatchCheckLayerAvailabilityResponse = ( output , context ) => {
return {
failures : output . failures !== undefined && output . failures !== null
? deserializeAws _json1 _1LayerFailureList ( output . failures , context )
: undefined ,
layers : output . layers !== undefined && output . layers !== null
? deserializeAws _json1 _1LayerList ( output . layers , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1BatchDeleteImageResponse = ( output , context ) => {
return {
failures : output . failures !== undefined && output . failures !== null
? deserializeAws _json1 _1ImageFailureList ( output . failures , context )
: undefined ,
imageIds : output . imageIds !== undefined && output . imageIds !== null
? deserializeAws _json1 _1ImageIdentifierList ( output . imageIds , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1CompleteLayerUploadResponse = ( output , context ) => {
return {
layerDigest : smithy _client _1 . expectString ( output . layerDigest ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1CreateRepositoryResponse = ( output , context ) => {
return {
catalogData : output . catalogData !== undefined && output . catalogData !== null
? deserializeAws _json1 _1RepositoryCatalogData ( output . catalogData , context )
: undefined ,
repository : output . repository !== undefined && output . repository !== null
? deserializeAws _json1 _1Repository ( output . repository , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1DeleteRepositoryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1DeleteRepositoryResponse = ( output , context ) => {
return {
repository : output . repository !== undefined && output . repository !== null
? deserializeAws _json1 _1Repository ( output . repository , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1DescribeImagesResponse = ( output , context ) => {
return {
imageDetails : output . imageDetails !== undefined && output . imageDetails !== null
? deserializeAws _json1 _1ImageDetailList ( output . imageDetails , context )
: undefined ,
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
} ;
} ;
const deserializeAws _json1 _1DescribeImageTagsResponse = ( output , context ) => {
return {
imageTagDetails : output . imageTagDetails !== undefined && output . imageTagDetails !== null
? deserializeAws _json1 _1ImageTagDetailList ( output . imageTagDetails , context )
: undefined ,
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
} ;
} ;
const deserializeAws _json1 _1DescribeRegistriesResponse = ( output , context ) => {
return {
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
registries : output . registries !== undefined && output . registries !== null
? deserializeAws _json1 _1RegistryList ( output . registries , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1DescribeRepositoriesResponse = ( output , context ) => {
return {
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
repositories : output . repositories !== undefined && output . repositories !== null
? deserializeAws _json1 _1RepositoryList ( output . repositories , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1EmptyUploadException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1GetAuthorizationTokenResponse = ( output , context ) => {
return {
authorizationData : output . authorizationData !== undefined && output . authorizationData !== null
? deserializeAws _json1 _1AuthorizationData ( output . authorizationData , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1GetRegistryCatalogDataResponse = ( output , context ) => {
return {
registryCatalogData : output . registryCatalogData !== undefined && output . registryCatalogData !== null
? deserializeAws _json1 _1RegistryCatalogData ( output . registryCatalogData , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1GetRepositoryCatalogDataResponse = ( output , context ) => {
return {
catalogData : output . catalogData !== undefined && output . catalogData !== null
? deserializeAws _json1 _1RepositoryCatalogData ( output . catalogData , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1GetRepositoryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1Image = ( output , context ) => {
return {
imageId : output . imageId !== undefined && output . imageId !== null
? deserializeAws _json1 _1ImageIdentifier ( output . imageId , context )
: undefined ,
imageManifest : smithy _client _1 . expectString ( output . imageManifest ) ,
imageManifestMediaType : smithy _client _1 . expectString ( output . imageManifestMediaType ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1ImageAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageDetail = ( output , context ) => {
return {
artifactMediaType : smithy _client _1 . expectString ( output . artifactMediaType ) ,
imageDigest : smithy _client _1 . expectString ( output . imageDigest ) ,
imageManifestMediaType : smithy _client _1 . expectString ( output . imageManifestMediaType ) ,
imagePushedAt : output . imagePushedAt !== undefined && output . imagePushedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . imagePushedAt ) ) )
: undefined ,
imageSizeInBytes : smithy _client _1 . expectLong ( output . imageSizeInBytes ) ,
imageTags : output . imageTags !== undefined && output . imageTags !== null
? deserializeAws _json1 _1ImageTagList ( output . imageTags , context )
: undefined ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1ImageDetailList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageDetail ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageDigestDoesNotMatchException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageFailure = ( output , context ) => {
return {
failureCode : smithy _client _1 . expectString ( output . failureCode ) ,
failureReason : smithy _client _1 . expectString ( output . failureReason ) ,
imageId : output . imageId !== undefined && output . imageId !== null
? deserializeAws _json1 _1ImageIdentifier ( output . imageId , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ImageFailureList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageFailure ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageIdentifier = ( output , context ) => {
return {
imageDigest : smithy _client _1 . expectString ( output . imageDigest ) ,
imageTag : smithy _client _1 . expectString ( output . imageTag ) ,
} ;
} ;
const deserializeAws _json1 _1ImageIdentifierList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageIdentifier ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageTagAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageTagDetail = ( output , context ) => {
return {
createdAt : output . createdAt !== undefined && output . createdAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . createdAt ) ) )
: undefined ,
imageDetail : output . imageDetail !== undefined && output . imageDetail !== null
? deserializeAws _json1 _1ReferencedImageDetail ( output . imageDetail , context )
: undefined ,
imageTag : smithy _client _1 . expectString ( output . imageTag ) ,
} ;
} ;
const deserializeAws _json1 _1ImageTagDetailList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageTagDetail ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageTagList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return smithy _client _1 . expectString ( entry ) ;
} ) ;
} ;
const deserializeAws _json1 _1InitiateLayerUploadResponse = ( output , context ) => {
return {
partSize : smithy _client _1 . expectLong ( output . partSize ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidLayerException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidLayerPartException = ( output , context ) => {
return {
lastValidByteReceived : smithy _client _1 . expectLong ( output . lastValidByteReceived ) ,
message : smithy _client _1 . expectString ( output . message ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidParameterException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidTagParameterException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1Layer = ( output , context ) => {
return {
layerAvailability : smithy _client _1 . expectString ( output . layerAvailability ) ,
layerDigest : smithy _client _1 . expectString ( output . layerDigest ) ,
layerSize : smithy _client _1 . expectLong ( output . layerSize ) ,
mediaType : smithy _client _1 . expectString ( output . mediaType ) ,
} ;
} ;
const deserializeAws _json1 _1LayerAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LayerFailure = ( output , context ) => {
return {
failureCode : smithy _client _1 . expectString ( output . failureCode ) ,
failureReason : smithy _client _1 . expectString ( output . failureReason ) ,
layerDigest : smithy _client _1 . expectString ( output . layerDigest ) ,
} ;
} ;
const deserializeAws _json1 _1LayerFailureList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1LayerFailure ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1LayerList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Layer ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1LayerPartTooSmallException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LayersNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LimitExceededException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ListTagsForResourceResponse = ( output , context ) => {
return {
tags : output . tags !== undefined && output . tags !== null
? deserializeAws _json1 _1TagList ( output . tags , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1OperatingSystemList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return smithy _client _1 . expectString ( entry ) ;
} ) ;
} ;
const deserializeAws _json1 _1PutImageResponse = ( output , context ) => {
return {
image : output . image !== undefined && output . image !== null
? deserializeAws _json1 _1Image ( output . image , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1PutRegistryCatalogDataResponse = ( output , context ) => {
return {
registryCatalogData : output . registryCatalogData !== undefined && output . registryCatalogData !== null
? deserializeAws _json1 _1RegistryCatalogData ( output . registryCatalogData , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1PutRepositoryCatalogDataResponse = ( output , context ) => {
return {
catalogData : output . catalogData !== undefined && output . catalogData !== null
? deserializeAws _json1 _1RepositoryCatalogData ( output . catalogData , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ReferencedImageDetail = ( output , context ) => {
return {
artifactMediaType : smithy _client _1 . expectString ( output . artifactMediaType ) ,
imageDigest : smithy _client _1 . expectString ( output . imageDigest ) ,
imageManifestMediaType : smithy _client _1 . expectString ( output . imageManifestMediaType ) ,
imagePushedAt : output . imagePushedAt !== undefined && output . imagePushedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . imagePushedAt ) ) )
: undefined ,
imageSizeInBytes : smithy _client _1 . expectLong ( output . imageSizeInBytes ) ,
} ;
} ;
const deserializeAws _json1 _1ReferencedImagesNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1Registry = ( output , context ) => {
return {
aliases : output . aliases !== undefined && output . aliases !== null
? deserializeAws _json1 _1RegistryAliasList ( output . aliases , context )
: undefined ,
registryArn : smithy _client _1 . expectString ( output . registryArn ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
registryUri : smithy _client _1 . expectString ( output . registryUri ) ,
verified : smithy _client _1 . expectBoolean ( output . verified ) ,
} ;
} ;
const deserializeAws _json1 _1RegistryAlias = ( output , context ) => {
return {
defaultRegistryAlias : smithy _client _1 . expectBoolean ( output . defaultRegistryAlias ) ,
name : smithy _client _1 . expectString ( output . name ) ,
primaryRegistryAlias : smithy _client _1 . expectBoolean ( output . primaryRegistryAlias ) ,
status : smithy _client _1 . expectString ( output . status ) ,
} ;
} ;
const deserializeAws _json1 _1RegistryAliasList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1RegistryAlias ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1RegistryCatalogData = ( output , context ) => {
return {
displayName : smithy _client _1 . expectString ( output . displayName ) ,
} ;
} ;
const deserializeAws _json1 _1RegistryList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Registry ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1RegistryNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1Repository = ( output , context ) => {
return {
createdAt : output . createdAt !== undefined && output . createdAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . createdAt ) ) )
: undefined ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryArn : smithy _client _1 . expectString ( output . repositoryArn ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
repositoryUri : smithy _client _1 . expectString ( output . repositoryUri ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryCatalogData = ( output , context ) => {
return {
aboutText : smithy _client _1 . expectString ( output . aboutText ) ,
architectures : output . architectures !== undefined && output . architectures !== null
? deserializeAws _json1 _1ArchitectureList ( output . architectures , context )
: undefined ,
description : smithy _client _1 . expectString ( output . description ) ,
logoUrl : smithy _client _1 . expectString ( output . logoUrl ) ,
marketplaceCertified : smithy _client _1 . expectBoolean ( output . marketplaceCertified ) ,
operatingSystems : output . operatingSystems !== undefined && output . operatingSystems !== null
? deserializeAws _json1 _1OperatingSystemList ( output . operatingSystems , context )
: undefined ,
usageText : smithy _client _1 . expectString ( output . usageText ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Repository ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1RepositoryNotEmptyException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryPolicyNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ServerException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1SetRepositoryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1Tag = ( output , context ) => {
return {
Key : smithy _client _1 . expectString ( output . Key ) ,
Value : smithy _client _1 . expectString ( output . Value ) ,
} ;
} ;
const deserializeAws _json1 _1TagList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Tag ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1TagResourceResponse = ( output , context ) => {
return { } ;
} ;
const deserializeAws _json1 _1TooManyTagsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1UnsupportedCommandException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1UntagResourceResponse = ( output , context ) => {
return { } ;
} ;
const deserializeAws _json1 _1UploadLayerPartResponse = ( output , context ) => {
return {
lastByteReceived : smithy _client _1 . expectLong ( output . lastByteReceived ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1UploadNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeMetadata = ( output ) => {
var _a ;
return ( {
httpStatusCode : output . statusCode ,
requestId : ( _a = output . headers [ "x-amzn-requestid" ] ) !== null && _a !== void 0 ? _a : output . headers [ "x-amzn-request-id" ] ,
extendedRequestId : output . headers [ "x-amz-id-2" ] ,
cfId : output . headers [ "x-amz-cf-id" ] ,
} ) ;
} ;
const collectBody = ( streamBody = new Uint8Array ( ) , context ) => {
if ( streamBody instanceof Uint8Array ) {
return Promise . resolve ( streamBody ) ;
}
return context . streamCollector ( streamBody ) || Promise . resolve ( new Uint8Array ( ) ) ;
} ;
const collectBodyString = ( streamBody , context ) => collectBody ( streamBody , context ) . then ( ( body ) => context . utf8Encoder ( body ) ) ;
const buildHttpRpcRequest = async ( context , headers , path , resolvedHostname , body ) => {
const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ;
const contents = {
protocol ,
hostname ,
port ,
method : "POST" ,
path : basePath . endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) + path : basePath + path ,
headers ,
} ;
if ( resolvedHostname !== undefined ) {
contents . hostname = resolvedHostname ;
}
if ( body !== undefined ) {
contents . body = body ;
}
return new protocol _http _1 . HttpRequest ( contents ) ;
} ;
const parseBody = ( streamBody , context ) => collectBodyString ( streamBody , context ) . then ( ( encoded ) => {
if ( encoded . length ) {
return JSON . parse ( encoded ) ;
}
return { } ;
} ) ;
const loadRestJsonErrorCode = ( output , data ) => {
const findKey = ( object , key ) => Object . keys ( object ) . find ( ( k ) => k . toLowerCase ( ) === key . toLowerCase ( ) ) ;
const sanitizeErrorCode = ( rawValue ) => {
let cleanValue = rawValue ;
if ( cleanValue . indexOf ( ":" ) >= 0 ) {
cleanValue = cleanValue . split ( ":" ) [ 0 ] ;
}
if ( cleanValue . indexOf ( "#" ) >= 0 ) {
cleanValue = cleanValue . split ( "#" ) [ 1 ] ;
}
return cleanValue ;
} ;
const headerKey = findKey ( output . headers , "x-amzn-errortype" ) ;
if ( headerKey !== undefined ) {
return sanitizeErrorCode ( output . headers [ headerKey ] ) ;
}
if ( data . code !== undefined ) {
return sanitizeErrorCode ( data . code ) ;
}
if ( data [ "__type" ] !== undefined ) {
return sanitizeErrorCode ( data [ "__type" ] ) ;
}
return "" ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9324 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
const package _json _1 = tslib _1 . _ _importDefault ( _ _nccwpck _require _ _ ( 6748 ) ) ;
const client _sts _1 = _ _nccwpck _require _ _ ( 2209 ) ;
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
const credential _provider _node _1 = _ _nccwpck _require _ _ ( 5531 ) ;
const hash _node _1 = _ _nccwpck _require _ _ ( 7442 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
const node _config _provider _1 = _ _nccwpck _require _ _ ( 7684 ) ;
const node _http _handler _1 = _ _nccwpck _require _ _ ( 8805 ) ;
const util _base64 _node _1 = _ _nccwpck _require _ _ ( 8588 ) ;
const util _body _length _node _1 = _ _nccwpck _require _ _ ( 4147 ) ;
const util _user _agent _node _1 = _ _nccwpck _require _ _ ( 8095 ) ;
const util _utf8 _node _1 = _ _nccwpck _require _ _ ( 6278 ) ;
const runtimeConfig _shared _1 = _ _nccwpck _require _ _ ( 6746 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e , _f , _g , _h , _j , _k , _l , _m , _o , _p , _q ;
smithy _client _1 . emitWarningIfUnsupportedVersion ( process . version ) ;
const clientSharedValues = runtimeConfig _shared _1 . getRuntimeConfig ( config ) ;
return {
... clientSharedValues ,
... config ,
runtime : "node" ,
base64Decoder : ( _a = config === null || config === void 0 ? void 0 : config . base64Decoder ) !== null && _a !== void 0 ? _a : util _base64 _node _1 . fromBase64 ,
base64Encoder : ( _b = config === null || config === void 0 ? void 0 : config . base64Encoder ) !== null && _b !== void 0 ? _b : util _base64 _node _1 . toBase64 ,
bodyLengthChecker : ( _c = config === null || config === void 0 ? void 0 : config . bodyLengthChecker ) !== null && _c !== void 0 ? _c : util _body _length _node _1 . calculateBodyLength ,
credentialDefaultProvider : ( _d = config === null || config === void 0 ? void 0 : config . credentialDefaultProvider ) !== null && _d !== void 0 ? _d : client _sts _1 . decorateDefaultCredentialProvider ( credential _provider _node _1 . defaultProvider ) ,
defaultUserAgentProvider : ( _e = config === null || config === void 0 ? void 0 : config . defaultUserAgentProvider ) !== null && _e !== void 0 ? _e : util _user _agent _node _1 . defaultUserAgent ( { serviceId : clientSharedValues . serviceId , clientVersion : package _json _1 . default . version } ) ,
maxAttempts : ( _f = config === null || config === void 0 ? void 0 : config . maxAttempts ) !== null && _f !== void 0 ? _f : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _MAX _ATTEMPT _CONFIG _OPTIONS ) ,
region : ( _g = config === null || config === void 0 ? void 0 : config . region ) !== null && _g !== void 0 ? _g : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _REGION _CONFIG _OPTIONS , config _resolver _1 . NODE _REGION _CONFIG _FILE _OPTIONS ) ,
requestHandler : ( _h = config === null || config === void 0 ? void 0 : config . requestHandler ) !== null && _h !== void 0 ? _h : new node _http _handler _1 . NodeHttpHandler ( ) ,
retryMode : ( _j = config === null || config === void 0 ? void 0 : config . retryMode ) !== null && _j !== void 0 ? _j : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _RETRY _MODE _CONFIG _OPTIONS ) ,
sha256 : ( _k = config === null || config === void 0 ? void 0 : config . sha256 ) !== null && _k !== void 0 ? _k : hash _node _1 . Hash . bind ( null , "sha256" ) ,
streamCollector : ( _l = config === null || config === void 0 ? void 0 : config . streamCollector ) !== null && _l !== void 0 ? _l : node _http _handler _1 . streamCollector ,
useDualstackEndpoint : ( _m = config === null || config === void 0 ? void 0 : config . useDualstackEndpoint ) !== null && _m !== void 0 ? _m : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _DUALSTACK _ENDPOINT _CONFIG _OPTIONS ) ,
useFipsEndpoint : ( _o = config === null || config === void 0 ? void 0 : config . useFipsEndpoint ) !== null && _o !== void 0 ? _o : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _FIPS _ENDPOINT _CONFIG _OPTIONS ) ,
utf8Decoder : ( _p = config === null || config === void 0 ? void 0 : config . utf8Decoder ) !== null && _p !== void 0 ? _p : util _utf8 _node _1 . fromUtf8 ,
utf8Encoder : ( _q = config === null || config === void 0 ? void 0 : config . utf8Encoder ) !== null && _q !== void 0 ? _q : util _utf8 _node _1 . toUtf8 ,
} ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6746 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const url _parser _1 = _ _nccwpck _require _ _ ( 2992 ) ;
const endpoints _1 = _ _nccwpck _require _ _ ( 8593 ) ;
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e ;
return ( {
apiVersion : "2020-10-30" ,
disableHostPrefix : ( _a = config === null || config === void 0 ? void 0 : config . disableHostPrefix ) !== null && _a !== void 0 ? _a : false ,
logger : ( _b = config === null || config === void 0 ? void 0 : config . logger ) !== null && _b !== void 0 ? _b : { } ,
regionInfoProvider : ( _c = config === null || config === void 0 ? void 0 : config . regionInfoProvider ) !== null && _c !== void 0 ? _c : endpoints _1 . defaultRegionInfoProvider ,
serviceId : ( _d = config === null || config === void 0 ? void 0 : config . serviceId ) !== null && _d !== void 0 ? _d : "ECR PUBLIC" ,
urlParser : ( _e = config === null || config === void 0 ? void 0 : config . urlParser ) !== null && _e !== void 0 ? _e : url _parser _1 . parseUrl ,
} ) ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9167 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ECR = void 0 ;
const BatchCheckLayerAvailabilityCommand _1 = _ _nccwpck _require _ _ ( 3804 ) ;
const BatchDeleteImageCommand _1 = _ _nccwpck _require _ _ ( 5511 ) ;
const BatchGetImageCommand _1 = _ _nccwpck _require _ _ ( 8859 ) ;
const BatchGetRepositoryScanningConfigurationCommand _1 = _ _nccwpck _require _ _ ( 9728 ) ;
const CompleteLayerUploadCommand _1 = _ _nccwpck _require _ _ ( 9003 ) ;
const CreatePullThroughCacheRuleCommand _1 = _ _nccwpck _require _ _ ( 1454 ) ;
const CreateRepositoryCommand _1 = _ _nccwpck _require _ _ ( 5074 ) ;
const DeleteLifecyclePolicyCommand _1 = _ _nccwpck _require _ _ ( 8981 ) ;
const DeletePullThroughCacheRuleCommand _1 = _ _nccwpck _require _ _ ( 3793 ) ;
const DeleteRegistryPolicyCommand _1 = _ _nccwpck _require _ _ ( 1424 ) ;
const DeleteRepositoryCommand _1 = _ _nccwpck _require _ _ ( 8651 ) ;
const DeleteRepositoryPolicyCommand _1 = _ _nccwpck _require _ _ ( 6828 ) ;
const DescribeImageReplicationStatusCommand _1 = _ _nccwpck _require _ _ ( 9694 ) ;
const DescribeImageScanFindingsCommand _1 = _ _nccwpck _require _ _ ( 2987 ) ;
const DescribeImagesCommand _1 = _ _nccwpck _require _ _ ( 5353 ) ;
const DescribePullThroughCacheRulesCommand _1 = _ _nccwpck _require _ _ ( 1484 ) ;
const DescribeRegistryCommand _1 = _ _nccwpck _require _ _ ( 6166 ) ;
const DescribeRepositoriesCommand _1 = _ _nccwpck _require _ _ ( 1200 ) ;
const GetAuthorizationTokenCommand _1 = _ _nccwpck _require _ _ ( 5828 ) ;
const GetDownloadUrlForLayerCommand _1 = _ _nccwpck _require _ _ ( 1401 ) ;
const GetLifecyclePolicyCommand _1 = _ _nccwpck _require _ _ ( 8469 ) ;
const GetLifecyclePolicyPreviewCommand _1 = _ _nccwpck _require _ _ ( 7006 ) ;
const GetRegistryPolicyCommand _1 = _ _nccwpck _require _ _ ( 3685 ) ;
const GetRegistryScanningConfigurationCommand _1 = _ _nccwpck _require _ _ ( 2741 ) ;
const GetRepositoryPolicyCommand _1 = _ _nccwpck _require _ _ ( 6330 ) ;
const InitiateLayerUploadCommand _1 = _ _nccwpck _require _ _ ( 6936 ) ;
const ListImagesCommand _1 = _ _nccwpck _require _ _ ( 3854 ) ;
const ListTagsForResourceCommand _1 = _ _nccwpck _require _ _ ( 7403 ) ;
const PutImageCommand _1 = _ _nccwpck _require _ _ ( 6844 ) ;
const PutImageScanningConfigurationCommand _1 = _ _nccwpck _require _ _ ( 7935 ) ;
const PutImageTagMutabilityCommand _1 = _ _nccwpck _require _ _ ( 6495 ) ;
const PutLifecyclePolicyCommand _1 = _ _nccwpck _require _ _ ( 4444 ) ;
const PutRegistryPolicyCommand _1 = _ _nccwpck _require _ _ ( 7928 ) ;
const PutRegistryScanningConfigurationCommand _1 = _ _nccwpck _require _ _ ( 9529 ) ;
const PutReplicationConfigurationCommand _1 = _ _nccwpck _require _ _ ( 3350 ) ;
const SetRepositoryPolicyCommand _1 = _ _nccwpck _require _ _ ( 8300 ) ;
const StartImageScanCommand _1 = _ _nccwpck _require _ _ ( 7984 ) ;
const StartLifecyclePolicyPreviewCommand _1 = _ _nccwpck _require _ _ ( 5905 ) ;
const TagResourceCommand _1 = _ _nccwpck _require _ _ ( 2665 ) ;
const UntagResourceCommand _1 = _ _nccwpck _require _ _ ( 7225 ) ;
const UploadLayerPartCommand _1 = _ _nccwpck _require _ _ ( 5825 ) ;
const ECRClient _1 = _ _nccwpck _require _ _ ( 3391 ) ;
class ECR extends ECRClient _1 . ECRClient {
batchCheckLayerAvailability ( args , optionsOrCb , cb ) {
const command = new BatchCheckLayerAvailabilityCommand _1 . BatchCheckLayerAvailabilityCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
batchDeleteImage ( args , optionsOrCb , cb ) {
const command = new BatchDeleteImageCommand _1 . BatchDeleteImageCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
batchGetImage ( args , optionsOrCb , cb ) {
const command = new BatchGetImageCommand _1 . BatchGetImageCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
batchGetRepositoryScanningConfiguration ( args , optionsOrCb , cb ) {
const command = new BatchGetRepositoryScanningConfigurationCommand _1 . BatchGetRepositoryScanningConfigurationCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
completeLayerUpload ( args , optionsOrCb , cb ) {
const command = new CompleteLayerUploadCommand _1 . CompleteLayerUploadCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
createPullThroughCacheRule ( args , optionsOrCb , cb ) {
const command = new CreatePullThroughCacheRuleCommand _1 . CreatePullThroughCacheRuleCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
createRepository ( args , optionsOrCb , cb ) {
const command = new CreateRepositoryCommand _1 . CreateRepositoryCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
deleteLifecyclePolicy ( args , optionsOrCb , cb ) {
const command = new DeleteLifecyclePolicyCommand _1 . DeleteLifecyclePolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
deletePullThroughCacheRule ( args , optionsOrCb , cb ) {
const command = new DeletePullThroughCacheRuleCommand _1 . DeletePullThroughCacheRuleCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
deleteRegistryPolicy ( args , optionsOrCb , cb ) {
const command = new DeleteRegistryPolicyCommand _1 . DeleteRegistryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
deleteRepository ( args , optionsOrCb , cb ) {
const command = new DeleteRepositoryCommand _1 . DeleteRepositoryCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
deleteRepositoryPolicy ( args , optionsOrCb , cb ) {
const command = new DeleteRepositoryPolicyCommand _1 . DeleteRepositoryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeImageReplicationStatus ( args , optionsOrCb , cb ) {
const command = new DescribeImageReplicationStatusCommand _1 . DescribeImageReplicationStatusCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeImages ( args , optionsOrCb , cb ) {
const command = new DescribeImagesCommand _1 . DescribeImagesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeImageScanFindings ( args , optionsOrCb , cb ) {
const command = new DescribeImageScanFindingsCommand _1 . DescribeImageScanFindingsCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describePullThroughCacheRules ( args , optionsOrCb , cb ) {
const command = new DescribePullThroughCacheRulesCommand _1 . DescribePullThroughCacheRulesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeRegistry ( args , optionsOrCb , cb ) {
const command = new DescribeRegistryCommand _1 . DescribeRegistryCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
describeRepositories ( args , optionsOrCb , cb ) {
const command = new DescribeRepositoriesCommand _1 . DescribeRepositoriesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getAuthorizationToken ( args , optionsOrCb , cb ) {
const command = new GetAuthorizationTokenCommand _1 . GetAuthorizationTokenCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getDownloadUrlForLayer ( args , optionsOrCb , cb ) {
const command = new GetDownloadUrlForLayerCommand _1 . GetDownloadUrlForLayerCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getLifecyclePolicy ( args , optionsOrCb , cb ) {
const command = new GetLifecyclePolicyCommand _1 . GetLifecyclePolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getLifecyclePolicyPreview ( args , optionsOrCb , cb ) {
const command = new GetLifecyclePolicyPreviewCommand _1 . GetLifecyclePolicyPreviewCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getRegistryPolicy ( args , optionsOrCb , cb ) {
const command = new GetRegistryPolicyCommand _1 . GetRegistryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getRegistryScanningConfiguration ( args , optionsOrCb , cb ) {
const command = new GetRegistryScanningConfigurationCommand _1 . GetRegistryScanningConfigurationCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getRepositoryPolicy ( args , optionsOrCb , cb ) {
const command = new GetRepositoryPolicyCommand _1 . GetRepositoryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
initiateLayerUpload ( args , optionsOrCb , cb ) {
const command = new InitiateLayerUploadCommand _1 . InitiateLayerUploadCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
listImages ( args , optionsOrCb , cb ) {
const command = new ListImagesCommand _1 . ListImagesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
listTagsForResource ( args , optionsOrCb , cb ) {
const command = new ListTagsForResourceCommand _1 . ListTagsForResourceCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putImage ( args , optionsOrCb , cb ) {
const command = new PutImageCommand _1 . PutImageCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putImageScanningConfiguration ( args , optionsOrCb , cb ) {
const command = new PutImageScanningConfigurationCommand _1 . PutImageScanningConfigurationCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putImageTagMutability ( args , optionsOrCb , cb ) {
const command = new PutImageTagMutabilityCommand _1 . PutImageTagMutabilityCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putLifecyclePolicy ( args , optionsOrCb , cb ) {
const command = new PutLifecyclePolicyCommand _1 . PutLifecyclePolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putRegistryPolicy ( args , optionsOrCb , cb ) {
const command = new PutRegistryPolicyCommand _1 . PutRegistryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putRegistryScanningConfiguration ( args , optionsOrCb , cb ) {
const command = new PutRegistryScanningConfigurationCommand _1 . PutRegistryScanningConfigurationCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
putReplicationConfiguration ( args , optionsOrCb , cb ) {
const command = new PutReplicationConfigurationCommand _1 . PutReplicationConfigurationCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
setRepositoryPolicy ( args , optionsOrCb , cb ) {
const command = new SetRepositoryPolicyCommand _1 . SetRepositoryPolicyCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
startImageScan ( args , optionsOrCb , cb ) {
const command = new StartImageScanCommand _1 . StartImageScanCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
startLifecyclePolicyPreview ( args , optionsOrCb , cb ) {
const command = new StartLifecyclePolicyPreviewCommand _1 . StartLifecyclePolicyPreviewCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
tagResource ( args , optionsOrCb , cb ) {
const command = new TagResourceCommand _1 . TagResourceCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
untagResource ( args , optionsOrCb , cb ) {
const command = new UntagResourceCommand _1 . UntagResourceCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
uploadLayerPart ( args , optionsOrCb , cb ) {
const command = new UploadLayerPartCommand _1 . UploadLayerPartCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
}
exports . ECR = ECR ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3391 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ECRClient = void 0 ;
2021-12-30 20:43:44 +01:00
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
2021-12-20 10:00:03 +01:00
const middleware _content _length _1 = _ _nccwpck _require _ _ ( 2245 ) ;
const middleware _host _header _1 = _ _nccwpck _require _ _ ( 2545 ) ;
const middleware _logger _1 = _ _nccwpck _require _ _ ( 14 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
2021-12-30 20:43:44 +01:00
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
2021-12-20 10:00:03 +01:00
const middleware _user _agent _1 = _ _nccwpck _require _ _ ( 4688 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const runtimeConfig _1 = _ _nccwpck _require _ _ ( 869 ) ;
class ECRClient extends smithy _client _1 . Client {
constructor ( configuration ) {
const _config _0 = runtimeConfig _1 . getRuntimeConfig ( configuration ) ;
const _config _1 = config _resolver _1 . resolveRegionConfig ( _config _0 ) ;
const _config _2 = config _resolver _1 . resolveEndpointsConfig ( _config _1 ) ;
const _config _3 = middleware _retry _1 . resolveRetryConfig ( _config _2 ) ;
const _config _4 = middleware _host _header _1 . resolveHostHeaderConfig ( _config _3 ) ;
const _config _5 = middleware _signing _1 . resolveAwsAuthConfig ( _config _4 ) ;
const _config _6 = middleware _user _agent _1 . resolveUserAgentConfig ( _config _5 ) ;
super ( _config _6 ) ;
this . config = _config _6 ;
this . middlewareStack . use ( middleware _retry _1 . getRetryPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _content _length _1 . getContentLengthPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _host _header _1 . getHostHeaderPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _logger _1 . getLoggerPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _user _agent _1 . getUserAgentPlugin ( this . config ) ) ;
}
destroy ( ) {
super . destroy ( ) ;
}
}
exports . ECRClient = ECRClient ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3804 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . BatchCheckLayerAvailabilityCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class BatchCheckLayerAvailabilityCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "BatchCheckLayerAvailabilityCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . BatchCheckLayerAvailabilityRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . BatchCheckLayerAvailabilityResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1BatchCheckLayerAvailabilityCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand ( output , context ) ;
}
}
exports . BatchCheckLayerAvailabilityCommand = BatchCheckLayerAvailabilityCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5511 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . BatchDeleteImageCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class BatchDeleteImageCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "BatchDeleteImageCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . BatchDeleteImageRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . BatchDeleteImageResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1BatchDeleteImageCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1BatchDeleteImageCommand ( output , context ) ;
}
}
exports . BatchDeleteImageCommand = BatchDeleteImageCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8859 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . BatchGetImageCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class BatchGetImageCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "BatchGetImageCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . BatchGetImageRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . BatchGetImageResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1BatchGetImageCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1BatchGetImageCommand ( output , context ) ;
}
}
exports . BatchGetImageCommand = BatchGetImageCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9728 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . BatchGetRepositoryScanningConfigurationCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class BatchGetRepositoryScanningConfigurationCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "BatchGetRepositoryScanningConfigurationCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . BatchGetRepositoryScanningConfigurationRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . BatchGetRepositoryScanningConfigurationResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand ( output , context ) ;
}
}
exports . BatchGetRepositoryScanningConfigurationCommand = BatchGetRepositoryScanningConfigurationCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9003 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . CompleteLayerUploadCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class CompleteLayerUploadCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "CompleteLayerUploadCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . CompleteLayerUploadRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . CompleteLayerUploadResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1CompleteLayerUploadCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1CompleteLayerUploadCommand ( output , context ) ;
}
}
exports . CompleteLayerUploadCommand = CompleteLayerUploadCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1454 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . CreatePullThroughCacheRuleCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class CreatePullThroughCacheRuleCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "CreatePullThroughCacheRuleCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . CreatePullThroughCacheRuleRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . CreatePullThroughCacheRuleResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1CreatePullThroughCacheRuleCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1CreatePullThroughCacheRuleCommand ( output , context ) ;
}
}
exports . CreatePullThroughCacheRuleCommand = CreatePullThroughCacheRuleCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5074 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . CreateRepositoryCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class CreateRepositoryCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "CreateRepositoryCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . CreateRepositoryRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . CreateRepositoryResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1CreateRepositoryCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1CreateRepositoryCommand ( output , context ) ;
}
}
exports . CreateRepositoryCommand = CreateRepositoryCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8981 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DeleteLifecyclePolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DeleteLifecyclePolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DeleteLifecyclePolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DeleteLifecyclePolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DeleteLifecyclePolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DeleteLifecyclePolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DeleteLifecyclePolicyCommand ( output , context ) ;
}
}
exports . DeleteLifecyclePolicyCommand = DeleteLifecyclePolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3793 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DeletePullThroughCacheRuleCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DeletePullThroughCacheRuleCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DeletePullThroughCacheRuleCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DeletePullThroughCacheRuleRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DeletePullThroughCacheRuleResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DeletePullThroughCacheRuleCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DeletePullThroughCacheRuleCommand ( output , context ) ;
}
}
exports . DeletePullThroughCacheRuleCommand = DeletePullThroughCacheRuleCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1424 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DeleteRegistryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DeleteRegistryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DeleteRegistryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DeleteRegistryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DeleteRegistryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DeleteRegistryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DeleteRegistryPolicyCommand ( output , context ) ;
}
}
exports . DeleteRegistryPolicyCommand = DeleteRegistryPolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8651 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DeleteRepositoryCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DeleteRepositoryCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DeleteRepositoryCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DeleteRepositoryRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DeleteRepositoryResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DeleteRepositoryCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DeleteRepositoryCommand ( output , context ) ;
}
}
exports . DeleteRepositoryCommand = DeleteRepositoryCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6828 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DeleteRepositoryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DeleteRepositoryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DeleteRepositoryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DeleteRepositoryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DeleteRepositoryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DeleteRepositoryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DeleteRepositoryPolicyCommand ( output , context ) ;
}
}
exports . DeleteRepositoryPolicyCommand = DeleteRepositoryPolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9694 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeImageReplicationStatusCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DescribeImageReplicationStatusCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DescribeImageReplicationStatusCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeImageReplicationStatusRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeImageReplicationStatusResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeImageReplicationStatusCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeImageReplicationStatusCommand ( output , context ) ;
}
}
exports . DescribeImageReplicationStatusCommand = DescribeImageReplicationStatusCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2987 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeImageScanFindingsCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DescribeImageScanFindingsCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DescribeImageScanFindingsCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeImageScanFindingsRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeImageScanFindingsResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeImageScanFindingsCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeImageScanFindingsCommand ( output , context ) ;
}
}
exports . DescribeImageScanFindingsCommand = DescribeImageScanFindingsCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5353 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeImagesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DescribeImagesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DescribeImagesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeImagesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeImagesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeImagesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeImagesCommand ( output , context ) ;
}
}
exports . DescribeImagesCommand = DescribeImagesCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1484 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribePullThroughCacheRulesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DescribePullThroughCacheRulesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DescribePullThroughCacheRulesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribePullThroughCacheRulesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribePullThroughCacheRulesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribePullThroughCacheRulesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribePullThroughCacheRulesCommand ( output , context ) ;
}
}
exports . DescribePullThroughCacheRulesCommand = DescribePullThroughCacheRulesCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6166 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeRegistryCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DescribeRegistryCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DescribeRegistryCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeRegistryRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeRegistryResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeRegistryCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeRegistryCommand ( output , context ) ;
}
}
exports . DescribeRegistryCommand = DescribeRegistryCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1200 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DescribeRepositoriesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class DescribeRepositoriesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "DescribeRepositoriesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DescribeRepositoriesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DescribeRepositoriesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1DescribeRepositoriesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1DescribeRepositoriesCommand ( output , context ) ;
}
}
exports . DescribeRepositoriesCommand = DescribeRepositoriesCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5828 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetAuthorizationTokenCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class GetAuthorizationTokenCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "GetAuthorizationTokenCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetAuthorizationTokenRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetAuthorizationTokenResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetAuthorizationTokenCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetAuthorizationTokenCommand ( output , context ) ;
}
}
exports . GetAuthorizationTokenCommand = GetAuthorizationTokenCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1401 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetDownloadUrlForLayerCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class GetDownloadUrlForLayerCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "GetDownloadUrlForLayerCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetDownloadUrlForLayerRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetDownloadUrlForLayerResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetDownloadUrlForLayerCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetDownloadUrlForLayerCommand ( output , context ) ;
}
}
exports . GetDownloadUrlForLayerCommand = GetDownloadUrlForLayerCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8469 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetLifecyclePolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class GetLifecyclePolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "GetLifecyclePolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetLifecyclePolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetLifecyclePolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetLifecyclePolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetLifecyclePolicyCommand ( output , context ) ;
}
}
exports . GetLifecyclePolicyCommand = GetLifecyclePolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7006 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetLifecyclePolicyPreviewCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class GetLifecyclePolicyPreviewCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "GetLifecyclePolicyPreviewCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetLifecyclePolicyPreviewRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetLifecyclePolicyPreviewResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetLifecyclePolicyPreviewCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetLifecyclePolicyPreviewCommand ( output , context ) ;
}
}
exports . GetLifecyclePolicyPreviewCommand = GetLifecyclePolicyPreviewCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3685 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetRegistryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class GetRegistryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "GetRegistryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetRegistryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetRegistryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetRegistryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetRegistryPolicyCommand ( output , context ) ;
}
}
exports . GetRegistryPolicyCommand = GetRegistryPolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2741 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetRegistryScanningConfigurationCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class GetRegistryScanningConfigurationCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "GetRegistryScanningConfigurationCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetRegistryScanningConfigurationRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetRegistryScanningConfigurationResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetRegistryScanningConfigurationCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetRegistryScanningConfigurationCommand ( output , context ) ;
}
}
exports . GetRegistryScanningConfigurationCommand = GetRegistryScanningConfigurationCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6330 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetRepositoryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class GetRepositoryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "GetRepositoryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetRepositoryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetRepositoryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1GetRepositoryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1GetRepositoryPolicyCommand ( output , context ) ;
}
}
exports . GetRepositoryPolicyCommand = GetRepositoryPolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6936 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . InitiateLayerUploadCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class InitiateLayerUploadCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "InitiateLayerUploadCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . InitiateLayerUploadRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . InitiateLayerUploadResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1InitiateLayerUploadCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1InitiateLayerUploadCommand ( output , context ) ;
}
}
exports . InitiateLayerUploadCommand = InitiateLayerUploadCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3854 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ListImagesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class ListImagesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "ListImagesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . ListImagesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . ListImagesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1ListImagesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1ListImagesCommand ( output , context ) ;
}
}
exports . ListImagesCommand = ListImagesCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7403 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ListTagsForResourceCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class ListTagsForResourceCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "ListTagsForResourceCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . ListTagsForResourceRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . ListTagsForResourceResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1ListTagsForResourceCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1ListTagsForResourceCommand ( output , context ) ;
}
}
exports . ListTagsForResourceCommand = ListTagsForResourceCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6844 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutImageCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class PutImageCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "PutImageCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutImageRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutImageResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutImageCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutImageCommand ( output , context ) ;
}
}
exports . PutImageCommand = PutImageCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7935 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutImageScanningConfigurationCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class PutImageScanningConfigurationCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "PutImageScanningConfigurationCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutImageScanningConfigurationRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutImageScanningConfigurationResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutImageScanningConfigurationCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutImageScanningConfigurationCommand ( output , context ) ;
}
}
exports . PutImageScanningConfigurationCommand = PutImageScanningConfigurationCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6495 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutImageTagMutabilityCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class PutImageTagMutabilityCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "PutImageTagMutabilityCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutImageTagMutabilityRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutImageTagMutabilityResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutImageTagMutabilityCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutImageTagMutabilityCommand ( output , context ) ;
}
}
exports . PutImageTagMutabilityCommand = PutImageTagMutabilityCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4444 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutLifecyclePolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class PutLifecyclePolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "PutLifecyclePolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutLifecyclePolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutLifecyclePolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutLifecyclePolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutLifecyclePolicyCommand ( output , context ) ;
}
}
exports . PutLifecyclePolicyCommand = PutLifecyclePolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7928 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutRegistryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class PutRegistryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "PutRegistryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutRegistryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutRegistryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutRegistryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutRegistryPolicyCommand ( output , context ) ;
}
}
exports . PutRegistryPolicyCommand = PutRegistryPolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9529 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutRegistryScanningConfigurationCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class PutRegistryScanningConfigurationCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "PutRegistryScanningConfigurationCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutRegistryScanningConfigurationRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutRegistryScanningConfigurationResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutRegistryScanningConfigurationCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutRegistryScanningConfigurationCommand ( output , context ) ;
}
}
exports . PutRegistryScanningConfigurationCommand = PutRegistryScanningConfigurationCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3350 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . PutReplicationConfigurationCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class PutReplicationConfigurationCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "PutReplicationConfigurationCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . PutReplicationConfigurationRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . PutReplicationConfigurationResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1PutReplicationConfigurationCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1PutReplicationConfigurationCommand ( output , context ) ;
}
}
exports . PutReplicationConfigurationCommand = PutReplicationConfigurationCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8300 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . SetRepositoryPolicyCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class SetRepositoryPolicyCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "SetRepositoryPolicyCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . SetRepositoryPolicyRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . SetRepositoryPolicyResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1SetRepositoryPolicyCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1SetRepositoryPolicyCommand ( output , context ) ;
}
}
exports . SetRepositoryPolicyCommand = SetRepositoryPolicyCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7984 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . StartImageScanCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class StartImageScanCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "StartImageScanCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . StartImageScanRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . StartImageScanResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1StartImageScanCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1StartImageScanCommand ( output , context ) ;
}
}
exports . StartImageScanCommand = StartImageScanCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5905 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . StartLifecyclePolicyPreviewCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class StartLifecyclePolicyPreviewCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "StartLifecyclePolicyPreviewCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . StartLifecyclePolicyPreviewRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . StartLifecyclePolicyPreviewResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1StartLifecyclePolicyPreviewCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1StartLifecyclePolicyPreviewCommand ( output , context ) ;
}
}
exports . StartLifecyclePolicyPreviewCommand = StartLifecyclePolicyPreviewCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2665 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . TagResourceCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class TagResourceCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "TagResourceCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . TagResourceRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . TagResourceResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1TagResourceCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1TagResourceCommand ( output , context ) ;
}
}
exports . TagResourceCommand = TagResourceCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7225 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . UntagResourceCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class UntagResourceCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "UntagResourceCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . UntagResourceRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . UntagResourceResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1UntagResourceCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1UntagResourceCommand ( output , context ) ;
}
}
exports . UntagResourceCommand = UntagResourceCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5825 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . UploadLayerPartCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const models _0 _1 = _ _nccwpck _require _ _ ( 9088 ) ;
const Aws _json1 _1 _1 = _ _nccwpck _require _ _ ( 6704 ) ;
class UploadLayerPartCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "ECRClient" ;
const commandName = "UploadLayerPartCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . UploadLayerPartRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . UploadLayerPartResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _json1 _1 _1 . serializeAws _json1 _1UploadLayerPartCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _json1 _1 _1 . deserializeAws _json1 _1UploadLayerPartCommand ( output , context ) ;
}
}
exports . UploadLayerPartCommand = UploadLayerPartCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 7407 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3804 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5511 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8859 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9728 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9003 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1454 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5074 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8981 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3793 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1424 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8651 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6828 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9694 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2987 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5353 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1484 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6166 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1200 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5828 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1401 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8469 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7006 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3685 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2741 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6330 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6936 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3854 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7403 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6844 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7935 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6495 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4444 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7928 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9529 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3350 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8300 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7984 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5905 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2665 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7225 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5825 ) , exports ) ;
/***/ } ) ,
/***/ 3070 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultRegionInfoProvider = void 0 ;
2021-12-30 20:43:44 +01:00
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
2021-12-20 10:00:03 +01:00
const regionHash = {
"af-south-1" : {
variants : [
{
hostname : "api.ecr.af-south-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "af-south-1" ,
} ,
"ap-east-1" : {
variants : [
{
hostname : "api.ecr.ap-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-east-1" ,
} ,
"ap-northeast-1" : {
variants : [
{
hostname : "api.ecr.ap-northeast-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-northeast-1" ,
} ,
"ap-northeast-2" : {
variants : [
{
hostname : "api.ecr.ap-northeast-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-northeast-2" ,
} ,
"ap-northeast-3" : {
variants : [
{
hostname : "api.ecr.ap-northeast-3.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-northeast-3" ,
} ,
"ap-south-1" : {
variants : [
{
hostname : "api.ecr.ap-south-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-south-1" ,
} ,
"ap-southeast-1" : {
variants : [
{
hostname : "api.ecr.ap-southeast-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-southeast-1" ,
} ,
"ap-southeast-2" : {
variants : [
{
hostname : "api.ecr.ap-southeast-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-southeast-2" ,
} ,
2021-12-30 19:35:40 +01:00
"ap-southeast-3" : {
variants : [
{
hostname : "api.ecr.ap-southeast-3.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-southeast-3" ,
} ,
2021-12-20 10:00:03 +01:00
"ca-central-1" : {
variants : [
{
hostname : "api.ecr.ca-central-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ca-central-1" ,
} ,
"cn-north-1" : {
variants : [
{
hostname : "api.ecr.cn-north-1.amazonaws.com.cn" ,
tags : [ ] ,
} ,
] ,
signingRegion : "cn-north-1" ,
} ,
"cn-northwest-1" : {
variants : [
{
hostname : "api.ecr.cn-northwest-1.amazonaws.com.cn" ,
tags : [ ] ,
} ,
] ,
signingRegion : "cn-northwest-1" ,
} ,
"eu-central-1" : {
variants : [
{
hostname : "api.ecr.eu-central-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-central-1" ,
} ,
"eu-north-1" : {
variants : [
{
hostname : "api.ecr.eu-north-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-north-1" ,
} ,
"eu-south-1" : {
variants : [
{
hostname : "api.ecr.eu-south-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-south-1" ,
} ,
"eu-west-1" : {
variants : [
{
hostname : "api.ecr.eu-west-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-west-1" ,
} ,
"eu-west-2" : {
variants : [
{
hostname : "api.ecr.eu-west-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-west-2" ,
} ,
"eu-west-3" : {
variants : [
{
hostname : "api.ecr.eu-west-3.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-west-3" ,
} ,
"me-south-1" : {
variants : [
{
hostname : "api.ecr.me-south-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "me-south-1" ,
} ,
"sa-east-1" : {
variants : [
{
hostname : "api.ecr.sa-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "sa-east-1" ,
} ,
"us-east-1" : {
variants : [
{
hostname : "api.ecr.us-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.us-east-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
signingRegion : "us-east-1" ,
} ,
"us-east-2" : {
variants : [
{
hostname : "api.ecr.us-east-2.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.us-east-2.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
signingRegion : "us-east-2" ,
} ,
"us-gov-east-1" : {
variants : [
{
hostname : "api.ecr.us-gov-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.us-gov-east-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
signingRegion : "us-gov-east-1" ,
} ,
"us-gov-west-1" : {
variants : [
{
hostname : "api.ecr.us-gov-west-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.us-gov-west-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
signingRegion : "us-gov-west-1" ,
} ,
"us-iso-east-1" : {
variants : [
{
hostname : "api.ecr.us-iso-east-1.c2s.ic.gov" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-iso-east-1" ,
} ,
"us-iso-west-1" : {
variants : [
{
hostname : "api.ecr.us-iso-west-1.c2s.ic.gov" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-iso-west-1" ,
} ,
"us-isob-east-1" : {
variants : [
{
hostname : "api.ecr.us-isob-east-1.sc2s.sgov.gov" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-isob-east-1" ,
} ,
"us-west-1" : {
variants : [
{
hostname : "api.ecr.us-west-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.us-west-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
signingRegion : "us-west-1" ,
} ,
"us-west-2" : {
variants : [
{
hostname : "api.ecr.us-west-2.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.us-west-2.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
signingRegion : "us-west-2" ,
} ,
} ;
const partitionHash = {
aws : {
regions : [
"af-south-1" ,
"ap-east-1" ,
"ap-northeast-1" ,
"ap-northeast-2" ,
"ap-northeast-3" ,
"ap-south-1" ,
"ap-southeast-1" ,
"ap-southeast-2" ,
2021-12-30 19:35:40 +01:00
"ap-southeast-3" ,
2021-12-20 10:00:03 +01:00
"ca-central-1" ,
"dkr-us-east-1" ,
"dkr-us-east-2" ,
"dkr-us-west-1" ,
"dkr-us-west-2" ,
"eu-central-1" ,
"eu-north-1" ,
"eu-south-1" ,
"eu-west-1" ,
"eu-west-2" ,
"eu-west-3" ,
"fips-dkr-us-east-1" ,
"fips-dkr-us-east-2" ,
"fips-dkr-us-west-1" ,
"fips-dkr-us-west-2" ,
"fips-us-east-1" ,
"fips-us-east-2" ,
"fips-us-west-1" ,
"fips-us-west-2" ,
"me-south-1" ,
"sa-east-1" ,
"us-east-1" ,
"us-east-2" ,
"us-west-1" ,
"us-west-2" ,
] ,
regionRegex : "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "api.ecr-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "api.ecr.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-cn" : {
regions : [ "cn-north-1" , "cn-northwest-1" ] ,
regionRegex : "^cn\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr.{region}.amazonaws.com.cn" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-fips.{region}.amazonaws.com.cn" ,
tags : [ "fips" ] ,
} ,
{
hostname : "api.ecr-fips.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "api.ecr.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-iso" : {
regions : [ "us-iso-east-1" , "us-iso-west-1" ] ,
regionRegex : "^us\\-iso\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr.{region}.c2s.ic.gov" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-fips.{region}.c2s.ic.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-iso-b" : {
regions : [ "us-isob-east-1" ] ,
regionRegex : "^us\\-isob\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr.{region}.sc2s.sgov.gov" ,
tags : [ ] ,
} ,
{
hostname : "api.ecr-fips.{region}.sc2s.sgov.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-us-gov" : {
regions : [
"dkr-us-gov-east-1" ,
"dkr-us-gov-west-1" ,
"fips-dkr-us-gov-east-1" ,
"fips-dkr-us-gov-west-1" ,
"fips-us-gov-east-1" ,
"fips-us-gov-west-1" ,
"us-gov-east-1" ,
"us-gov-west-1" ,
] ,
regionRegex : "^us\\-gov\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "api.ecr.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "ecr-fips.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "api.ecr-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "api.ecr.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
} ;
const defaultRegionInfoProvider = async ( region , options ) => config _resolver _1 . getRegionInfo ( region , {
... options ,
signingService : "ecr" ,
regionHash ,
partitionHash ,
} ) ;
exports . defaultRegionInfoProvider = defaultRegionInfoProvider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8923 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9167 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3391 ) , exports ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7407 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4692 ) , exports ) ;
2021-12-20 10:00:03 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5356 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8406 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4692 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9088 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9088 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . TooManyTagsException = exports . RepositoryAlreadyExistsException = exports . InvalidTagParameterException = exports . CreateRepositoryResponse = exports . Repository = exports . CreateRepositoryRequest = exports . Tag = exports . ImageTagMutability = exports . ImageScanningConfiguration = exports . EncryptionConfiguration = exports . EncryptionType = exports . UnsupportedUpstreamRegistryException = exports . PullThroughCacheRuleAlreadyExistsException = exports . LimitExceededException = exports . CreatePullThroughCacheRuleResponse = exports . CreatePullThroughCacheRuleRequest = exports . UploadNotFoundException = exports . LayerPartTooSmallException = exports . LayerAlreadyExistsException = exports . KmsException = exports . InvalidLayerException = exports . EmptyUploadException = exports . CompleteLayerUploadResponse = exports . CompleteLayerUploadRequest = exports . ValidationException = exports . BatchGetRepositoryScanningConfigurationResponse = exports . RepositoryScanningConfiguration = exports . ScanFrequency = exports . ScanningRepositoryFilter = exports . ScanningRepositoryFilterType = exports . RepositoryScanningConfigurationFailure = exports . ScanningConfigurationFailureCode = exports . BatchGetRepositoryScanningConfigurationRequest = exports . BatchGetImageResponse = exports . Image = exports . BatchGetImageRequest = exports . BatchDeleteImageResponse = exports . ImageFailure = exports . ImageFailureCode = exports . BatchDeleteImageRequest = exports . ImageIdentifier = exports . ServerException = exports . RepositoryNotFoundException = exports . InvalidParameterException = exports . BatchCheckLayerAvailabilityResponse = exports . Layer = exports . LayerAvailability = exports . LayerFailure = exports . LayerFailureCode = exports . BatchCheckLayerAvailabilityRequest = void 0 ;
exports . DescribePullThroughCacheRulesResponse = exports . PullThroughCacheRule = exports . DescribePullThroughCacheRulesRequest = exports . ScanNotFoundException = exports . DescribeImageScanFindingsResponse = exports . ImageScanFindings = exports . ImageScanFinding = exports . Attribute = exports . EnhancedImageScanFinding = exports . ScoreDetails = exports . CvssScoreDetails = exports . CvssScoreAdjustment = exports . Resource = exports . ResourceDetails = exports . AwsEcrContainerImageDetails = exports . Remediation = exports . Recommendation = exports . PackageVulnerabilityDetails = exports . VulnerablePackage = exports . CvssScore = exports . DescribeImageScanFindingsRequest = exports . DescribeImagesResponse = exports . ImageDetail = exports . ImageScanStatus = exports . ScanStatus = exports . ImageScanFindingsSummary = exports . FindingSeverity = exports . DescribeImagesRequest = exports . DescribeImagesFilter = exports . TagStatus = exports . ImageNotFoundException = exports . DescribeImageReplicationStatusResponse = exports . ImageReplicationStatus = exports . ReplicationStatus = exports . DescribeImageReplicationStatusRequest = exports . RepositoryPolicyNotFoundException = exports . DeleteRepositoryPolicyResponse = exports . DeleteRepositoryPolicyRequest = exports . RepositoryNotEmptyException = exports . DeleteRepositoryResponse = exports . DeleteRepositoryRequest = exports . RegistryPolicyNotFoundException = exports . DeleteRegistryPolicyResponse = exports . DeleteRegistryPolicyRequest = exports . PullThroughCacheRuleNotFoundException = exports . DeletePullThroughCacheRuleResponse = exports . DeletePullThroughCacheRuleRequest = exports . LifecyclePolicyNotFoundException = exports . DeleteLifecyclePolicyResponse = exports . DeleteLifecyclePolicyRequest = void 0 ;
exports . PutImageScanningConfigurationRequest = exports . ReferencedImagesNotFoundException = exports . PutImageResponse = exports . PutImageRequest = exports . ImageTagAlreadyExistsException = exports . ImageDigestDoesNotMatchException = exports . ImageAlreadyExistsException = exports . ListTagsForResourceResponse = exports . ListTagsForResourceRequest = exports . ListImagesResponse = exports . ListImagesRequest = exports . ListImagesFilter = exports . InitiateLayerUploadResponse = exports . InitiateLayerUploadRequest = exports . GetRepositoryPolicyResponse = exports . GetRepositoryPolicyRequest = exports . GetRegistryScanningConfigurationResponse = exports . RegistryScanningConfiguration = exports . ScanType = exports . RegistryScanningRule = exports . GetRegistryScanningConfigurationRequest = exports . GetRegistryPolicyResponse = exports . GetRegistryPolicyRequest = exports . LifecyclePolicyPreviewNotFoundException = exports . GetLifecyclePolicyPreviewResponse = exports . LifecyclePolicyPreviewSummary = exports . LifecyclePolicyPreviewStatus = exports . LifecyclePolicyPreviewResult = exports . LifecyclePolicyRuleAction = exports . ImageActionType = exports . GetLifecyclePolicyPreviewRequest = exports . LifecyclePolicyPreviewFilter = exports . GetLifecyclePolicyResponse = exports . GetLifecyclePolicyRequest = exports . LayersNotFoundException = exports . LayerInaccessibleException = exports . GetDownloadUrlForLayerResponse = exports . GetDownloadUrlForLayerRequest = exports . GetAuthorizationTokenResponse = exports . AuthorizationData = exports . GetAuthorizationTokenRequest = exports . DescribeRepositoriesResponse = exports . DescribeRepositoriesRequest = exports . DescribeRegistryResponse = exports . ReplicationConfiguration = exports . ReplicationRule = exports . RepositoryFilter = exports . RepositoryFilterType = exports . ReplicationDestination = exports . DescribeRegistryRequest = void 0 ;
exports . UploadLayerPartResponse = exports . UploadLayerPartRequest = exports . InvalidLayerPartException = exports . UntagResourceResponse = exports . UntagResourceRequest = exports . TagResourceResponse = exports . TagResourceRequest = exports . StartLifecyclePolicyPreviewResponse = exports . StartLifecyclePolicyPreviewRequest = exports . LifecyclePolicyPreviewInProgressException = exports . UnsupportedImageTypeException = exports . StartImageScanResponse = exports . StartImageScanRequest = exports . SetRepositoryPolicyResponse = exports . SetRepositoryPolicyRequest = exports . PutReplicationConfigurationResponse = exports . PutReplicationConfigurationRequest = exports . PutRegistryScanningConfigurationResponse = exports . PutRegistryScanningConfigurationRequest = exports . PutRegistryPolicyResponse = exports . PutRegistryPolicyRequest = exports . PutLifecyclePolicyResponse = exports . PutLifecyclePolicyRequest = exports . PutImageTagMutabilityResponse = exports . PutImageTagMutabilityRequest = exports . PutImageScanningConfigurationResponse = void 0 ;
var BatchCheckLayerAvailabilityRequest ;
( function ( BatchCheckLayerAvailabilityRequest ) {
BatchCheckLayerAvailabilityRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchCheckLayerAvailabilityRequest = exports . BatchCheckLayerAvailabilityRequest || ( exports . BatchCheckLayerAvailabilityRequest = { } ) ) ;
var LayerFailureCode ;
( function ( LayerFailureCode ) {
LayerFailureCode [ "InvalidLayerDigest" ] = "InvalidLayerDigest" ;
LayerFailureCode [ "MissingLayerDigest" ] = "MissingLayerDigest" ;
} ) ( LayerFailureCode = exports . LayerFailureCode || ( exports . LayerFailureCode = { } ) ) ;
var LayerFailure ;
( function ( LayerFailure ) {
LayerFailure . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayerFailure = exports . LayerFailure || ( exports . LayerFailure = { } ) ) ;
var LayerAvailability ;
( function ( LayerAvailability ) {
LayerAvailability [ "AVAILABLE" ] = "AVAILABLE" ;
LayerAvailability [ "UNAVAILABLE" ] = "UNAVAILABLE" ;
} ) ( LayerAvailability = exports . LayerAvailability || ( exports . LayerAvailability = { } ) ) ;
var Layer ;
( function ( Layer ) {
Layer . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Layer = exports . Layer || ( exports . Layer = { } ) ) ;
var BatchCheckLayerAvailabilityResponse ;
( function ( BatchCheckLayerAvailabilityResponse ) {
BatchCheckLayerAvailabilityResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchCheckLayerAvailabilityResponse = exports . BatchCheckLayerAvailabilityResponse || ( exports . BatchCheckLayerAvailabilityResponse = { } ) ) ;
var InvalidParameterException ;
( function ( InvalidParameterException ) {
InvalidParameterException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidParameterException = exports . InvalidParameterException || ( exports . InvalidParameterException = { } ) ) ;
var RepositoryNotFoundException ;
( function ( RepositoryNotFoundException ) {
RepositoryNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryNotFoundException = exports . RepositoryNotFoundException || ( exports . RepositoryNotFoundException = { } ) ) ;
var ServerException ;
( function ( ServerException ) {
ServerException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ServerException = exports . ServerException || ( exports . ServerException = { } ) ) ;
var ImageIdentifier ;
( function ( ImageIdentifier ) {
ImageIdentifier . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageIdentifier = exports . ImageIdentifier || ( exports . ImageIdentifier = { } ) ) ;
var BatchDeleteImageRequest ;
( function ( BatchDeleteImageRequest ) {
BatchDeleteImageRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchDeleteImageRequest = exports . BatchDeleteImageRequest || ( exports . BatchDeleteImageRequest = { } ) ) ;
var ImageFailureCode ;
( function ( ImageFailureCode ) {
ImageFailureCode [ "ImageNotFound" ] = "ImageNotFound" ;
ImageFailureCode [ "ImageReferencedByManifestList" ] = "ImageReferencedByManifestList" ;
ImageFailureCode [ "ImageTagDoesNotMatchDigest" ] = "ImageTagDoesNotMatchDigest" ;
ImageFailureCode [ "InvalidImageDigest" ] = "InvalidImageDigest" ;
ImageFailureCode [ "InvalidImageTag" ] = "InvalidImageTag" ;
ImageFailureCode [ "KmsError" ] = "KmsError" ;
ImageFailureCode [ "MissingDigestAndTag" ] = "MissingDigestAndTag" ;
} ) ( ImageFailureCode = exports . ImageFailureCode || ( exports . ImageFailureCode = { } ) ) ;
var ImageFailure ;
( function ( ImageFailure ) {
ImageFailure . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageFailure = exports . ImageFailure || ( exports . ImageFailure = { } ) ) ;
var BatchDeleteImageResponse ;
( function ( BatchDeleteImageResponse ) {
BatchDeleteImageResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchDeleteImageResponse = exports . BatchDeleteImageResponse || ( exports . BatchDeleteImageResponse = { } ) ) ;
var BatchGetImageRequest ;
( function ( BatchGetImageRequest ) {
BatchGetImageRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchGetImageRequest = exports . BatchGetImageRequest || ( exports . BatchGetImageRequest = { } ) ) ;
var Image ;
( function ( Image ) {
Image . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Image = exports . Image || ( exports . Image = { } ) ) ;
var BatchGetImageResponse ;
( function ( BatchGetImageResponse ) {
BatchGetImageResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchGetImageResponse = exports . BatchGetImageResponse || ( exports . BatchGetImageResponse = { } ) ) ;
var BatchGetRepositoryScanningConfigurationRequest ;
( function ( BatchGetRepositoryScanningConfigurationRequest ) {
BatchGetRepositoryScanningConfigurationRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchGetRepositoryScanningConfigurationRequest = exports . BatchGetRepositoryScanningConfigurationRequest || ( exports . BatchGetRepositoryScanningConfigurationRequest = { } ) ) ;
var ScanningConfigurationFailureCode ;
( function ( ScanningConfigurationFailureCode ) {
ScanningConfigurationFailureCode [ "REPOSITORY_NOT_FOUND" ] = "REPOSITORY_NOT_FOUND" ;
} ) ( ScanningConfigurationFailureCode = exports . ScanningConfigurationFailureCode || ( exports . ScanningConfigurationFailureCode = { } ) ) ;
var RepositoryScanningConfigurationFailure ;
( function ( RepositoryScanningConfigurationFailure ) {
RepositoryScanningConfigurationFailure . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryScanningConfigurationFailure = exports . RepositoryScanningConfigurationFailure || ( exports . RepositoryScanningConfigurationFailure = { } ) ) ;
var ScanningRepositoryFilterType ;
( function ( ScanningRepositoryFilterType ) {
ScanningRepositoryFilterType [ "WILDCARD" ] = "WILDCARD" ;
} ) ( ScanningRepositoryFilterType = exports . ScanningRepositoryFilterType || ( exports . ScanningRepositoryFilterType = { } ) ) ;
var ScanningRepositoryFilter ;
( function ( ScanningRepositoryFilter ) {
ScanningRepositoryFilter . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ScanningRepositoryFilter = exports . ScanningRepositoryFilter || ( exports . ScanningRepositoryFilter = { } ) ) ;
var ScanFrequency ;
( function ( ScanFrequency ) {
ScanFrequency [ "CONTINUOUS_SCAN" ] = "CONTINUOUS_SCAN" ;
ScanFrequency [ "MANUAL" ] = "MANUAL" ;
ScanFrequency [ "SCAN_ON_PUSH" ] = "SCAN_ON_PUSH" ;
} ) ( ScanFrequency = exports . ScanFrequency || ( exports . ScanFrequency = { } ) ) ;
var RepositoryScanningConfiguration ;
( function ( RepositoryScanningConfiguration ) {
RepositoryScanningConfiguration . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryScanningConfiguration = exports . RepositoryScanningConfiguration || ( exports . RepositoryScanningConfiguration = { } ) ) ;
var BatchGetRepositoryScanningConfigurationResponse ;
( function ( BatchGetRepositoryScanningConfigurationResponse ) {
BatchGetRepositoryScanningConfigurationResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( BatchGetRepositoryScanningConfigurationResponse = exports . BatchGetRepositoryScanningConfigurationResponse || ( exports . BatchGetRepositoryScanningConfigurationResponse = { } ) ) ;
var ValidationException ;
( function ( ValidationException ) {
ValidationException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ValidationException = exports . ValidationException || ( exports . ValidationException = { } ) ) ;
var CompleteLayerUploadRequest ;
( function ( CompleteLayerUploadRequest ) {
CompleteLayerUploadRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CompleteLayerUploadRequest = exports . CompleteLayerUploadRequest || ( exports . CompleteLayerUploadRequest = { } ) ) ;
var CompleteLayerUploadResponse ;
( function ( CompleteLayerUploadResponse ) {
CompleteLayerUploadResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CompleteLayerUploadResponse = exports . CompleteLayerUploadResponse || ( exports . CompleteLayerUploadResponse = { } ) ) ;
var EmptyUploadException ;
( function ( EmptyUploadException ) {
EmptyUploadException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( EmptyUploadException = exports . EmptyUploadException || ( exports . EmptyUploadException = { } ) ) ;
var InvalidLayerException ;
( function ( InvalidLayerException ) {
InvalidLayerException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidLayerException = exports . InvalidLayerException || ( exports . InvalidLayerException = { } ) ) ;
var KmsException ;
( function ( KmsException ) {
KmsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( KmsException = exports . KmsException || ( exports . KmsException = { } ) ) ;
var LayerAlreadyExistsException ;
( function ( LayerAlreadyExistsException ) {
LayerAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayerAlreadyExistsException = exports . LayerAlreadyExistsException || ( exports . LayerAlreadyExistsException = { } ) ) ;
var LayerPartTooSmallException ;
( function ( LayerPartTooSmallException ) {
LayerPartTooSmallException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayerPartTooSmallException = exports . LayerPartTooSmallException || ( exports . LayerPartTooSmallException = { } ) ) ;
var UploadNotFoundException ;
( function ( UploadNotFoundException ) {
UploadNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UploadNotFoundException = exports . UploadNotFoundException || ( exports . UploadNotFoundException = { } ) ) ;
var CreatePullThroughCacheRuleRequest ;
( function ( CreatePullThroughCacheRuleRequest ) {
CreatePullThroughCacheRuleRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CreatePullThroughCacheRuleRequest = exports . CreatePullThroughCacheRuleRequest || ( exports . CreatePullThroughCacheRuleRequest = { } ) ) ;
var CreatePullThroughCacheRuleResponse ;
( function ( CreatePullThroughCacheRuleResponse ) {
CreatePullThroughCacheRuleResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CreatePullThroughCacheRuleResponse = exports . CreatePullThroughCacheRuleResponse || ( exports . CreatePullThroughCacheRuleResponse = { } ) ) ;
var LimitExceededException ;
( function ( LimitExceededException ) {
LimitExceededException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LimitExceededException = exports . LimitExceededException || ( exports . LimitExceededException = { } ) ) ;
var PullThroughCacheRuleAlreadyExistsException ;
( function ( PullThroughCacheRuleAlreadyExistsException ) {
PullThroughCacheRuleAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PullThroughCacheRuleAlreadyExistsException = exports . PullThroughCacheRuleAlreadyExistsException || ( exports . PullThroughCacheRuleAlreadyExistsException = { } ) ) ;
var UnsupportedUpstreamRegistryException ;
( function ( UnsupportedUpstreamRegistryException ) {
UnsupportedUpstreamRegistryException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UnsupportedUpstreamRegistryException = exports . UnsupportedUpstreamRegistryException || ( exports . UnsupportedUpstreamRegistryException = { } ) ) ;
var EncryptionType ;
( function ( EncryptionType ) {
EncryptionType [ "AES256" ] = "AES256" ;
EncryptionType [ "KMS" ] = "KMS" ;
} ) ( EncryptionType = exports . EncryptionType || ( exports . EncryptionType = { } ) ) ;
var EncryptionConfiguration ;
( function ( EncryptionConfiguration ) {
EncryptionConfiguration . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( EncryptionConfiguration = exports . EncryptionConfiguration || ( exports . EncryptionConfiguration = { } ) ) ;
var ImageScanningConfiguration ;
( function ( ImageScanningConfiguration ) {
ImageScanningConfiguration . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageScanningConfiguration = exports . ImageScanningConfiguration || ( exports . ImageScanningConfiguration = { } ) ) ;
var ImageTagMutability ;
( function ( ImageTagMutability ) {
ImageTagMutability [ "IMMUTABLE" ] = "IMMUTABLE" ;
ImageTagMutability [ "MUTABLE" ] = "MUTABLE" ;
} ) ( ImageTagMutability = exports . ImageTagMutability || ( exports . ImageTagMutability = { } ) ) ;
var Tag ;
( function ( Tag ) {
Tag . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Tag = exports . Tag || ( exports . Tag = { } ) ) ;
var CreateRepositoryRequest ;
( function ( CreateRepositoryRequest ) {
CreateRepositoryRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CreateRepositoryRequest = exports . CreateRepositoryRequest || ( exports . CreateRepositoryRequest = { } ) ) ;
var Repository ;
( function ( Repository ) {
Repository . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Repository = exports . Repository || ( exports . Repository = { } ) ) ;
var CreateRepositoryResponse ;
( function ( CreateRepositoryResponse ) {
CreateRepositoryResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CreateRepositoryResponse = exports . CreateRepositoryResponse || ( exports . CreateRepositoryResponse = { } ) ) ;
var InvalidTagParameterException ;
( function ( InvalidTagParameterException ) {
InvalidTagParameterException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidTagParameterException = exports . InvalidTagParameterException || ( exports . InvalidTagParameterException = { } ) ) ;
var RepositoryAlreadyExistsException ;
( function ( RepositoryAlreadyExistsException ) {
RepositoryAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryAlreadyExistsException = exports . RepositoryAlreadyExistsException || ( exports . RepositoryAlreadyExistsException = { } ) ) ;
var TooManyTagsException ;
( function ( TooManyTagsException ) {
TooManyTagsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( TooManyTagsException = exports . TooManyTagsException || ( exports . TooManyTagsException = { } ) ) ;
var DeleteLifecyclePolicyRequest ;
( function ( DeleteLifecyclePolicyRequest ) {
DeleteLifecyclePolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteLifecyclePolicyRequest = exports . DeleteLifecyclePolicyRequest || ( exports . DeleteLifecyclePolicyRequest = { } ) ) ;
var DeleteLifecyclePolicyResponse ;
( function ( DeleteLifecyclePolicyResponse ) {
DeleteLifecyclePolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteLifecyclePolicyResponse = exports . DeleteLifecyclePolicyResponse || ( exports . DeleteLifecyclePolicyResponse = { } ) ) ;
var LifecyclePolicyNotFoundException ;
( function ( LifecyclePolicyNotFoundException ) {
LifecyclePolicyNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LifecyclePolicyNotFoundException = exports . LifecyclePolicyNotFoundException || ( exports . LifecyclePolicyNotFoundException = { } ) ) ;
var DeletePullThroughCacheRuleRequest ;
( function ( DeletePullThroughCacheRuleRequest ) {
DeletePullThroughCacheRuleRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeletePullThroughCacheRuleRequest = exports . DeletePullThroughCacheRuleRequest || ( exports . DeletePullThroughCacheRuleRequest = { } ) ) ;
var DeletePullThroughCacheRuleResponse ;
( function ( DeletePullThroughCacheRuleResponse ) {
DeletePullThroughCacheRuleResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeletePullThroughCacheRuleResponse = exports . DeletePullThroughCacheRuleResponse || ( exports . DeletePullThroughCacheRuleResponse = { } ) ) ;
var PullThroughCacheRuleNotFoundException ;
( function ( PullThroughCacheRuleNotFoundException ) {
PullThroughCacheRuleNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PullThroughCacheRuleNotFoundException = exports . PullThroughCacheRuleNotFoundException || ( exports . PullThroughCacheRuleNotFoundException = { } ) ) ;
var DeleteRegistryPolicyRequest ;
( function ( DeleteRegistryPolicyRequest ) {
DeleteRegistryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRegistryPolicyRequest = exports . DeleteRegistryPolicyRequest || ( exports . DeleteRegistryPolicyRequest = { } ) ) ;
var DeleteRegistryPolicyResponse ;
( function ( DeleteRegistryPolicyResponse ) {
DeleteRegistryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRegistryPolicyResponse = exports . DeleteRegistryPolicyResponse || ( exports . DeleteRegistryPolicyResponse = { } ) ) ;
var RegistryPolicyNotFoundException ;
( function ( RegistryPolicyNotFoundException ) {
RegistryPolicyNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RegistryPolicyNotFoundException = exports . RegistryPolicyNotFoundException || ( exports . RegistryPolicyNotFoundException = { } ) ) ;
var DeleteRepositoryRequest ;
( function ( DeleteRepositoryRequest ) {
DeleteRepositoryRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryRequest = exports . DeleteRepositoryRequest || ( exports . DeleteRepositoryRequest = { } ) ) ;
var DeleteRepositoryResponse ;
( function ( DeleteRepositoryResponse ) {
DeleteRepositoryResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryResponse = exports . DeleteRepositoryResponse || ( exports . DeleteRepositoryResponse = { } ) ) ;
var RepositoryNotEmptyException ;
( function ( RepositoryNotEmptyException ) {
RepositoryNotEmptyException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryNotEmptyException = exports . RepositoryNotEmptyException || ( exports . RepositoryNotEmptyException = { } ) ) ;
var DeleteRepositoryPolicyRequest ;
( function ( DeleteRepositoryPolicyRequest ) {
DeleteRepositoryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryPolicyRequest = exports . DeleteRepositoryPolicyRequest || ( exports . DeleteRepositoryPolicyRequest = { } ) ) ;
var DeleteRepositoryPolicyResponse ;
( function ( DeleteRepositoryPolicyResponse ) {
DeleteRepositoryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DeleteRepositoryPolicyResponse = exports . DeleteRepositoryPolicyResponse || ( exports . DeleteRepositoryPolicyResponse = { } ) ) ;
var RepositoryPolicyNotFoundException ;
( function ( RepositoryPolicyNotFoundException ) {
RepositoryPolicyNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryPolicyNotFoundException = exports . RepositoryPolicyNotFoundException || ( exports . RepositoryPolicyNotFoundException = { } ) ) ;
var DescribeImageReplicationStatusRequest ;
( function ( DescribeImageReplicationStatusRequest ) {
DescribeImageReplicationStatusRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImageReplicationStatusRequest = exports . DescribeImageReplicationStatusRequest || ( exports . DescribeImageReplicationStatusRequest = { } ) ) ;
var ReplicationStatus ;
( function ( ReplicationStatus ) {
ReplicationStatus [ "COMPLETE" ] = "COMPLETE" ;
ReplicationStatus [ "FAILED" ] = "FAILED" ;
ReplicationStatus [ "IN_PROGRESS" ] = "IN_PROGRESS" ;
} ) ( ReplicationStatus = exports . ReplicationStatus || ( exports . ReplicationStatus = { } ) ) ;
var ImageReplicationStatus ;
( function ( ImageReplicationStatus ) {
ImageReplicationStatus . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageReplicationStatus = exports . ImageReplicationStatus || ( exports . ImageReplicationStatus = { } ) ) ;
var DescribeImageReplicationStatusResponse ;
( function ( DescribeImageReplicationStatusResponse ) {
DescribeImageReplicationStatusResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImageReplicationStatusResponse = exports . DescribeImageReplicationStatusResponse || ( exports . DescribeImageReplicationStatusResponse = { } ) ) ;
var ImageNotFoundException ;
( function ( ImageNotFoundException ) {
ImageNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageNotFoundException = exports . ImageNotFoundException || ( exports . ImageNotFoundException = { } ) ) ;
var TagStatus ;
( function ( TagStatus ) {
TagStatus [ "ANY" ] = "ANY" ;
TagStatus [ "TAGGED" ] = "TAGGED" ;
TagStatus [ "UNTAGGED" ] = "UNTAGGED" ;
} ) ( TagStatus = exports . TagStatus || ( exports . TagStatus = { } ) ) ;
var DescribeImagesFilter ;
( function ( DescribeImagesFilter ) {
DescribeImagesFilter . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImagesFilter = exports . DescribeImagesFilter || ( exports . DescribeImagesFilter = { } ) ) ;
var DescribeImagesRequest ;
( function ( DescribeImagesRequest ) {
DescribeImagesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImagesRequest = exports . DescribeImagesRequest || ( exports . DescribeImagesRequest = { } ) ) ;
var FindingSeverity ;
( function ( FindingSeverity ) {
FindingSeverity [ "CRITICAL" ] = "CRITICAL" ;
FindingSeverity [ "HIGH" ] = "HIGH" ;
FindingSeverity [ "INFORMATIONAL" ] = "INFORMATIONAL" ;
FindingSeverity [ "LOW" ] = "LOW" ;
FindingSeverity [ "MEDIUM" ] = "MEDIUM" ;
FindingSeverity [ "UNDEFINED" ] = "UNDEFINED" ;
} ) ( FindingSeverity = exports . FindingSeverity || ( exports . FindingSeverity = { } ) ) ;
var ImageScanFindingsSummary ;
( function ( ImageScanFindingsSummary ) {
ImageScanFindingsSummary . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageScanFindingsSummary = exports . ImageScanFindingsSummary || ( exports . ImageScanFindingsSummary = { } ) ) ;
var ScanStatus ;
( function ( ScanStatus ) {
ScanStatus [ "ACTIVE" ] = "ACTIVE" ;
ScanStatus [ "COMPLETE" ] = "COMPLETE" ;
ScanStatus [ "FAILED" ] = "FAILED" ;
ScanStatus [ "FINDINGS_UNAVAILABLE" ] = "FINDINGS_UNAVAILABLE" ;
ScanStatus [ "IN_PROGRESS" ] = "IN_PROGRESS" ;
ScanStatus [ "PENDING" ] = "PENDING" ;
ScanStatus [ "SCAN_ELIGIBILITY_EXPIRED" ] = "SCAN_ELIGIBILITY_EXPIRED" ;
ScanStatus [ "UNSUPPORTED_IMAGE" ] = "UNSUPPORTED_IMAGE" ;
} ) ( ScanStatus = exports . ScanStatus || ( exports . ScanStatus = { } ) ) ;
var ImageScanStatus ;
( function ( ImageScanStatus ) {
ImageScanStatus . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageScanStatus = exports . ImageScanStatus || ( exports . ImageScanStatus = { } ) ) ;
var ImageDetail ;
( function ( ImageDetail ) {
ImageDetail . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageDetail = exports . ImageDetail || ( exports . ImageDetail = { } ) ) ;
var DescribeImagesResponse ;
( function ( DescribeImagesResponse ) {
DescribeImagesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImagesResponse = exports . DescribeImagesResponse || ( exports . DescribeImagesResponse = { } ) ) ;
var DescribeImageScanFindingsRequest ;
( function ( DescribeImageScanFindingsRequest ) {
DescribeImageScanFindingsRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImageScanFindingsRequest = exports . DescribeImageScanFindingsRequest || ( exports . DescribeImageScanFindingsRequest = { } ) ) ;
var CvssScore ;
( function ( CvssScore ) {
CvssScore . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CvssScore = exports . CvssScore || ( exports . CvssScore = { } ) ) ;
var VulnerablePackage ;
( function ( VulnerablePackage ) {
VulnerablePackage . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( VulnerablePackage = exports . VulnerablePackage || ( exports . VulnerablePackage = { } ) ) ;
var PackageVulnerabilityDetails ;
( function ( PackageVulnerabilityDetails ) {
PackageVulnerabilityDetails . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PackageVulnerabilityDetails = exports . PackageVulnerabilityDetails || ( exports . PackageVulnerabilityDetails = { } ) ) ;
var Recommendation ;
( function ( Recommendation ) {
Recommendation . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Recommendation = exports . Recommendation || ( exports . Recommendation = { } ) ) ;
var Remediation ;
( function ( Remediation ) {
Remediation . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Remediation = exports . Remediation || ( exports . Remediation = { } ) ) ;
var AwsEcrContainerImageDetails ;
( function ( AwsEcrContainerImageDetails ) {
AwsEcrContainerImageDetails . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AwsEcrContainerImageDetails = exports . AwsEcrContainerImageDetails || ( exports . AwsEcrContainerImageDetails = { } ) ) ;
var ResourceDetails ;
( function ( ResourceDetails ) {
ResourceDetails . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ResourceDetails = exports . ResourceDetails || ( exports . ResourceDetails = { } ) ) ;
var Resource ;
( function ( Resource ) {
Resource . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Resource = exports . Resource || ( exports . Resource = { } ) ) ;
var CvssScoreAdjustment ;
( function ( CvssScoreAdjustment ) {
CvssScoreAdjustment . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CvssScoreAdjustment = exports . CvssScoreAdjustment || ( exports . CvssScoreAdjustment = { } ) ) ;
var CvssScoreDetails ;
( function ( CvssScoreDetails ) {
CvssScoreDetails . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( CvssScoreDetails = exports . CvssScoreDetails || ( exports . CvssScoreDetails = { } ) ) ;
var ScoreDetails ;
( function ( ScoreDetails ) {
ScoreDetails . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ScoreDetails = exports . ScoreDetails || ( exports . ScoreDetails = { } ) ) ;
var EnhancedImageScanFinding ;
( function ( EnhancedImageScanFinding ) {
EnhancedImageScanFinding . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( EnhancedImageScanFinding = exports . EnhancedImageScanFinding || ( exports . EnhancedImageScanFinding = { } ) ) ;
var Attribute ;
( function ( Attribute ) {
Attribute . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Attribute = exports . Attribute || ( exports . Attribute = { } ) ) ;
var ImageScanFinding ;
( function ( ImageScanFinding ) {
ImageScanFinding . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageScanFinding = exports . ImageScanFinding || ( exports . ImageScanFinding = { } ) ) ;
var ImageScanFindings ;
( function ( ImageScanFindings ) {
ImageScanFindings . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageScanFindings = exports . ImageScanFindings || ( exports . ImageScanFindings = { } ) ) ;
var DescribeImageScanFindingsResponse ;
( function ( DescribeImageScanFindingsResponse ) {
DescribeImageScanFindingsResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeImageScanFindingsResponse = exports . DescribeImageScanFindingsResponse || ( exports . DescribeImageScanFindingsResponse = { } ) ) ;
var ScanNotFoundException ;
( function ( ScanNotFoundException ) {
ScanNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ScanNotFoundException = exports . ScanNotFoundException || ( exports . ScanNotFoundException = { } ) ) ;
var DescribePullThroughCacheRulesRequest ;
( function ( DescribePullThroughCacheRulesRequest ) {
DescribePullThroughCacheRulesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribePullThroughCacheRulesRequest = exports . DescribePullThroughCacheRulesRequest || ( exports . DescribePullThroughCacheRulesRequest = { } ) ) ;
var PullThroughCacheRule ;
( function ( PullThroughCacheRule ) {
PullThroughCacheRule . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PullThroughCacheRule = exports . PullThroughCacheRule || ( exports . PullThroughCacheRule = { } ) ) ;
var DescribePullThroughCacheRulesResponse ;
( function ( DescribePullThroughCacheRulesResponse ) {
DescribePullThroughCacheRulesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribePullThroughCacheRulesResponse = exports . DescribePullThroughCacheRulesResponse || ( exports . DescribePullThroughCacheRulesResponse = { } ) ) ;
var DescribeRegistryRequest ;
( function ( DescribeRegistryRequest ) {
DescribeRegistryRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRegistryRequest = exports . DescribeRegistryRequest || ( exports . DescribeRegistryRequest = { } ) ) ;
var ReplicationDestination ;
( function ( ReplicationDestination ) {
ReplicationDestination . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ReplicationDestination = exports . ReplicationDestination || ( exports . ReplicationDestination = { } ) ) ;
var RepositoryFilterType ;
( function ( RepositoryFilterType ) {
RepositoryFilterType [ "PREFIX_MATCH" ] = "PREFIX_MATCH" ;
} ) ( RepositoryFilterType = exports . RepositoryFilterType || ( exports . RepositoryFilterType = { } ) ) ;
var RepositoryFilter ;
( function ( RepositoryFilter ) {
RepositoryFilter . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RepositoryFilter = exports . RepositoryFilter || ( exports . RepositoryFilter = { } ) ) ;
var ReplicationRule ;
( function ( ReplicationRule ) {
ReplicationRule . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ReplicationRule = exports . ReplicationRule || ( exports . ReplicationRule = { } ) ) ;
var ReplicationConfiguration ;
( function ( ReplicationConfiguration ) {
ReplicationConfiguration . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ReplicationConfiguration = exports . ReplicationConfiguration || ( exports . ReplicationConfiguration = { } ) ) ;
var DescribeRegistryResponse ;
( function ( DescribeRegistryResponse ) {
DescribeRegistryResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRegistryResponse = exports . DescribeRegistryResponse || ( exports . DescribeRegistryResponse = { } ) ) ;
var DescribeRepositoriesRequest ;
( function ( DescribeRepositoriesRequest ) {
DescribeRepositoriesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRepositoriesRequest = exports . DescribeRepositoriesRequest || ( exports . DescribeRepositoriesRequest = { } ) ) ;
var DescribeRepositoriesResponse ;
( function ( DescribeRepositoriesResponse ) {
DescribeRepositoriesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DescribeRepositoriesResponse = exports . DescribeRepositoriesResponse || ( exports . DescribeRepositoriesResponse = { } ) ) ;
var GetAuthorizationTokenRequest ;
( function ( GetAuthorizationTokenRequest ) {
GetAuthorizationTokenRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetAuthorizationTokenRequest = exports . GetAuthorizationTokenRequest || ( exports . GetAuthorizationTokenRequest = { } ) ) ;
var AuthorizationData ;
( function ( AuthorizationData ) {
AuthorizationData . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AuthorizationData = exports . AuthorizationData || ( exports . AuthorizationData = { } ) ) ;
var GetAuthorizationTokenResponse ;
( function ( GetAuthorizationTokenResponse ) {
GetAuthorizationTokenResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetAuthorizationTokenResponse = exports . GetAuthorizationTokenResponse || ( exports . GetAuthorizationTokenResponse = { } ) ) ;
var GetDownloadUrlForLayerRequest ;
( function ( GetDownloadUrlForLayerRequest ) {
GetDownloadUrlForLayerRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetDownloadUrlForLayerRequest = exports . GetDownloadUrlForLayerRequest || ( exports . GetDownloadUrlForLayerRequest = { } ) ) ;
var GetDownloadUrlForLayerResponse ;
( function ( GetDownloadUrlForLayerResponse ) {
GetDownloadUrlForLayerResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetDownloadUrlForLayerResponse = exports . GetDownloadUrlForLayerResponse || ( exports . GetDownloadUrlForLayerResponse = { } ) ) ;
var LayerInaccessibleException ;
( function ( LayerInaccessibleException ) {
LayerInaccessibleException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayerInaccessibleException = exports . LayerInaccessibleException || ( exports . LayerInaccessibleException = { } ) ) ;
var LayersNotFoundException ;
( function ( LayersNotFoundException ) {
LayersNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LayersNotFoundException = exports . LayersNotFoundException || ( exports . LayersNotFoundException = { } ) ) ;
var GetLifecyclePolicyRequest ;
( function ( GetLifecyclePolicyRequest ) {
GetLifecyclePolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetLifecyclePolicyRequest = exports . GetLifecyclePolicyRequest || ( exports . GetLifecyclePolicyRequest = { } ) ) ;
var GetLifecyclePolicyResponse ;
( function ( GetLifecyclePolicyResponse ) {
GetLifecyclePolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetLifecyclePolicyResponse = exports . GetLifecyclePolicyResponse || ( exports . GetLifecyclePolicyResponse = { } ) ) ;
var LifecyclePolicyPreviewFilter ;
( function ( LifecyclePolicyPreviewFilter ) {
LifecyclePolicyPreviewFilter . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LifecyclePolicyPreviewFilter = exports . LifecyclePolicyPreviewFilter || ( exports . LifecyclePolicyPreviewFilter = { } ) ) ;
var GetLifecyclePolicyPreviewRequest ;
( function ( GetLifecyclePolicyPreviewRequest ) {
GetLifecyclePolicyPreviewRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetLifecyclePolicyPreviewRequest = exports . GetLifecyclePolicyPreviewRequest || ( exports . GetLifecyclePolicyPreviewRequest = { } ) ) ;
var ImageActionType ;
( function ( ImageActionType ) {
ImageActionType [ "EXPIRE" ] = "EXPIRE" ;
} ) ( ImageActionType = exports . ImageActionType || ( exports . ImageActionType = { } ) ) ;
var LifecyclePolicyRuleAction ;
( function ( LifecyclePolicyRuleAction ) {
LifecyclePolicyRuleAction . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LifecyclePolicyRuleAction = exports . LifecyclePolicyRuleAction || ( exports . LifecyclePolicyRuleAction = { } ) ) ;
var LifecyclePolicyPreviewResult ;
( function ( LifecyclePolicyPreviewResult ) {
LifecyclePolicyPreviewResult . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LifecyclePolicyPreviewResult = exports . LifecyclePolicyPreviewResult || ( exports . LifecyclePolicyPreviewResult = { } ) ) ;
var LifecyclePolicyPreviewStatus ;
( function ( LifecyclePolicyPreviewStatus ) {
LifecyclePolicyPreviewStatus [ "COMPLETE" ] = "COMPLETE" ;
LifecyclePolicyPreviewStatus [ "EXPIRED" ] = "EXPIRED" ;
LifecyclePolicyPreviewStatus [ "FAILED" ] = "FAILED" ;
LifecyclePolicyPreviewStatus [ "IN_PROGRESS" ] = "IN_PROGRESS" ;
} ) ( LifecyclePolicyPreviewStatus = exports . LifecyclePolicyPreviewStatus || ( exports . LifecyclePolicyPreviewStatus = { } ) ) ;
var LifecyclePolicyPreviewSummary ;
( function ( LifecyclePolicyPreviewSummary ) {
LifecyclePolicyPreviewSummary . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LifecyclePolicyPreviewSummary = exports . LifecyclePolicyPreviewSummary || ( exports . LifecyclePolicyPreviewSummary = { } ) ) ;
var GetLifecyclePolicyPreviewResponse ;
( function ( GetLifecyclePolicyPreviewResponse ) {
GetLifecyclePolicyPreviewResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetLifecyclePolicyPreviewResponse = exports . GetLifecyclePolicyPreviewResponse || ( exports . GetLifecyclePolicyPreviewResponse = { } ) ) ;
var LifecyclePolicyPreviewNotFoundException ;
( function ( LifecyclePolicyPreviewNotFoundException ) {
LifecyclePolicyPreviewNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LifecyclePolicyPreviewNotFoundException = exports . LifecyclePolicyPreviewNotFoundException || ( exports . LifecyclePolicyPreviewNotFoundException = { } ) ) ;
var GetRegistryPolicyRequest ;
( function ( GetRegistryPolicyRequest ) {
GetRegistryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRegistryPolicyRequest = exports . GetRegistryPolicyRequest || ( exports . GetRegistryPolicyRequest = { } ) ) ;
var GetRegistryPolicyResponse ;
( function ( GetRegistryPolicyResponse ) {
GetRegistryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRegistryPolicyResponse = exports . GetRegistryPolicyResponse || ( exports . GetRegistryPolicyResponse = { } ) ) ;
var GetRegistryScanningConfigurationRequest ;
( function ( GetRegistryScanningConfigurationRequest ) {
GetRegistryScanningConfigurationRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRegistryScanningConfigurationRequest = exports . GetRegistryScanningConfigurationRequest || ( exports . GetRegistryScanningConfigurationRequest = { } ) ) ;
var RegistryScanningRule ;
( function ( RegistryScanningRule ) {
RegistryScanningRule . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RegistryScanningRule = exports . RegistryScanningRule || ( exports . RegistryScanningRule = { } ) ) ;
var ScanType ;
( function ( ScanType ) {
ScanType [ "BASIC" ] = "BASIC" ;
ScanType [ "ENHANCED" ] = "ENHANCED" ;
} ) ( ScanType = exports . ScanType || ( exports . ScanType = { } ) ) ;
var RegistryScanningConfiguration ;
( function ( RegistryScanningConfiguration ) {
RegistryScanningConfiguration . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RegistryScanningConfiguration = exports . RegistryScanningConfiguration || ( exports . RegistryScanningConfiguration = { } ) ) ;
var GetRegistryScanningConfigurationResponse ;
( function ( GetRegistryScanningConfigurationResponse ) {
GetRegistryScanningConfigurationResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRegistryScanningConfigurationResponse = exports . GetRegistryScanningConfigurationResponse || ( exports . GetRegistryScanningConfigurationResponse = { } ) ) ;
var GetRepositoryPolicyRequest ;
( function ( GetRepositoryPolicyRequest ) {
GetRepositoryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRepositoryPolicyRequest = exports . GetRepositoryPolicyRequest || ( exports . GetRepositoryPolicyRequest = { } ) ) ;
var GetRepositoryPolicyResponse ;
( function ( GetRepositoryPolicyResponse ) {
GetRepositoryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetRepositoryPolicyResponse = exports . GetRepositoryPolicyResponse || ( exports . GetRepositoryPolicyResponse = { } ) ) ;
var InitiateLayerUploadRequest ;
( function ( InitiateLayerUploadRequest ) {
InitiateLayerUploadRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InitiateLayerUploadRequest = exports . InitiateLayerUploadRequest || ( exports . InitiateLayerUploadRequest = { } ) ) ;
var InitiateLayerUploadResponse ;
( function ( InitiateLayerUploadResponse ) {
InitiateLayerUploadResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InitiateLayerUploadResponse = exports . InitiateLayerUploadResponse || ( exports . InitiateLayerUploadResponse = { } ) ) ;
var ListImagesFilter ;
( function ( ListImagesFilter ) {
ListImagesFilter . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListImagesFilter = exports . ListImagesFilter || ( exports . ListImagesFilter = { } ) ) ;
var ListImagesRequest ;
( function ( ListImagesRequest ) {
ListImagesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListImagesRequest = exports . ListImagesRequest || ( exports . ListImagesRequest = { } ) ) ;
var ListImagesResponse ;
( function ( ListImagesResponse ) {
ListImagesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListImagesResponse = exports . ListImagesResponse || ( exports . ListImagesResponse = { } ) ) ;
var ListTagsForResourceRequest ;
( function ( ListTagsForResourceRequest ) {
ListTagsForResourceRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListTagsForResourceRequest = exports . ListTagsForResourceRequest || ( exports . ListTagsForResourceRequest = { } ) ) ;
var ListTagsForResourceResponse ;
( function ( ListTagsForResourceResponse ) {
ListTagsForResourceResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListTagsForResourceResponse = exports . ListTagsForResourceResponse || ( exports . ListTagsForResourceResponse = { } ) ) ;
var ImageAlreadyExistsException ;
( function ( ImageAlreadyExistsException ) {
ImageAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageAlreadyExistsException = exports . ImageAlreadyExistsException || ( exports . ImageAlreadyExistsException = { } ) ) ;
var ImageDigestDoesNotMatchException ;
( function ( ImageDigestDoesNotMatchException ) {
ImageDigestDoesNotMatchException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageDigestDoesNotMatchException = exports . ImageDigestDoesNotMatchException || ( exports . ImageDigestDoesNotMatchException = { } ) ) ;
var ImageTagAlreadyExistsException ;
( function ( ImageTagAlreadyExistsException ) {
ImageTagAlreadyExistsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ImageTagAlreadyExistsException = exports . ImageTagAlreadyExistsException || ( exports . ImageTagAlreadyExistsException = { } ) ) ;
var PutImageRequest ;
( function ( PutImageRequest ) {
PutImageRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageRequest = exports . PutImageRequest || ( exports . PutImageRequest = { } ) ) ;
var PutImageResponse ;
( function ( PutImageResponse ) {
PutImageResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageResponse = exports . PutImageResponse || ( exports . PutImageResponse = { } ) ) ;
var ReferencedImagesNotFoundException ;
( function ( ReferencedImagesNotFoundException ) {
ReferencedImagesNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ReferencedImagesNotFoundException = exports . ReferencedImagesNotFoundException || ( exports . ReferencedImagesNotFoundException = { } ) ) ;
var PutImageScanningConfigurationRequest ;
( function ( PutImageScanningConfigurationRequest ) {
PutImageScanningConfigurationRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageScanningConfigurationRequest = exports . PutImageScanningConfigurationRequest || ( exports . PutImageScanningConfigurationRequest = { } ) ) ;
var PutImageScanningConfigurationResponse ;
( function ( PutImageScanningConfigurationResponse ) {
PutImageScanningConfigurationResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageScanningConfigurationResponse = exports . PutImageScanningConfigurationResponse || ( exports . PutImageScanningConfigurationResponse = { } ) ) ;
var PutImageTagMutabilityRequest ;
( function ( PutImageTagMutabilityRequest ) {
PutImageTagMutabilityRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageTagMutabilityRequest = exports . PutImageTagMutabilityRequest || ( exports . PutImageTagMutabilityRequest = { } ) ) ;
var PutImageTagMutabilityResponse ;
( function ( PutImageTagMutabilityResponse ) {
PutImageTagMutabilityResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutImageTagMutabilityResponse = exports . PutImageTagMutabilityResponse || ( exports . PutImageTagMutabilityResponse = { } ) ) ;
var PutLifecyclePolicyRequest ;
( function ( PutLifecyclePolicyRequest ) {
PutLifecyclePolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutLifecyclePolicyRequest = exports . PutLifecyclePolicyRequest || ( exports . PutLifecyclePolicyRequest = { } ) ) ;
var PutLifecyclePolicyResponse ;
( function ( PutLifecyclePolicyResponse ) {
PutLifecyclePolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutLifecyclePolicyResponse = exports . PutLifecyclePolicyResponse || ( exports . PutLifecyclePolicyResponse = { } ) ) ;
var PutRegistryPolicyRequest ;
( function ( PutRegistryPolicyRequest ) {
PutRegistryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRegistryPolicyRequest = exports . PutRegistryPolicyRequest || ( exports . PutRegistryPolicyRequest = { } ) ) ;
var PutRegistryPolicyResponse ;
( function ( PutRegistryPolicyResponse ) {
PutRegistryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRegistryPolicyResponse = exports . PutRegistryPolicyResponse || ( exports . PutRegistryPolicyResponse = { } ) ) ;
var PutRegistryScanningConfigurationRequest ;
( function ( PutRegistryScanningConfigurationRequest ) {
PutRegistryScanningConfigurationRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRegistryScanningConfigurationRequest = exports . PutRegistryScanningConfigurationRequest || ( exports . PutRegistryScanningConfigurationRequest = { } ) ) ;
var PutRegistryScanningConfigurationResponse ;
( function ( PutRegistryScanningConfigurationResponse ) {
PutRegistryScanningConfigurationResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutRegistryScanningConfigurationResponse = exports . PutRegistryScanningConfigurationResponse || ( exports . PutRegistryScanningConfigurationResponse = { } ) ) ;
var PutReplicationConfigurationRequest ;
( function ( PutReplicationConfigurationRequest ) {
PutReplicationConfigurationRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutReplicationConfigurationRequest = exports . PutReplicationConfigurationRequest || ( exports . PutReplicationConfigurationRequest = { } ) ) ;
var PutReplicationConfigurationResponse ;
( function ( PutReplicationConfigurationResponse ) {
PutReplicationConfigurationResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PutReplicationConfigurationResponse = exports . PutReplicationConfigurationResponse || ( exports . PutReplicationConfigurationResponse = { } ) ) ;
var SetRepositoryPolicyRequest ;
( function ( SetRepositoryPolicyRequest ) {
SetRepositoryPolicyRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( SetRepositoryPolicyRequest = exports . SetRepositoryPolicyRequest || ( exports . SetRepositoryPolicyRequest = { } ) ) ;
var SetRepositoryPolicyResponse ;
( function ( SetRepositoryPolicyResponse ) {
SetRepositoryPolicyResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( SetRepositoryPolicyResponse = exports . SetRepositoryPolicyResponse || ( exports . SetRepositoryPolicyResponse = { } ) ) ;
var StartImageScanRequest ;
( function ( StartImageScanRequest ) {
StartImageScanRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( StartImageScanRequest = exports . StartImageScanRequest || ( exports . StartImageScanRequest = { } ) ) ;
var StartImageScanResponse ;
( function ( StartImageScanResponse ) {
StartImageScanResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( StartImageScanResponse = exports . StartImageScanResponse || ( exports . StartImageScanResponse = { } ) ) ;
var UnsupportedImageTypeException ;
( function ( UnsupportedImageTypeException ) {
UnsupportedImageTypeException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UnsupportedImageTypeException = exports . UnsupportedImageTypeException || ( exports . UnsupportedImageTypeException = { } ) ) ;
var LifecyclePolicyPreviewInProgressException ;
( function ( LifecyclePolicyPreviewInProgressException ) {
LifecyclePolicyPreviewInProgressException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( LifecyclePolicyPreviewInProgressException = exports . LifecyclePolicyPreviewInProgressException || ( exports . LifecyclePolicyPreviewInProgressException = { } ) ) ;
var StartLifecyclePolicyPreviewRequest ;
( function ( StartLifecyclePolicyPreviewRequest ) {
StartLifecyclePolicyPreviewRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( StartLifecyclePolicyPreviewRequest = exports . StartLifecyclePolicyPreviewRequest || ( exports . StartLifecyclePolicyPreviewRequest = { } ) ) ;
var StartLifecyclePolicyPreviewResponse ;
( function ( StartLifecyclePolicyPreviewResponse ) {
StartLifecyclePolicyPreviewResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( StartLifecyclePolicyPreviewResponse = exports . StartLifecyclePolicyPreviewResponse || ( exports . StartLifecyclePolicyPreviewResponse = { } ) ) ;
var TagResourceRequest ;
( function ( TagResourceRequest ) {
TagResourceRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( TagResourceRequest = exports . TagResourceRequest || ( exports . TagResourceRequest = { } ) ) ;
var TagResourceResponse ;
( function ( TagResourceResponse ) {
TagResourceResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( TagResourceResponse = exports . TagResourceResponse || ( exports . TagResourceResponse = { } ) ) ;
var UntagResourceRequest ;
( function ( UntagResourceRequest ) {
UntagResourceRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UntagResourceRequest = exports . UntagResourceRequest || ( exports . UntagResourceRequest = { } ) ) ;
var UntagResourceResponse ;
( function ( UntagResourceResponse ) {
UntagResourceResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UntagResourceResponse = exports . UntagResourceResponse || ( exports . UntagResourceResponse = { } ) ) ;
var InvalidLayerPartException ;
( function ( InvalidLayerPartException ) {
InvalidLayerPartException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidLayerPartException = exports . InvalidLayerPartException || ( exports . InvalidLayerPartException = { } ) ) ;
var UploadLayerPartRequest ;
( function ( UploadLayerPartRequest ) {
UploadLayerPartRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UploadLayerPartRequest = exports . UploadLayerPartRequest || ( exports . UploadLayerPartRequest = { } ) ) ;
var UploadLayerPartResponse ;
( function ( UploadLayerPartResponse ) {
UploadLayerPartResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UploadLayerPartResponse = exports . UploadLayerPartResponse || ( exports . UploadLayerPartResponse = { } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 862 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribeImageScanFindings = void 0 ;
const DescribeImageScanFindingsCommand _1 = _ _nccwpck _require _ _ ( 2987 ) ;
const ECR _1 = _ _nccwpck _require _ _ ( 9167 ) ;
const ECRClient _1 = _ _nccwpck _require _ _ ( 3391 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribeImageScanFindingsCommand _1 . DescribeImageScanFindingsCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describeImageScanFindings ( input , ... args ) ;
} ;
async function * paginateDescribeImageScanFindings ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECR _1 . ECR ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRClient _1 . ECRClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECR | ECRClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribeImageScanFindings = paginateDescribeImageScanFindings ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1351 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribeImages = void 0 ;
const DescribeImagesCommand _1 = _ _nccwpck _require _ _ ( 5353 ) ;
const ECR _1 = _ _nccwpck _require _ _ ( 9167 ) ;
const ECRClient _1 = _ _nccwpck _require _ _ ( 3391 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribeImagesCommand _1 . DescribeImagesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describeImages ( input , ... args ) ;
} ;
async function * paginateDescribeImages ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECR _1 . ECR ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRClient _1 . ECRClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECR | ECRClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribeImages = paginateDescribeImages ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9589 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribePullThroughCacheRules = void 0 ;
const DescribePullThroughCacheRulesCommand _1 = _ _nccwpck _require _ _ ( 1484 ) ;
const ECR _1 = _ _nccwpck _require _ _ ( 9167 ) ;
const ECRClient _1 = _ _nccwpck _require _ _ ( 3391 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribePullThroughCacheRulesCommand _1 . DescribePullThroughCacheRulesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describePullThroughCacheRules ( input , ... args ) ;
} ;
async function * paginateDescribePullThroughCacheRules ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECR _1 . ECR ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRClient _1 . ECRClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECR | ECRClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribePullThroughCacheRules = paginateDescribePullThroughCacheRules ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6404 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateDescribeRepositories = void 0 ;
const DescribeRepositoriesCommand _1 = _ _nccwpck _require _ _ ( 1200 ) ;
const ECR _1 = _ _nccwpck _require _ _ ( 9167 ) ;
const ECRClient _1 = _ _nccwpck _require _ _ ( 3391 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new DescribeRepositoriesCommand _1 . DescribeRepositoriesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . describeRepositories ( input , ... args ) ;
} ;
async function * paginateDescribeRepositories ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECR _1 . ECR ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRClient _1 . ECRClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECR | ECRClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateDescribeRepositories = paginateDescribeRepositories ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 987 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateGetLifecyclePolicyPreview = void 0 ;
const GetLifecyclePolicyPreviewCommand _1 = _ _nccwpck _require _ _ ( 7006 ) ;
const ECR _1 = _ _nccwpck _require _ _ ( 9167 ) ;
const ECRClient _1 = _ _nccwpck _require _ _ ( 3391 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new GetLifecyclePolicyPreviewCommand _1 . GetLifecyclePolicyPreviewCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . getLifecyclePolicyPreview ( input , ... args ) ;
} ;
async function * paginateGetLifecyclePolicyPreview ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECR _1 . ECR ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRClient _1 . ECRClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECR | ECRClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateGetLifecyclePolicyPreview = paginateGetLifecyclePolicyPreview ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9010 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1066 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateListImages = void 0 ;
const ListImagesCommand _1 = _ _nccwpck _require _ _ ( 3854 ) ;
const ECR _1 = _ _nccwpck _require _ _ ( 9167 ) ;
const ECRClient _1 = _ _nccwpck _require _ _ ( 3391 ) ;
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new ListImagesCommand _1 . ListImagesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . listImages ( input , ... args ) ;
} ;
async function * paginateListImages ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof ECR _1 . ECR ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof ECRClient _1 . ECRClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected ECR | ECRClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateListImages = paginateListImages ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5356 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 862 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1351 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9589 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6404 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 987 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9010 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1066 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6704 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . deserializeAws _json1 _1DeletePullThroughCacheRuleCommand = exports . deserializeAws _json1 _1DeleteLifecyclePolicyCommand = exports . deserializeAws _json1 _1CreateRepositoryCommand = exports . deserializeAws _json1 _1CreatePullThroughCacheRuleCommand = exports . deserializeAws _json1 _1CompleteLayerUploadCommand = exports . deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand = exports . deserializeAws _json1 _1BatchGetImageCommand = exports . deserializeAws _json1 _1BatchDeleteImageCommand = exports . deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand = exports . serializeAws _json1 _1UploadLayerPartCommand = exports . serializeAws _json1 _1UntagResourceCommand = exports . serializeAws _json1 _1TagResourceCommand = exports . serializeAws _json1 _1StartLifecyclePolicyPreviewCommand = exports . serializeAws _json1 _1StartImageScanCommand = exports . serializeAws _json1 _1SetRepositoryPolicyCommand = exports . serializeAws _json1 _1PutReplicationConfigurationCommand = exports . serializeAws _json1 _1PutRegistryScanningConfigurationCommand = exports . serializeAws _json1 _1PutRegistryPolicyCommand = exports . serializeAws _json1 _1PutLifecyclePolicyCommand = exports . serializeAws _json1 _1PutImageTagMutabilityCommand = exports . serializeAws _json1 _1PutImageScanningConfigurationCommand = exports . serializeAws _json1 _1PutImageCommand = exports . serializeAws _json1 _1ListTagsForResourceCommand = exports . serializeAws _json1 _1ListImagesCommand = exports . serializeAws _json1 _1InitiateLayerUploadCommand = exports . serializeAws _json1 _1GetRepositoryPolicyCommand = exports . serializeAws _json1 _1GetRegistryScanningConfigurationCommand = exports . serializeAws _json1 _1GetRegistryPolicyCommand = exports . serializeAws _json1 _1GetLifecyclePolicyPreviewCommand = exports . serializeAws _json1 _1GetLifecyclePolicyCommand = exports . serializeAws _json1 _1GetDownloadUrlForLayerCommand = exports . serializeAws _json1 _1GetAuthorizationTokenCommand = exports . serializeAws _json1 _1DescribeRepositoriesCommand = exports . serializeAws _json1 _1DescribeRegistryCommand = exports . serializeAws _json1 _1DescribePullThroughCacheRulesCommand = exports . serializeAws _json1 _1DescribeImageScanFindingsCommand = exports . serializeAws _json1 _1DescribeImagesCommand = exports . serializeAws _json1 _1DescribeImageReplicationStatusCommand = exports . serializeAws _json1 _1DeleteRepositoryPolicyCommand = exports . serializeAws _json1 _1DeleteRepositoryCommand = exports . serializeAws _json1 _1DeleteRegistryPolicyCommand = exports . serializeAws _json1 _1DeletePullThroughCacheRuleCommand = exports . serializeAws _json1 _1DeleteLifecyclePolicyCommand = exports . serializeAws _json1 _1CreateRepositoryCommand = exports . serializeAws _json1 _1CreatePullThroughCacheRuleCommand = exports . serializeAws _json1 _1CompleteLayerUploadCommand = exports . serializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand = exports . serializeAws _json1 _1BatchGetImageCommand = exports . serializeAws _json1 _1BatchDeleteImageCommand = exports . serializeAws _json1 _1BatchCheckLayerAvailabilityCommand = void 0 ;
exports . deserializeAws _json1 _1UploadLayerPartCommand = exports . deserializeAws _json1 _1UntagResourceCommand = exports . deserializeAws _json1 _1TagResourceCommand = exports . deserializeAws _json1 _1StartLifecyclePolicyPreviewCommand = exports . deserializeAws _json1 _1StartImageScanCommand = exports . deserializeAws _json1 _1SetRepositoryPolicyCommand = exports . deserializeAws _json1 _1PutReplicationConfigurationCommand = exports . deserializeAws _json1 _1PutRegistryScanningConfigurationCommand = exports . deserializeAws _json1 _1PutRegistryPolicyCommand = exports . deserializeAws _json1 _1PutLifecyclePolicyCommand = exports . deserializeAws _json1 _1PutImageTagMutabilityCommand = exports . deserializeAws _json1 _1PutImageScanningConfigurationCommand = exports . deserializeAws _json1 _1PutImageCommand = exports . deserializeAws _json1 _1ListTagsForResourceCommand = exports . deserializeAws _json1 _1ListImagesCommand = exports . deserializeAws _json1 _1InitiateLayerUploadCommand = exports . deserializeAws _json1 _1GetRepositoryPolicyCommand = exports . deserializeAws _json1 _1GetRegistryScanningConfigurationCommand = exports . deserializeAws _json1 _1GetRegistryPolicyCommand = exports . deserializeAws _json1 _1GetLifecyclePolicyPreviewCommand = exports . deserializeAws _json1 _1GetLifecyclePolicyCommand = exports . deserializeAws _json1 _1GetDownloadUrlForLayerCommand = exports . deserializeAws _json1 _1GetAuthorizationTokenCommand = exports . deserializeAws _json1 _1DescribeRepositoriesCommand = exports . deserializeAws _json1 _1DescribeRegistryCommand = exports . deserializeAws _json1 _1DescribePullThroughCacheRulesCommand = exports . deserializeAws _json1 _1DescribeImageScanFindingsCommand = exports . deserializeAws _json1 _1DescribeImagesCommand = exports . deserializeAws _json1 _1DescribeImageReplicationStatusCommand = exports . deserializeAws _json1 _1DeleteRepositoryPolicyCommand = exports . deserializeAws _json1 _1DeleteRepositoryCommand = exports . deserializeAws _json1 _1DeleteRegistryPolicyCommand = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const serializeAws _json1 _1BatchCheckLayerAvailabilityCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.BatchCheckLayerAvailability" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1BatchCheckLayerAvailabilityRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1BatchCheckLayerAvailabilityCommand = serializeAws _json1 _1BatchCheckLayerAvailabilityCommand ;
const serializeAws _json1 _1BatchDeleteImageCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.BatchDeleteImage" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1BatchDeleteImageRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1BatchDeleteImageCommand = serializeAws _json1 _1BatchDeleteImageCommand ;
const serializeAws _json1 _1BatchGetImageCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.BatchGetImage" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1BatchGetImageRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1BatchGetImageCommand = serializeAws _json1 _1BatchGetImageCommand ;
const serializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.BatchGetRepositoryScanningConfiguration" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1BatchGetRepositoryScanningConfigurationRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand = serializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand ;
const serializeAws _json1 _1CompleteLayerUploadCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.CompleteLayerUpload" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1CompleteLayerUploadRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1CompleteLayerUploadCommand = serializeAws _json1 _1CompleteLayerUploadCommand ;
const serializeAws _json1 _1CreatePullThroughCacheRuleCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.CreatePullThroughCacheRule" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1CreatePullThroughCacheRuleRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1CreatePullThroughCacheRuleCommand = serializeAws _json1 _1CreatePullThroughCacheRuleCommand ;
const serializeAws _json1 _1CreateRepositoryCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.CreateRepository" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1CreateRepositoryRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1CreateRepositoryCommand = serializeAws _json1 _1CreateRepositoryCommand ;
const serializeAws _json1 _1DeleteLifecyclePolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DeleteLifecyclePolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DeleteLifecyclePolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DeleteLifecyclePolicyCommand = serializeAws _json1 _1DeleteLifecyclePolicyCommand ;
const serializeAws _json1 _1DeletePullThroughCacheRuleCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DeletePullThroughCacheRule" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DeletePullThroughCacheRuleRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DeletePullThroughCacheRuleCommand = serializeAws _json1 _1DeletePullThroughCacheRuleCommand ;
const serializeAws _json1 _1DeleteRegistryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DeleteRegistryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DeleteRegistryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DeleteRegistryPolicyCommand = serializeAws _json1 _1DeleteRegistryPolicyCommand ;
const serializeAws _json1 _1DeleteRepositoryCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DeleteRepository" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DeleteRepositoryRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DeleteRepositoryCommand = serializeAws _json1 _1DeleteRepositoryCommand ;
const serializeAws _json1 _1DeleteRepositoryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DeleteRepositoryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DeleteRepositoryPolicyCommand = serializeAws _json1 _1DeleteRepositoryPolicyCommand ;
const serializeAws _json1 _1DescribeImageReplicationStatusCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DescribeImageReplicationStatus" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeImageReplicationStatusRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeImageReplicationStatusCommand = serializeAws _json1 _1DescribeImageReplicationStatusCommand ;
const serializeAws _json1 _1DescribeImagesCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DescribeImages" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeImagesRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeImagesCommand = serializeAws _json1 _1DescribeImagesCommand ;
const serializeAws _json1 _1DescribeImageScanFindingsCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DescribeImageScanFindings" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeImageScanFindingsRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeImageScanFindingsCommand = serializeAws _json1 _1DescribeImageScanFindingsCommand ;
const serializeAws _json1 _1DescribePullThroughCacheRulesCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DescribePullThroughCacheRules" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribePullThroughCacheRulesRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribePullThroughCacheRulesCommand = serializeAws _json1 _1DescribePullThroughCacheRulesCommand ;
const serializeAws _json1 _1DescribeRegistryCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DescribeRegistry" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeRegistryRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeRegistryCommand = serializeAws _json1 _1DescribeRegistryCommand ;
const serializeAws _json1 _1DescribeRepositoriesCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.DescribeRepositories" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1DescribeRepositoriesRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1DescribeRepositoriesCommand = serializeAws _json1 _1DescribeRepositoriesCommand ;
const serializeAws _json1 _1GetAuthorizationTokenCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetAuthorizationTokenRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetAuthorizationTokenCommand = serializeAws _json1 _1GetAuthorizationTokenCommand ;
const serializeAws _json1 _1GetDownloadUrlForLayerCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.GetDownloadUrlForLayer" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetDownloadUrlForLayerRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetDownloadUrlForLayerCommand = serializeAws _json1 _1GetDownloadUrlForLayerCommand ;
const serializeAws _json1 _1GetLifecyclePolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetLifecyclePolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetLifecyclePolicyCommand = serializeAws _json1 _1GetLifecyclePolicyCommand ;
const serializeAws _json1 _1GetLifecyclePolicyPreviewCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.GetLifecyclePolicyPreview" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetLifecyclePolicyPreviewRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetLifecyclePolicyPreviewCommand = serializeAws _json1 _1GetLifecyclePolicyPreviewCommand ;
const serializeAws _json1 _1GetRegistryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.GetRegistryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetRegistryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetRegistryPolicyCommand = serializeAws _json1 _1GetRegistryPolicyCommand ;
const serializeAws _json1 _1GetRegistryScanningConfigurationCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.GetRegistryScanningConfiguration" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetRegistryScanningConfigurationRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetRegistryScanningConfigurationCommand = serializeAws _json1 _1GetRegistryScanningConfigurationCommand ;
const serializeAws _json1 _1GetRepositoryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.GetRepositoryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1GetRepositoryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1GetRepositoryPolicyCommand = serializeAws _json1 _1GetRepositoryPolicyCommand ;
const serializeAws _json1 _1InitiateLayerUploadCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.InitiateLayerUpload" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1InitiateLayerUploadRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1InitiateLayerUploadCommand = serializeAws _json1 _1InitiateLayerUploadCommand ;
const serializeAws _json1 _1ListImagesCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.ListImages" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1ListImagesRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1ListImagesCommand = serializeAws _json1 _1ListImagesCommand ;
const serializeAws _json1 _1ListTagsForResourceCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.ListTagsForResource" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1ListTagsForResourceRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1ListTagsForResourceCommand = serializeAws _json1 _1ListTagsForResourceCommand ;
const serializeAws _json1 _1PutImageCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.PutImage" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutImageRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutImageCommand = serializeAws _json1 _1PutImageCommand ;
const serializeAws _json1 _1PutImageScanningConfigurationCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.PutImageScanningConfiguration" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutImageScanningConfigurationRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutImageScanningConfigurationCommand = serializeAws _json1 _1PutImageScanningConfigurationCommand ;
const serializeAws _json1 _1PutImageTagMutabilityCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutImageTagMutabilityRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutImageTagMutabilityCommand = serializeAws _json1 _1PutImageTagMutabilityCommand ;
const serializeAws _json1 _1PutLifecyclePolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.PutLifecyclePolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutLifecyclePolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutLifecyclePolicyCommand = serializeAws _json1 _1PutLifecyclePolicyCommand ;
const serializeAws _json1 _1PutRegistryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.PutRegistryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutRegistryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutRegistryPolicyCommand = serializeAws _json1 _1PutRegistryPolicyCommand ;
const serializeAws _json1 _1PutRegistryScanningConfigurationCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.PutRegistryScanningConfiguration" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutRegistryScanningConfigurationRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutRegistryScanningConfigurationCommand = serializeAws _json1 _1PutRegistryScanningConfigurationCommand ;
const serializeAws _json1 _1PutReplicationConfigurationCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.PutReplicationConfiguration" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1PutReplicationConfigurationRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1PutReplicationConfigurationCommand = serializeAws _json1 _1PutReplicationConfigurationCommand ;
const serializeAws _json1 _1SetRepositoryPolicyCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.SetRepositoryPolicy" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1SetRepositoryPolicyRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1SetRepositoryPolicyCommand = serializeAws _json1 _1SetRepositoryPolicyCommand ;
const serializeAws _json1 _1StartImageScanCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.StartImageScan" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1StartImageScanRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1StartImageScanCommand = serializeAws _json1 _1StartImageScanCommand ;
const serializeAws _json1 _1StartLifecyclePolicyPreviewCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.StartLifecyclePolicyPreview" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1StartLifecyclePolicyPreviewRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1StartLifecyclePolicyPreviewCommand = serializeAws _json1 _1StartLifecyclePolicyPreviewCommand ;
const serializeAws _json1 _1TagResourceCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.TagResource" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1TagResourceRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1TagResourceCommand = serializeAws _json1 _1TagResourceCommand ;
const serializeAws _json1 _1UntagResourceCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.UntagResource" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1UntagResourceRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1UntagResourceCommand = serializeAws _json1 _1UntagResourceCommand ;
const serializeAws _json1 _1UploadLayerPartCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-amz-json-1.1" ,
"x-amz-target" : "AmazonEC2ContainerRegistry_V20150921.UploadLayerPart" ,
} ;
let body ;
body = JSON . stringify ( serializeAws _json1 _1UploadLayerPartRequest ( input , context ) ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _json1 _1UploadLayerPartCommand = serializeAws _json1 _1UploadLayerPartCommand ;
const deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1BatchCheckLayerAvailabilityCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1BatchCheckLayerAvailabilityResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand = deserializeAws _json1 _1BatchCheckLayerAvailabilityCommand ;
const deserializeAws _json1 _1BatchCheckLayerAvailabilityCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1BatchDeleteImageCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1BatchDeleteImageCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1BatchDeleteImageResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1BatchDeleteImageCommand = deserializeAws _json1 _1BatchDeleteImageCommand ;
const deserializeAws _json1 _1BatchDeleteImageCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1BatchGetImageCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1BatchGetImageCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1BatchGetImageResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1BatchGetImageCommand = deserializeAws _json1 _1BatchGetImageCommand ;
const deserializeAws _json1 _1BatchGetImageCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand = deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommand ;
const deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1CompleteLayerUploadCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1CompleteLayerUploadCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1CompleteLayerUploadResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1CompleteLayerUploadCommand = deserializeAws _json1 _1CompleteLayerUploadCommand ;
const deserializeAws _json1 _1CompleteLayerUploadCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "EmptyUploadException" :
case "com.amazonaws.ecr#EmptyUploadException" :
response = {
... ( await deserializeAws _json1 _1EmptyUploadExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidLayerException" :
case "com.amazonaws.ecr#InvalidLayerException" :
response = {
... ( await deserializeAws _json1 _1InvalidLayerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "KmsException" :
case "com.amazonaws.ecr#KmsException" :
response = {
... ( await deserializeAws _json1 _1KmsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayerAlreadyExistsException" :
case "com.amazonaws.ecr#LayerAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1LayerAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayerPartTooSmallException" :
case "com.amazonaws.ecr#LayerPartTooSmallException" :
response = {
... ( await deserializeAws _json1 _1LayerPartTooSmallExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UploadNotFoundException" :
case "com.amazonaws.ecr#UploadNotFoundException" :
response = {
... ( await deserializeAws _json1 _1UploadNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1CreatePullThroughCacheRuleCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1CreatePullThroughCacheRuleCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1CreatePullThroughCacheRuleResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1CreatePullThroughCacheRuleCommand = deserializeAws _json1 _1CreatePullThroughCacheRuleCommand ;
const deserializeAws _json1 _1CreatePullThroughCacheRuleCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecr#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "PullThroughCacheRuleAlreadyExistsException" :
case "com.amazonaws.ecr#PullThroughCacheRuleAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1PullThroughCacheRuleAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedUpstreamRegistryException" :
case "com.amazonaws.ecr#UnsupportedUpstreamRegistryException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedUpstreamRegistryExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1CreateRepositoryCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1CreateRepositoryCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1CreateRepositoryResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1CreateRepositoryCommand = deserializeAws _json1 _1CreateRepositoryCommand ;
const deserializeAws _json1 _1CreateRepositoryCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidTagParameterException" :
case "com.amazonaws.ecr#InvalidTagParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidTagParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "KmsException" :
case "com.amazonaws.ecr#KmsException" :
response = {
... ( await deserializeAws _json1 _1KmsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecr#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryAlreadyExistsException" :
case "com.amazonaws.ecr#RepositoryAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1RepositoryAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyTagsException" :
case "com.amazonaws.ecr#TooManyTagsException" :
response = {
... ( await deserializeAws _json1 _1TooManyTagsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DeleteLifecyclePolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DeleteLifecyclePolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DeleteLifecyclePolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DeleteLifecyclePolicyCommand = deserializeAws _json1 _1DeleteLifecyclePolicyCommand ;
const deserializeAws _json1 _1DeleteLifecyclePolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LifecyclePolicyNotFoundException" :
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1LifecyclePolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DeletePullThroughCacheRuleCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DeletePullThroughCacheRuleCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DeletePullThroughCacheRuleResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DeletePullThroughCacheRuleCommand = deserializeAws _json1 _1DeletePullThroughCacheRuleCommand ;
const deserializeAws _json1 _1DeletePullThroughCacheRuleCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "PullThroughCacheRuleNotFoundException" :
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException" :
response = {
... ( await deserializeAws _json1 _1PullThroughCacheRuleNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DeleteRegistryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DeleteRegistryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DeleteRegistryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DeleteRegistryPolicyCommand = deserializeAws _json1 _1DeleteRegistryPolicyCommand ;
const deserializeAws _json1 _1DeleteRegistryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegistryPolicyNotFoundException" :
case "com.amazonaws.ecr#RegistryPolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RegistryPolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DeleteRepositoryCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DeleteRepositoryCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DeleteRepositoryResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DeleteRepositoryCommand = deserializeAws _json1 _1DeleteRepositoryCommand ;
const deserializeAws _json1 _1DeleteRepositoryCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "KmsException" :
case "com.amazonaws.ecr#KmsException" :
response = {
... ( await deserializeAws _json1 _1KmsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotEmptyException" :
case "com.amazonaws.ecr#RepositoryNotEmptyException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotEmptyExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DeleteRepositoryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DeleteRepositoryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DeleteRepositoryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DeleteRepositoryPolicyCommand = deserializeAws _json1 _1DeleteRepositoryPolicyCommand ;
const deserializeAws _json1 _1DeleteRepositoryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryPolicyNotFoundException" :
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryPolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeImageReplicationStatusCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeImageReplicationStatusCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeImageReplicationStatusResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeImageReplicationStatusCommand = deserializeAws _json1 _1DescribeImageReplicationStatusCommand ;
const deserializeAws _json1 _1DescribeImageReplicationStatusCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ImageNotFoundException" :
case "com.amazonaws.ecr#ImageNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ImageNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeImagesCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeImagesCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeImagesResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeImagesCommand = deserializeAws _json1 _1DescribeImagesCommand ;
const deserializeAws _json1 _1DescribeImagesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ImageNotFoundException" :
case "com.amazonaws.ecr#ImageNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ImageNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeImageScanFindingsCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeImageScanFindingsCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeImageScanFindingsResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeImageScanFindingsCommand = deserializeAws _json1 _1DescribeImageScanFindingsCommand ;
const deserializeAws _json1 _1DescribeImageScanFindingsCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ImageNotFoundException" :
case "com.amazonaws.ecr#ImageNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ImageNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ScanNotFoundException" :
case "com.amazonaws.ecr#ScanNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ScanNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribePullThroughCacheRulesCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribePullThroughCacheRulesCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribePullThroughCacheRulesResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribePullThroughCacheRulesCommand = deserializeAws _json1 _1DescribePullThroughCacheRulesCommand ;
const deserializeAws _json1 _1DescribePullThroughCacheRulesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "PullThroughCacheRuleNotFoundException" :
case "com.amazonaws.ecr#PullThroughCacheRuleNotFoundException" :
response = {
... ( await deserializeAws _json1 _1PullThroughCacheRuleNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeRegistryCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeRegistryCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeRegistryResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeRegistryCommand = deserializeAws _json1 _1DescribeRegistryCommand ;
const deserializeAws _json1 _1DescribeRegistryCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1DescribeRepositoriesCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1DescribeRepositoriesCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1DescribeRepositoriesResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1DescribeRepositoriesCommand = deserializeAws _json1 _1DescribeRepositoriesCommand ;
const deserializeAws _json1 _1DescribeRepositoriesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetAuthorizationTokenCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetAuthorizationTokenCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetAuthorizationTokenResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetAuthorizationTokenCommand = deserializeAws _json1 _1GetAuthorizationTokenCommand ;
const deserializeAws _json1 _1GetAuthorizationTokenCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetDownloadUrlForLayerCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetDownloadUrlForLayerCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetDownloadUrlForLayerResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetDownloadUrlForLayerCommand = deserializeAws _json1 _1GetDownloadUrlForLayerCommand ;
const deserializeAws _json1 _1GetDownloadUrlForLayerCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayerInaccessibleException" :
case "com.amazonaws.ecr#LayerInaccessibleException" :
response = {
... ( await deserializeAws _json1 _1LayerInaccessibleExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayersNotFoundException" :
case "com.amazonaws.ecr#LayersNotFoundException" :
response = {
... ( await deserializeAws _json1 _1LayersNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetLifecyclePolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetLifecyclePolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetLifecyclePolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetLifecyclePolicyCommand = deserializeAws _json1 _1GetLifecyclePolicyCommand ;
const deserializeAws _json1 _1GetLifecyclePolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LifecyclePolicyNotFoundException" :
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1LifecyclePolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetLifecyclePolicyPreviewCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetLifecyclePolicyPreviewCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetLifecyclePolicyPreviewResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetLifecyclePolicyPreviewCommand = deserializeAws _json1 _1GetLifecyclePolicyPreviewCommand ;
const deserializeAws _json1 _1GetLifecyclePolicyPreviewCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LifecyclePolicyPreviewNotFoundException" :
case "com.amazonaws.ecr#LifecyclePolicyPreviewNotFoundException" :
response = {
... ( await deserializeAws _json1 _1LifecyclePolicyPreviewNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetRegistryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetRegistryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetRegistryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetRegistryPolicyCommand = deserializeAws _json1 _1GetRegistryPolicyCommand ;
const deserializeAws _json1 _1GetRegistryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegistryPolicyNotFoundException" :
case "com.amazonaws.ecr#RegistryPolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RegistryPolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetRegistryScanningConfigurationCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetRegistryScanningConfigurationCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetRegistryScanningConfigurationResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetRegistryScanningConfigurationCommand = deserializeAws _json1 _1GetRegistryScanningConfigurationCommand ;
const deserializeAws _json1 _1GetRegistryScanningConfigurationCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1GetRepositoryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1GetRepositoryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1GetRepositoryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1GetRepositoryPolicyCommand = deserializeAws _json1 _1GetRepositoryPolicyCommand ;
const deserializeAws _json1 _1GetRepositoryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryPolicyNotFoundException" :
case "com.amazonaws.ecr#RepositoryPolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryPolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1InitiateLayerUploadCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1InitiateLayerUploadCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1InitiateLayerUploadResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1InitiateLayerUploadCommand = deserializeAws _json1 _1InitiateLayerUploadCommand ;
const deserializeAws _json1 _1InitiateLayerUploadCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "KmsException" :
case "com.amazonaws.ecr#KmsException" :
response = {
... ( await deserializeAws _json1 _1KmsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1ListImagesCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1ListImagesCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1ListImagesResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1ListImagesCommand = deserializeAws _json1 _1ListImagesCommand ;
const deserializeAws _json1 _1ListImagesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1ListTagsForResourceCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1ListTagsForResourceCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1ListTagsForResourceResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1ListTagsForResourceCommand = deserializeAws _json1 _1ListTagsForResourceCommand ;
const deserializeAws _json1 _1ListTagsForResourceCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutImageCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutImageCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutImageResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutImageCommand = deserializeAws _json1 _1PutImageCommand ;
const deserializeAws _json1 _1PutImageCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ImageAlreadyExistsException" :
case "com.amazonaws.ecr#ImageAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1ImageAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ImageDigestDoesNotMatchException" :
case "com.amazonaws.ecr#ImageDigestDoesNotMatchException" :
response = {
... ( await deserializeAws _json1 _1ImageDigestDoesNotMatchExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ImageTagAlreadyExistsException" :
case "com.amazonaws.ecr#ImageTagAlreadyExistsException" :
response = {
... ( await deserializeAws _json1 _1ImageTagAlreadyExistsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "KmsException" :
case "com.amazonaws.ecr#KmsException" :
response = {
... ( await deserializeAws _json1 _1KmsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LayersNotFoundException" :
case "com.amazonaws.ecr#LayersNotFoundException" :
response = {
... ( await deserializeAws _json1 _1LayersNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecr#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ReferencedImagesNotFoundException" :
case "com.amazonaws.ecr#ReferencedImagesNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ReferencedImagesNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutImageScanningConfigurationCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutImageScanningConfigurationCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutImageScanningConfigurationResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutImageScanningConfigurationCommand = deserializeAws _json1 _1PutImageScanningConfigurationCommand ;
const deserializeAws _json1 _1PutImageScanningConfigurationCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutImageTagMutabilityCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutImageTagMutabilityCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutImageTagMutabilityResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutImageTagMutabilityCommand = deserializeAws _json1 _1PutImageTagMutabilityCommand ;
const deserializeAws _json1 _1PutImageTagMutabilityCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutLifecyclePolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutLifecyclePolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutLifecyclePolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutLifecyclePolicyCommand = deserializeAws _json1 _1PutLifecyclePolicyCommand ;
const deserializeAws _json1 _1PutLifecyclePolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutRegistryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutRegistryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutRegistryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutRegistryPolicyCommand = deserializeAws _json1 _1PutRegistryPolicyCommand ;
const deserializeAws _json1 _1PutRegistryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutRegistryScanningConfigurationCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutRegistryScanningConfigurationCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutRegistryScanningConfigurationResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutRegistryScanningConfigurationCommand = deserializeAws _json1 _1PutRegistryScanningConfigurationCommand ;
const deserializeAws _json1 _1PutRegistryScanningConfigurationCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1PutReplicationConfigurationCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1PutReplicationConfigurationCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1PutReplicationConfigurationResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1PutReplicationConfigurationCommand = deserializeAws _json1 _1PutReplicationConfigurationCommand ;
const deserializeAws _json1 _1PutReplicationConfigurationCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1SetRepositoryPolicyCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1SetRepositoryPolicyCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1SetRepositoryPolicyResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1SetRepositoryPolicyCommand = deserializeAws _json1 _1SetRepositoryPolicyCommand ;
const deserializeAws _json1 _1SetRepositoryPolicyCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1StartImageScanCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1StartImageScanCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1StartImageScanResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1StartImageScanCommand = deserializeAws _json1 _1StartImageScanCommand ;
const deserializeAws _json1 _1StartImageScanCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ImageNotFoundException" :
case "com.amazonaws.ecr#ImageNotFoundException" :
response = {
... ( await deserializeAws _json1 _1ImageNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecr#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnsupportedImageTypeException" :
case "com.amazonaws.ecr#UnsupportedImageTypeException" :
response = {
... ( await deserializeAws _json1 _1UnsupportedImageTypeExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ValidationException" :
case "com.amazonaws.ecr#ValidationException" :
response = {
... ( await deserializeAws _json1 _1ValidationExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1StartLifecyclePolicyPreviewCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1StartLifecyclePolicyPreviewCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1StartLifecyclePolicyPreviewResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1StartLifecyclePolicyPreviewCommand = deserializeAws _json1 _1StartLifecyclePolicyPreviewCommand ;
const deserializeAws _json1 _1StartLifecyclePolicyPreviewCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LifecyclePolicyNotFoundException" :
case "com.amazonaws.ecr#LifecyclePolicyNotFoundException" :
response = {
... ( await deserializeAws _json1 _1LifecyclePolicyNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LifecyclePolicyPreviewInProgressException" :
case "com.amazonaws.ecr#LifecyclePolicyPreviewInProgressException" :
response = {
... ( await deserializeAws _json1 _1LifecyclePolicyPreviewInProgressExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1TagResourceCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1TagResourceCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1TagResourceResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1TagResourceCommand = deserializeAws _json1 _1TagResourceCommand ;
const deserializeAws _json1 _1TagResourceCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidTagParameterException" :
case "com.amazonaws.ecr#InvalidTagParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidTagParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyTagsException" :
case "com.amazonaws.ecr#TooManyTagsException" :
response = {
... ( await deserializeAws _json1 _1TooManyTagsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1UntagResourceCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1UntagResourceCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1UntagResourceResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1UntagResourceCommand = deserializeAws _json1 _1UntagResourceCommand ;
const deserializeAws _json1 _1UntagResourceCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidTagParameterException" :
case "com.amazonaws.ecr#InvalidTagParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidTagParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyTagsException" :
case "com.amazonaws.ecr#TooManyTagsException" :
response = {
... ( await deserializeAws _json1 _1TooManyTagsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1UploadLayerPartCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _json1 _1UploadLayerPartCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _json1 _1UploadLayerPartResponse ( data , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _json1 _1UploadLayerPartCommand = deserializeAws _json1 _1UploadLayerPartCommand ;
const deserializeAws _json1 _1UploadLayerPartCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidLayerPartException" :
case "com.amazonaws.ecr#InvalidLayerPartException" :
response = {
... ( await deserializeAws _json1 _1InvalidLayerPartExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidParameterException" :
case "com.amazonaws.ecr#InvalidParameterException" :
response = {
... ( await deserializeAws _json1 _1InvalidParameterExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "KmsException" :
case "com.amazonaws.ecr#KmsException" :
response = {
... ( await deserializeAws _json1 _1KmsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "LimitExceededException" :
case "com.amazonaws.ecr#LimitExceededException" :
response = {
... ( await deserializeAws _json1 _1LimitExceededExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RepositoryNotFoundException" :
case "com.amazonaws.ecr#RepositoryNotFoundException" :
response = {
... ( await deserializeAws _json1 _1RepositoryNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ServerException" :
case "com.amazonaws.ecr#ServerException" :
response = {
... ( await deserializeAws _json1 _1ServerExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UploadNotFoundException" :
case "com.amazonaws.ecr#UploadNotFoundException" :
response = {
... ( await deserializeAws _json1 _1UploadNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _json1 _1EmptyUploadExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1EmptyUploadException ( body , context ) ;
const contents = {
name : "EmptyUploadException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageAlreadyExistsException ( body , context ) ;
const contents = {
name : "ImageAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageDigestDoesNotMatchExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageDigestDoesNotMatchException ( body , context ) ;
const contents = {
name : "ImageDigestDoesNotMatchException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageNotFoundException ( body , context ) ;
const contents = {
name : "ImageNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ImageTagAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ImageTagAlreadyExistsException ( body , context ) ;
const contents = {
name : "ImageTagAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidLayerExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidLayerException ( body , context ) ;
const contents = {
name : "InvalidLayerException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidLayerPartExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidLayerPartException ( body , context ) ;
const contents = {
name : "InvalidLayerPartException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidParameterExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidParameterException ( body , context ) ;
const contents = {
name : "InvalidParameterException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1InvalidTagParameterExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1InvalidTagParameterException ( body , context ) ;
const contents = {
name : "InvalidTagParameterException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1KmsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1KmsException ( body , context ) ;
const contents = {
name : "KmsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LayerAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LayerAlreadyExistsException ( body , context ) ;
const contents = {
name : "LayerAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LayerInaccessibleExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LayerInaccessibleException ( body , context ) ;
const contents = {
name : "LayerInaccessibleException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LayerPartTooSmallExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LayerPartTooSmallException ( body , context ) ;
const contents = {
name : "LayerPartTooSmallException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LayersNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LayersNotFoundException ( body , context ) ;
const contents = {
name : "LayersNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LifecyclePolicyNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LifecyclePolicyNotFoundException ( body , context ) ;
const contents = {
name : "LifecyclePolicyNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LifecyclePolicyPreviewInProgressExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LifecyclePolicyPreviewInProgressException ( body , context ) ;
const contents = {
name : "LifecyclePolicyPreviewInProgressException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LifecyclePolicyPreviewNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LifecyclePolicyPreviewNotFoundException ( body , context ) ;
const contents = {
name : "LifecyclePolicyPreviewNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1LimitExceededExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1LimitExceededException ( body , context ) ;
const contents = {
name : "LimitExceededException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1PullThroughCacheRuleAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1PullThroughCacheRuleAlreadyExistsException ( body , context ) ;
const contents = {
name : "PullThroughCacheRuleAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1PullThroughCacheRuleNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1PullThroughCacheRuleNotFoundException ( body , context ) ;
const contents = {
name : "PullThroughCacheRuleNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ReferencedImagesNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ReferencedImagesNotFoundException ( body , context ) ;
const contents = {
name : "ReferencedImagesNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RegistryPolicyNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RegistryPolicyNotFoundException ( body , context ) ;
const contents = {
name : "RegistryPolicyNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryAlreadyExistsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryAlreadyExistsException ( body , context ) ;
const contents = {
name : "RepositoryAlreadyExistsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryNotEmptyExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryNotEmptyException ( body , context ) ;
const contents = {
name : "RepositoryNotEmptyException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryNotFoundException ( body , context ) ;
const contents = {
name : "RepositoryNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1RepositoryPolicyNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1RepositoryPolicyNotFoundException ( body , context ) ;
const contents = {
name : "RepositoryPolicyNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ScanNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ScanNotFoundException ( body , context ) ;
const contents = {
name : "ScanNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ServerExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ServerException ( body , context ) ;
const contents = {
name : "ServerException" ,
$fault : "server" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1TooManyTagsExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1TooManyTagsException ( body , context ) ;
const contents = {
name : "TooManyTagsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1UnsupportedImageTypeExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1UnsupportedImageTypeException ( body , context ) ;
const contents = {
name : "UnsupportedImageTypeException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1UnsupportedUpstreamRegistryExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1UnsupportedUpstreamRegistryException ( body , context ) ;
const contents = {
name : "UnsupportedUpstreamRegistryException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1UploadNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1UploadNotFoundException ( body , context ) ;
const contents = {
name : "UploadNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _json1 _1ValidationExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _json1 _1ValidationException ( body , context ) ;
const contents = {
name : "ValidationException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const serializeAws _json1 _1BatchCheckLayerAvailabilityRequest = ( input , context ) => {
return {
... ( input . layerDigests !== undefined &&
input . layerDigests !== null && {
layerDigests : serializeAws _json1 _1BatchedOperationLayerDigestList ( input . layerDigests , context ) ,
} ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1BatchDeleteImageRequest = ( input , context ) => {
return {
... ( input . imageIds !== undefined &&
input . imageIds !== null && { imageIds : serializeAws _json1 _1ImageIdentifierList ( input . imageIds , context ) } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1BatchedOperationLayerDigestList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1BatchGetImageRequest = ( input , context ) => {
return {
... ( input . acceptedMediaTypes !== undefined &&
input . acceptedMediaTypes !== null && {
acceptedMediaTypes : serializeAws _json1 _1MediaTypeList ( input . acceptedMediaTypes , context ) ,
} ) ,
... ( input . imageIds !== undefined &&
input . imageIds !== null && { imageIds : serializeAws _json1 _1ImageIdentifierList ( input . imageIds , context ) } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1BatchGetRepositoryScanningConfigurationRequest = ( input , context ) => {
return {
... ( input . repositoryNames !== undefined &&
input . repositoryNames !== null && {
repositoryNames : serializeAws _json1 _1ScanningConfigurationRepositoryNameList ( input . repositoryNames , context ) ,
} ) ,
} ;
} ;
const serializeAws _json1 _1CompleteLayerUploadRequest = ( input , context ) => {
return {
... ( input . layerDigests !== undefined &&
input . layerDigests !== null && {
layerDigests : serializeAws _json1 _1LayerDigestList ( input . layerDigests , context ) ,
} ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
... ( input . uploadId !== undefined && input . uploadId !== null && { uploadId : input . uploadId } ) ,
} ;
} ;
const serializeAws _json1 _1CreatePullThroughCacheRuleRequest = ( input , context ) => {
return {
... ( input . ecrRepositoryPrefix !== undefined &&
input . ecrRepositoryPrefix !== null && { ecrRepositoryPrefix : input . ecrRepositoryPrefix } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . upstreamRegistryUrl !== undefined &&
input . upstreamRegistryUrl !== null && { upstreamRegistryUrl : input . upstreamRegistryUrl } ) ,
} ;
} ;
const serializeAws _json1 _1CreateRepositoryRequest = ( input , context ) => {
return {
... ( input . encryptionConfiguration !== undefined &&
input . encryptionConfiguration !== null && {
encryptionConfiguration : serializeAws _json1 _1EncryptionConfiguration ( input . encryptionConfiguration , context ) ,
} ) ,
... ( input . imageScanningConfiguration !== undefined &&
input . imageScanningConfiguration !== null && {
imageScanningConfiguration : serializeAws _json1 _1ImageScanningConfiguration ( input . imageScanningConfiguration , context ) ,
} ) ,
... ( input . imageTagMutability !== undefined &&
input . imageTagMutability !== null && { imageTagMutability : input . imageTagMutability } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
... ( input . tags !== undefined && input . tags !== null && { tags : serializeAws _json1 _1TagList ( input . tags , context ) } ) ,
} ;
} ;
const serializeAws _json1 _1DeleteLifecyclePolicyRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DeletePullThroughCacheRuleRequest = ( input , context ) => {
return {
... ( input . ecrRepositoryPrefix !== undefined &&
input . ecrRepositoryPrefix !== null && { ecrRepositoryPrefix : input . ecrRepositoryPrefix } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
} ;
} ;
const serializeAws _json1 _1DeleteRegistryPolicyRequest = ( input , context ) => {
return { } ;
} ;
const serializeAws _json1 _1DeleteRepositoryPolicyRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DeleteRepositoryRequest = ( input , context ) => {
return {
... ( input . force !== undefined && input . force !== null && { force : input . force } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeImageReplicationStatusRequest = ( input , context ) => {
return {
... ( input . imageId !== undefined &&
input . imageId !== null && { imageId : serializeAws _json1 _1ImageIdentifier ( input . imageId , context ) } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeImageScanFindingsRequest = ( input , context ) => {
return {
... ( input . imageId !== undefined &&
input . imageId !== null && { imageId : serializeAws _json1 _1ImageIdentifier ( input . imageId , context ) } ) ,
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeImagesFilter = ( input , context ) => {
return {
... ( input . tagStatus !== undefined && input . tagStatus !== null && { tagStatus : input . tagStatus } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeImagesRequest = ( input , context ) => {
return {
... ( input . filter !== undefined &&
input . filter !== null && { filter : serializeAws _json1 _1DescribeImagesFilter ( input . filter , context ) } ) ,
... ( input . imageIds !== undefined &&
input . imageIds !== null && { imageIds : serializeAws _json1 _1ImageIdentifierList ( input . imageIds , context ) } ) ,
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1DescribePullThroughCacheRulesRequest = ( input , context ) => {
return {
... ( input . ecrRepositoryPrefixes !== undefined &&
input . ecrRepositoryPrefixes !== null && {
ecrRepositoryPrefixes : serializeAws _json1 _1PullThroughCacheRuleRepositoryPrefixList ( input . ecrRepositoryPrefixes , context ) ,
} ) ,
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
} ;
} ;
const serializeAws _json1 _1DescribeRegistryRequest = ( input , context ) => {
return { } ;
} ;
const serializeAws _json1 _1DescribeRepositoriesRequest = ( input , context ) => {
return {
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryNames !== undefined &&
input . repositoryNames !== null && {
repositoryNames : serializeAws _json1 _1RepositoryNameList ( input . repositoryNames , context ) ,
} ) ,
} ;
} ;
const serializeAws _json1 _1EncryptionConfiguration = ( input , context ) => {
return {
... ( input . encryptionType !== undefined &&
input . encryptionType !== null && { encryptionType : input . encryptionType } ) ,
... ( input . kmsKey !== undefined && input . kmsKey !== null && { kmsKey : input . kmsKey } ) ,
} ;
} ;
const serializeAws _json1 _1GetAuthorizationTokenRegistryIdList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1GetAuthorizationTokenRequest = ( input , context ) => {
return {
... ( input . registryIds !== undefined &&
input . registryIds !== null && {
registryIds : serializeAws _json1 _1GetAuthorizationTokenRegistryIdList ( input . registryIds , context ) ,
} ) ,
} ;
} ;
const serializeAws _json1 _1GetDownloadUrlForLayerRequest = ( input , context ) => {
return {
... ( input . layerDigest !== undefined && input . layerDigest !== null && { layerDigest : input . layerDigest } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1GetLifecyclePolicyPreviewRequest = ( input , context ) => {
return {
... ( input . filter !== undefined &&
input . filter !== null && { filter : serializeAws _json1 _1LifecyclePolicyPreviewFilter ( input . filter , context ) } ) ,
... ( input . imageIds !== undefined &&
input . imageIds !== null && { imageIds : serializeAws _json1 _1ImageIdentifierList ( input . imageIds , context ) } ) ,
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1GetLifecyclePolicyRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1GetRegistryPolicyRequest = ( input , context ) => {
return { } ;
} ;
const serializeAws _json1 _1GetRegistryScanningConfigurationRequest = ( input , context ) => {
return { } ;
} ;
const serializeAws _json1 _1GetRepositoryPolicyRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1ImageIdentifier = ( input , context ) => {
return {
... ( input . imageDigest !== undefined && input . imageDigest !== null && { imageDigest : input . imageDigest } ) ,
... ( input . imageTag !== undefined && input . imageTag !== null && { imageTag : input . imageTag } ) ,
} ;
} ;
const serializeAws _json1 _1ImageIdentifierList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1ImageIdentifier ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1ImageScanningConfiguration = ( input , context ) => {
return {
... ( input . scanOnPush !== undefined && input . scanOnPush !== null && { scanOnPush : input . scanOnPush } ) ,
} ;
} ;
const serializeAws _json1 _1InitiateLayerUploadRequest = ( input , context ) => {
return {
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1LayerDigestList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1LifecyclePolicyPreviewFilter = ( input , context ) => {
return {
... ( input . tagStatus !== undefined && input . tagStatus !== null && { tagStatus : input . tagStatus } ) ,
} ;
} ;
const serializeAws _json1 _1ListImagesFilter = ( input , context ) => {
return {
... ( input . tagStatus !== undefined && input . tagStatus !== null && { tagStatus : input . tagStatus } ) ,
} ;
} ;
const serializeAws _json1 _1ListImagesRequest = ( input , context ) => {
return {
... ( input . filter !== undefined &&
input . filter !== null && { filter : serializeAws _json1 _1ListImagesFilter ( input . filter , context ) } ) ,
... ( input . maxResults !== undefined && input . maxResults !== null && { maxResults : input . maxResults } ) ,
... ( input . nextToken !== undefined && input . nextToken !== null && { nextToken : input . nextToken } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1ListTagsForResourceRequest = ( input , context ) => {
return {
... ( input . resourceArn !== undefined && input . resourceArn !== null && { resourceArn : input . resourceArn } ) ,
} ;
} ;
const serializeAws _json1 _1MediaTypeList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1PullThroughCacheRuleRepositoryPrefixList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1PutImageRequest = ( input , context ) => {
return {
... ( input . imageDigest !== undefined && input . imageDigest !== null && { imageDigest : input . imageDigest } ) ,
... ( input . imageManifest !== undefined && input . imageManifest !== null && { imageManifest : input . imageManifest } ) ,
... ( input . imageManifestMediaType !== undefined &&
input . imageManifestMediaType !== null && { imageManifestMediaType : input . imageManifestMediaType } ) ,
... ( input . imageTag !== undefined && input . imageTag !== null && { imageTag : input . imageTag } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1PutImageScanningConfigurationRequest = ( input , context ) => {
return {
... ( input . imageScanningConfiguration !== undefined &&
input . imageScanningConfiguration !== null && {
imageScanningConfiguration : serializeAws _json1 _1ImageScanningConfiguration ( input . imageScanningConfiguration , context ) ,
} ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1PutImageTagMutabilityRequest = ( input , context ) => {
return {
... ( input . imageTagMutability !== undefined &&
input . imageTagMutability !== null && { imageTagMutability : input . imageTagMutability } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1PutLifecyclePolicyRequest = ( input , context ) => {
return {
... ( input . lifecyclePolicyText !== undefined &&
input . lifecyclePolicyText !== null && { lifecyclePolicyText : input . lifecyclePolicyText } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1PutRegistryPolicyRequest = ( input , context ) => {
return {
... ( input . policyText !== undefined && input . policyText !== null && { policyText : input . policyText } ) ,
} ;
} ;
const serializeAws _json1 _1PutRegistryScanningConfigurationRequest = ( input , context ) => {
return {
... ( input . rules !== undefined &&
input . rules !== null && { rules : serializeAws _json1 _1RegistryScanningRuleList ( input . rules , context ) } ) ,
... ( input . scanType !== undefined && input . scanType !== null && { scanType : input . scanType } ) ,
} ;
} ;
const serializeAws _json1 _1PutReplicationConfigurationRequest = ( input , context ) => {
return {
... ( input . replicationConfiguration !== undefined &&
input . replicationConfiguration !== null && {
replicationConfiguration : serializeAws _json1 _1ReplicationConfiguration ( input . replicationConfiguration , context ) ,
} ) ,
} ;
} ;
const serializeAws _json1 _1RegistryScanningRule = ( input , context ) => {
return {
... ( input . repositoryFilters !== undefined &&
input . repositoryFilters !== null && {
repositoryFilters : serializeAws _json1 _1ScanningRepositoryFilterList ( input . repositoryFilters , context ) ,
} ) ,
... ( input . scanFrequency !== undefined && input . scanFrequency !== null && { scanFrequency : input . scanFrequency } ) ,
} ;
} ;
const serializeAws _json1 _1RegistryScanningRuleList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1RegistryScanningRule ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1ReplicationConfiguration = ( input , context ) => {
return {
... ( input . rules !== undefined &&
input . rules !== null && { rules : serializeAws _json1 _1ReplicationRuleList ( input . rules , context ) } ) ,
} ;
} ;
const serializeAws _json1 _1ReplicationDestination = ( input , context ) => {
return {
... ( input . region !== undefined && input . region !== null && { region : input . region } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
} ;
} ;
const serializeAws _json1 _1ReplicationDestinationList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1ReplicationDestination ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1ReplicationRule = ( input , context ) => {
return {
... ( input . destinations !== undefined &&
input . destinations !== null && {
destinations : serializeAws _json1 _1ReplicationDestinationList ( input . destinations , context ) ,
} ) ,
... ( input . repositoryFilters !== undefined &&
input . repositoryFilters !== null && {
repositoryFilters : serializeAws _json1 _1RepositoryFilterList ( input . repositoryFilters , context ) ,
} ) ,
} ;
} ;
const serializeAws _json1 _1ReplicationRuleList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1ReplicationRule ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1RepositoryFilter = ( input , context ) => {
return {
... ( input . filter !== undefined && input . filter !== null && { filter : input . filter } ) ,
... ( input . filterType !== undefined && input . filterType !== null && { filterType : input . filterType } ) ,
} ;
} ;
const serializeAws _json1 _1RepositoryFilterList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1RepositoryFilter ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1RepositoryNameList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1ScanningConfigurationRepositoryNameList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1ScanningRepositoryFilter = ( input , context ) => {
return {
... ( input . filter !== undefined && input . filter !== null && { filter : input . filter } ) ,
... ( input . filterType !== undefined && input . filterType !== null && { filterType : input . filterType } ) ,
} ;
} ;
const serializeAws _json1 _1ScanningRepositoryFilterList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1ScanningRepositoryFilter ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1SetRepositoryPolicyRequest = ( input , context ) => {
return {
... ( input . force !== undefined && input . force !== null && { force : input . force } ) ,
... ( input . policyText !== undefined && input . policyText !== null && { policyText : input . policyText } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1StartImageScanRequest = ( input , context ) => {
return {
... ( input . imageId !== undefined &&
input . imageId !== null && { imageId : serializeAws _json1 _1ImageIdentifier ( input . imageId , context ) } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1StartLifecyclePolicyPreviewRequest = ( input , context ) => {
return {
... ( input . lifecyclePolicyText !== undefined &&
input . lifecyclePolicyText !== null && { lifecyclePolicyText : input . lifecyclePolicyText } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
} ;
} ;
const serializeAws _json1 _1Tag = ( input , context ) => {
return {
... ( input . Key !== undefined && input . Key !== null && { Key : input . Key } ) ,
... ( input . Value !== undefined && input . Value !== null && { Value : input . Value } ) ,
} ;
} ;
const serializeAws _json1 _1TagKeyList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return entry ;
} ) ;
} ;
const serializeAws _json1 _1TagList = ( input , context ) => {
return input
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return serializeAws _json1 _1Tag ( entry , context ) ;
} ) ;
} ;
const serializeAws _json1 _1TagResourceRequest = ( input , context ) => {
return {
... ( input . resourceArn !== undefined && input . resourceArn !== null && { resourceArn : input . resourceArn } ) ,
... ( input . tags !== undefined && input . tags !== null && { tags : serializeAws _json1 _1TagList ( input . tags , context ) } ) ,
} ;
} ;
const serializeAws _json1 _1UntagResourceRequest = ( input , context ) => {
return {
... ( input . resourceArn !== undefined && input . resourceArn !== null && { resourceArn : input . resourceArn } ) ,
... ( input . tagKeys !== undefined &&
input . tagKeys !== null && { tagKeys : serializeAws _json1 _1TagKeyList ( input . tagKeys , context ) } ) ,
} ;
} ;
const serializeAws _json1 _1UploadLayerPartRequest = ( input , context ) => {
return {
... ( input . layerPartBlob !== undefined &&
input . layerPartBlob !== null && { layerPartBlob : context . base64Encoder ( input . layerPartBlob ) } ) ,
... ( input . partFirstByte !== undefined && input . partFirstByte !== null && { partFirstByte : input . partFirstByte } ) ,
... ( input . partLastByte !== undefined && input . partLastByte !== null && { partLastByte : input . partLastByte } ) ,
... ( input . registryId !== undefined && input . registryId !== null && { registryId : input . registryId } ) ,
... ( input . repositoryName !== undefined &&
input . repositoryName !== null && { repositoryName : input . repositoryName } ) ,
... ( input . uploadId !== undefined && input . uploadId !== null && { uploadId : input . uploadId } ) ,
} ;
} ;
const deserializeAws _json1 _1Attribute = ( output , context ) => {
return {
key : smithy _client _1 . expectString ( output . key ) ,
value : smithy _client _1 . expectString ( output . value ) ,
} ;
} ;
const deserializeAws _json1 _1AttributeList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Attribute ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1AuthorizationData = ( output , context ) => {
return {
authorizationToken : smithy _client _1 . expectString ( output . authorizationToken ) ,
expiresAt : output . expiresAt !== undefined && output . expiresAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . expiresAt ) ) )
: undefined ,
proxyEndpoint : smithy _client _1 . expectString ( output . proxyEndpoint ) ,
} ;
} ;
const deserializeAws _json1 _1AuthorizationDataList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1AuthorizationData ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1AwsEcrContainerImageDetails = ( output , context ) => {
return {
architecture : smithy _client _1 . expectString ( output . architecture ) ,
author : smithy _client _1 . expectString ( output . author ) ,
imageHash : smithy _client _1 . expectString ( output . imageHash ) ,
imageTags : output . imageTags !== undefined && output . imageTags !== null
? deserializeAws _json1 _1ImageTagsList ( output . imageTags , context )
: undefined ,
platform : smithy _client _1 . expectString ( output . platform ) ,
pushedAt : output . pushedAt !== undefined && output . pushedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . pushedAt ) ) )
: undefined ,
registry : smithy _client _1 . expectString ( output . registry ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1BatchCheckLayerAvailabilityResponse = ( output , context ) => {
return {
failures : output . failures !== undefined && output . failures !== null
? deserializeAws _json1 _1LayerFailureList ( output . failures , context )
: undefined ,
layers : output . layers !== undefined && output . layers !== null
? deserializeAws _json1 _1LayerList ( output . layers , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1BatchDeleteImageResponse = ( output , context ) => {
return {
failures : output . failures !== undefined && output . failures !== null
? deserializeAws _json1 _1ImageFailureList ( output . failures , context )
: undefined ,
imageIds : output . imageIds !== undefined && output . imageIds !== null
? deserializeAws _json1 _1ImageIdentifierList ( output . imageIds , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1BatchGetImageResponse = ( output , context ) => {
return {
failures : output . failures !== undefined && output . failures !== null
? deserializeAws _json1 _1ImageFailureList ( output . failures , context )
: undefined ,
images : output . images !== undefined && output . images !== null
? deserializeAws _json1 _1ImageList ( output . images , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1BatchGetRepositoryScanningConfigurationResponse = ( output , context ) => {
return {
failures : output . failures !== undefined && output . failures !== null
? deserializeAws _json1 _1RepositoryScanningConfigurationFailureList ( output . failures , context )
: undefined ,
scanningConfigurations : output . scanningConfigurations !== undefined && output . scanningConfigurations !== null
? deserializeAws _json1 _1RepositoryScanningConfigurationList ( output . scanningConfigurations , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1CompleteLayerUploadResponse = ( output , context ) => {
return {
layerDigest : smithy _client _1 . expectString ( output . layerDigest ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1CreatePullThroughCacheRuleResponse = ( output , context ) => {
return {
createdAt : output . createdAt !== undefined && output . createdAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . createdAt ) ) )
: undefined ,
ecrRepositoryPrefix : smithy _client _1 . expectString ( output . ecrRepositoryPrefix ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
upstreamRegistryUrl : smithy _client _1 . expectString ( output . upstreamRegistryUrl ) ,
} ;
} ;
const deserializeAws _json1 _1CreateRepositoryResponse = ( output , context ) => {
return {
repository : output . repository !== undefined && output . repository !== null
? deserializeAws _json1 _1Repository ( output . repository , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1CvssScore = ( output , context ) => {
return {
baseScore : smithy _client _1 . limitedParseDouble ( output . baseScore ) ,
scoringVector : smithy _client _1 . expectString ( output . scoringVector ) ,
source : smithy _client _1 . expectString ( output . source ) ,
version : smithy _client _1 . expectString ( output . version ) ,
} ;
} ;
const deserializeAws _json1 _1CvssScoreAdjustment = ( output , context ) => {
return {
metric : smithy _client _1 . expectString ( output . metric ) ,
reason : smithy _client _1 . expectString ( output . reason ) ,
} ;
} ;
const deserializeAws _json1 _1CvssScoreAdjustmentList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1CvssScoreAdjustment ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1CvssScoreDetails = ( output , context ) => {
return {
adjustments : output . adjustments !== undefined && output . adjustments !== null
? deserializeAws _json1 _1CvssScoreAdjustmentList ( output . adjustments , context )
: undefined ,
score : smithy _client _1 . limitedParseDouble ( output . score ) ,
scoreSource : smithy _client _1 . expectString ( output . scoreSource ) ,
scoringVector : smithy _client _1 . expectString ( output . scoringVector ) ,
version : smithy _client _1 . expectString ( output . version ) ,
} ;
} ;
const deserializeAws _json1 _1CvssScoreList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1CvssScore ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1DeleteLifecyclePolicyResponse = ( output , context ) => {
return {
lastEvaluatedAt : output . lastEvaluatedAt !== undefined && output . lastEvaluatedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . lastEvaluatedAt ) ) )
: undefined ,
lifecyclePolicyText : smithy _client _1 . expectString ( output . lifecyclePolicyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1DeletePullThroughCacheRuleResponse = ( output , context ) => {
return {
createdAt : output . createdAt !== undefined && output . createdAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . createdAt ) ) )
: undefined ,
ecrRepositoryPrefix : smithy _client _1 . expectString ( output . ecrRepositoryPrefix ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
upstreamRegistryUrl : smithy _client _1 . expectString ( output . upstreamRegistryUrl ) ,
} ;
} ;
const deserializeAws _json1 _1DeleteRegistryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
} ;
} ;
const deserializeAws _json1 _1DeleteRepositoryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1DeleteRepositoryResponse = ( output , context ) => {
return {
repository : output . repository !== undefined && output . repository !== null
? deserializeAws _json1 _1Repository ( output . repository , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1DescribeImageReplicationStatusResponse = ( output , context ) => {
return {
imageId : output . imageId !== undefined && output . imageId !== null
? deserializeAws _json1 _1ImageIdentifier ( output . imageId , context )
: undefined ,
replicationStatuses : output . replicationStatuses !== undefined && output . replicationStatuses !== null
? deserializeAws _json1 _1ImageReplicationStatusList ( output . replicationStatuses , context )
: undefined ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1DescribeImageScanFindingsResponse = ( output , context ) => {
return {
imageId : output . imageId !== undefined && output . imageId !== null
? deserializeAws _json1 _1ImageIdentifier ( output . imageId , context )
: undefined ,
imageScanFindings : output . imageScanFindings !== undefined && output . imageScanFindings !== null
? deserializeAws _json1 _1ImageScanFindings ( output . imageScanFindings , context )
: undefined ,
imageScanStatus : output . imageScanStatus !== undefined && output . imageScanStatus !== null
? deserializeAws _json1 _1ImageScanStatus ( output . imageScanStatus , context )
: undefined ,
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1DescribeImagesResponse = ( output , context ) => {
return {
imageDetails : output . imageDetails !== undefined && output . imageDetails !== null
? deserializeAws _json1 _1ImageDetailList ( output . imageDetails , context )
: undefined ,
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
} ;
} ;
const deserializeAws _json1 _1DescribePullThroughCacheRulesResponse = ( output , context ) => {
return {
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
pullThroughCacheRules : output . pullThroughCacheRules !== undefined && output . pullThroughCacheRules !== null
? deserializeAws _json1 _1PullThroughCacheRuleList ( output . pullThroughCacheRules , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1DescribeRegistryResponse = ( output , context ) => {
return {
registryId : smithy _client _1 . expectString ( output . registryId ) ,
replicationConfiguration : output . replicationConfiguration !== undefined && output . replicationConfiguration !== null
? deserializeAws _json1 _1ReplicationConfiguration ( output . replicationConfiguration , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1DescribeRepositoriesResponse = ( output , context ) => {
return {
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
repositories : output . repositories !== undefined && output . repositories !== null
? deserializeAws _json1 _1RepositoryList ( output . repositories , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1EmptyUploadException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1EncryptionConfiguration = ( output , context ) => {
return {
encryptionType : smithy _client _1 . expectString ( output . encryptionType ) ,
kmsKey : smithy _client _1 . expectString ( output . kmsKey ) ,
} ;
} ;
const deserializeAws _json1 _1EnhancedImageScanFinding = ( output , context ) => {
return {
awsAccountId : smithy _client _1 . expectString ( output . awsAccountId ) ,
description : smithy _client _1 . expectString ( output . description ) ,
findingArn : smithy _client _1 . expectString ( output . findingArn ) ,
firstObservedAt : output . firstObservedAt !== undefined && output . firstObservedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . firstObservedAt ) ) )
: undefined ,
lastObservedAt : output . lastObservedAt !== undefined && output . lastObservedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . lastObservedAt ) ) )
: undefined ,
packageVulnerabilityDetails : output . packageVulnerabilityDetails !== undefined && output . packageVulnerabilityDetails !== null
? deserializeAws _json1 _1PackageVulnerabilityDetails ( output . packageVulnerabilityDetails , context )
: undefined ,
remediation : output . remediation !== undefined && output . remediation !== null
? deserializeAws _json1 _1Remediation ( output . remediation , context )
: undefined ,
resources : output . resources !== undefined && output . resources !== null
? deserializeAws _json1 _1ResourceList ( output . resources , context )
: undefined ,
score : smithy _client _1 . limitedParseDouble ( output . score ) ,
scoreDetails : output . scoreDetails !== undefined && output . scoreDetails !== null
? deserializeAws _json1 _1ScoreDetails ( output . scoreDetails , context )
: undefined ,
severity : smithy _client _1 . expectString ( output . severity ) ,
status : smithy _client _1 . expectString ( output . status ) ,
title : smithy _client _1 . expectString ( output . title ) ,
type : smithy _client _1 . expectString ( output . type ) ,
updatedAt : output . updatedAt !== undefined && output . updatedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . updatedAt ) ) )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1EnhancedImageScanFindingList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1EnhancedImageScanFinding ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1FindingSeverityCounts = ( output , context ) => {
return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => {
if ( value === null ) {
return acc ;
}
return {
... acc ,
[ key ] : smithy _client _1 . expectInt32 ( value ) ,
} ;
} , { } ) ;
} ;
const deserializeAws _json1 _1GetAuthorizationTokenResponse = ( output , context ) => {
return {
authorizationData : output . authorizationData !== undefined && output . authorizationData !== null
? deserializeAws _json1 _1AuthorizationDataList ( output . authorizationData , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1GetDownloadUrlForLayerResponse = ( output , context ) => {
return {
downloadUrl : smithy _client _1 . expectString ( output . downloadUrl ) ,
layerDigest : smithy _client _1 . expectString ( output . layerDigest ) ,
} ;
} ;
const deserializeAws _json1 _1GetLifecyclePolicyPreviewResponse = ( output , context ) => {
return {
lifecyclePolicyText : smithy _client _1 . expectString ( output . lifecyclePolicyText ) ,
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
previewResults : output . previewResults !== undefined && output . previewResults !== null
? deserializeAws _json1 _1LifecyclePolicyPreviewResultList ( output . previewResults , context )
: undefined ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
status : smithy _client _1 . expectString ( output . status ) ,
summary : output . summary !== undefined && output . summary !== null
? deserializeAws _json1 _1LifecyclePolicyPreviewSummary ( output . summary , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1GetLifecyclePolicyResponse = ( output , context ) => {
return {
lastEvaluatedAt : output . lastEvaluatedAt !== undefined && output . lastEvaluatedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . lastEvaluatedAt ) ) )
: undefined ,
lifecyclePolicyText : smithy _client _1 . expectString ( output . lifecyclePolicyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1GetRegistryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
} ;
} ;
const deserializeAws _json1 _1GetRegistryScanningConfigurationResponse = ( output , context ) => {
return {
registryId : smithy _client _1 . expectString ( output . registryId ) ,
scanningConfiguration : output . scanningConfiguration !== undefined && output . scanningConfiguration !== null
? deserializeAws _json1 _1RegistryScanningConfiguration ( output . scanningConfiguration , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1GetRepositoryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1Image = ( output , context ) => {
return {
imageId : output . imageId !== undefined && output . imageId !== null
? deserializeAws _json1 _1ImageIdentifier ( output . imageId , context )
: undefined ,
imageManifest : smithy _client _1 . expectString ( output . imageManifest ) ,
imageManifestMediaType : smithy _client _1 . expectString ( output . imageManifestMediaType ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1ImageAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageDetail = ( output , context ) => {
return {
artifactMediaType : smithy _client _1 . expectString ( output . artifactMediaType ) ,
imageDigest : smithy _client _1 . expectString ( output . imageDigest ) ,
imageManifestMediaType : smithy _client _1 . expectString ( output . imageManifestMediaType ) ,
imagePushedAt : output . imagePushedAt !== undefined && output . imagePushedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . imagePushedAt ) ) )
: undefined ,
imageScanFindingsSummary : output . imageScanFindingsSummary !== undefined && output . imageScanFindingsSummary !== null
? deserializeAws _json1 _1ImageScanFindingsSummary ( output . imageScanFindingsSummary , context )
: undefined ,
imageScanStatus : output . imageScanStatus !== undefined && output . imageScanStatus !== null
? deserializeAws _json1 _1ImageScanStatus ( output . imageScanStatus , context )
: undefined ,
imageSizeInBytes : smithy _client _1 . expectLong ( output . imageSizeInBytes ) ,
imageTags : output . imageTags !== undefined && output . imageTags !== null
? deserializeAws _json1 _1ImageTagList ( output . imageTags , context )
: undefined ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1ImageDetailList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageDetail ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageDigestDoesNotMatchException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageFailure = ( output , context ) => {
return {
failureCode : smithy _client _1 . expectString ( output . failureCode ) ,
failureReason : smithy _client _1 . expectString ( output . failureReason ) ,
imageId : output . imageId !== undefined && output . imageId !== null
? deserializeAws _json1 _1ImageIdentifier ( output . imageId , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ImageFailureList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageFailure ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageIdentifier = ( output , context ) => {
return {
imageDigest : smithy _client _1 . expectString ( output . imageDigest ) ,
imageTag : smithy _client _1 . expectString ( output . imageTag ) ,
} ;
} ;
const deserializeAws _json1 _1ImageIdentifierList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageIdentifier ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Image ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageReplicationStatus = ( output , context ) => {
return {
failureCode : smithy _client _1 . expectString ( output . failureCode ) ,
region : smithy _client _1 . expectString ( output . region ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
status : smithy _client _1 . expectString ( output . status ) ,
} ;
} ;
const deserializeAws _json1 _1ImageReplicationStatusList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageReplicationStatus ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageScanFinding = ( output , context ) => {
return {
attributes : output . attributes !== undefined && output . attributes !== null
? deserializeAws _json1 _1AttributeList ( output . attributes , context )
: undefined ,
description : smithy _client _1 . expectString ( output . description ) ,
name : smithy _client _1 . expectString ( output . name ) ,
severity : smithy _client _1 . expectString ( output . severity ) ,
uri : smithy _client _1 . expectString ( output . uri ) ,
} ;
} ;
const deserializeAws _json1 _1ImageScanFindingList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ImageScanFinding ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageScanFindings = ( output , context ) => {
return {
enhancedFindings : output . enhancedFindings !== undefined && output . enhancedFindings !== null
? deserializeAws _json1 _1EnhancedImageScanFindingList ( output . enhancedFindings , context )
: undefined ,
findingSeverityCounts : output . findingSeverityCounts !== undefined && output . findingSeverityCounts !== null
? deserializeAws _json1 _1FindingSeverityCounts ( output . findingSeverityCounts , context )
: undefined ,
findings : output . findings !== undefined && output . findings !== null
? deserializeAws _json1 _1ImageScanFindingList ( output . findings , context )
: undefined ,
imageScanCompletedAt : output . imageScanCompletedAt !== undefined && output . imageScanCompletedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . imageScanCompletedAt ) ) )
: undefined ,
vulnerabilitySourceUpdatedAt : output . vulnerabilitySourceUpdatedAt !== undefined && output . vulnerabilitySourceUpdatedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . vulnerabilitySourceUpdatedAt ) ) )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ImageScanFindingsSummary = ( output , context ) => {
return {
findingSeverityCounts : output . findingSeverityCounts !== undefined && output . findingSeverityCounts !== null
? deserializeAws _json1 _1FindingSeverityCounts ( output . findingSeverityCounts , context )
: undefined ,
imageScanCompletedAt : output . imageScanCompletedAt !== undefined && output . imageScanCompletedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . imageScanCompletedAt ) ) )
: undefined ,
vulnerabilitySourceUpdatedAt : output . vulnerabilitySourceUpdatedAt !== undefined && output . vulnerabilitySourceUpdatedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . vulnerabilitySourceUpdatedAt ) ) )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ImageScanningConfiguration = ( output , context ) => {
return {
scanOnPush : smithy _client _1 . expectBoolean ( output . scanOnPush ) ,
} ;
} ;
const deserializeAws _json1 _1ImageScanStatus = ( output , context ) => {
return {
description : smithy _client _1 . expectString ( output . description ) ,
status : smithy _client _1 . expectString ( output . status ) ,
} ;
} ;
const deserializeAws _json1 _1ImageTagAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ImageTagList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return smithy _client _1 . expectString ( entry ) ;
} ) ;
} ;
const deserializeAws _json1 _1ImageTagsList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return smithy _client _1 . expectString ( entry ) ;
} ) ;
} ;
const deserializeAws _json1 _1InitiateLayerUploadResponse = ( output , context ) => {
return {
partSize : smithy _client _1 . expectLong ( output . partSize ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidLayerException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidLayerPartException = ( output , context ) => {
return {
lastValidByteReceived : smithy _client _1 . expectLong ( output . lastValidByteReceived ) ,
message : smithy _client _1 . expectString ( output . message ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidParameterException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1InvalidTagParameterException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1KmsException = ( output , context ) => {
return {
kmsError : smithy _client _1 . expectString ( output . kmsError ) ,
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1Layer = ( output , context ) => {
return {
layerAvailability : smithy _client _1 . expectString ( output . layerAvailability ) ,
layerDigest : smithy _client _1 . expectString ( output . layerDigest ) ,
layerSize : smithy _client _1 . expectLong ( output . layerSize ) ,
mediaType : smithy _client _1 . expectString ( output . mediaType ) ,
} ;
} ;
const deserializeAws _json1 _1LayerAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LayerFailure = ( output , context ) => {
return {
failureCode : smithy _client _1 . expectString ( output . failureCode ) ,
failureReason : smithy _client _1 . expectString ( output . failureReason ) ,
layerDigest : smithy _client _1 . expectString ( output . layerDigest ) ,
} ;
} ;
const deserializeAws _json1 _1LayerFailureList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1LayerFailure ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1LayerInaccessibleException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LayerList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Layer ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1LayerPartTooSmallException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LayersNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LifecyclePolicyNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LifecyclePolicyPreviewInProgressException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LifecyclePolicyPreviewNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1LifecyclePolicyPreviewResult = ( output , context ) => {
return {
action : output . action !== undefined && output . action !== null
? deserializeAws _json1 _1LifecyclePolicyRuleAction ( output . action , context )
: undefined ,
appliedRulePriority : smithy _client _1 . expectInt32 ( output . appliedRulePriority ) ,
imageDigest : smithy _client _1 . expectString ( output . imageDigest ) ,
imagePushedAt : output . imagePushedAt !== undefined && output . imagePushedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . imagePushedAt ) ) )
: undefined ,
imageTags : output . imageTags !== undefined && output . imageTags !== null
? deserializeAws _json1 _1ImageTagList ( output . imageTags , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1LifecyclePolicyPreviewResultList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1LifecyclePolicyPreviewResult ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1LifecyclePolicyPreviewSummary = ( output , context ) => {
return {
expiringImageTotalCount : smithy _client _1 . expectInt32 ( output . expiringImageTotalCount ) ,
} ;
} ;
const deserializeAws _json1 _1LifecyclePolicyRuleAction = ( output , context ) => {
return {
type : smithy _client _1 . expectString ( output . type ) ,
} ;
} ;
const deserializeAws _json1 _1LimitExceededException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ListImagesResponse = ( output , context ) => {
return {
imageIds : output . imageIds !== undefined && output . imageIds !== null
? deserializeAws _json1 _1ImageIdentifierList ( output . imageIds , context )
: undefined ,
nextToken : smithy _client _1 . expectString ( output . nextToken ) ,
} ;
} ;
const deserializeAws _json1 _1ListTagsForResourceResponse = ( output , context ) => {
return {
tags : output . tags !== undefined && output . tags !== null
? deserializeAws _json1 _1TagList ( output . tags , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1PackageVulnerabilityDetails = ( output , context ) => {
return {
cvss : output . cvss !== undefined && output . cvss !== null
? deserializeAws _json1 _1CvssScoreList ( output . cvss , context )
: undefined ,
referenceUrls : output . referenceUrls !== undefined && output . referenceUrls !== null
? deserializeAws _json1 _1ReferenceUrlsList ( output . referenceUrls , context )
: undefined ,
relatedVulnerabilities : output . relatedVulnerabilities !== undefined && output . relatedVulnerabilities !== null
? deserializeAws _json1 _1RelatedVulnerabilitiesList ( output . relatedVulnerabilities , context )
: undefined ,
source : smithy _client _1 . expectString ( output . source ) ,
sourceUrl : smithy _client _1 . expectString ( output . sourceUrl ) ,
vendorCreatedAt : output . vendorCreatedAt !== undefined && output . vendorCreatedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . vendorCreatedAt ) ) )
: undefined ,
vendorSeverity : smithy _client _1 . expectString ( output . vendorSeverity ) ,
vendorUpdatedAt : output . vendorUpdatedAt !== undefined && output . vendorUpdatedAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . vendorUpdatedAt ) ) )
: undefined ,
vulnerabilityId : smithy _client _1 . expectString ( output . vulnerabilityId ) ,
vulnerablePackages : output . vulnerablePackages !== undefined && output . vulnerablePackages !== null
? deserializeAws _json1 _1VulnerablePackagesList ( output . vulnerablePackages , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1PullThroughCacheRule = ( output , context ) => {
return {
createdAt : output . createdAt !== undefined && output . createdAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . createdAt ) ) )
: undefined ,
ecrRepositoryPrefix : smithy _client _1 . expectString ( output . ecrRepositoryPrefix ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
upstreamRegistryUrl : smithy _client _1 . expectString ( output . upstreamRegistryUrl ) ,
} ;
} ;
const deserializeAws _json1 _1PullThroughCacheRuleAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1PullThroughCacheRuleList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1PullThroughCacheRule ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1PullThroughCacheRuleNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1PutImageResponse = ( output , context ) => {
return {
image : output . image !== undefined && output . image !== null
? deserializeAws _json1 _1Image ( output . image , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1PutImageScanningConfigurationResponse = ( output , context ) => {
return {
imageScanningConfiguration : output . imageScanningConfiguration !== undefined && output . imageScanningConfiguration !== null
? deserializeAws _json1 _1ImageScanningConfiguration ( output . imageScanningConfiguration , context )
: undefined ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1PutImageTagMutabilityResponse = ( output , context ) => {
return {
imageTagMutability : smithy _client _1 . expectString ( output . imageTagMutability ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1PutLifecyclePolicyResponse = ( output , context ) => {
return {
lifecyclePolicyText : smithy _client _1 . expectString ( output . lifecyclePolicyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1PutRegistryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
} ;
} ;
const deserializeAws _json1 _1PutRegistryScanningConfigurationResponse = ( output , context ) => {
return {
registryScanningConfiguration : output . registryScanningConfiguration !== undefined && output . registryScanningConfiguration !== null
? deserializeAws _json1 _1RegistryScanningConfiguration ( output . registryScanningConfiguration , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1PutReplicationConfigurationResponse = ( output , context ) => {
return {
replicationConfiguration : output . replicationConfiguration !== undefined && output . replicationConfiguration !== null
? deserializeAws _json1 _1ReplicationConfiguration ( output . replicationConfiguration , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1Recommendation = ( output , context ) => {
return {
text : smithy _client _1 . expectString ( output . text ) ,
url : smithy _client _1 . expectString ( output . url ) ,
} ;
} ;
const deserializeAws _json1 _1ReferencedImagesNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ReferenceUrlsList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return smithy _client _1 . expectString ( entry ) ;
} ) ;
} ;
const deserializeAws _json1 _1RegistryPolicyNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RegistryScanningConfiguration = ( output , context ) => {
return {
rules : output . rules !== undefined && output . rules !== null
? deserializeAws _json1 _1RegistryScanningRuleList ( output . rules , context )
: undefined ,
scanType : smithy _client _1 . expectString ( output . scanType ) ,
} ;
} ;
const deserializeAws _json1 _1RegistryScanningRule = ( output , context ) => {
return {
repositoryFilters : output . repositoryFilters !== undefined && output . repositoryFilters !== null
? deserializeAws _json1 _1ScanningRepositoryFilterList ( output . repositoryFilters , context )
: undefined ,
scanFrequency : smithy _client _1 . expectString ( output . scanFrequency ) ,
} ;
} ;
const deserializeAws _json1 _1RegistryScanningRuleList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1RegistryScanningRule ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1RelatedVulnerabilitiesList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return smithy _client _1 . expectString ( entry ) ;
} ) ;
} ;
const deserializeAws _json1 _1Remediation = ( output , context ) => {
return {
recommendation : output . recommendation !== undefined && output . recommendation !== null
? deserializeAws _json1 _1Recommendation ( output . recommendation , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ReplicationConfiguration = ( output , context ) => {
return {
rules : output . rules !== undefined && output . rules !== null
? deserializeAws _json1 _1ReplicationRuleList ( output . rules , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ReplicationDestination = ( output , context ) => {
return {
region : smithy _client _1 . expectString ( output . region ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
} ;
} ;
const deserializeAws _json1 _1ReplicationDestinationList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ReplicationDestination ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ReplicationRule = ( output , context ) => {
return {
destinations : output . destinations !== undefined && output . destinations !== null
? deserializeAws _json1 _1ReplicationDestinationList ( output . destinations , context )
: undefined ,
repositoryFilters : output . repositoryFilters !== undefined && output . repositoryFilters !== null
? deserializeAws _json1 _1RepositoryFilterList ( output . repositoryFilters , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ReplicationRuleList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ReplicationRule ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1Repository = ( output , context ) => {
return {
createdAt : output . createdAt !== undefined && output . createdAt !== null
? smithy _client _1 . expectNonNull ( smithy _client _1 . parseEpochTimestamp ( smithy _client _1 . expectNumber ( output . createdAt ) ) )
: undefined ,
encryptionConfiguration : output . encryptionConfiguration !== undefined && output . encryptionConfiguration !== null
? deserializeAws _json1 _1EncryptionConfiguration ( output . encryptionConfiguration , context )
: undefined ,
imageScanningConfiguration : output . imageScanningConfiguration !== undefined && output . imageScanningConfiguration !== null
? deserializeAws _json1 _1ImageScanningConfiguration ( output . imageScanningConfiguration , context )
: undefined ,
imageTagMutability : smithy _client _1 . expectString ( output . imageTagMutability ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryArn : smithy _client _1 . expectString ( output . repositoryArn ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
repositoryUri : smithy _client _1 . expectString ( output . repositoryUri ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryAlreadyExistsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryFilter = ( output , context ) => {
return {
filter : smithy _client _1 . expectString ( output . filter ) ,
filterType : smithy _client _1 . expectString ( output . filterType ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryFilterList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1RepositoryFilter ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1RepositoryList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Repository ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1RepositoryNotEmptyException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryPolicyNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryScanningConfiguration = ( output , context ) => {
return {
appliedScanFilters : output . appliedScanFilters !== undefined && output . appliedScanFilters !== null
? deserializeAws _json1 _1ScanningRepositoryFilterList ( output . appliedScanFilters , context )
: undefined ,
repositoryArn : smithy _client _1 . expectString ( output . repositoryArn ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
scanFrequency : smithy _client _1 . expectString ( output . scanFrequency ) ,
scanOnPush : smithy _client _1 . expectBoolean ( output . scanOnPush ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryScanningConfigurationFailure = ( output , context ) => {
return {
failureCode : smithy _client _1 . expectString ( output . failureCode ) ,
failureReason : smithy _client _1 . expectString ( output . failureReason ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1RepositoryScanningConfigurationFailureList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1RepositoryScanningConfigurationFailure ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1RepositoryScanningConfigurationList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1RepositoryScanningConfiguration ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1Resource = ( output , context ) => {
return {
details : output . details !== undefined && output . details !== null
? deserializeAws _json1 _1ResourceDetails ( output . details , context )
: undefined ,
id : smithy _client _1 . expectString ( output . id ) ,
tags : output . tags !== undefined && output . tags !== null ? deserializeAws _json1 _1Tags ( output . tags , context ) : undefined ,
type : smithy _client _1 . expectString ( output . type ) ,
} ;
} ;
const deserializeAws _json1 _1ResourceDetails = ( output , context ) => {
return {
awsEcrContainerImage : output . awsEcrContainerImage !== undefined && output . awsEcrContainerImage !== null
? deserializeAws _json1 _1AwsEcrContainerImageDetails ( output . awsEcrContainerImage , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ResourceList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Resource ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ScanningRepositoryFilter = ( output , context ) => {
return {
filter : smithy _client _1 . expectString ( output . filter ) ,
filterType : smithy _client _1 . expectString ( output . filterType ) ,
} ;
} ;
const deserializeAws _json1 _1ScanningRepositoryFilterList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1ScanningRepositoryFilter ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1ScanNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ScoreDetails = ( output , context ) => {
return {
cvss : output . cvss !== undefined && output . cvss !== null
? deserializeAws _json1 _1CvssScoreDetails ( output . cvss , context )
: undefined ,
} ;
} ;
const deserializeAws _json1 _1ServerException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1SetRepositoryPolicyResponse = ( output , context ) => {
return {
policyText : smithy _client _1 . expectString ( output . policyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1StartImageScanResponse = ( output , context ) => {
return {
imageId : output . imageId !== undefined && output . imageId !== null
? deserializeAws _json1 _1ImageIdentifier ( output . imageId , context )
: undefined ,
imageScanStatus : output . imageScanStatus !== undefined && output . imageScanStatus !== null
? deserializeAws _json1 _1ImageScanStatus ( output . imageScanStatus , context )
: undefined ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
} ;
} ;
const deserializeAws _json1 _1StartLifecyclePolicyPreviewResponse = ( output , context ) => {
return {
lifecyclePolicyText : smithy _client _1 . expectString ( output . lifecyclePolicyText ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
status : smithy _client _1 . expectString ( output . status ) ,
} ;
} ;
const deserializeAws _json1 _1Tag = ( output , context ) => {
return {
Key : smithy _client _1 . expectString ( output . Key ) ,
Value : smithy _client _1 . expectString ( output . Value ) ,
} ;
} ;
const deserializeAws _json1 _1TagList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1Tag ( entry , context ) ;
} ) ;
} ;
const deserializeAws _json1 _1TagResourceResponse = ( output , context ) => {
return { } ;
} ;
const deserializeAws _json1 _1Tags = ( output , context ) => {
return Object . entries ( output ) . reduce ( ( acc , [ key , value ] ) => {
if ( value === null ) {
return acc ;
}
return {
... acc ,
[ key ] : smithy _client _1 . expectString ( value ) ,
} ;
} , { } ) ;
} ;
const deserializeAws _json1 _1TooManyTagsException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1UnsupportedImageTypeException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1UnsupportedUpstreamRegistryException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1UntagResourceResponse = ( output , context ) => {
return { } ;
} ;
const deserializeAws _json1 _1UploadLayerPartResponse = ( output , context ) => {
return {
lastByteReceived : smithy _client _1 . expectLong ( output . lastByteReceived ) ,
registryId : smithy _client _1 . expectString ( output . registryId ) ,
repositoryName : smithy _client _1 . expectString ( output . repositoryName ) ,
uploadId : smithy _client _1 . expectString ( output . uploadId ) ,
} ;
} ;
const deserializeAws _json1 _1UploadNotFoundException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1ValidationException = ( output , context ) => {
return {
message : smithy _client _1 . expectString ( output . message ) ,
} ;
} ;
const deserializeAws _json1 _1VulnerablePackage = ( output , context ) => {
return {
arch : smithy _client _1 . expectString ( output . arch ) ,
epoch : smithy _client _1 . expectInt32 ( output . epoch ) ,
filePath : smithy _client _1 . expectString ( output . filePath ) ,
name : smithy _client _1 . expectString ( output . name ) ,
packageManager : smithy _client _1 . expectString ( output . packageManager ) ,
release : smithy _client _1 . expectString ( output . release ) ,
sourceLayerHash : smithy _client _1 . expectString ( output . sourceLayerHash ) ,
version : smithy _client _1 . expectString ( output . version ) ,
} ;
} ;
const deserializeAws _json1 _1VulnerablePackagesList = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _json1 _1VulnerablePackage ( entry , context ) ;
} ) ;
} ;
const deserializeMetadata = ( output ) => {
var _a ;
return ( {
httpStatusCode : output . statusCode ,
requestId : ( _a = output . headers [ "x-amzn-requestid" ] ) !== null && _a !== void 0 ? _a : output . headers [ "x-amzn-request-id" ] ,
extendedRequestId : output . headers [ "x-amz-id-2" ] ,
cfId : output . headers [ "x-amz-cf-id" ] ,
} ) ;
} ;
const collectBody = ( streamBody = new Uint8Array ( ) , context ) => {
if ( streamBody instanceof Uint8Array ) {
return Promise . resolve ( streamBody ) ;
}
return context . streamCollector ( streamBody ) || Promise . resolve ( new Uint8Array ( ) ) ;
} ;
const collectBodyString = ( streamBody , context ) => collectBody ( streamBody , context ) . then ( ( body ) => context . utf8Encoder ( body ) ) ;
const buildHttpRpcRequest = async ( context , headers , path , resolvedHostname , body ) => {
const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ;
const contents = {
protocol ,
hostname ,
port ,
method : "POST" ,
path : basePath . endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) + path : basePath + path ,
headers ,
} ;
if ( resolvedHostname !== undefined ) {
contents . hostname = resolvedHostname ;
}
if ( body !== undefined ) {
contents . body = body ;
}
return new protocol _http _1 . HttpRequest ( contents ) ;
} ;
const parseBody = ( streamBody , context ) => collectBodyString ( streamBody , context ) . then ( ( encoded ) => {
if ( encoded . length ) {
return JSON . parse ( encoded ) ;
}
return { } ;
} ) ;
const loadRestJsonErrorCode = ( output , data ) => {
const findKey = ( object , key ) => Object . keys ( object ) . find ( ( k ) => k . toLowerCase ( ) === key . toLowerCase ( ) ) ;
const sanitizeErrorCode = ( rawValue ) => {
let cleanValue = rawValue ;
if ( cleanValue . indexOf ( ":" ) >= 0 ) {
cleanValue = cleanValue . split ( ":" ) [ 0 ] ;
}
if ( cleanValue . indexOf ( "#" ) >= 0 ) {
cleanValue = cleanValue . split ( "#" ) [ 1 ] ;
}
return cleanValue ;
} ;
const headerKey = findKey ( output . headers , "x-amzn-errortype" ) ;
if ( headerKey !== undefined ) {
return sanitizeErrorCode ( output . headers [ headerKey ] ) ;
}
if ( data . code !== undefined ) {
return sanitizeErrorCode ( data . code ) ;
}
if ( data [ "__type" ] !== undefined ) {
return sanitizeErrorCode ( data [ "__type" ] ) ;
}
return "" ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 869 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
const package _json _1 = tslib _1 . _ _importDefault ( _ _nccwpck _require _ _ ( 6879 ) ) ;
2021-12-30 20:43:44 +01:00
const client _sts _1 = _ _nccwpck _require _ _ ( 2209 ) ;
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
const credential _provider _node _1 = _ _nccwpck _require _ _ ( 5531 ) ;
2021-12-20 10:00:03 +01:00
const hash _node _1 = _ _nccwpck _require _ _ ( 7442 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
const node _config _provider _1 = _ _nccwpck _require _ _ ( 7684 ) ;
const node _http _handler _1 = _ _nccwpck _require _ _ ( 8805 ) ;
const util _base64 _node _1 = _ _nccwpck _require _ _ ( 8588 ) ;
const util _body _length _node _1 = _ _nccwpck _require _ _ ( 4147 ) ;
const util _user _agent _node _1 = _ _nccwpck _require _ _ ( 8095 ) ;
const util _utf8 _node _1 = _ _nccwpck _require _ _ ( 6278 ) ;
const runtimeConfig _shared _1 = _ _nccwpck _require _ _ ( 542 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e , _f , _g , _h , _j , _k , _l , _m , _o , _p , _q ;
smithy _client _1 . emitWarningIfUnsupportedVersion ( process . version ) ;
const clientSharedValues = runtimeConfig _shared _1 . getRuntimeConfig ( config ) ;
return {
... clientSharedValues ,
... config ,
runtime : "node" ,
base64Decoder : ( _a = config === null || config === void 0 ? void 0 : config . base64Decoder ) !== null && _a !== void 0 ? _a : util _base64 _node _1 . fromBase64 ,
base64Encoder : ( _b = config === null || config === void 0 ? void 0 : config . base64Encoder ) !== null && _b !== void 0 ? _b : util _base64 _node _1 . toBase64 ,
bodyLengthChecker : ( _c = config === null || config === void 0 ? void 0 : config . bodyLengthChecker ) !== null && _c !== void 0 ? _c : util _body _length _node _1 . calculateBodyLength ,
credentialDefaultProvider : ( _d = config === null || config === void 0 ? void 0 : config . credentialDefaultProvider ) !== null && _d !== void 0 ? _d : client _sts _1 . decorateDefaultCredentialProvider ( credential _provider _node _1 . defaultProvider ) ,
defaultUserAgentProvider : ( _e = config === null || config === void 0 ? void 0 : config . defaultUserAgentProvider ) !== null && _e !== void 0 ? _e : util _user _agent _node _1 . defaultUserAgent ( { serviceId : clientSharedValues . serviceId , clientVersion : package _json _1 . default . version } ) ,
maxAttempts : ( _f = config === null || config === void 0 ? void 0 : config . maxAttempts ) !== null && _f !== void 0 ? _f : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _MAX _ATTEMPT _CONFIG _OPTIONS ) ,
region : ( _g = config === null || config === void 0 ? void 0 : config . region ) !== null && _g !== void 0 ? _g : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _REGION _CONFIG _OPTIONS , config _resolver _1 . NODE _REGION _CONFIG _FILE _OPTIONS ) ,
requestHandler : ( _h = config === null || config === void 0 ? void 0 : config . requestHandler ) !== null && _h !== void 0 ? _h : new node _http _handler _1 . NodeHttpHandler ( ) ,
retryMode : ( _j = config === null || config === void 0 ? void 0 : config . retryMode ) !== null && _j !== void 0 ? _j : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _RETRY _MODE _CONFIG _OPTIONS ) ,
sha256 : ( _k = config === null || config === void 0 ? void 0 : config . sha256 ) !== null && _k !== void 0 ? _k : hash _node _1 . Hash . bind ( null , "sha256" ) ,
streamCollector : ( _l = config === null || config === void 0 ? void 0 : config . streamCollector ) !== null && _l !== void 0 ? _l : node _http _handler _1 . streamCollector ,
useDualstackEndpoint : ( _m = config === null || config === void 0 ? void 0 : config . useDualstackEndpoint ) !== null && _m !== void 0 ? _m : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _DUALSTACK _ENDPOINT _CONFIG _OPTIONS ) ,
useFipsEndpoint : ( _o = config === null || config === void 0 ? void 0 : config . useFipsEndpoint ) !== null && _o !== void 0 ? _o : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _FIPS _ENDPOINT _CONFIG _OPTIONS ) ,
utf8Decoder : ( _p = config === null || config === void 0 ? void 0 : config . utf8Decoder ) !== null && _p !== void 0 ? _p : util _utf8 _node _1 . fromUtf8 ,
utf8Encoder : ( _q = config === null || config === void 0 ? void 0 : config . utf8Encoder ) !== null && _q !== void 0 ? _q : util _utf8 _node _1 . toUtf8 ,
} ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 542 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const url _parser _1 = _ _nccwpck _require _ _ ( 2992 ) ;
const endpoints _1 = _ _nccwpck _require _ _ ( 3070 ) ;
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e ;
return ( {
apiVersion : "2015-09-21" ,
disableHostPrefix : ( _a = config === null || config === void 0 ? void 0 : config . disableHostPrefix ) !== null && _a !== void 0 ? _a : false ,
logger : ( _b = config === null || config === void 0 ? void 0 : config . logger ) !== null && _b !== void 0 ? _b : { } ,
regionInfoProvider : ( _c = config === null || config === void 0 ? void 0 : config . regionInfoProvider ) !== null && _c !== void 0 ? _c : endpoints _1 . defaultRegionInfoProvider ,
serviceId : ( _d = config === null || config === void 0 ? void 0 : config . serviceId ) !== null && _d !== void 0 ? _d : "ECR" ,
urlParser : ( _e = config === null || config === void 0 ? void 0 : config . urlParser ) !== null && _e !== void 0 ? _e : url _parser _1 . parseUrl ,
} ) ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8406 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8547 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5723 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8547 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . waitUntilImageScanComplete = exports . waitForImageScanComplete = void 0 ;
const util _waiter _1 = _ _nccwpck _require _ _ ( 1627 ) ;
const DescribeImageScanFindingsCommand _1 = _ _nccwpck _require _ _ ( 2987 ) ;
const checkState = async ( client , input ) => {
let reason ;
try {
const result = await client . send ( new DescribeImageScanFindingsCommand _1 . DescribeImageScanFindingsCommand ( input ) ) ;
reason = result ;
try {
const returnComparator = ( ) => {
return result . imageScanStatus . status ;
} ;
if ( returnComparator ( ) === "COMPLETE" ) {
return { state : util _waiter _1 . WaiterState . SUCCESS , reason } ;
}
}
catch ( e ) { }
try {
const returnComparator = ( ) => {
return result . imageScanStatus . status ;
} ;
if ( returnComparator ( ) === "FAILED" ) {
return { state : util _waiter _1 . WaiterState . FAILURE , reason } ;
}
}
catch ( e ) { }
}
catch ( exception ) {
reason = exception ;
}
return { state : util _waiter _1 . WaiterState . RETRY , reason } ;
} ;
const waitForImageScanComplete = async ( params , input ) => {
const serviceDefaults = { minDelay : 5 , maxDelay : 120 } ;
return util _waiter _1 . createWaiter ( { ... serviceDefaults , ... params } , input , checkState ) ;
} ;
exports . waitForImageScanComplete = waitForImageScanComplete ;
const waitUntilImageScanComplete = async ( params , input ) => {
const serviceDefaults = { minDelay : 5 , maxDelay : 120 } ;
const result = await util _waiter _1 . createWaiter ( { ... serviceDefaults , ... params } , input , checkState ) ;
return util _waiter _1 . checkExceptions ( result ) ;
} ;
exports . waitUntilImageScanComplete = waitUntilImageScanComplete ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5723 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . waitUntilLifecyclePolicyPreviewComplete = exports . waitForLifecyclePolicyPreviewComplete = void 0 ;
const util _waiter _1 = _ _nccwpck _require _ _ ( 1627 ) ;
const GetLifecyclePolicyPreviewCommand _1 = _ _nccwpck _require _ _ ( 7006 ) ;
const checkState = async ( client , input ) => {
let reason ;
try {
const result = await client . send ( new GetLifecyclePolicyPreviewCommand _1 . GetLifecyclePolicyPreviewCommand ( input ) ) ;
reason = result ;
try {
const returnComparator = ( ) => {
return result . status ;
} ;
if ( returnComparator ( ) === "COMPLETE" ) {
return { state : util _waiter _1 . WaiterState . SUCCESS , reason } ;
}
}
catch ( e ) { }
try {
const returnComparator = ( ) => {
return result . status ;
} ;
if ( returnComparator ( ) === "FAILED" ) {
return { state : util _waiter _1 . WaiterState . FAILURE , reason } ;
}
}
catch ( e ) { }
}
catch ( exception ) {
reason = exception ;
}
return { state : util _waiter _1 . WaiterState . RETRY , reason } ;
} ;
const waitForLifecyclePolicyPreviewComplete = async ( params , input ) => {
const serviceDefaults = { minDelay : 5 , maxDelay : 120 } ;
return util _waiter _1 . createWaiter ( { ... serviceDefaults , ... params } , input , checkState ) ;
} ;
exports . waitForLifecyclePolicyPreviewComplete = waitForLifecyclePolicyPreviewComplete ;
const waitUntilLifecyclePolicyPreviewComplete = async ( params , input ) => {
const serviceDefaults = { minDelay : 5 , maxDelay : 120 } ;
const result = await util _waiter _1 . createWaiter ( { ... serviceDefaults , ... params } , input , checkState ) ;
return util _waiter _1 . checkExceptions ( result ) ;
} ;
exports . waitUntilLifecyclePolicyPreviewComplete = waitUntilLifecyclePolicyPreviewComplete ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 9838 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . SSO = void 0 ;
2021-12-30 20:43:44 +01:00
const GetRoleCredentialsCommand _1 = _ _nccwpck _require _ _ ( 8972 ) ;
const ListAccountRolesCommand _1 = _ _nccwpck _require _ _ ( 1513 ) ;
const ListAccountsCommand _1 = _ _nccwpck _require _ _ ( 4296 ) ;
const LogoutCommand _1 = _ _nccwpck _require _ _ ( 2586 ) ;
const SSOClient _1 = _ _nccwpck _require _ _ ( 1057 ) ;
2021-12-20 10:00:03 +01:00
class SSO extends SSOClient _1 . SSOClient {
getRoleCredentials ( args , optionsOrCb , cb ) {
const command = new GetRoleCredentialsCommand _1 . GetRoleCredentialsCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
listAccountRoles ( args , optionsOrCb , cb ) {
const command = new ListAccountRolesCommand _1 . ListAccountRolesCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
listAccounts ( args , optionsOrCb , cb ) {
const command = new ListAccountsCommand _1 . ListAccountsCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
logout ( args , optionsOrCb , cb ) {
const command = new LogoutCommand _1 . LogoutCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
}
exports . SSO = SSO ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 1057 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . SSOClient = void 0 ;
2021-12-30 20:43:44 +01:00
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
2021-12-20 10:00:03 +01:00
const middleware _content _length _1 = _ _nccwpck _require _ _ ( 2245 ) ;
const middleware _host _header _1 = _ _nccwpck _require _ _ ( 2545 ) ;
const middleware _logger _1 = _ _nccwpck _require _ _ ( 14 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
const middleware _user _agent _1 = _ _nccwpck _require _ _ ( 4688 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const runtimeConfig _1 = _ _nccwpck _require _ _ ( 9756 ) ;
2021-12-20 10:00:03 +01:00
class SSOClient extends smithy _client _1 . Client {
constructor ( configuration ) {
const _config _0 = runtimeConfig _1 . getRuntimeConfig ( configuration ) ;
const _config _1 = config _resolver _1 . resolveRegionConfig ( _config _0 ) ;
const _config _2 = config _resolver _1 . resolveEndpointsConfig ( _config _1 ) ;
const _config _3 = middleware _retry _1 . resolveRetryConfig ( _config _2 ) ;
const _config _4 = middleware _host _header _1 . resolveHostHeaderConfig ( _config _3 ) ;
const _config _5 = middleware _user _agent _1 . resolveUserAgentConfig ( _config _4 ) ;
super ( _config _5 ) ;
this . config = _config _5 ;
this . middlewareStack . use ( middleware _retry _1 . getRetryPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _content _length _1 . getContentLengthPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _host _header _1 . getHostHeaderPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _logger _1 . getLoggerPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _user _agent _1 . getUserAgentPlugin ( this . config ) ) ;
}
destroy ( ) {
super . destroy ( ) ;
}
}
exports . SSOClient = SSOClient ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 8972 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetRoleCredentialsCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 6390 ) ;
const Aws _restJson1 _1 = _ _nccwpck _require _ _ ( 8507 ) ;
2021-12-20 10:00:03 +01:00
class GetRoleCredentialsCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "SSOClient" ;
const commandName = "GetRoleCredentialsCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetRoleCredentialsRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetRoleCredentialsResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _restJson1 _1 . serializeAws _restJson1GetRoleCredentialsCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _restJson1 _1 . deserializeAws _restJson1GetRoleCredentialsCommand ( output , context ) ;
}
}
exports . GetRoleCredentialsCommand = GetRoleCredentialsCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 1513 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ListAccountRolesCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 6390 ) ;
const Aws _restJson1 _1 = _ _nccwpck _require _ _ ( 8507 ) ;
2021-12-20 10:00:03 +01:00
class ListAccountRolesCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "SSOClient" ;
const commandName = "ListAccountRolesCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . ListAccountRolesRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . ListAccountRolesResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _restJson1 _1 . serializeAws _restJson1ListAccountRolesCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _restJson1 _1 . deserializeAws _restJson1ListAccountRolesCommand ( output , context ) ;
}
}
exports . ListAccountRolesCommand = ListAccountRolesCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4296 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . ListAccountsCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 6390 ) ;
const Aws _restJson1 _1 = _ _nccwpck _require _ _ ( 8507 ) ;
2021-12-20 10:00:03 +01:00
class ListAccountsCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "SSOClient" ;
const commandName = "ListAccountsCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . ListAccountsRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . ListAccountsResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _restJson1 _1 . serializeAws _restJson1ListAccountsCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _restJson1 _1 . deserializeAws _restJson1ListAccountsCommand ( output , context ) ;
}
}
exports . ListAccountsCommand = ListAccountsCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2586 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . LogoutCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 6390 ) ;
const Aws _restJson1 _1 = _ _nccwpck _require _ _ ( 8507 ) ;
2021-12-20 10:00:03 +01:00
class LogoutCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "SSOClient" ;
const commandName = "LogoutCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . LogoutRequest . filterSensitiveLog ,
outputFilterSensitiveLog : ( output ) => output ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _restJson1 _1 . serializeAws _restJson1LogoutCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _restJson1 _1 . deserializeAws _restJson1LogoutCommand ( output , context ) ;
}
}
exports . LogoutCommand = LogoutCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 5706 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8972 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1513 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4296 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2586 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3546 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultRegionInfoProvider = void 0 ;
2021-12-30 20:43:44 +01:00
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
2021-12-20 10:00:03 +01:00
const regionHash = {
"ap-northeast-1" : {
variants : [
{
hostname : "portal.sso.ap-northeast-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-northeast-1" ,
} ,
"ap-northeast-2" : {
variants : [
{
hostname : "portal.sso.ap-northeast-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-northeast-2" ,
} ,
"ap-south-1" : {
variants : [
{
hostname : "portal.sso.ap-south-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-south-1" ,
} ,
"ap-southeast-1" : {
variants : [
{
hostname : "portal.sso.ap-southeast-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-southeast-1" ,
} ,
"ap-southeast-2" : {
variants : [
{
hostname : "portal.sso.ap-southeast-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ap-southeast-2" ,
} ,
"ca-central-1" : {
variants : [
{
hostname : "portal.sso.ca-central-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "ca-central-1" ,
} ,
"eu-central-1" : {
variants : [
{
hostname : "portal.sso.eu-central-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-central-1" ,
} ,
"eu-north-1" : {
variants : [
{
hostname : "portal.sso.eu-north-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-north-1" ,
} ,
"eu-west-1" : {
variants : [
{
hostname : "portal.sso.eu-west-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-west-1" ,
} ,
"eu-west-2" : {
variants : [
{
hostname : "portal.sso.eu-west-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-west-2" ,
} ,
"eu-west-3" : {
variants : [
{
hostname : "portal.sso.eu-west-3.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "eu-west-3" ,
} ,
"sa-east-1" : {
variants : [
{
hostname : "portal.sso.sa-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "sa-east-1" ,
} ,
"us-east-1" : {
variants : [
{
hostname : "portal.sso.us-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-east-1" ,
} ,
"us-east-2" : {
variants : [
{
hostname : "portal.sso.us-east-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-east-2" ,
} ,
"us-gov-west-1" : {
variants : [
{
hostname : "portal.sso.us-gov-west-1.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-gov-west-1" ,
} ,
"us-west-2" : {
variants : [
{
hostname : "portal.sso.us-west-2.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-west-2" ,
} ,
} ;
const partitionHash = {
aws : {
regions : [
"af-south-1" ,
"ap-east-1" ,
"ap-northeast-1" ,
"ap-northeast-2" ,
"ap-northeast-3" ,
"ap-south-1" ,
"ap-southeast-1" ,
"ap-southeast-2" ,
2021-12-30 19:35:40 +01:00
"ap-southeast-3" ,
2021-12-20 10:00:03 +01:00
"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" ,
] ,
regionRegex : "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "portal.sso.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "portal.sso-fips.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "portal.sso-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "portal.sso.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-cn" : {
regions : [ "cn-north-1" , "cn-northwest-1" ] ,
regionRegex : "^cn\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "portal.sso.{region}.amazonaws.com.cn" ,
tags : [ ] ,
} ,
{
hostname : "portal.sso-fips.{region}.amazonaws.com.cn" ,
tags : [ "fips" ] ,
} ,
{
hostname : "portal.sso-fips.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "portal.sso.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-iso" : {
regions : [ "us-iso-east-1" , "us-iso-west-1" ] ,
regionRegex : "^us\\-iso\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "portal.sso.{region}.c2s.ic.gov" ,
tags : [ ] ,
} ,
{
hostname : "portal.sso-fips.{region}.c2s.ic.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-iso-b" : {
regions : [ "us-isob-east-1" ] ,
regionRegex : "^us\\-isob\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "portal.sso.{region}.sc2s.sgov.gov" ,
tags : [ ] ,
} ,
{
hostname : "portal.sso-fips.{region}.sc2s.sgov.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-us-gov" : {
regions : [ "us-gov-east-1" , "us-gov-west-1" ] ,
regionRegex : "^us\\-gov\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "portal.sso.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "portal.sso-fips.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "portal.sso-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "portal.sso.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
} ;
const defaultRegionInfoProvider = async ( region , options ) => config _resolver _1 . getRegionInfo ( region , {
... options ,
signingService : "awsssoportal" ,
regionHash ,
partitionHash ,
} ) ;
exports . defaultRegionInfoProvider = defaultRegionInfoProvider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2666 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9838 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1057 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5706 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4952 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6773 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4952 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6390 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 6390 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . LogoutRequest = exports . ListAccountsResponse = exports . ListAccountsRequest = exports . ListAccountRolesResponse = exports . RoleInfo = exports . ListAccountRolesRequest = exports . UnauthorizedException = exports . TooManyRequestsException = exports . ResourceNotFoundException = exports . InvalidRequestException = exports . GetRoleCredentialsResponse = exports . RoleCredentials = exports . GetRoleCredentialsRequest = exports . AccountInfo = void 0 ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
var AccountInfo ;
( function ( AccountInfo ) {
AccountInfo . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AccountInfo = exports . AccountInfo || ( exports . AccountInfo = { } ) ) ;
var GetRoleCredentialsRequest ;
( function ( GetRoleCredentialsRequest ) {
GetRoleCredentialsRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
... ( obj . accessToken && { accessToken : smithy _client _1 . SENSITIVE _STRING } ) ,
} ) ;
} ) ( GetRoleCredentialsRequest = exports . GetRoleCredentialsRequest || ( exports . GetRoleCredentialsRequest = { } ) ) ;
var RoleCredentials ;
( function ( RoleCredentials ) {
RoleCredentials . filterSensitiveLog = ( obj ) => ( {
... obj ,
... ( obj . secretAccessKey && { secretAccessKey : smithy _client _1 . SENSITIVE _STRING } ) ,
... ( obj . sessionToken && { sessionToken : smithy _client _1 . SENSITIVE _STRING } ) ,
} ) ;
} ) ( RoleCredentials = exports . RoleCredentials || ( exports . RoleCredentials = { } ) ) ;
var GetRoleCredentialsResponse ;
( function ( GetRoleCredentialsResponse ) {
GetRoleCredentialsResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
... ( obj . roleCredentials && { roleCredentials : RoleCredentials . filterSensitiveLog ( obj . roleCredentials ) } ) ,
} ) ;
} ) ( GetRoleCredentialsResponse = exports . GetRoleCredentialsResponse || ( exports . GetRoleCredentialsResponse = { } ) ) ;
var InvalidRequestException ;
( function ( InvalidRequestException ) {
InvalidRequestException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidRequestException = exports . InvalidRequestException || ( exports . InvalidRequestException = { } ) ) ;
var ResourceNotFoundException ;
( function ( ResourceNotFoundException ) {
ResourceNotFoundException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ResourceNotFoundException = exports . ResourceNotFoundException || ( exports . ResourceNotFoundException = { } ) ) ;
var TooManyRequestsException ;
( function ( TooManyRequestsException ) {
TooManyRequestsException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( TooManyRequestsException = exports . TooManyRequestsException || ( exports . TooManyRequestsException = { } ) ) ;
var UnauthorizedException ;
( function ( UnauthorizedException ) {
UnauthorizedException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( UnauthorizedException = exports . UnauthorizedException || ( exports . UnauthorizedException = { } ) ) ;
var ListAccountRolesRequest ;
( function ( ListAccountRolesRequest ) {
ListAccountRolesRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
... ( obj . accessToken && { accessToken : smithy _client _1 . SENSITIVE _STRING } ) ,
} ) ;
} ) ( ListAccountRolesRequest = exports . ListAccountRolesRequest || ( exports . ListAccountRolesRequest = { } ) ) ;
var RoleInfo ;
( function ( RoleInfo ) {
RoleInfo . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RoleInfo = exports . RoleInfo || ( exports . RoleInfo = { } ) ) ;
var ListAccountRolesResponse ;
( function ( ListAccountRolesResponse ) {
ListAccountRolesResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListAccountRolesResponse = exports . ListAccountRolesResponse || ( exports . ListAccountRolesResponse = { } ) ) ;
var ListAccountsRequest ;
( function ( ListAccountsRequest ) {
ListAccountsRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
... ( obj . accessToken && { accessToken : smithy _client _1 . SENSITIVE _STRING } ) ,
} ) ;
} ) ( ListAccountsRequest = exports . ListAccountsRequest || ( exports . ListAccountsRequest = { } ) ) ;
var ListAccountsResponse ;
( function ( ListAccountsResponse ) {
ListAccountsResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ListAccountsResponse = exports . ListAccountsResponse || ( exports . ListAccountsResponse = { } ) ) ;
var LogoutRequest ;
( function ( LogoutRequest ) {
LogoutRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
... ( obj . accessToken && { accessToken : smithy _client _1 . SENSITIVE _STRING } ) ,
} ) ;
} ) ( LogoutRequest = exports . LogoutRequest || ( exports . LogoutRequest = { } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 849 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 8460 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateListAccountRoles = void 0 ;
2021-12-30 20:43:44 +01:00
const ListAccountRolesCommand _1 = _ _nccwpck _require _ _ ( 1513 ) ;
const SSO _1 = _ _nccwpck _require _ _ ( 9838 ) ;
const SSOClient _1 = _ _nccwpck _require _ _ ( 1057 ) ;
2021-12-20 10:00:03 +01:00
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new ListAccountRolesCommand _1 . ListAccountRolesCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . listAccountRoles ( input , ... args ) ;
} ;
async function * paginateListAccountRoles ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof SSO _1 . SSO ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof SSOClient _1 . SSOClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected SSO | SSOClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateListAccountRoles = paginateListAccountRoles ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 938 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . paginateListAccounts = void 0 ;
2021-12-30 20:43:44 +01:00
const ListAccountsCommand _1 = _ _nccwpck _require _ _ ( 4296 ) ;
const SSO _1 = _ _nccwpck _require _ _ ( 9838 ) ;
const SSOClient _1 = _ _nccwpck _require _ _ ( 1057 ) ;
2021-12-20 10:00:03 +01:00
const makePagedClientRequest = async ( client , input , ... args ) => {
return await client . send ( new ListAccountsCommand _1 . ListAccountsCommand ( input ) , ... args ) ;
} ;
const makePagedRequest = async ( client , input , ... args ) => {
return await client . listAccounts ( input , ... args ) ;
} ;
async function * paginateListAccounts ( config , input , ... additionalArguments ) {
let token = config . startingToken || undefined ;
let hasNext = true ;
let page ;
while ( hasNext ) {
input . nextToken = token ;
input [ "maxResults" ] = config . pageSize ;
if ( config . client instanceof SSO _1 . SSO ) {
page = await makePagedRequest ( config . client , input , ... additionalArguments ) ;
}
else if ( config . client instanceof SSOClient _1 . SSOClient ) {
page = await makePagedClientRequest ( config . client , input , ... additionalArguments ) ;
}
else {
throw new Error ( "Invalid client, expected SSO | SSOClient" ) ;
}
yield page ;
token = page . nextToken ;
hasNext = ! ! token ;
}
return undefined ;
}
exports . paginateListAccounts = paginateListAccounts ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 6773 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 849 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8460 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 938 ) , exports ) ;
2021-12-20 10:00:03 +01:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 8507 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . deserializeAws _restJson1LogoutCommand = exports . deserializeAws _restJson1ListAccountsCommand = exports . deserializeAws _restJson1ListAccountRolesCommand = exports . deserializeAws _restJson1GetRoleCredentialsCommand = exports . serializeAws _restJson1LogoutCommand = exports . serializeAws _restJson1ListAccountsCommand = exports . serializeAws _restJson1ListAccountRolesCommand = exports . serializeAws _restJson1GetRoleCredentialsCommand = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const serializeAws _restJson1GetRoleCredentialsCommand = async ( input , context ) => {
const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ;
const headers = {
... ( isSerializableHeaderValue ( input . accessToken ) && { "x-amz-sso_bearer_token" : input . accessToken } ) ,
} ;
const resolvedPath = ` ${ ( basePath === null || basePath === void 0 ? void 0 : basePath . endsWith ( "/" ) ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/federation/credentials" ;
const query = {
... ( input . roleName !== undefined && { role _name : input . roleName } ) ,
... ( input . accountId !== undefined && { account _id : input . accountId } ) ,
} ;
let body ;
return new protocol _http _1 . HttpRequest ( {
protocol ,
hostname ,
port ,
method : "GET" ,
headers ,
path : resolvedPath ,
query ,
body ,
} ) ;
} ;
exports . serializeAws _restJson1GetRoleCredentialsCommand = serializeAws _restJson1GetRoleCredentialsCommand ;
const serializeAws _restJson1ListAccountRolesCommand = async ( input , context ) => {
const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ;
const headers = {
... ( isSerializableHeaderValue ( input . accessToken ) && { "x-amz-sso_bearer_token" : input . accessToken } ) ,
} ;
const resolvedPath = ` ${ ( basePath === null || basePath === void 0 ? void 0 : basePath . endsWith ( "/" ) ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/assignment/roles" ;
const query = {
... ( input . nextToken !== undefined && { next _token : input . nextToken } ) ,
... ( input . maxResults !== undefined && { max _result : input . maxResults . toString ( ) } ) ,
... ( input . accountId !== undefined && { account _id : input . accountId } ) ,
} ;
let body ;
return new protocol _http _1 . HttpRequest ( {
protocol ,
hostname ,
port ,
method : "GET" ,
headers ,
path : resolvedPath ,
query ,
body ,
} ) ;
} ;
exports . serializeAws _restJson1ListAccountRolesCommand = serializeAws _restJson1ListAccountRolesCommand ;
const serializeAws _restJson1ListAccountsCommand = async ( input , context ) => {
const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ;
const headers = {
... ( isSerializableHeaderValue ( input . accessToken ) && { "x-amz-sso_bearer_token" : input . accessToken } ) ,
} ;
const resolvedPath = ` ${ ( basePath === null || basePath === void 0 ? void 0 : basePath . endsWith ( "/" ) ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/assignment/accounts" ;
const query = {
... ( input . nextToken !== undefined && { next _token : input . nextToken } ) ,
... ( input . maxResults !== undefined && { max _result : input . maxResults . toString ( ) } ) ,
} ;
let body ;
return new protocol _http _1 . HttpRequest ( {
protocol ,
hostname ,
port ,
method : "GET" ,
headers ,
path : resolvedPath ,
query ,
body ,
} ) ;
} ;
exports . serializeAws _restJson1ListAccountsCommand = serializeAws _restJson1ListAccountsCommand ;
const serializeAws _restJson1LogoutCommand = async ( input , context ) => {
const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ;
const headers = {
... ( isSerializableHeaderValue ( input . accessToken ) && { "x-amz-sso_bearer_token" : input . accessToken } ) ,
} ;
const resolvedPath = ` ${ ( basePath === null || basePath === void 0 ? void 0 : basePath . endsWith ( "/" ) ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/logout" ;
let body ;
return new protocol _http _1 . HttpRequest ( {
protocol ,
hostname ,
port ,
method : "POST" ,
headers ,
path : resolvedPath ,
body ,
} ) ;
} ;
exports . serializeAws _restJson1LogoutCommand = serializeAws _restJson1LogoutCommand ;
const deserializeAws _restJson1GetRoleCredentialsCommand = async ( output , context ) => {
if ( output . statusCode !== 200 && output . statusCode >= 300 ) {
return deserializeAws _restJson1GetRoleCredentialsCommandError ( output , context ) ;
}
const contents = {
$metadata : deserializeMetadata ( output ) ,
roleCredentials : undefined ,
} ;
const data = smithy _client _1 . expectNonNull ( smithy _client _1 . expectObject ( await parseBody ( output . body , context ) ) , "body" ) ;
if ( data . roleCredentials !== undefined && data . roleCredentials !== null ) {
contents . roleCredentials = deserializeAws _restJson1RoleCredentials ( data . roleCredentials , context ) ;
}
return Promise . resolve ( contents ) ;
} ;
exports . deserializeAws _restJson1GetRoleCredentialsCommand = deserializeAws _restJson1GetRoleCredentialsCommand ;
const deserializeAws _restJson1GetRoleCredentialsCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidRequestException" :
case "com.amazonaws.sso#InvalidRequestException" :
response = {
... ( await deserializeAws _restJson1InvalidRequestExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ResourceNotFoundException" :
case "com.amazonaws.sso#ResourceNotFoundException" :
response = {
... ( await deserializeAws _restJson1ResourceNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyRequestsException" :
case "com.amazonaws.sso#TooManyRequestsException" :
response = {
... ( await deserializeAws _restJson1TooManyRequestsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnauthorizedException" :
case "com.amazonaws.sso#UnauthorizedException" :
response = {
... ( await deserializeAws _restJson1UnauthorizedExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _restJson1ListAccountRolesCommand = async ( output , context ) => {
if ( output . statusCode !== 200 && output . statusCode >= 300 ) {
return deserializeAws _restJson1ListAccountRolesCommandError ( output , context ) ;
}
const contents = {
$metadata : deserializeMetadata ( output ) ,
nextToken : undefined ,
roleList : undefined ,
} ;
const data = smithy _client _1 . expectNonNull ( smithy _client _1 . expectObject ( await parseBody ( output . body , context ) ) , "body" ) ;
if ( data . nextToken !== undefined && data . nextToken !== null ) {
contents . nextToken = smithy _client _1 . expectString ( data . nextToken ) ;
}
if ( data . roleList !== undefined && data . roleList !== null ) {
contents . roleList = deserializeAws _restJson1RoleListType ( data . roleList , context ) ;
}
return Promise . resolve ( contents ) ;
} ;
exports . deserializeAws _restJson1ListAccountRolesCommand = deserializeAws _restJson1ListAccountRolesCommand ;
const deserializeAws _restJson1ListAccountRolesCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidRequestException" :
case "com.amazonaws.sso#InvalidRequestException" :
response = {
... ( await deserializeAws _restJson1InvalidRequestExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ResourceNotFoundException" :
case "com.amazonaws.sso#ResourceNotFoundException" :
response = {
... ( await deserializeAws _restJson1ResourceNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyRequestsException" :
case "com.amazonaws.sso#TooManyRequestsException" :
response = {
... ( await deserializeAws _restJson1TooManyRequestsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnauthorizedException" :
case "com.amazonaws.sso#UnauthorizedException" :
response = {
... ( await deserializeAws _restJson1UnauthorizedExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _restJson1ListAccountsCommand = async ( output , context ) => {
if ( output . statusCode !== 200 && output . statusCode >= 300 ) {
return deserializeAws _restJson1ListAccountsCommandError ( output , context ) ;
}
const contents = {
$metadata : deserializeMetadata ( output ) ,
accountList : undefined ,
nextToken : undefined ,
} ;
const data = smithy _client _1 . expectNonNull ( smithy _client _1 . expectObject ( await parseBody ( output . body , context ) ) , "body" ) ;
if ( data . accountList !== undefined && data . accountList !== null ) {
contents . accountList = deserializeAws _restJson1AccountListType ( data . accountList , context ) ;
}
if ( data . nextToken !== undefined && data . nextToken !== null ) {
contents . nextToken = smithy _client _1 . expectString ( data . nextToken ) ;
}
return Promise . resolve ( contents ) ;
} ;
exports . deserializeAws _restJson1ListAccountsCommand = deserializeAws _restJson1ListAccountsCommand ;
const deserializeAws _restJson1ListAccountsCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidRequestException" :
case "com.amazonaws.sso#InvalidRequestException" :
response = {
... ( await deserializeAws _restJson1InvalidRequestExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "ResourceNotFoundException" :
case "com.amazonaws.sso#ResourceNotFoundException" :
response = {
... ( await deserializeAws _restJson1ResourceNotFoundExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyRequestsException" :
case "com.amazonaws.sso#TooManyRequestsException" :
response = {
... ( await deserializeAws _restJson1TooManyRequestsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnauthorizedException" :
case "com.amazonaws.sso#UnauthorizedException" :
response = {
... ( await deserializeAws _restJson1UnauthorizedExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _restJson1LogoutCommand = async ( output , context ) => {
if ( output . statusCode !== 200 && output . statusCode >= 300 ) {
return deserializeAws _restJson1LogoutCommandError ( output , context ) ;
}
const contents = {
$metadata : deserializeMetadata ( output ) ,
} ;
await collectBody ( output . body , context ) ;
return Promise . resolve ( contents ) ;
} ;
exports . deserializeAws _restJson1LogoutCommand = deserializeAws _restJson1LogoutCommand ;
const deserializeAws _restJson1LogoutCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadRestJsonErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidRequestException" :
case "com.amazonaws.sso#InvalidRequestException" :
response = {
... ( await deserializeAws _restJson1InvalidRequestExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "TooManyRequestsException" :
case "com.amazonaws.sso#TooManyRequestsException" :
response = {
... ( await deserializeAws _restJson1TooManyRequestsExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "UnauthorizedException" :
case "com.amazonaws.sso#UnauthorizedException" :
response = {
... ( await deserializeAws _restJson1UnauthorizedExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . code || parsedBody . Code || errorCode ;
response = {
... parsedBody ,
name : ` ${ errorCode } ` ,
message : parsedBody . message || parsedBody . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _restJson1InvalidRequestExceptionResponse = async ( parsedOutput , context ) => {
const contents = {
name : "InvalidRequestException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
message : undefined ,
} ;
const data = parsedOutput . body ;
if ( data . message !== undefined && data . message !== null ) {
contents . message = smithy _client _1 . expectString ( data . message ) ;
}
return contents ;
} ;
const deserializeAws _restJson1ResourceNotFoundExceptionResponse = async ( parsedOutput , context ) => {
const contents = {
name : "ResourceNotFoundException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
message : undefined ,
} ;
const data = parsedOutput . body ;
if ( data . message !== undefined && data . message !== null ) {
contents . message = smithy _client _1 . expectString ( data . message ) ;
}
return contents ;
} ;
const deserializeAws _restJson1TooManyRequestsExceptionResponse = async ( parsedOutput , context ) => {
const contents = {
name : "TooManyRequestsException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
message : undefined ,
} ;
const data = parsedOutput . body ;
if ( data . message !== undefined && data . message !== null ) {
contents . message = smithy _client _1 . expectString ( data . message ) ;
}
return contents ;
} ;
const deserializeAws _restJson1UnauthorizedExceptionResponse = async ( parsedOutput , context ) => {
const contents = {
name : "UnauthorizedException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
message : undefined ,
} ;
const data = parsedOutput . body ;
if ( data . message !== undefined && data . message !== null ) {
contents . message = smithy _client _1 . expectString ( data . message ) ;
}
return contents ;
} ;
const deserializeAws _restJson1AccountInfo = ( output , context ) => {
return {
accountId : smithy _client _1 . expectString ( output . accountId ) ,
accountName : smithy _client _1 . expectString ( output . accountName ) ,
emailAddress : smithy _client _1 . expectString ( output . emailAddress ) ,
} ;
} ;
const deserializeAws _restJson1AccountListType = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _restJson1AccountInfo ( entry , context ) ;
} ) ;
} ;
const deserializeAws _restJson1RoleCredentials = ( output , context ) => {
return {
accessKeyId : smithy _client _1 . expectString ( output . accessKeyId ) ,
expiration : smithy _client _1 . expectLong ( output . expiration ) ,
secretAccessKey : smithy _client _1 . expectString ( output . secretAccessKey ) ,
sessionToken : smithy _client _1 . expectString ( output . sessionToken ) ,
} ;
} ;
const deserializeAws _restJson1RoleInfo = ( output , context ) => {
return {
accountId : smithy _client _1 . expectString ( output . accountId ) ,
roleName : smithy _client _1 . expectString ( output . roleName ) ,
} ;
} ;
const deserializeAws _restJson1RoleListType = ( output , context ) => {
return ( output || [ ] )
. filter ( ( e ) => e != null )
. map ( ( entry ) => {
if ( entry === null ) {
return null ;
}
return deserializeAws _restJson1RoleInfo ( entry , context ) ;
} ) ;
} ;
const deserializeMetadata = ( output ) => {
var _a ;
return ( {
httpStatusCode : output . statusCode ,
requestId : ( _a = output . headers [ "x-amzn-requestid" ] ) !== null && _a !== void 0 ? _a : output . headers [ "x-amzn-request-id" ] ,
extendedRequestId : output . headers [ "x-amz-id-2" ] ,
cfId : output . headers [ "x-amz-cf-id" ] ,
} ) ;
} ;
const collectBody = ( streamBody = new Uint8Array ( ) , context ) => {
if ( streamBody instanceof Uint8Array ) {
return Promise . resolve ( streamBody ) ;
}
return context . streamCollector ( streamBody ) || Promise . resolve ( new Uint8Array ( ) ) ;
} ;
const collectBodyString = ( streamBody , context ) => collectBody ( streamBody , context ) . then ( ( body ) => context . utf8Encoder ( body ) ) ;
const isSerializableHeaderValue = ( value ) => value !== undefined &&
value !== null &&
value !== "" &&
( ! Object . getOwnPropertyNames ( value ) . includes ( "length" ) || value . length != 0 ) &&
( ! Object . getOwnPropertyNames ( value ) . includes ( "size" ) || value . size != 0 ) ;
const parseBody = ( streamBody , context ) => collectBodyString ( streamBody , context ) . then ( ( encoded ) => {
if ( encoded . length ) {
return JSON . parse ( encoded ) ;
}
return { } ;
} ) ;
const loadRestJsonErrorCode = ( output , data ) => {
const findKey = ( object , key ) => Object . keys ( object ) . find ( ( k ) => k . toLowerCase ( ) === key . toLowerCase ( ) ) ;
const sanitizeErrorCode = ( rawValue ) => {
let cleanValue = rawValue ;
if ( cleanValue . indexOf ( ":" ) >= 0 ) {
cleanValue = cleanValue . split ( ":" ) [ 0 ] ;
}
if ( cleanValue . indexOf ( "#" ) >= 0 ) {
cleanValue = cleanValue . split ( "#" ) [ 1 ] ;
}
return cleanValue ;
} ;
const headerKey = findKey ( output . headers , "x-amzn-errortype" ) ;
if ( headerKey !== undefined ) {
return sanitizeErrorCode ( output . headers [ headerKey ] ) ;
}
if ( data . code !== undefined ) {
return sanitizeErrorCode ( data . code ) ;
}
if ( data [ "__type" ] !== undefined ) {
return sanitizeErrorCode ( data [ "__type" ] ) ;
}
return "" ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 9756 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
const package _json _1 = tslib _1 . _ _importDefault ( _ _nccwpck _require _ _ ( 3966 ) ) ;
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
2021-12-20 10:00:03 +01:00
const hash _node _1 = _ _nccwpck _require _ _ ( 7442 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
const node _config _provider _1 = _ _nccwpck _require _ _ ( 7684 ) ;
const node _http _handler _1 = _ _nccwpck _require _ _ ( 8805 ) ;
const util _base64 _node _1 = _ _nccwpck _require _ _ ( 8588 ) ;
const util _body _length _node _1 = _ _nccwpck _require _ _ ( 4147 ) ;
const util _user _agent _node _1 = _ _nccwpck _require _ _ ( 8095 ) ;
const util _utf8 _node _1 = _ _nccwpck _require _ _ ( 6278 ) ;
2021-12-30 20:43:44 +01:00
const runtimeConfig _shared _1 = _ _nccwpck _require _ _ ( 4355 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e , _f , _g , _h , _j , _k , _l , _m , _o , _p ;
smithy _client _1 . emitWarningIfUnsupportedVersion ( process . version ) ;
const clientSharedValues = runtimeConfig _shared _1 . getRuntimeConfig ( config ) ;
return {
... clientSharedValues ,
... config ,
runtime : "node" ,
base64Decoder : ( _a = config === null || config === void 0 ? void 0 : config . base64Decoder ) !== null && _a !== void 0 ? _a : util _base64 _node _1 . fromBase64 ,
base64Encoder : ( _b = config === null || config === void 0 ? void 0 : config . base64Encoder ) !== null && _b !== void 0 ? _b : util _base64 _node _1 . toBase64 ,
bodyLengthChecker : ( _c = config === null || config === void 0 ? void 0 : config . bodyLengthChecker ) !== null && _c !== void 0 ? _c : util _body _length _node _1 . calculateBodyLength ,
defaultUserAgentProvider : ( _d = config === null || config === void 0 ? void 0 : config . defaultUserAgentProvider ) !== null && _d !== void 0 ? _d : util _user _agent _node _1 . defaultUserAgent ( { serviceId : clientSharedValues . serviceId , clientVersion : package _json _1 . default . version } ) ,
maxAttempts : ( _e = config === null || config === void 0 ? void 0 : config . maxAttempts ) !== null && _e !== void 0 ? _e : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _MAX _ATTEMPT _CONFIG _OPTIONS ) ,
region : ( _f = config === null || config === void 0 ? void 0 : config . region ) !== null && _f !== void 0 ? _f : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _REGION _CONFIG _OPTIONS , config _resolver _1 . NODE _REGION _CONFIG _FILE _OPTIONS ) ,
requestHandler : ( _g = config === null || config === void 0 ? void 0 : config . requestHandler ) !== null && _g !== void 0 ? _g : new node _http _handler _1 . NodeHttpHandler ( ) ,
retryMode : ( _h = config === null || config === void 0 ? void 0 : config . retryMode ) !== null && _h !== void 0 ? _h : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _RETRY _MODE _CONFIG _OPTIONS ) ,
sha256 : ( _j = config === null || config === void 0 ? void 0 : config . sha256 ) !== null && _j !== void 0 ? _j : hash _node _1 . Hash . bind ( null , "sha256" ) ,
streamCollector : ( _k = config === null || config === void 0 ? void 0 : config . streamCollector ) !== null && _k !== void 0 ? _k : node _http _handler _1 . streamCollector ,
useDualstackEndpoint : ( _l = config === null || config === void 0 ? void 0 : config . useDualstackEndpoint ) !== null && _l !== void 0 ? _l : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _DUALSTACK _ENDPOINT _CONFIG _OPTIONS ) ,
useFipsEndpoint : ( _m = config === null || config === void 0 ? void 0 : config . useFipsEndpoint ) !== null && _m !== void 0 ? _m : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _FIPS _ENDPOINT _CONFIG _OPTIONS ) ,
utf8Decoder : ( _o = config === null || config === void 0 ? void 0 : config . utf8Decoder ) !== null && _o !== void 0 ? _o : util _utf8 _node _1 . fromUtf8 ,
utf8Encoder : ( _p = config === null || config === void 0 ? void 0 : config . utf8Encoder ) !== null && _p !== void 0 ? _p : util _utf8 _node _1 . toUtf8 ,
} ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4355 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const url _parser _1 = _ _nccwpck _require _ _ ( 2992 ) ;
2021-12-30 20:43:44 +01:00
const endpoints _1 = _ _nccwpck _require _ _ ( 3546 ) ;
2021-12-20 10:00:03 +01:00
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e ;
return ( {
apiVersion : "2019-06-10" ,
disableHostPrefix : ( _a = config === null || config === void 0 ? void 0 : config . disableHostPrefix ) !== null && _a !== void 0 ? _a : false ,
logger : ( _b = config === null || config === void 0 ? void 0 : config . logger ) !== null && _b !== void 0 ? _b : { } ,
regionInfoProvider : ( _c = config === null || config === void 0 ? void 0 : config . regionInfoProvider ) !== null && _c !== void 0 ? _c : endpoints _1 . defaultRegionInfoProvider ,
serviceId : ( _d = config === null || config === void 0 ? void 0 : config . serviceId ) !== null && _d !== void 0 ? _d : "SSO" ,
urlParser : ( _e = config === null || config === void 0 ? void 0 : config . urlParser ) !== null && _e !== void 0 ? _e : url _parser _1 . parseUrl ,
} ) ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2605 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . STS = void 0 ;
2021-12-30 20:43:44 +01:00
const AssumeRoleCommand _1 = _ _nccwpck _require _ _ ( 9802 ) ;
const AssumeRoleWithSAMLCommand _1 = _ _nccwpck _require _ _ ( 2865 ) ;
const AssumeRoleWithWebIdentityCommand _1 = _ _nccwpck _require _ _ ( 7451 ) ;
const DecodeAuthorizationMessageCommand _1 = _ _nccwpck _require _ _ ( 4150 ) ;
const GetAccessKeyInfoCommand _1 = _ _nccwpck _require _ _ ( 9804 ) ;
const GetCallerIdentityCommand _1 = _ _nccwpck _require _ _ ( 4278 ) ;
const GetFederationTokenCommand _1 = _ _nccwpck _require _ _ ( 7552 ) ;
const GetSessionTokenCommand _1 = _ _nccwpck _require _ _ ( 3285 ) ;
const STSClient _1 = _ _nccwpck _require _ _ ( 4195 ) ;
2021-12-20 10:00:03 +01:00
class STS extends STSClient _1 . STSClient {
assumeRole ( args , optionsOrCb , cb ) {
const command = new AssumeRoleCommand _1 . AssumeRoleCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
assumeRoleWithSAML ( args , optionsOrCb , cb ) {
const command = new AssumeRoleWithSAMLCommand _1 . AssumeRoleWithSAMLCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
assumeRoleWithWebIdentity ( args , optionsOrCb , cb ) {
const command = new AssumeRoleWithWebIdentityCommand _1 . AssumeRoleWithWebIdentityCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
decodeAuthorizationMessage ( args , optionsOrCb , cb ) {
const command = new DecodeAuthorizationMessageCommand _1 . DecodeAuthorizationMessageCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getAccessKeyInfo ( args , optionsOrCb , cb ) {
const command = new GetAccessKeyInfoCommand _1 . GetAccessKeyInfoCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getCallerIdentity ( args , optionsOrCb , cb ) {
const command = new GetCallerIdentityCommand _1 . GetCallerIdentityCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getFederationToken ( args , optionsOrCb , cb ) {
const command = new GetFederationTokenCommand _1 . GetFederationTokenCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
getSessionToken ( args , optionsOrCb , cb ) {
const command = new GetSessionTokenCommand _1 . GetSessionTokenCommand ( args ) ;
if ( typeof optionsOrCb === "function" ) {
this . send ( command , optionsOrCb ) ;
}
else if ( typeof cb === "function" ) {
if ( typeof optionsOrCb !== "object" )
throw new Error ( ` Expect http options but get ${ typeof optionsOrCb } ` ) ;
this . send ( command , optionsOrCb || { } , cb ) ;
}
else {
return this . send ( command , optionsOrCb ) ;
}
}
}
exports . STS = STS ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4195 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . STSClient = void 0 ;
2021-12-30 20:43:44 +01:00
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
2021-12-20 10:00:03 +01:00
const middleware _content _length _1 = _ _nccwpck _require _ _ ( 2245 ) ;
const middleware _host _header _1 = _ _nccwpck _require _ _ ( 2545 ) ;
const middleware _logger _1 = _ _nccwpck _require _ _ ( 14 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
2021-12-30 20:43:44 +01:00
const middleware _sdk _sts _1 = _ _nccwpck _require _ _ ( 5959 ) ;
2021-12-20 10:00:03 +01:00
const middleware _user _agent _1 = _ _nccwpck _require _ _ ( 4688 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const runtimeConfig _1 = _ _nccwpck _require _ _ ( 3405 ) ;
2021-12-20 10:00:03 +01:00
class STSClient extends smithy _client _1 . Client {
constructor ( configuration ) {
const _config _0 = runtimeConfig _1 . getRuntimeConfig ( configuration ) ;
const _config _1 = config _resolver _1 . resolveRegionConfig ( _config _0 ) ;
const _config _2 = config _resolver _1 . resolveEndpointsConfig ( _config _1 ) ;
const _config _3 = middleware _retry _1 . resolveRetryConfig ( _config _2 ) ;
const _config _4 = middleware _host _header _1 . resolveHostHeaderConfig ( _config _3 ) ;
const _config _5 = middleware _sdk _sts _1 . resolveStsAuthConfig ( _config _4 , { stsClientCtor : STSClient } ) ;
const _config _6 = middleware _user _agent _1 . resolveUserAgentConfig ( _config _5 ) ;
super ( _config _6 ) ;
this . config = _config _6 ;
this . middlewareStack . use ( middleware _retry _1 . getRetryPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _content _length _1 . getContentLengthPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _host _header _1 . getHostHeaderPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _logger _1 . getLoggerPlugin ( this . config ) ) ;
this . middlewareStack . use ( middleware _user _agent _1 . getUserAgentPlugin ( this . config ) ) ;
}
destroy ( ) {
super . destroy ( ) ;
}
}
exports . STSClient = STSClient ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 9802 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . AssumeRoleCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
2021-12-30 20:43:44 +01:00
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class AssumeRoleCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( configuration ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "AssumeRoleCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . AssumeRoleRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . AssumeRoleResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryAssumeRoleCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryAssumeRoleCommand ( output , context ) ;
}
}
exports . AssumeRoleCommand = AssumeRoleCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2865 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . AssumeRoleWithSAMLCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class AssumeRoleWithSAMLCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "AssumeRoleWithSAMLCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . AssumeRoleWithSAMLRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . AssumeRoleWithSAMLResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryAssumeRoleWithSAMLCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryAssumeRoleWithSAMLCommand ( output , context ) ;
}
}
exports . AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 7451 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . AssumeRoleWithWebIdentityCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class AssumeRoleWithWebIdentityCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "AssumeRoleWithWebIdentityCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . AssumeRoleWithWebIdentityRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . AssumeRoleWithWebIdentityResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryAssumeRoleWithWebIdentityCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryAssumeRoleWithWebIdentityCommand ( output , context ) ;
}
}
exports . AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4150 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DecodeAuthorizationMessageCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
2021-12-30 20:43:44 +01:00
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class DecodeAuthorizationMessageCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( configuration ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "DecodeAuthorizationMessageCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . DecodeAuthorizationMessageRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . DecodeAuthorizationMessageResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryDecodeAuthorizationMessageCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryDecodeAuthorizationMessageCommand ( output , context ) ;
}
}
exports . DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 9804 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetAccessKeyInfoCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
2021-12-30 20:43:44 +01:00
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class GetAccessKeyInfoCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( configuration ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "GetAccessKeyInfoCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetAccessKeyInfoRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetAccessKeyInfoResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryGetAccessKeyInfoCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryGetAccessKeyInfoCommand ( output , context ) ;
}
}
exports . GetAccessKeyInfoCommand = GetAccessKeyInfoCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4278 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetCallerIdentityCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
2021-12-30 20:43:44 +01:00
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class GetCallerIdentityCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( configuration ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "GetCallerIdentityCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetCallerIdentityRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetCallerIdentityResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryGetCallerIdentityCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryGetCallerIdentityCommand ( output , context ) ;
}
}
exports . GetCallerIdentityCommand = GetCallerIdentityCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 7552 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetFederationTokenCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
2021-12-30 20:43:44 +01:00
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class GetFederationTokenCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( configuration ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "GetFederationTokenCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetFederationTokenRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetFederationTokenResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryGetFederationTokenCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryGetFederationTokenCommand ( output , context ) ;
}
}
exports . GetFederationTokenCommand = GetFederationTokenCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3285 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetSessionTokenCommand = void 0 ;
const middleware _serde _1 = _ _nccwpck _require _ _ ( 3631 ) ;
2021-12-30 20:43:44 +01:00
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
2021-12-30 20:43:44 +01:00
const models _0 _1 = _ _nccwpck _require _ _ ( 1780 ) ;
const Aws _query _1 = _ _nccwpck _require _ _ ( 740 ) ;
2021-12-20 10:00:03 +01:00
class GetSessionTokenCommand extends smithy _client _1 . Command {
constructor ( input ) {
super ( ) ;
this . input = input ;
}
resolveMiddleware ( clientStack , configuration , options ) {
this . middlewareStack . use ( middleware _serde _1 . getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ;
this . middlewareStack . use ( middleware _signing _1 . getAwsAuthPlugin ( configuration ) ) ;
const stack = clientStack . concat ( this . middlewareStack ) ;
const { logger } = configuration ;
const clientName = "STSClient" ;
const commandName = "GetSessionTokenCommand" ;
const handlerExecutionContext = {
logger ,
clientName ,
commandName ,
inputFilterSensitiveLog : models _0 _1 . GetSessionTokenRequest . filterSensitiveLog ,
outputFilterSensitiveLog : models _0 _1 . GetSessionTokenResponse . filterSensitiveLog ,
} ;
const { requestHandler } = configuration ;
return stack . resolve ( ( request ) => requestHandler . handle ( request . request , options || { } ) , handlerExecutionContext ) ;
}
serialize ( input , context ) {
return Aws _query _1 . serializeAws _queryGetSessionTokenCommand ( input , context ) ;
}
deserialize ( output , context ) {
return Aws _query _1 . deserializeAws _queryGetSessionTokenCommand ( output , context ) ;
}
}
exports . GetSessionTokenCommand = GetSessionTokenCommand ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 5716 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9802 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2865 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7451 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4150 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9804 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4278 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7552 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3285 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 8028 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . decorateDefaultCredentialProvider = exports . getDefaultRoleAssumerWithWebIdentity = exports . getDefaultRoleAssumer = void 0 ;
2021-12-30 20:43:44 +01:00
const defaultStsRoleAssumers _1 = _ _nccwpck _require _ _ ( 48 ) ;
const STSClient _1 = _ _nccwpck _require _ _ ( 4195 ) ;
2021-12-20 10:00:03 +01:00
const getDefaultRoleAssumer = ( stsOptions = { } ) => defaultStsRoleAssumers _1 . getDefaultRoleAssumer ( stsOptions , STSClient _1 . STSClient ) ;
exports . getDefaultRoleAssumer = getDefaultRoleAssumer ;
const getDefaultRoleAssumerWithWebIdentity = ( stsOptions = { } ) => defaultStsRoleAssumers _1 . getDefaultRoleAssumerWithWebIdentity ( stsOptions , STSClient _1 . STSClient ) ;
exports . getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity ;
const decorateDefaultCredentialProvider = ( provider ) => ( input ) => provider ( {
roleAssumer : exports . getDefaultRoleAssumer ( input ) ,
roleAssumerWithWebIdentity : exports . getDefaultRoleAssumerWithWebIdentity ( input ) ,
... input ,
} ) ;
exports . decorateDefaultCredentialProvider = decorateDefaultCredentialProvider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 48 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . decorateDefaultCredentialProvider = exports . getDefaultRoleAssumerWithWebIdentity = exports . getDefaultRoleAssumer = void 0 ;
2021-12-30 20:43:44 +01:00
const AssumeRoleCommand _1 = _ _nccwpck _require _ _ ( 9802 ) ;
const AssumeRoleWithWebIdentityCommand _1 = _ _nccwpck _require _ _ ( 7451 ) ;
2021-12-20 10:00:03 +01:00
const ASSUME _ROLE _DEFAULT _REGION = "us-east-1" ;
const decorateDefaultRegion = ( region ) => {
if ( typeof region !== "function" ) {
return region === undefined ? ASSUME _ROLE _DEFAULT _REGION : region ;
}
return async ( ) => {
try {
return await region ( ) ;
}
catch ( e ) {
return ASSUME _ROLE _DEFAULT _REGION ;
}
} ;
} ;
const getDefaultRoleAssumer = ( stsOptions , stsClientCtor ) => {
let stsClient ;
let closureSourceCreds ;
return async ( sourceCreds , params ) => {
closureSourceCreds = sourceCreds ;
if ( ! stsClient ) {
const { logger , region , requestHandler } = stsOptions ;
stsClient = new stsClientCtor ( {
logger ,
credentialDefaultProvider : ( ) => async ( ) => closureSourceCreds ,
region : decorateDefaultRegion ( region || stsOptions . region ) ,
... ( requestHandler ? { requestHandler } : { } ) ,
} ) ;
}
const { Credentials } = await stsClient . send ( new AssumeRoleCommand _1 . AssumeRoleCommand ( params ) ) ;
if ( ! Credentials || ! Credentials . AccessKeyId || ! Credentials . SecretAccessKey ) {
throw new Error ( ` Invalid response from STS.assumeRole call with role ${ params . RoleArn } ` ) ;
}
return {
accessKeyId : Credentials . AccessKeyId ,
secretAccessKey : Credentials . SecretAccessKey ,
sessionToken : Credentials . SessionToken ,
expiration : Credentials . Expiration ,
} ;
} ;
} ;
exports . getDefaultRoleAssumer = getDefaultRoleAssumer ;
const getDefaultRoleAssumerWithWebIdentity = ( stsOptions , stsClientCtor ) => {
let stsClient ;
return async ( params ) => {
if ( ! stsClient ) {
const { logger , region , requestHandler } = stsOptions ;
stsClient = new stsClientCtor ( {
logger ,
region : decorateDefaultRegion ( region || stsOptions . region ) ,
... ( requestHandler ? { requestHandler } : { } ) ,
} ) ;
}
const { Credentials } = await stsClient . send ( new AssumeRoleWithWebIdentityCommand _1 . AssumeRoleWithWebIdentityCommand ( params ) ) ;
if ( ! Credentials || ! Credentials . AccessKeyId || ! Credentials . SecretAccessKey ) {
throw new Error ( ` Invalid response from STS.assumeRoleWithWebIdentity call with role ${ params . RoleArn } ` ) ;
}
return {
accessKeyId : Credentials . AccessKeyId ,
secretAccessKey : Credentials . SecretAccessKey ,
sessionToken : Credentials . SessionToken ,
expiration : Credentials . Expiration ,
} ;
} ;
} ;
exports . getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity ;
const decorateDefaultCredentialProvider = ( provider ) => ( input ) => provider ( {
roleAssumer : exports . getDefaultRoleAssumer ( input , input . stsClientCtor ) ,
roleAssumerWithWebIdentity : exports . getDefaultRoleAssumerWithWebIdentity ( input , input . stsClientCtor ) ,
... input ,
} ) ;
exports . decorateDefaultCredentialProvider = decorateDefaultCredentialProvider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3571 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultRegionInfoProvider = void 0 ;
2021-12-30 20:43:44 +01:00
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
2021-12-20 10:00:03 +01:00
const regionHash = {
"aws-global" : {
variants : [
{
hostname : "sts.amazonaws.com" ,
tags : [ ] ,
} ,
] ,
signingRegion : "us-east-1" ,
} ,
"us-east-1" : {
variants : [
{
hostname : "sts.us-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.us-east-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"us-east-2" : {
variants : [
{
hostname : "sts.us-east-2.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.us-east-2.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"us-gov-east-1" : {
variants : [
{
hostname : "sts.us-gov-east-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts.us-gov-east-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"us-gov-west-1" : {
variants : [
{
hostname : "sts.us-gov-west-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts.us-gov-west-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"us-west-1" : {
variants : [
{
hostname : "sts.us-west-1.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.us-west-1.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"us-west-2" : {
variants : [
{
hostname : "sts.us-west-2.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.us-west-2.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
} ;
const partitionHash = {
aws : {
regions : [
"af-south-1" ,
"ap-east-1" ,
"ap-northeast-1" ,
"ap-northeast-2" ,
"ap-northeast-3" ,
"ap-south-1" ,
"ap-southeast-1" ,
"ap-southeast-2" ,
2021-12-30 19:35:40 +01:00
"ap-southeast-3" ,
2021-12-20 10:00:03 +01:00
"aws-global" ,
"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-1-fips" ,
"us-east-2" ,
"us-east-2-fips" ,
"us-west-1" ,
"us-west-1-fips" ,
"us-west-2" ,
"us-west-2-fips" ,
] ,
regionRegex : "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "sts.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "sts-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "sts.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-cn" : {
regions : [ "cn-north-1" , "cn-northwest-1" ] ,
regionRegex : "^cn\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "sts.{region}.amazonaws.com.cn" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.{region}.amazonaws.com.cn" ,
tags : [ "fips" ] ,
} ,
{
hostname : "sts-fips.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "sts.{region}.api.amazonwebservices.com.cn" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
"aws-iso" : {
regions : [ "us-iso-east-1" , "us-iso-west-1" ] ,
regionRegex : "^us\\-iso\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "sts.{region}.c2s.ic.gov" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.{region}.c2s.ic.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-iso-b" : {
regions : [ "us-isob-east-1" ] ,
regionRegex : "^us\\-isob\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "sts.{region}.sc2s.sgov.gov" ,
tags : [ ] ,
} ,
{
hostname : "sts-fips.{region}.sc2s.sgov.gov" ,
tags : [ "fips" ] ,
} ,
] ,
} ,
"aws-us-gov" : {
regions : [ "us-gov-east-1" , "us-gov-east-1-fips" , "us-gov-west-1" , "us-gov-west-1-fips" ] ,
regionRegex : "^us\\-gov\\-\\w+\\-\\d+$" ,
variants : [
{
hostname : "sts.{region}.amazonaws.com" ,
tags : [ ] ,
} ,
{
hostname : "sts.{region}.amazonaws.com" ,
tags : [ "fips" ] ,
} ,
{
hostname : "sts-fips.{region}.api.aws" ,
tags : [ "dualstack" , "fips" ] ,
} ,
{
hostname : "sts.{region}.api.aws" ,
tags : [ "dualstack" ] ,
} ,
] ,
} ,
} ;
const defaultRegionInfoProvider = async ( region , options ) => config _resolver _1 . getRegionInfo ( region , {
... options ,
signingService : "sts" ,
regionHash ,
partitionHash ,
} ) ;
exports . defaultRegionInfoProvider = defaultRegionInfoProvider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2209 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2605 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4195 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5716 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8028 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 106 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 106 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1780 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 1780 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . GetSessionTokenResponse = exports . GetSessionTokenRequest = exports . GetFederationTokenResponse = exports . FederatedUser = exports . GetFederationTokenRequest = exports . GetCallerIdentityResponse = exports . GetCallerIdentityRequest = exports . GetAccessKeyInfoResponse = exports . GetAccessKeyInfoRequest = exports . InvalidAuthorizationMessageException = exports . DecodeAuthorizationMessageResponse = exports . DecodeAuthorizationMessageRequest = exports . IDPCommunicationErrorException = exports . AssumeRoleWithWebIdentityResponse = exports . AssumeRoleWithWebIdentityRequest = exports . InvalidIdentityTokenException = exports . IDPRejectedClaimException = exports . AssumeRoleWithSAMLResponse = exports . AssumeRoleWithSAMLRequest = exports . RegionDisabledException = exports . PackedPolicyTooLargeException = exports . MalformedPolicyDocumentException = exports . ExpiredTokenException = exports . AssumeRoleResponse = exports . Credentials = exports . AssumeRoleRequest = exports . Tag = exports . PolicyDescriptorType = exports . AssumedRoleUser = void 0 ;
var AssumedRoleUser ;
( function ( AssumedRoleUser ) {
AssumedRoleUser . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AssumedRoleUser = exports . AssumedRoleUser || ( exports . AssumedRoleUser = { } ) ) ;
var PolicyDescriptorType ;
( function ( PolicyDescriptorType ) {
PolicyDescriptorType . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PolicyDescriptorType = exports . PolicyDescriptorType || ( exports . PolicyDescriptorType = { } ) ) ;
var Tag ;
( function ( Tag ) {
Tag . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Tag = exports . Tag || ( exports . Tag = { } ) ) ;
var AssumeRoleRequest ;
( function ( AssumeRoleRequest ) {
AssumeRoleRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AssumeRoleRequest = exports . AssumeRoleRequest || ( exports . AssumeRoleRequest = { } ) ) ;
var Credentials ;
( function ( Credentials ) {
Credentials . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( Credentials = exports . Credentials || ( exports . Credentials = { } ) ) ;
var AssumeRoleResponse ;
( function ( AssumeRoleResponse ) {
AssumeRoleResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AssumeRoleResponse = exports . AssumeRoleResponse || ( exports . AssumeRoleResponse = { } ) ) ;
var ExpiredTokenException ;
( function ( ExpiredTokenException ) {
ExpiredTokenException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( ExpiredTokenException = exports . ExpiredTokenException || ( exports . ExpiredTokenException = { } ) ) ;
var MalformedPolicyDocumentException ;
( function ( MalformedPolicyDocumentException ) {
MalformedPolicyDocumentException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( MalformedPolicyDocumentException = exports . MalformedPolicyDocumentException || ( exports . MalformedPolicyDocumentException = { } ) ) ;
var PackedPolicyTooLargeException ;
( function ( PackedPolicyTooLargeException ) {
PackedPolicyTooLargeException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( PackedPolicyTooLargeException = exports . PackedPolicyTooLargeException || ( exports . PackedPolicyTooLargeException = { } ) ) ;
var RegionDisabledException ;
( function ( RegionDisabledException ) {
RegionDisabledException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( RegionDisabledException = exports . RegionDisabledException || ( exports . RegionDisabledException = { } ) ) ;
var AssumeRoleWithSAMLRequest ;
( function ( AssumeRoleWithSAMLRequest ) {
AssumeRoleWithSAMLRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AssumeRoleWithSAMLRequest = exports . AssumeRoleWithSAMLRequest || ( exports . AssumeRoleWithSAMLRequest = { } ) ) ;
var AssumeRoleWithSAMLResponse ;
( function ( AssumeRoleWithSAMLResponse ) {
AssumeRoleWithSAMLResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AssumeRoleWithSAMLResponse = exports . AssumeRoleWithSAMLResponse || ( exports . AssumeRoleWithSAMLResponse = { } ) ) ;
var IDPRejectedClaimException ;
( function ( IDPRejectedClaimException ) {
IDPRejectedClaimException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( IDPRejectedClaimException = exports . IDPRejectedClaimException || ( exports . IDPRejectedClaimException = { } ) ) ;
var InvalidIdentityTokenException ;
( function ( InvalidIdentityTokenException ) {
InvalidIdentityTokenException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidIdentityTokenException = exports . InvalidIdentityTokenException || ( exports . InvalidIdentityTokenException = { } ) ) ;
var AssumeRoleWithWebIdentityRequest ;
( function ( AssumeRoleWithWebIdentityRequest ) {
AssumeRoleWithWebIdentityRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AssumeRoleWithWebIdentityRequest = exports . AssumeRoleWithWebIdentityRequest || ( exports . AssumeRoleWithWebIdentityRequest = { } ) ) ;
var AssumeRoleWithWebIdentityResponse ;
( function ( AssumeRoleWithWebIdentityResponse ) {
AssumeRoleWithWebIdentityResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( AssumeRoleWithWebIdentityResponse = exports . AssumeRoleWithWebIdentityResponse || ( exports . AssumeRoleWithWebIdentityResponse = { } ) ) ;
var IDPCommunicationErrorException ;
( function ( IDPCommunicationErrorException ) {
IDPCommunicationErrorException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( IDPCommunicationErrorException = exports . IDPCommunicationErrorException || ( exports . IDPCommunicationErrorException = { } ) ) ;
var DecodeAuthorizationMessageRequest ;
( function ( DecodeAuthorizationMessageRequest ) {
DecodeAuthorizationMessageRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DecodeAuthorizationMessageRequest = exports . DecodeAuthorizationMessageRequest || ( exports . DecodeAuthorizationMessageRequest = { } ) ) ;
var DecodeAuthorizationMessageResponse ;
( function ( DecodeAuthorizationMessageResponse ) {
DecodeAuthorizationMessageResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( DecodeAuthorizationMessageResponse = exports . DecodeAuthorizationMessageResponse || ( exports . DecodeAuthorizationMessageResponse = { } ) ) ;
var InvalidAuthorizationMessageException ;
( function ( InvalidAuthorizationMessageException ) {
InvalidAuthorizationMessageException . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( InvalidAuthorizationMessageException = exports . InvalidAuthorizationMessageException || ( exports . InvalidAuthorizationMessageException = { } ) ) ;
var GetAccessKeyInfoRequest ;
( function ( GetAccessKeyInfoRequest ) {
GetAccessKeyInfoRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetAccessKeyInfoRequest = exports . GetAccessKeyInfoRequest || ( exports . GetAccessKeyInfoRequest = { } ) ) ;
var GetAccessKeyInfoResponse ;
( function ( GetAccessKeyInfoResponse ) {
GetAccessKeyInfoResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetAccessKeyInfoResponse = exports . GetAccessKeyInfoResponse || ( exports . GetAccessKeyInfoResponse = { } ) ) ;
var GetCallerIdentityRequest ;
( function ( GetCallerIdentityRequest ) {
GetCallerIdentityRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetCallerIdentityRequest = exports . GetCallerIdentityRequest || ( exports . GetCallerIdentityRequest = { } ) ) ;
var GetCallerIdentityResponse ;
( function ( GetCallerIdentityResponse ) {
GetCallerIdentityResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetCallerIdentityResponse = exports . GetCallerIdentityResponse || ( exports . GetCallerIdentityResponse = { } ) ) ;
var GetFederationTokenRequest ;
( function ( GetFederationTokenRequest ) {
GetFederationTokenRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetFederationTokenRequest = exports . GetFederationTokenRequest || ( exports . GetFederationTokenRequest = { } ) ) ;
var FederatedUser ;
( function ( FederatedUser ) {
FederatedUser . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( FederatedUser = exports . FederatedUser || ( exports . FederatedUser = { } ) ) ;
var GetFederationTokenResponse ;
( function ( GetFederationTokenResponse ) {
GetFederationTokenResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetFederationTokenResponse = exports . GetFederationTokenResponse || ( exports . GetFederationTokenResponse = { } ) ) ;
var GetSessionTokenRequest ;
( function ( GetSessionTokenRequest ) {
GetSessionTokenRequest . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetSessionTokenRequest = exports . GetSessionTokenRequest || ( exports . GetSessionTokenRequest = { } ) ) ;
var GetSessionTokenResponse ;
( function ( GetSessionTokenResponse ) {
GetSessionTokenResponse . filterSensitiveLog = ( obj ) => ( {
... obj ,
} ) ;
} ) ( GetSessionTokenResponse = exports . GetSessionTokenResponse || ( exports . GetSessionTokenResponse = { } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 740 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . deserializeAws _queryGetSessionTokenCommand = exports . deserializeAws _queryGetFederationTokenCommand = exports . deserializeAws _queryGetCallerIdentityCommand = exports . deserializeAws _queryGetAccessKeyInfoCommand = exports . deserializeAws _queryDecodeAuthorizationMessageCommand = exports . deserializeAws _queryAssumeRoleWithWebIdentityCommand = exports . deserializeAws _queryAssumeRoleWithSAMLCommand = exports . deserializeAws _queryAssumeRoleCommand = exports . serializeAws _queryGetSessionTokenCommand = exports . serializeAws _queryGetFederationTokenCommand = exports . serializeAws _queryGetCallerIdentityCommand = exports . serializeAws _queryGetAccessKeyInfoCommand = exports . serializeAws _queryDecodeAuthorizationMessageCommand = exports . serializeAws _queryAssumeRoleWithWebIdentityCommand = exports . serializeAws _queryAssumeRoleWithSAMLCommand = exports . serializeAws _queryAssumeRoleCommand = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const entities _1 = _ _nccwpck _require _ _ ( 3000 ) ;
const fast _xml _parser _1 = _ _nccwpck _require _ _ ( 7448 ) ;
const serializeAws _queryAssumeRoleCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryAssumeRoleRequest ( input , context ) ,
Action : "AssumeRole" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryAssumeRoleCommand = serializeAws _queryAssumeRoleCommand ;
const serializeAws _queryAssumeRoleWithSAMLCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryAssumeRoleWithSAMLRequest ( input , context ) ,
Action : "AssumeRoleWithSAML" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryAssumeRoleWithSAMLCommand = serializeAws _queryAssumeRoleWithSAMLCommand ;
const serializeAws _queryAssumeRoleWithWebIdentityCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryAssumeRoleWithWebIdentityRequest ( input , context ) ,
Action : "AssumeRoleWithWebIdentity" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryAssumeRoleWithWebIdentityCommand = serializeAws _queryAssumeRoleWithWebIdentityCommand ;
const serializeAws _queryDecodeAuthorizationMessageCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryDecodeAuthorizationMessageRequest ( input , context ) ,
Action : "DecodeAuthorizationMessage" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryDecodeAuthorizationMessageCommand = serializeAws _queryDecodeAuthorizationMessageCommand ;
const serializeAws _queryGetAccessKeyInfoCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryGetAccessKeyInfoRequest ( input , context ) ,
Action : "GetAccessKeyInfo" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryGetAccessKeyInfoCommand = serializeAws _queryGetAccessKeyInfoCommand ;
const serializeAws _queryGetCallerIdentityCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryGetCallerIdentityRequest ( input , context ) ,
Action : "GetCallerIdentity" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryGetCallerIdentityCommand = serializeAws _queryGetCallerIdentityCommand ;
const serializeAws _queryGetFederationTokenCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryGetFederationTokenRequest ( input , context ) ,
Action : "GetFederationToken" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryGetFederationTokenCommand = serializeAws _queryGetFederationTokenCommand ;
const serializeAws _queryGetSessionTokenCommand = async ( input , context ) => {
const headers = {
"content-type" : "application/x-www-form-urlencoded" ,
} ;
let body ;
body = buildFormUrlencodedString ( {
... serializeAws _queryGetSessionTokenRequest ( input , context ) ,
Action : "GetSessionToken" ,
Version : "2011-06-15" ,
} ) ;
return buildHttpRpcRequest ( context , headers , "/" , undefined , body ) ;
} ;
exports . serializeAws _queryGetSessionTokenCommand = serializeAws _queryGetSessionTokenCommand ;
const deserializeAws _queryAssumeRoleCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryAssumeRoleCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryAssumeRoleResponse ( data . AssumeRoleResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryAssumeRoleCommand = deserializeAws _queryAssumeRoleCommand ;
const deserializeAws _queryAssumeRoleCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ExpiredTokenException" :
case "com.amazonaws.sts#ExpiredTokenException" :
response = {
... ( await deserializeAws _queryExpiredTokenExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "MalformedPolicyDocumentException" :
case "com.amazonaws.sts#MalformedPolicyDocumentException" :
response = {
... ( await deserializeAws _queryMalformedPolicyDocumentExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "PackedPolicyTooLargeException" :
case "com.amazonaws.sts#PackedPolicyTooLargeException" :
response = {
... ( await deserializeAws _queryPackedPolicyTooLargeExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegionDisabledException" :
case "com.amazonaws.sts#RegionDisabledException" :
response = {
... ( await deserializeAws _queryRegionDisabledExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryAssumeRoleWithSAMLCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryAssumeRoleWithSAMLCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryAssumeRoleWithSAMLResponse ( data . AssumeRoleWithSAMLResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryAssumeRoleWithSAMLCommand = deserializeAws _queryAssumeRoleWithSAMLCommand ;
const deserializeAws _queryAssumeRoleWithSAMLCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ExpiredTokenException" :
case "com.amazonaws.sts#ExpiredTokenException" :
response = {
... ( await deserializeAws _queryExpiredTokenExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "IDPRejectedClaimException" :
case "com.amazonaws.sts#IDPRejectedClaimException" :
response = {
... ( await deserializeAws _queryIDPRejectedClaimExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidIdentityTokenException" :
case "com.amazonaws.sts#InvalidIdentityTokenException" :
response = {
... ( await deserializeAws _queryInvalidIdentityTokenExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "MalformedPolicyDocumentException" :
case "com.amazonaws.sts#MalformedPolicyDocumentException" :
response = {
... ( await deserializeAws _queryMalformedPolicyDocumentExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "PackedPolicyTooLargeException" :
case "com.amazonaws.sts#PackedPolicyTooLargeException" :
response = {
... ( await deserializeAws _queryPackedPolicyTooLargeExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegionDisabledException" :
case "com.amazonaws.sts#RegionDisabledException" :
response = {
... ( await deserializeAws _queryRegionDisabledExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryAssumeRoleWithWebIdentityCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryAssumeRoleWithWebIdentityCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryAssumeRoleWithWebIdentityResponse ( data . AssumeRoleWithWebIdentityResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryAssumeRoleWithWebIdentityCommand = deserializeAws _queryAssumeRoleWithWebIdentityCommand ;
const deserializeAws _queryAssumeRoleWithWebIdentityCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "ExpiredTokenException" :
case "com.amazonaws.sts#ExpiredTokenException" :
response = {
... ( await deserializeAws _queryExpiredTokenExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "IDPCommunicationErrorException" :
case "com.amazonaws.sts#IDPCommunicationErrorException" :
response = {
... ( await deserializeAws _queryIDPCommunicationErrorExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "IDPRejectedClaimException" :
case "com.amazonaws.sts#IDPRejectedClaimException" :
response = {
... ( await deserializeAws _queryIDPRejectedClaimExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "InvalidIdentityTokenException" :
case "com.amazonaws.sts#InvalidIdentityTokenException" :
response = {
... ( await deserializeAws _queryInvalidIdentityTokenExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "MalformedPolicyDocumentException" :
case "com.amazonaws.sts#MalformedPolicyDocumentException" :
response = {
... ( await deserializeAws _queryMalformedPolicyDocumentExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "PackedPolicyTooLargeException" :
case "com.amazonaws.sts#PackedPolicyTooLargeException" :
response = {
... ( await deserializeAws _queryPackedPolicyTooLargeExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegionDisabledException" :
case "com.amazonaws.sts#RegionDisabledException" :
response = {
... ( await deserializeAws _queryRegionDisabledExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryDecodeAuthorizationMessageCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryDecodeAuthorizationMessageCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryDecodeAuthorizationMessageResponse ( data . DecodeAuthorizationMessageResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryDecodeAuthorizationMessageCommand = deserializeAws _queryDecodeAuthorizationMessageCommand ;
const deserializeAws _queryDecodeAuthorizationMessageCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "InvalidAuthorizationMessageException" :
case "com.amazonaws.sts#InvalidAuthorizationMessageException" :
response = {
... ( await deserializeAws _queryInvalidAuthorizationMessageExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryGetAccessKeyInfoCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryGetAccessKeyInfoCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryGetAccessKeyInfoResponse ( data . GetAccessKeyInfoResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryGetAccessKeyInfoCommand = deserializeAws _queryGetAccessKeyInfoCommand ;
const deserializeAws _queryGetAccessKeyInfoCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryGetCallerIdentityCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryGetCallerIdentityCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryGetCallerIdentityResponse ( data . GetCallerIdentityResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryGetCallerIdentityCommand = deserializeAws _queryGetCallerIdentityCommand ;
const deserializeAws _queryGetCallerIdentityCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryGetFederationTokenCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryGetFederationTokenCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryGetFederationTokenResponse ( data . GetFederationTokenResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryGetFederationTokenCommand = deserializeAws _queryGetFederationTokenCommand ;
const deserializeAws _queryGetFederationTokenCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "MalformedPolicyDocumentException" :
case "com.amazonaws.sts#MalformedPolicyDocumentException" :
response = {
... ( await deserializeAws _queryMalformedPolicyDocumentExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "PackedPolicyTooLargeException" :
case "com.amazonaws.sts#PackedPolicyTooLargeException" :
response = {
... ( await deserializeAws _queryPackedPolicyTooLargeExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
case "RegionDisabledException" :
case "com.amazonaws.sts#RegionDisabledException" :
response = {
... ( await deserializeAws _queryRegionDisabledExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryGetSessionTokenCommand = async ( output , context ) => {
if ( output . statusCode >= 300 ) {
return deserializeAws _queryGetSessionTokenCommandError ( output , context ) ;
}
const data = await parseBody ( output . body , context ) ;
let contents = { } ;
contents = deserializeAws _queryGetSessionTokenResponse ( data . GetSessionTokenResult , context ) ;
const response = {
$metadata : deserializeMetadata ( output ) ,
... contents ,
} ;
return Promise . resolve ( response ) ;
} ;
exports . deserializeAws _queryGetSessionTokenCommand = deserializeAws _queryGetSessionTokenCommand ;
const deserializeAws _queryGetSessionTokenCommandError = async ( output , context ) => {
const parsedOutput = {
... output ,
body : await parseBody ( output . body , context ) ,
} ;
let response ;
let errorCode = "UnknownError" ;
errorCode = loadQueryErrorCode ( output , parsedOutput . body ) ;
switch ( errorCode ) {
case "RegionDisabledException" :
case "com.amazonaws.sts#RegionDisabledException" :
response = {
... ( await deserializeAws _queryRegionDisabledExceptionResponse ( parsedOutput , context ) ) ,
name : errorCode ,
$metadata : deserializeMetadata ( output ) ,
} ;
break ;
default :
const parsedBody = parsedOutput . body ;
errorCode = parsedBody . Error . code || parsedBody . Error . Code || errorCode ;
response = {
... parsedBody . Error ,
name : ` ${ errorCode } ` ,
message : parsedBody . Error . message || parsedBody . Error . Message || errorCode ,
$fault : "client" ,
$metadata : deserializeMetadata ( output ) ,
} ;
}
const message = response . message || response . Message || errorCode ;
response . message = message ;
delete response . Message ;
return Promise . reject ( Object . assign ( new Error ( message ) , response ) ) ;
} ;
const deserializeAws _queryExpiredTokenExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryExpiredTokenException ( body . Error , context ) ;
const contents = {
name : "ExpiredTokenException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _queryIDPCommunicationErrorExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryIDPCommunicationErrorException ( body . Error , context ) ;
const contents = {
name : "IDPCommunicationErrorException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _queryIDPRejectedClaimExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryIDPRejectedClaimException ( body . Error , context ) ;
const contents = {
name : "IDPRejectedClaimException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _queryInvalidAuthorizationMessageExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryInvalidAuthorizationMessageException ( body . Error , context ) ;
const contents = {
name : "InvalidAuthorizationMessageException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _queryInvalidIdentityTokenExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryInvalidIdentityTokenException ( body . Error , context ) ;
const contents = {
name : "InvalidIdentityTokenException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _queryMalformedPolicyDocumentExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryMalformedPolicyDocumentException ( body . Error , context ) ;
const contents = {
name : "MalformedPolicyDocumentException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _queryPackedPolicyTooLargeExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryPackedPolicyTooLargeException ( body . Error , context ) ;
const contents = {
name : "PackedPolicyTooLargeException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const deserializeAws _queryRegionDisabledExceptionResponse = async ( parsedOutput , context ) => {
const body = parsedOutput . body ;
const deserialized = deserializeAws _queryRegionDisabledException ( body . Error , context ) ;
const contents = {
name : "RegionDisabledException" ,
$fault : "client" ,
$metadata : deserializeMetadata ( parsedOutput ) ,
... deserialized ,
} ;
return contents ;
} ;
const serializeAws _queryAssumeRoleRequest = ( input , context ) => {
const entries = { } ;
if ( input . RoleArn !== undefined && input . RoleArn !== null ) {
entries [ "RoleArn" ] = input . RoleArn ;
}
if ( input . RoleSessionName !== undefined && input . RoleSessionName !== null ) {
entries [ "RoleSessionName" ] = input . RoleSessionName ;
}
if ( input . PolicyArns !== undefined && input . PolicyArns !== null ) {
const memberEntries = serializeAws _querypolicyDescriptorListType ( input . PolicyArns , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
const loc = ` PolicyArns. ${ key } ` ;
entries [ loc ] = value ;
} ) ;
}
if ( input . Policy !== undefined && input . Policy !== null ) {
entries [ "Policy" ] = input . Policy ;
}
if ( input . DurationSeconds !== undefined && input . DurationSeconds !== null ) {
entries [ "DurationSeconds" ] = input . DurationSeconds ;
}
if ( input . Tags !== undefined && input . Tags !== null ) {
const memberEntries = serializeAws _querytagListType ( input . Tags , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
const loc = ` Tags. ${ key } ` ;
entries [ loc ] = value ;
} ) ;
}
if ( input . TransitiveTagKeys !== undefined && input . TransitiveTagKeys !== null ) {
const memberEntries = serializeAws _querytagKeyListType ( input . TransitiveTagKeys , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
const loc = ` TransitiveTagKeys. ${ key } ` ;
entries [ loc ] = value ;
} ) ;
}
if ( input . ExternalId !== undefined && input . ExternalId !== null ) {
entries [ "ExternalId" ] = input . ExternalId ;
}
if ( input . SerialNumber !== undefined && input . SerialNumber !== null ) {
entries [ "SerialNumber" ] = input . SerialNumber ;
}
if ( input . TokenCode !== undefined && input . TokenCode !== null ) {
entries [ "TokenCode" ] = input . TokenCode ;
}
if ( input . SourceIdentity !== undefined && input . SourceIdentity !== null ) {
entries [ "SourceIdentity" ] = input . SourceIdentity ;
}
return entries ;
} ;
const serializeAws _queryAssumeRoleWithSAMLRequest = ( input , context ) => {
const entries = { } ;
if ( input . RoleArn !== undefined && input . RoleArn !== null ) {
entries [ "RoleArn" ] = input . RoleArn ;
}
if ( input . PrincipalArn !== undefined && input . PrincipalArn !== null ) {
entries [ "PrincipalArn" ] = input . PrincipalArn ;
}
if ( input . SAMLAssertion !== undefined && input . SAMLAssertion !== null ) {
entries [ "SAMLAssertion" ] = input . SAMLAssertion ;
}
if ( input . PolicyArns !== undefined && input . PolicyArns !== null ) {
const memberEntries = serializeAws _querypolicyDescriptorListType ( input . PolicyArns , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
const loc = ` PolicyArns. ${ key } ` ;
entries [ loc ] = value ;
} ) ;
}
if ( input . Policy !== undefined && input . Policy !== null ) {
entries [ "Policy" ] = input . Policy ;
}
if ( input . DurationSeconds !== undefined && input . DurationSeconds !== null ) {
entries [ "DurationSeconds" ] = input . DurationSeconds ;
}
return entries ;
} ;
const serializeAws _queryAssumeRoleWithWebIdentityRequest = ( input , context ) => {
const entries = { } ;
if ( input . RoleArn !== undefined && input . RoleArn !== null ) {
entries [ "RoleArn" ] = input . RoleArn ;
}
if ( input . RoleSessionName !== undefined && input . RoleSessionName !== null ) {
entries [ "RoleSessionName" ] = input . RoleSessionName ;
}
if ( input . WebIdentityToken !== undefined && input . WebIdentityToken !== null ) {
entries [ "WebIdentityToken" ] = input . WebIdentityToken ;
}
if ( input . ProviderId !== undefined && input . ProviderId !== null ) {
entries [ "ProviderId" ] = input . ProviderId ;
}
if ( input . PolicyArns !== undefined && input . PolicyArns !== null ) {
const memberEntries = serializeAws _querypolicyDescriptorListType ( input . PolicyArns , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
const loc = ` PolicyArns. ${ key } ` ;
entries [ loc ] = value ;
} ) ;
}
if ( input . Policy !== undefined && input . Policy !== null ) {
entries [ "Policy" ] = input . Policy ;
}
if ( input . DurationSeconds !== undefined && input . DurationSeconds !== null ) {
entries [ "DurationSeconds" ] = input . DurationSeconds ;
}
return entries ;
} ;
const serializeAws _queryDecodeAuthorizationMessageRequest = ( input , context ) => {
const entries = { } ;
if ( input . EncodedMessage !== undefined && input . EncodedMessage !== null ) {
entries [ "EncodedMessage" ] = input . EncodedMessage ;
}
return entries ;
} ;
const serializeAws _queryGetAccessKeyInfoRequest = ( input , context ) => {
const entries = { } ;
if ( input . AccessKeyId !== undefined && input . AccessKeyId !== null ) {
entries [ "AccessKeyId" ] = input . AccessKeyId ;
}
return entries ;
} ;
const serializeAws _queryGetCallerIdentityRequest = ( input , context ) => {
const entries = { } ;
return entries ;
} ;
const serializeAws _queryGetFederationTokenRequest = ( input , context ) => {
const entries = { } ;
if ( input . Name !== undefined && input . Name !== null ) {
entries [ "Name" ] = input . Name ;
}
if ( input . Policy !== undefined && input . Policy !== null ) {
entries [ "Policy" ] = input . Policy ;
}
if ( input . PolicyArns !== undefined && input . PolicyArns !== null ) {
const memberEntries = serializeAws _querypolicyDescriptorListType ( input . PolicyArns , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
const loc = ` PolicyArns. ${ key } ` ;
entries [ loc ] = value ;
} ) ;
}
if ( input . DurationSeconds !== undefined && input . DurationSeconds !== null ) {
entries [ "DurationSeconds" ] = input . DurationSeconds ;
}
if ( input . Tags !== undefined && input . Tags !== null ) {
const memberEntries = serializeAws _querytagListType ( input . Tags , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
const loc = ` Tags. ${ key } ` ;
entries [ loc ] = value ;
} ) ;
}
return entries ;
} ;
const serializeAws _queryGetSessionTokenRequest = ( input , context ) => {
const entries = { } ;
if ( input . DurationSeconds !== undefined && input . DurationSeconds !== null ) {
entries [ "DurationSeconds" ] = input . DurationSeconds ;
}
if ( input . SerialNumber !== undefined && input . SerialNumber !== null ) {
entries [ "SerialNumber" ] = input . SerialNumber ;
}
if ( input . TokenCode !== undefined && input . TokenCode !== null ) {
entries [ "TokenCode" ] = input . TokenCode ;
}
return entries ;
} ;
const serializeAws _querypolicyDescriptorListType = ( input , context ) => {
const entries = { } ;
let counter = 1 ;
for ( const entry of input ) {
if ( entry === null ) {
continue ;
}
const memberEntries = serializeAws _queryPolicyDescriptorType ( entry , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
entries [ ` member. ${ counter } . ${ key } ` ] = value ;
} ) ;
counter ++ ;
}
return entries ;
} ;
const serializeAws _queryPolicyDescriptorType = ( input , context ) => {
const entries = { } ;
if ( input . arn !== undefined && input . arn !== null ) {
entries [ "arn" ] = input . arn ;
}
return entries ;
} ;
const serializeAws _queryTag = ( input , context ) => {
const entries = { } ;
if ( input . Key !== undefined && input . Key !== null ) {
entries [ "Key" ] = input . Key ;
}
if ( input . Value !== undefined && input . Value !== null ) {
entries [ "Value" ] = input . Value ;
}
return entries ;
} ;
const serializeAws _querytagKeyListType = ( input , context ) => {
const entries = { } ;
let counter = 1 ;
for ( const entry of input ) {
if ( entry === null ) {
continue ;
}
entries [ ` member. ${ counter } ` ] = entry ;
counter ++ ;
}
return entries ;
} ;
const serializeAws _querytagListType = ( input , context ) => {
const entries = { } ;
let counter = 1 ;
for ( const entry of input ) {
if ( entry === null ) {
continue ;
}
const memberEntries = serializeAws _queryTag ( entry , context ) ;
Object . entries ( memberEntries ) . forEach ( ( [ key , value ] ) => {
entries [ ` member. ${ counter } . ${ key } ` ] = value ;
} ) ;
counter ++ ;
}
return entries ;
} ;
const deserializeAws _queryAssumedRoleUser = ( output , context ) => {
const contents = {
AssumedRoleId : undefined ,
Arn : undefined ,
} ;
if ( output [ "AssumedRoleId" ] !== undefined ) {
contents . AssumedRoleId = smithy _client _1 . expectString ( output [ "AssumedRoleId" ] ) ;
}
if ( output [ "Arn" ] !== undefined ) {
contents . Arn = smithy _client _1 . expectString ( output [ "Arn" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryAssumeRoleResponse = ( output , context ) => {
const contents = {
Credentials : undefined ,
AssumedRoleUser : undefined ,
PackedPolicySize : undefined ,
SourceIdentity : undefined ,
} ;
if ( output [ "Credentials" ] !== undefined ) {
contents . Credentials = deserializeAws _queryCredentials ( output [ "Credentials" ] , context ) ;
}
if ( output [ "AssumedRoleUser" ] !== undefined ) {
contents . AssumedRoleUser = deserializeAws _queryAssumedRoleUser ( output [ "AssumedRoleUser" ] , context ) ;
}
if ( output [ "PackedPolicySize" ] !== undefined ) {
contents . PackedPolicySize = smithy _client _1 . strictParseInt32 ( output [ "PackedPolicySize" ] ) ;
}
if ( output [ "SourceIdentity" ] !== undefined ) {
contents . SourceIdentity = smithy _client _1 . expectString ( output [ "SourceIdentity" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryAssumeRoleWithSAMLResponse = ( output , context ) => {
const contents = {
Credentials : undefined ,
AssumedRoleUser : undefined ,
PackedPolicySize : undefined ,
Subject : undefined ,
SubjectType : undefined ,
Issuer : undefined ,
Audience : undefined ,
NameQualifier : undefined ,
SourceIdentity : undefined ,
} ;
if ( output [ "Credentials" ] !== undefined ) {
contents . Credentials = deserializeAws _queryCredentials ( output [ "Credentials" ] , context ) ;
}
if ( output [ "AssumedRoleUser" ] !== undefined ) {
contents . AssumedRoleUser = deserializeAws _queryAssumedRoleUser ( output [ "AssumedRoleUser" ] , context ) ;
}
if ( output [ "PackedPolicySize" ] !== undefined ) {
contents . PackedPolicySize = smithy _client _1 . strictParseInt32 ( output [ "PackedPolicySize" ] ) ;
}
if ( output [ "Subject" ] !== undefined ) {
contents . Subject = smithy _client _1 . expectString ( output [ "Subject" ] ) ;
}
if ( output [ "SubjectType" ] !== undefined ) {
contents . SubjectType = smithy _client _1 . expectString ( output [ "SubjectType" ] ) ;
}
if ( output [ "Issuer" ] !== undefined ) {
contents . Issuer = smithy _client _1 . expectString ( output [ "Issuer" ] ) ;
}
if ( output [ "Audience" ] !== undefined ) {
contents . Audience = smithy _client _1 . expectString ( output [ "Audience" ] ) ;
}
if ( output [ "NameQualifier" ] !== undefined ) {
contents . NameQualifier = smithy _client _1 . expectString ( output [ "NameQualifier" ] ) ;
}
if ( output [ "SourceIdentity" ] !== undefined ) {
contents . SourceIdentity = smithy _client _1 . expectString ( output [ "SourceIdentity" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryAssumeRoleWithWebIdentityResponse = ( output , context ) => {
const contents = {
Credentials : undefined ,
SubjectFromWebIdentityToken : undefined ,
AssumedRoleUser : undefined ,
PackedPolicySize : undefined ,
Provider : undefined ,
Audience : undefined ,
SourceIdentity : undefined ,
} ;
if ( output [ "Credentials" ] !== undefined ) {
contents . Credentials = deserializeAws _queryCredentials ( output [ "Credentials" ] , context ) ;
}
if ( output [ "SubjectFromWebIdentityToken" ] !== undefined ) {
contents . SubjectFromWebIdentityToken = smithy _client _1 . expectString ( output [ "SubjectFromWebIdentityToken" ] ) ;
}
if ( output [ "AssumedRoleUser" ] !== undefined ) {
contents . AssumedRoleUser = deserializeAws _queryAssumedRoleUser ( output [ "AssumedRoleUser" ] , context ) ;
}
if ( output [ "PackedPolicySize" ] !== undefined ) {
contents . PackedPolicySize = smithy _client _1 . strictParseInt32 ( output [ "PackedPolicySize" ] ) ;
}
if ( output [ "Provider" ] !== undefined ) {
contents . Provider = smithy _client _1 . expectString ( output [ "Provider" ] ) ;
}
if ( output [ "Audience" ] !== undefined ) {
contents . Audience = smithy _client _1 . expectString ( output [ "Audience" ] ) ;
}
if ( output [ "SourceIdentity" ] !== undefined ) {
contents . SourceIdentity = smithy _client _1 . expectString ( output [ "SourceIdentity" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryCredentials = ( output , context ) => {
const contents = {
AccessKeyId : undefined ,
SecretAccessKey : undefined ,
SessionToken : undefined ,
Expiration : undefined ,
} ;
if ( output [ "AccessKeyId" ] !== undefined ) {
contents . AccessKeyId = smithy _client _1 . expectString ( output [ "AccessKeyId" ] ) ;
}
if ( output [ "SecretAccessKey" ] !== undefined ) {
contents . SecretAccessKey = smithy _client _1 . expectString ( output [ "SecretAccessKey" ] ) ;
}
if ( output [ "SessionToken" ] !== undefined ) {
contents . SessionToken = smithy _client _1 . expectString ( output [ "SessionToken" ] ) ;
}
if ( output [ "Expiration" ] !== undefined ) {
contents . Expiration = smithy _client _1 . expectNonNull ( smithy _client _1 . parseRfc3339DateTime ( output [ "Expiration" ] ) ) ;
}
return contents ;
} ;
const deserializeAws _queryDecodeAuthorizationMessageResponse = ( output , context ) => {
const contents = {
DecodedMessage : undefined ,
} ;
if ( output [ "DecodedMessage" ] !== undefined ) {
contents . DecodedMessage = smithy _client _1 . expectString ( output [ "DecodedMessage" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryExpiredTokenException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryFederatedUser = ( output , context ) => {
const contents = {
FederatedUserId : undefined ,
Arn : undefined ,
} ;
if ( output [ "FederatedUserId" ] !== undefined ) {
contents . FederatedUserId = smithy _client _1 . expectString ( output [ "FederatedUserId" ] ) ;
}
if ( output [ "Arn" ] !== undefined ) {
contents . Arn = smithy _client _1 . expectString ( output [ "Arn" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryGetAccessKeyInfoResponse = ( output , context ) => {
const contents = {
Account : undefined ,
} ;
if ( output [ "Account" ] !== undefined ) {
contents . Account = smithy _client _1 . expectString ( output [ "Account" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryGetCallerIdentityResponse = ( output , context ) => {
const contents = {
UserId : undefined ,
Account : undefined ,
Arn : undefined ,
} ;
if ( output [ "UserId" ] !== undefined ) {
contents . UserId = smithy _client _1 . expectString ( output [ "UserId" ] ) ;
}
if ( output [ "Account" ] !== undefined ) {
contents . Account = smithy _client _1 . expectString ( output [ "Account" ] ) ;
}
if ( output [ "Arn" ] !== undefined ) {
contents . Arn = smithy _client _1 . expectString ( output [ "Arn" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryGetFederationTokenResponse = ( output , context ) => {
const contents = {
Credentials : undefined ,
FederatedUser : undefined ,
PackedPolicySize : undefined ,
} ;
if ( output [ "Credentials" ] !== undefined ) {
contents . Credentials = deserializeAws _queryCredentials ( output [ "Credentials" ] , context ) ;
}
if ( output [ "FederatedUser" ] !== undefined ) {
contents . FederatedUser = deserializeAws _queryFederatedUser ( output [ "FederatedUser" ] , context ) ;
}
if ( output [ "PackedPolicySize" ] !== undefined ) {
contents . PackedPolicySize = smithy _client _1 . strictParseInt32 ( output [ "PackedPolicySize" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryGetSessionTokenResponse = ( output , context ) => {
const contents = {
Credentials : undefined ,
} ;
if ( output [ "Credentials" ] !== undefined ) {
contents . Credentials = deserializeAws _queryCredentials ( output [ "Credentials" ] , context ) ;
}
return contents ;
} ;
const deserializeAws _queryIDPCommunicationErrorException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryIDPRejectedClaimException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryInvalidAuthorizationMessageException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryInvalidIdentityTokenException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryMalformedPolicyDocumentException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryPackedPolicyTooLargeException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeAws _queryRegionDisabledException = ( output , context ) => {
const contents = {
message : undefined ,
} ;
if ( output [ "message" ] !== undefined ) {
contents . message = smithy _client _1 . expectString ( output [ "message" ] ) ;
}
return contents ;
} ;
const deserializeMetadata = ( output ) => {
var _a ;
return ( {
httpStatusCode : output . statusCode ,
requestId : ( _a = output . headers [ "x-amzn-requestid" ] ) !== null && _a !== void 0 ? _a : output . headers [ "x-amzn-request-id" ] ,
extendedRequestId : output . headers [ "x-amz-id-2" ] ,
cfId : output . headers [ "x-amz-cf-id" ] ,
} ) ;
} ;
const collectBody = ( streamBody = new Uint8Array ( ) , context ) => {
if ( streamBody instanceof Uint8Array ) {
return Promise . resolve ( streamBody ) ;
}
return context . streamCollector ( streamBody ) || Promise . resolve ( new Uint8Array ( ) ) ;
} ;
const collectBodyString = ( streamBody , context ) => collectBody ( streamBody , context ) . then ( ( body ) => context . utf8Encoder ( body ) ) ;
const buildHttpRpcRequest = async ( context , headers , path , resolvedHostname , body ) => {
const { hostname , protocol = "https" , port , path : basePath } = await context . endpoint ( ) ;
const contents = {
protocol ,
hostname ,
port ,
method : "POST" ,
path : basePath . endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) + path : basePath + path ,
headers ,
} ;
if ( resolvedHostname !== undefined ) {
contents . hostname = resolvedHostname ;
}
if ( body !== undefined ) {
contents . body = body ;
}
return new protocol _http _1 . HttpRequest ( contents ) ;
} ;
const parseBody = ( streamBody , context ) => collectBodyString ( streamBody , context ) . then ( ( encoded ) => {
if ( encoded . length ) {
const parsedObj = fast _xml _parser _1 . parse ( encoded , {
attributeNamePrefix : "" ,
ignoreAttributes : false ,
parseNodeValue : false ,
trimValues : false ,
tagValueProcessor : ( val ) => ( val . trim ( ) === "" && val . includes ( "\n" ) ? "" : entities _1 . decodeHTML ( val ) ) ,
} ) ;
const textNodeName = "#text" ;
const key = Object . keys ( parsedObj ) [ 0 ] ;
const parsedObjToReturn = parsedObj [ key ] ;
if ( parsedObjToReturn [ textNodeName ] ) {
parsedObjToReturn [ key ] = parsedObjToReturn [ textNodeName ] ;
delete parsedObjToReturn [ textNodeName ] ;
}
return smithy _client _1 . getValueFromTextNode ( parsedObjToReturn ) ;
}
return { } ;
} ) ;
const buildFormUrlencodedString = ( formEntries ) => Object . entries ( formEntries )
. map ( ( [ key , value ] ) => smithy _client _1 . extendedEncodeURIComponent ( key ) + "=" + smithy _client _1 . extendedEncodeURIComponent ( value ) )
. join ( "&" ) ;
const loadQueryErrorCode = ( output , data ) => {
if ( data . Error . Code !== undefined ) {
return data . Error . Code ;
}
if ( output . statusCode == 404 ) {
return "NotFound" ;
}
return "" ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3405 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
const package _json _1 = tslib _1 . _ _importDefault ( _ _nccwpck _require _ _ ( 1121 ) ) ;
const defaultStsRoleAssumers _1 = _ _nccwpck _require _ _ ( 48 ) ;
const config _resolver _1 = _ _nccwpck _require _ _ ( 6153 ) ;
const credential _provider _node _1 = _ _nccwpck _require _ _ ( 5531 ) ;
2021-12-20 10:00:03 +01:00
const hash _node _1 = _ _nccwpck _require _ _ ( 7442 ) ;
const middleware _retry _1 = _ _nccwpck _require _ _ ( 6064 ) ;
const node _config _provider _1 = _ _nccwpck _require _ _ ( 7684 ) ;
const node _http _handler _1 = _ _nccwpck _require _ _ ( 8805 ) ;
const util _base64 _node _1 = _ _nccwpck _require _ _ ( 8588 ) ;
const util _body _length _node _1 = _ _nccwpck _require _ _ ( 4147 ) ;
const util _user _agent _node _1 = _ _nccwpck _require _ _ ( 8095 ) ;
const util _utf8 _node _1 = _ _nccwpck _require _ _ ( 6278 ) ;
2021-12-30 20:43:44 +01:00
const runtimeConfig _shared _1 = _ _nccwpck _require _ _ ( 2642 ) ;
2021-12-20 10:00:03 +01:00
const smithy _client _1 = _ _nccwpck _require _ _ ( 4963 ) ;
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e , _f , _g , _h , _j , _k , _l , _m , _o , _p , _q ;
smithy _client _1 . emitWarningIfUnsupportedVersion ( process . version ) ;
const clientSharedValues = runtimeConfig _shared _1 . getRuntimeConfig ( config ) ;
return {
... clientSharedValues ,
... config ,
runtime : "node" ,
base64Decoder : ( _a = config === null || config === void 0 ? void 0 : config . base64Decoder ) !== null && _a !== void 0 ? _a : util _base64 _node _1 . fromBase64 ,
base64Encoder : ( _b = config === null || config === void 0 ? void 0 : config . base64Encoder ) !== null && _b !== void 0 ? _b : util _base64 _node _1 . toBase64 ,
bodyLengthChecker : ( _c = config === null || config === void 0 ? void 0 : config . bodyLengthChecker ) !== null && _c !== void 0 ? _c : util _body _length _node _1 . calculateBodyLength ,
credentialDefaultProvider : ( _d = config === null || config === void 0 ? void 0 : config . credentialDefaultProvider ) !== null && _d !== void 0 ? _d : defaultStsRoleAssumers _1 . decorateDefaultCredentialProvider ( credential _provider _node _1 . defaultProvider ) ,
defaultUserAgentProvider : ( _e = config === null || config === void 0 ? void 0 : config . defaultUserAgentProvider ) !== null && _e !== void 0 ? _e : util _user _agent _node _1 . defaultUserAgent ( { serviceId : clientSharedValues . serviceId , clientVersion : package _json _1 . default . version } ) ,
maxAttempts : ( _f = config === null || config === void 0 ? void 0 : config . maxAttempts ) !== null && _f !== void 0 ? _f : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _MAX _ATTEMPT _CONFIG _OPTIONS ) ,
region : ( _g = config === null || config === void 0 ? void 0 : config . region ) !== null && _g !== void 0 ? _g : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _REGION _CONFIG _OPTIONS , config _resolver _1 . NODE _REGION _CONFIG _FILE _OPTIONS ) ,
requestHandler : ( _h = config === null || config === void 0 ? void 0 : config . requestHandler ) !== null && _h !== void 0 ? _h : new node _http _handler _1 . NodeHttpHandler ( ) ,
retryMode : ( _j = config === null || config === void 0 ? void 0 : config . retryMode ) !== null && _j !== void 0 ? _j : node _config _provider _1 . loadConfig ( middleware _retry _1 . NODE _RETRY _MODE _CONFIG _OPTIONS ) ,
sha256 : ( _k = config === null || config === void 0 ? void 0 : config . sha256 ) !== null && _k !== void 0 ? _k : hash _node _1 . Hash . bind ( null , "sha256" ) ,
streamCollector : ( _l = config === null || config === void 0 ? void 0 : config . streamCollector ) !== null && _l !== void 0 ? _l : node _http _handler _1 . streamCollector ,
useDualstackEndpoint : ( _m = config === null || config === void 0 ? void 0 : config . useDualstackEndpoint ) !== null && _m !== void 0 ? _m : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _DUALSTACK _ENDPOINT _CONFIG _OPTIONS ) ,
useFipsEndpoint : ( _o = config === null || config === void 0 ? void 0 : config . useFipsEndpoint ) !== null && _o !== void 0 ? _o : node _config _provider _1 . loadConfig ( config _resolver _1 . NODE _USE _FIPS _ENDPOINT _CONFIG _OPTIONS ) ,
utf8Decoder : ( _p = config === null || config === void 0 ? void 0 : config . utf8Decoder ) !== null && _p !== void 0 ? _p : util _utf8 _node _1 . fromUtf8 ,
utf8Encoder : ( _q = config === null || config === void 0 ? void 0 : config . utf8Encoder ) !== null && _q !== void 0 ? _q : util _utf8 _node _1 . toUtf8 ,
} ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2642 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRuntimeConfig = void 0 ;
const url _parser _1 = _ _nccwpck _require _ _ ( 2992 ) ;
2021-12-30 20:43:44 +01:00
const endpoints _1 = _ _nccwpck _require _ _ ( 3571 ) ;
2021-12-20 10:00:03 +01:00
const getRuntimeConfig = ( config ) => {
var _a , _b , _c , _d , _e ;
return ( {
apiVersion : "2011-06-15" ,
disableHostPrefix : ( _a = config === null || config === void 0 ? void 0 : config . disableHostPrefix ) !== null && _a !== void 0 ? _a : false ,
logger : ( _b = config === null || config === void 0 ? void 0 : config . logger ) !== null && _b !== void 0 ? _b : { } ,
regionInfoProvider : ( _c = config === null || config === void 0 ? void 0 : config . regionInfoProvider ) !== null && _c !== void 0 ? _c : endpoints _1 . defaultRegionInfoProvider ,
serviceId : ( _d = config === null || config === void 0 ? void 0 : config . serviceId ) !== null && _d !== void 0 ? _d : "STS" ,
urlParser : ( _e = config === null || config === void 0 ? void 0 : config . urlParser ) !== null && _e !== void 0 ? _e : url _parser _1 . parseUrl ,
} ) ;
} ;
exports . getRuntimeConfig = getRuntimeConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4723 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NODE _USE _DUALSTACK _ENDPOINT _CONFIG _OPTIONS = exports . DEFAULT _USE _DUALSTACK _ENDPOINT = exports . CONFIG _USE _DUALSTACK _ENDPOINT = exports . ENV _USE _DUALSTACK _ENDPOINT = void 0 ;
const util _config _provider _1 = _ _nccwpck _require _ _ ( 6168 ) ;
exports . ENV _USE _DUALSTACK _ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT" ;
exports . CONFIG _USE _DUALSTACK _ENDPOINT = "use_dualstack_endpoint" ;
exports . DEFAULT _USE _DUALSTACK _ENDPOINT = false ;
exports . NODE _USE _DUALSTACK _ENDPOINT _CONFIG _OPTIONS = {
environmentVariableSelector : ( env ) => util _config _provider _1 . booleanSelector ( env , exports . ENV _USE _DUALSTACK _ENDPOINT , util _config _provider _1 . SelectorType . ENV ) ,
configFileSelector : ( profile ) => util _config _provider _1 . booleanSelector ( profile , exports . CONFIG _USE _DUALSTACK _ENDPOINT , util _config _provider _1 . SelectorType . CONFIG ) ,
default : false ,
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2478 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NODE _USE _FIPS _ENDPOINT _CONFIG _OPTIONS = exports . DEFAULT _USE _FIPS _ENDPOINT = exports . CONFIG _USE _FIPS _ENDPOINT = exports . ENV _USE _FIPS _ENDPOINT = void 0 ;
const util _config _provider _1 = _ _nccwpck _require _ _ ( 6168 ) ;
exports . ENV _USE _FIPS _ENDPOINT = "AWS_USE_FIPS_ENDPOINT" ;
exports . CONFIG _USE _FIPS _ENDPOINT = "use_fips_endpoint" ;
exports . DEFAULT _USE _FIPS _ENDPOINT = false ;
exports . NODE _USE _FIPS _ENDPOINT _CONFIG _OPTIONS = {
environmentVariableSelector : ( env ) => util _config _provider _1 . booleanSelector ( env , exports . ENV _USE _FIPS _ENDPOINT , util _config _provider _1 . SelectorType . ENV ) ,
configFileSelector : ( profile ) => util _config _provider _1 . booleanSelector ( profile , exports . CONFIG _USE _FIPS _ENDPOINT , util _config _provider _1 . SelectorType . CONFIG ) ,
default : false ,
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 7392 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4723 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2478 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2108 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2327 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2108 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . resolveCustomEndpointsConfig = void 0 ;
2021-12-30 20:43:44 +01:00
const normalizeBoolean _1 = _ _nccwpck _require _ _ ( 2164 ) ;
const normalizeEndpoint _1 = _ _nccwpck _require _ _ ( 9815 ) ;
2021-12-20 10:00:03 +01:00
const resolveCustomEndpointsConfig = ( input ) => {
var _a ;
return ( {
... input ,
tls : ( _a = input . tls ) !== null && _a !== void 0 ? _a : true ,
endpoint : normalizeEndpoint _1 . normalizeEndpoint ( input ) ,
isCustomEndpoint : true ,
useDualstackEndpoint : normalizeBoolean _1 . normalizeBoolean ( input . useDualstackEndpoint ) ,
} ) ;
} ;
exports . resolveCustomEndpointsConfig = resolveCustomEndpointsConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2327 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . resolveEndpointsConfig = void 0 ;
2021-12-30 20:43:44 +01:00
const getEndpointFromRegion _1 = _ _nccwpck _require _ _ ( 4159 ) ;
const normalizeBoolean _1 = _ _nccwpck _require _ _ ( 2164 ) ;
const normalizeEndpoint _1 = _ _nccwpck _require _ _ ( 9815 ) ;
2021-12-20 10:00:03 +01:00
const resolveEndpointsConfig = ( input ) => {
var _a ;
const useDualstackEndpoint = normalizeBoolean _1 . normalizeBoolean ( input . useDualstackEndpoint ) ;
const { endpoint , useFipsEndpoint } = input ;
return {
... input ,
tls : ( _a = input . tls ) !== null && _a !== void 0 ? _a : true ,
endpoint : endpoint
? normalizeEndpoint _1 . normalizeEndpoint ( { ... input , endpoint } )
: ( ) => getEndpointFromRegion _1 . getEndpointFromRegion ( { ... input , useDualstackEndpoint , useFipsEndpoint } ) ,
isCustomEndpoint : endpoint ? true : false ,
useDualstackEndpoint ,
} ;
} ;
exports . resolveEndpointsConfig = resolveEndpointsConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 4159 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getEndpointFromRegion = void 0 ;
const getEndpointFromRegion = async ( input ) => {
var _a ;
const { tls = true } = input ;
const region = await input . region ( ) ;
const dnsHostRegex = new RegExp ( /^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/ ) ;
if ( ! dnsHostRegex . test ( region ) ) {
throw new Error ( "Invalid region in client config" ) ;
}
const useDualstackEndpoint = await input . useDualstackEndpoint ( ) ;
const useFipsEndpoint = await input . useFipsEndpoint ( ) ;
const { hostname } = ( _a = ( await input . regionInfoProvider ( region , { useDualstackEndpoint , useFipsEndpoint } ) ) ) !== null && _a !== void 0 ? _a : { } ;
if ( ! hostname ) {
throw new Error ( "Cannot resolve hostname from client config" ) ;
}
return input . urlParser ( ` ${ tls ? "https:" : "http:" } // ${ hostname } ` ) ;
} ;
exports . getEndpointFromRegion = getEndpointFromRegion ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2164 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . normalizeBoolean = void 0 ;
const normalizeBoolean = ( value ) => {
if ( typeof value === "boolean" ) {
const promisified = Promise . resolve ( value ) ;
return ( ) => promisified ;
}
return value ;
} ;
exports . normalizeBoolean = normalizeBoolean ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 9815 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . normalizeEndpoint = void 0 ;
const normalizeEndpoint = ( { endpoint , urlParser } ) => {
if ( typeof endpoint === "string" ) {
const promisified = Promise . resolve ( urlParser ( endpoint ) ) ;
return ( ) => promisified ;
}
else if ( typeof endpoint === "object" ) {
const promisified = Promise . resolve ( endpoint ) ;
return ( ) => promisified ;
}
return endpoint ;
} ;
exports . normalizeEndpoint = normalizeEndpoint ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 6153 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7392 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5441 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6258 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 422 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NODE _REGION _CONFIG _FILE _OPTIONS = exports . NODE _REGION _CONFIG _OPTIONS = exports . REGION _INI _NAME = exports . REGION _ENV _NAME = void 0 ;
exports . REGION _ENV _NAME = "AWS_REGION" ;
exports . REGION _INI _NAME = "region" ;
exports . NODE _REGION _CONFIG _OPTIONS = {
environmentVariableSelector : ( env ) => env [ exports . REGION _ENV _NAME ] ,
configFileSelector : ( profile ) => profile [ exports . REGION _INI _NAME ] ,
default : ( ) => {
throw new Error ( "Region is missing" ) ;
} ,
} ;
exports . NODE _REGION _CONFIG _FILE _OPTIONS = {
preferredFile : "credentials" ,
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2844 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRealRegion = void 0 ;
2021-12-30 20:43:44 +01:00
const isFipsRegion _1 = _ _nccwpck _require _ _ ( 2440 ) ;
2021-12-20 10:00:03 +01:00
const getRealRegion = ( region ) => isFipsRegion _1 . isFipsRegion ( region )
? [ "fips-aws-global" , "aws-fips" ] . includes ( region )
? "us-east-1"
: region . replace ( /fips-(dkr-|prod-)?|-fips/ , "" )
: region ;
exports . getRealRegion = getRealRegion ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 5441 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 422 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1595 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 2440 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . isFipsRegion = void 0 ;
const isFipsRegion = ( region ) => typeof region === "string" && ( region . startsWith ( "fips-" ) || region . endsWith ( "-fips" ) ) ;
exports . isFipsRegion = isFipsRegion ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 1595 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . resolveRegionConfig = void 0 ;
2021-12-30 20:43:44 +01:00
const getRealRegion _1 = _ _nccwpck _require _ _ ( 2844 ) ;
const isFipsRegion _1 = _ _nccwpck _require _ _ ( 2440 ) ;
2021-12-20 10:00:03 +01:00
const resolveRegionConfig = ( input ) => {
const { region , useFipsEndpoint } = input ;
if ( ! region ) {
throw new Error ( "Region is missing" ) ;
}
return {
... input ,
region : async ( ) => {
if ( typeof region === "string" ) {
return getRealRegion _1 . getRealRegion ( region ) ;
}
const providedRegion = await region ( ) ;
return getRealRegion _1 . getRealRegion ( providedRegion ) ;
} ,
useFipsEndpoint : async ( ) => {
const providedRegion = typeof region === "string" ? region : await region ( ) ;
if ( isFipsRegion _1 . isFipsRegion ( providedRegion ) ) {
return true ;
}
return typeof useFipsEndpoint === "boolean" ? Promise . resolve ( useFipsEndpoint ) : useFipsEndpoint ( ) ;
} ,
} ;
} ;
exports . resolveRegionConfig = resolveRegionConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3566 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 6057 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 5280 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getHostnameFromVariants = void 0 ;
const getHostnameFromVariants = ( variants = [ ] , { useFipsEndpoint , useDualstackEndpoint } ) => {
var _a ;
return ( _a = variants . find ( ( { tags } ) => useFipsEndpoint === tags . includes ( "fips" ) && useDualstackEndpoint === tags . includes ( "dualstack" ) ) ) === null || _a === void 0 ? void 0 : _a . hostname ;
} ;
exports . getHostnameFromVariants = getHostnameFromVariants ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 6167 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRegionInfo = void 0 ;
2021-12-30 20:43:44 +01:00
const getHostnameFromVariants _1 = _ _nccwpck _require _ _ ( 5280 ) ;
const getResolvedHostname _1 = _ _nccwpck _require _ _ ( 3877 ) ;
const getResolvedPartition _1 = _ _nccwpck _require _ _ ( 7642 ) ;
const getResolvedSigningRegion _1 = _ _nccwpck _require _ _ ( 3517 ) ;
2021-12-20 10:00:03 +01:00
const getRegionInfo = ( region , { useFipsEndpoint = false , useDualstackEndpoint = false , signingService , regionHash , partitionHash , } ) => {
var _a , _b , _c , _d , _e , _f ;
const partition = getResolvedPartition _1 . getResolvedPartition ( region , { partitionHash } ) ;
const resolvedRegion = region in regionHash ? region : ( _b = ( _a = partitionHash [ partition ] ) === null || _a === void 0 ? void 0 : _a . endpoint ) !== null && _b !== void 0 ? _b : region ;
const hostnameOptions = { useFipsEndpoint , useDualstackEndpoint } ;
const regionHostname = getHostnameFromVariants _1 . getHostnameFromVariants ( ( _c = regionHash [ resolvedRegion ] ) === null || _c === void 0 ? void 0 : _c . variants , hostnameOptions ) ;
const partitionHostname = getHostnameFromVariants _1 . getHostnameFromVariants ( ( _d = partitionHash [ partition ] ) === null || _d === void 0 ? void 0 : _d . variants , hostnameOptions ) ;
const hostname = getResolvedHostname _1 . getResolvedHostname ( resolvedRegion , { regionHostname , partitionHostname } ) ;
if ( hostname === undefined ) {
throw new Error ( ` Endpoint resolution failed for: ${ { resolvedRegion , useFipsEndpoint , useDualstackEndpoint } } ` ) ;
}
const signingRegion = getResolvedSigningRegion _1 . getResolvedSigningRegion ( hostname , {
signingRegion : ( _e = regionHash [ resolvedRegion ] ) === null || _e === void 0 ? void 0 : _e . signingRegion ,
regionRegex : partitionHash [ partition ] . regionRegex ,
useFipsEndpoint ,
} ) ;
return {
partition ,
signingService ,
hostname ,
... ( signingRegion && { signingRegion } ) ,
... ( ( ( _f = regionHash [ resolvedRegion ] ) === null || _f === void 0 ? void 0 : _f . signingService ) && {
signingService : regionHash [ resolvedRegion ] . signingService ,
} ) ,
} ;
} ;
exports . getRegionInfo = getRegionInfo ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3877 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getResolvedHostname = void 0 ;
const getResolvedHostname = ( resolvedRegion , { regionHostname , partitionHostname } ) => regionHostname
? regionHostname
: partitionHostname
? partitionHostname . replace ( "{region}" , resolvedRegion )
: undefined ;
exports . getResolvedHostname = getResolvedHostname ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 7642 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getResolvedPartition = void 0 ;
const getResolvedPartition = ( region , { partitionHash } ) => { var _a ; return ( _a = Object . keys ( partitionHash || { } ) . find ( ( key ) => partitionHash [ key ] . regions . includes ( region ) ) ) !== null && _a !== void 0 ? _a : "aws" ; } ;
exports . getResolvedPartition = getResolvedPartition ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3517 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getResolvedSigningRegion = void 0 ;
const getResolvedSigningRegion = ( hostname , { signingRegion , regionRegex , useFipsEndpoint } ) => {
if ( signingRegion ) {
return signingRegion ;
}
else if ( useFipsEndpoint ) {
const regionRegexJs = regionRegex . replace ( "\\\\" , "\\" ) . replace ( /^\^/g , "\\." ) . replace ( /\$$/g , "\\." ) ;
const regionRegexmatchArray = hostname . match ( regionRegexJs ) ;
if ( regionRegexmatchArray ) {
return regionRegexmatchArray [ 0 ] . slice ( 1 , - 1 ) ;
}
}
} ;
exports . getResolvedSigningRegion = getResolvedSigningRegion ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 6258 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
2021-12-30 20:43:44 +01:00
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3566 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6057 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6167 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 5972 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-30 20:43:44 +01:00
exports . fromEnv = exports . ENV _EXPIRATION = exports . ENV _SESSION = exports . ENV _SECRET = exports . ENV _KEY = void 0 ;
2021-12-20 10:00:03 +01:00
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
2021-12-30 20:43:44 +01:00
exports . ENV _KEY = "AWS_ACCESS_KEY_ID" ;
exports . ENV _SECRET = "AWS_SECRET_ACCESS_KEY" ;
exports . ENV _SESSION = "AWS_SESSION_TOKEN" ;
exports . ENV _EXPIRATION = "AWS_CREDENTIAL_EXPIRATION" ;
function fromEnv ( ) {
return ( ) => {
const accessKeyId = process . env [ exports . ENV _KEY ] ;
const secretAccessKey = process . env [ exports . ENV _SECRET ] ;
const expiry = process . env [ exports . ENV _EXPIRATION ] ;
if ( accessKeyId && secretAccessKey ) {
return Promise . resolve ( {
accessKeyId ,
secretAccessKey ,
sessionToken : process . env [ exports . ENV _SESSION ] ,
expiration : expiry ? new Date ( expiry ) : undefined ,
} ) ;
2021-12-30 19:35:40 +01:00
}
2021-12-30 20:43:44 +01:00
return Promise . reject ( new property _provider _1 . CredentialsProviderError ( "Unable to find environment variable credentials." ) ) ;
2021-12-20 10:00:03 +01:00
} ;
2021-12-30 20:43:44 +01:00
}
exports . fromEnv = fromEnv ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 3736 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-30 20:43:44 +01:00
exports . Endpoint = void 0 ;
var Endpoint ;
( function ( Endpoint ) {
Endpoint [ "IPv4" ] = "http://169.254.169.254" ;
Endpoint [ "IPv6" ] = "http://[fd00:ec2::254]" ;
} ) ( Endpoint = exports . Endpoint || ( exports . Endpoint = { } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 8438 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-30 20:43:44 +01:00
exports . ENDPOINT _CONFIG _OPTIONS = exports . CONFIG _ENDPOINT _NAME = exports . ENV _ENDPOINT _NAME = void 0 ;
exports . ENV _ENDPOINT _NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT" ;
exports . CONFIG _ENDPOINT _NAME = "ec2_metadata_service_endpoint" ;
exports . ENDPOINT _CONFIG _OPTIONS = {
environmentVariableSelector : ( env ) => env [ exports . ENV _ENDPOINT _NAME ] ,
configFileSelector : ( profile ) => profile [ exports . CONFIG _ENDPOINT _NAME ] ,
default : undefined ,
2021-12-30 19:35:40 +01:00
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 1695 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . EndpointMode = void 0 ;
var EndpointMode ;
( function ( EndpointMode ) {
EndpointMode [ "IPv4" ] = "IPv4" ;
EndpointMode [ "IPv6" ] = "IPv6" ;
} ) ( EndpointMode = exports . EndpointMode || ( exports . EndpointMode = { } ) ) ;
/***/ } ) ,
/***/ 7824 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-30 20:43:44 +01:00
exports . ENDPOINT _MODE _CONFIG _OPTIONS = exports . CONFIG _ENDPOINT _MODE _NAME = exports . ENV _ENDPOINT _MODE _NAME = void 0 ;
const EndpointMode _1 = _ _nccwpck _require _ _ ( 1695 ) ;
exports . ENV _ENDPOINT _MODE _NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE" ;
exports . CONFIG _ENDPOINT _MODE _NAME = "ec2_metadata_service_endpoint_mode" ;
exports . ENDPOINT _MODE _CONFIG _OPTIONS = {
environmentVariableSelector : ( env ) => env [ exports . ENV _ENDPOINT _MODE _NAME ] ,
configFileSelector : ( profile ) => profile [ exports . CONFIG _ENDPOINT _MODE _NAME ] ,
default : EndpointMode _1 . EndpointMode . IPv4 ,
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 5232 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-30 20:43:44 +01:00
exports . fromContainerMetadata = exports . ENV _CMDS _AUTH _TOKEN = exports . ENV _CMDS _RELATIVE _URI = exports . ENV _CMDS _FULL _URI = void 0 ;
2021-12-30 19:35:40 +01:00
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const url _1 = _ _nccwpck _require _ _ ( 8835 ) ;
const httpRequest _1 = _ _nccwpck _require _ _ ( 1303 ) ;
const ImdsCredentials _1 = _ _nccwpck _require _ _ ( 1467 ) ;
const RemoteProviderInit _1 = _ _nccwpck _require _ _ ( 2314 ) ;
const retry _1 = _ _nccwpck _require _ _ ( 9912 ) ;
exports . ENV _CMDS _FULL _URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI" ;
exports . ENV _CMDS _RELATIVE _URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" ;
exports . ENV _CMDS _AUTH _TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN" ;
2021-12-20 10:00:03 +01:00
const fromContainerMetadata = ( init = { } ) => {
const { timeout , maxRetries } = RemoteProviderInit _1 . providerConfigFromInit ( init ) ;
return ( ) => retry _1 . retry ( async ( ) => {
const requestOptions = await getCmdsUri ( ) ;
const credsResponse = JSON . parse ( await requestFromEcsImds ( timeout , requestOptions ) ) ;
if ( ! ImdsCredentials _1 . isImdsCredentials ( credsResponse ) ) {
throw new property _provider _1 . CredentialsProviderError ( "Invalid response received from instance metadata service." ) ;
}
return ImdsCredentials _1 . fromImdsCredentials ( credsResponse ) ;
} , maxRetries ) ;
} ;
exports . fromContainerMetadata = fromContainerMetadata ;
const requestFromEcsImds = async ( timeout , options ) => {
if ( process . env [ exports . ENV _CMDS _AUTH _TOKEN ] ) {
options . headers = {
... options . headers ,
Authorization : process . env [ exports . ENV _CMDS _AUTH _TOKEN ] ,
} ;
}
const buffer = await httpRequest _1 . httpRequest ( {
... options ,
timeout ,
} ) ;
return buffer . toString ( ) ;
} ;
const CMDS _IP = "169.254.170.2" ;
const GREENGRASS _HOSTS = {
localhost : true ,
"127.0.0.1" : true ,
} ;
const GREENGRASS _PROTOCOLS = {
"http:" : true ,
"https:" : true ,
} ;
const getCmdsUri = async ( ) => {
if ( process . env [ exports . ENV _CMDS _RELATIVE _URI ] ) {
return {
hostname : CMDS _IP ,
path : process . env [ exports . ENV _CMDS _RELATIVE _URI ] ,
} ;
}
if ( process . env [ exports . ENV _CMDS _FULL _URI ] ) {
const parsed = url _1 . parse ( process . env [ exports . ENV _CMDS _FULL _URI ] ) ;
if ( ! parsed . hostname || ! ( parsed . hostname in GREENGRASS _HOSTS ) ) {
throw new property _provider _1 . CredentialsProviderError ( ` ${ parsed . hostname } is not a valid container metadata service hostname ` , false ) ;
}
if ( ! parsed . protocol || ! ( parsed . protocol in GREENGRASS _PROTOCOLS ) ) {
throw new property _provider _1 . CredentialsProviderError ( ` ${ parsed . protocol } is not a valid container metadata service protocol ` , false ) ;
}
return {
... parsed ,
port : parsed . port ? parseInt ( parsed . port , 10 ) : undefined ,
} ;
}
throw new property _provider _1 . CredentialsProviderError ( "The container metadata credential provider cannot be used unless" +
` the ${ exports . ENV _CMDS _RELATIVE _URI } or ${ exports . ENV _CMDS _FULL _URI } environment ` +
" variable is set" , false ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5813 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromInstanceMetadata = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const httpRequest _1 = _ _nccwpck _require _ _ ( 1303 ) ;
const ImdsCredentials _1 = _ _nccwpck _require _ _ ( 1467 ) ;
const RemoteProviderInit _1 = _ _nccwpck _require _ _ ( 2314 ) ;
const retry _1 = _ _nccwpck _require _ _ ( 9912 ) ;
const getInstanceMetadataEndpoint _1 = _ _nccwpck _require _ _ ( 1206 ) ;
const IMDS _PATH = "/latest/meta-data/iam/security-credentials/" ;
const IMDS _TOKEN _PATH = "/latest/api/token" ;
const fromInstanceMetadata = ( init = { } ) => {
let disableFetchToken = false ;
const { timeout , maxRetries } = RemoteProviderInit _1 . providerConfigFromInit ( init ) ;
const getCredentials = async ( maxRetries , options ) => {
const profile = ( await retry _1 . retry ( async ( ) => {
let profile ;
try {
profile = await getProfile ( options ) ;
}
catch ( err ) {
if ( err . statusCode === 401 ) {
disableFetchToken = false ;
}
throw err ;
}
return profile ;
} , maxRetries ) ) . trim ( ) ;
return retry _1 . retry ( async ( ) => {
let creds ;
try {
creds = await getCredentialsFromProfile ( profile , options ) ;
}
catch ( err ) {
if ( err . statusCode === 401 ) {
disableFetchToken = false ;
}
throw err ;
}
return creds ;
} , maxRetries ) ;
} ;
return async ( ) => {
const endpoint = await getInstanceMetadataEndpoint _1 . getInstanceMetadataEndpoint ( ) ;
if ( disableFetchToken ) {
return getCredentials ( maxRetries , { ... endpoint , timeout } ) ;
}
else {
let token ;
try {
token = ( await getMetadataToken ( { ... endpoint , timeout } ) ) . toString ( ) ;
}
catch ( error ) {
if ( ( error === null || error === void 0 ? void 0 : error . statusCode ) === 400 ) {
throw Object . assign ( error , {
message : "EC2 Metadata token request returned error" ,
} ) ;
}
else if ( error . message === "TimeoutError" || [ 403 , 404 , 405 ] . includes ( error . statusCode ) ) {
disableFetchToken = true ;
}
return getCredentials ( maxRetries , { ... endpoint , timeout } ) ;
}
return getCredentials ( maxRetries , {
... endpoint ,
headers : {
"x-aws-ec2-metadata-token" : token ,
} ,
timeout ,
} ) ;
}
} ;
} ;
exports . fromInstanceMetadata = fromInstanceMetadata ;
const getMetadataToken = async ( options ) => httpRequest _1 . httpRequest ( {
... options ,
path : IMDS _TOKEN _PATH ,
method : "PUT" ,
headers : {
"x-aws-ec2-metadata-token-ttl-seconds" : "21600" ,
} ,
} ) ;
const getProfile = async ( options ) => ( await httpRequest _1 . httpRequest ( { ... options , path : IMDS _PATH } ) ) . toString ( ) ;
const getCredentialsFromProfile = async ( profile , options ) => {
const credsResponse = JSON . parse ( ( await httpRequest _1 . httpRequest ( {
... options ,
path : IMDS _PATH + profile ,
} ) ) . toString ( ) ) ;
if ( ! ImdsCredentials _1 . isImdsCredentials ( credsResponse ) ) {
throw new property _provider _1 . CredentialsProviderError ( "Invalid response received from instance metadata service." ) ;
}
return ImdsCredentials _1 . fromImdsCredentials ( credsResponse ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5898 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5232 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5813 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2314 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1467 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromImdsCredentials = exports . isImdsCredentials = void 0 ;
const isImdsCredentials = ( arg ) => Boolean ( arg ) &&
typeof arg === "object" &&
typeof arg . AccessKeyId === "string" &&
typeof arg . SecretAccessKey === "string" &&
typeof arg . Token === "string" &&
typeof arg . Expiration === "string" ;
exports . isImdsCredentials = isImdsCredentials ;
const fromImdsCredentials = ( creds ) => ( {
accessKeyId : creds . AccessKeyId ,
secretAccessKey : creds . SecretAccessKey ,
sessionToken : creds . Token ,
expiration : new Date ( creds . Expiration ) ,
} ) ;
exports . fromImdsCredentials = fromImdsCredentials ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2314 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . providerConfigFromInit = exports . DEFAULT _MAX _RETRIES = exports . DEFAULT _TIMEOUT = void 0 ;
exports . DEFAULT _TIMEOUT = 1000 ;
exports . DEFAULT _MAX _RETRIES = 0 ;
const providerConfigFromInit = ( { maxRetries = exports . DEFAULT _MAX _RETRIES , timeout = exports . DEFAULT _TIMEOUT , } ) => ( { maxRetries , timeout } ) ;
exports . providerConfigFromInit = providerConfigFromInit ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1303 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . httpRequest = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const buffer _1 = _ _nccwpck _require _ _ ( 4293 ) ;
const http _1 = _ _nccwpck _require _ _ ( 8605 ) ;
function httpRequest ( options ) {
return new Promise ( ( resolve , reject ) => {
var _a ;
const req = http _1 . request ( {
method : "GET" ,
... options ,
hostname : ( _a = options . hostname ) === null || _a === void 0 ? void 0 : _a . replace ( /^\[(.+)\]$/ , "$1" ) ,
} ) ;
req . on ( "error" , ( err ) => {
reject ( Object . assign ( new property _provider _1 . ProviderError ( "Unable to connect to instance metadata service" ) , err ) ) ;
req . destroy ( ) ;
} ) ;
req . on ( "timeout" , ( ) => {
reject ( new property _provider _1 . ProviderError ( "TimeoutError from instance metadata service" ) ) ;
req . destroy ( ) ;
} ) ;
req . on ( "response" , ( res ) => {
const { statusCode = 400 } = res ;
if ( statusCode < 200 || 300 <= statusCode ) {
reject ( Object . assign ( new property _provider _1 . ProviderError ( "Error response received from instance metadata service" ) , { statusCode } ) ) ;
req . destroy ( ) ;
}
const chunks = [ ] ;
res . on ( "data" , ( chunk ) => {
chunks . push ( chunk ) ;
} ) ;
res . on ( "end" , ( ) => {
resolve ( buffer _1 . Buffer . concat ( chunks ) ) ;
req . destroy ( ) ;
} ) ;
} ) ;
req . end ( ) ;
} ) ;
}
exports . httpRequest = httpRequest ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9912 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . retry = void 0 ;
const retry = ( toRetry , maxRetries ) => {
let promise = toRetry ( ) ;
for ( let i = 0 ; i < maxRetries ; i ++ ) {
promise = promise . catch ( toRetry ) ;
}
return promise ;
} ;
exports . retry = retry ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1206 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getInstanceMetadataEndpoint = void 0 ;
const node _config _provider _1 = _ _nccwpck _require _ _ ( 7684 ) ;
const url _parser _1 = _ _nccwpck _require _ _ ( 2992 ) ;
const Endpoint _1 = _ _nccwpck _require _ _ ( 3736 ) ;
const EndpointConfigOptions _1 = _ _nccwpck _require _ _ ( 8438 ) ;
const EndpointMode _1 = _ _nccwpck _require _ _ ( 1695 ) ;
const EndpointModeConfigOptions _1 = _ _nccwpck _require _ _ ( 7824 ) ;
const getInstanceMetadataEndpoint = async ( ) => url _parser _1 . parseUrl ( ( await getFromEndpointConfig ( ) ) || ( await getFromEndpointModeConfig ( ) ) ) ;
exports . getInstanceMetadataEndpoint = getInstanceMetadataEndpoint ;
const getFromEndpointConfig = async ( ) => node _config _provider _1 . loadConfig ( EndpointConfigOptions _1 . ENDPOINT _CONFIG _OPTIONS ) ( ) ;
const getFromEndpointModeConfig = async ( ) => {
const endpointMode = await node _config _provider _1 . loadConfig ( EndpointModeConfigOptions _1 . ENDPOINT _MODE _CONFIG _OPTIONS ) ( ) ;
switch ( endpointMode ) {
case EndpointMode _1 . EndpointMode . IPv4 :
return Endpoint _1 . Endpoint . IPv4 ;
case EndpointMode _1 . EndpointMode . IPv6 :
return Endpoint _1 . Endpoint . IPv6 ;
default :
throw new Error ( ` Unsupported endpoint mode: ${ endpointMode } . ` + ` Select from ${ Object . values ( EndpointMode _1 . EndpointMode ) } ` ) ;
}
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4203 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromIni = void 0 ;
const credential _provider _env _1 = _ _nccwpck _require _ _ ( 5972 ) ;
const credential _provider _imds _1 = _ _nccwpck _require _ _ ( 5898 ) ;
const credential _provider _sso _1 = _ _nccwpck _require _ _ ( 6414 ) ;
const credential _provider _web _identity _1 = _ _nccwpck _require _ _ ( 5646 ) ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const util _credentials _1 = _ _nccwpck _require _ _ ( 8598 ) ;
const isStaticCredsProfile = ( arg ) => Boolean ( arg ) &&
typeof arg === "object" &&
typeof arg . aws _access _key _id === "string" &&
typeof arg . aws _secret _access _key === "string" &&
[ "undefined" , "string" ] . indexOf ( typeof arg . aws _session _token ) > - 1 ;
const isWebIdentityProfile = ( arg ) => Boolean ( arg ) &&
typeof arg === "object" &&
typeof arg . web _identity _token _file === "string" &&
typeof arg . role _arn === "string" &&
[ "undefined" , "string" ] . indexOf ( typeof arg . role _session _name ) > - 1 ;
const isAssumeRoleProfile = ( arg ) => Boolean ( arg ) &&
typeof arg === "object" &&
typeof arg . role _arn === "string" &&
[ "undefined" , "string" ] . indexOf ( typeof arg . role _session _name ) > - 1 &&
[ "undefined" , "string" ] . indexOf ( typeof arg . external _id ) > - 1 &&
[ "undefined" , "string" ] . indexOf ( typeof arg . mfa _serial ) > - 1 ;
const isAssumeRoleWithSourceProfile = ( arg ) => isAssumeRoleProfile ( arg ) && typeof arg . source _profile === "string" && typeof arg . credential _source === "undefined" ;
const isAssumeRoleWithProviderProfile = ( arg ) => isAssumeRoleProfile ( arg ) && typeof arg . credential _source === "string" && typeof arg . source _profile === "undefined" ;
const fromIni = ( init = { } ) => async ( ) => {
const profiles = await util _credentials _1 . parseKnownFiles ( init ) ;
return resolveProfileData ( util _credentials _1 . getMasterProfileName ( init ) , profiles , init ) ;
} ;
exports . fromIni = fromIni ;
const resolveProfileData = async ( profileName , profiles , options , visitedProfiles = { } ) => {
const data = profiles [ profileName ] ;
if ( Object . keys ( visitedProfiles ) . length > 0 && isStaticCredsProfile ( data ) ) {
return resolveStaticCredentials ( data ) ;
}
if ( isAssumeRoleWithSourceProfile ( data ) || isAssumeRoleWithProviderProfile ( data ) ) {
const { external _id : ExternalId , mfa _serial , role _arn : RoleArn , role _session _name : RoleSessionName = "aws-sdk-js-" + Date . now ( ) , source _profile , credential _source , } = data ;
if ( ! options . roleAssumer ) {
throw new property _provider _1 . CredentialsProviderError ( ` Profile ${ profileName } requires a role to be assumed, but no ` + ` role assumption callback was provided. ` , false ) ;
}
if ( source _profile && source _profile in visitedProfiles ) {
throw new property _provider _1 . CredentialsProviderError ( ` Detected a cycle attempting to resolve credentials for profile ` +
` ${ util _credentials _1 . getMasterProfileName ( options ) } . Profiles visited: ` +
Object . keys ( visitedProfiles ) . join ( ", " ) , false ) ;
}
const sourceCreds = source _profile
? resolveProfileData ( source _profile , profiles , options , {
... visitedProfiles ,
[ source _profile ] : true ,
} )
: resolveCredentialSource ( credential _source , profileName ) ( ) ;
const params = { RoleArn , RoleSessionName , ExternalId } ;
if ( mfa _serial ) {
if ( ! options . mfaCodeProvider ) {
throw new property _provider _1 . CredentialsProviderError ( ` Profile ${ profileName } requires multi-factor authentication, ` + ` but no MFA code callback was provided. ` , false ) ;
}
params . SerialNumber = mfa _serial ;
params . TokenCode = await options . mfaCodeProvider ( mfa _serial ) ;
}
return options . roleAssumer ( await sourceCreds , params ) ;
}
if ( isStaticCredsProfile ( data ) ) {
return resolveStaticCredentials ( data ) ;
}
if ( isWebIdentityProfile ( data ) ) {
return resolveWebIdentityCredentials ( data , options ) ;
}
if ( credential _provider _sso _1 . isSsoProfile ( data ) ) {
const { sso _start _url , sso _account _id , sso _region , sso _role _name } = credential _provider _sso _1 . validateSsoProfile ( data ) ;
return credential _provider _sso _1 . fromSSO ( {
ssoStartUrl : sso _start _url ,
ssoAccountId : sso _account _id ,
ssoRegion : sso _region ,
ssoRoleName : sso _role _name ,
} ) ( ) ;
}
throw new property _provider _1 . CredentialsProviderError ( ` Profile ${ profileName } could not be found or parsed in shared ` + ` credentials file. ` ) ;
} ;
const resolveCredentialSource = ( credentialSource , profileName ) => {
const sourceProvidersMap = {
EcsContainer : credential _provider _imds _1 . fromContainerMetadata ,
Ec2InstanceMetadata : credential _provider _imds _1 . fromInstanceMetadata ,
Environment : credential _provider _env _1 . fromEnv ,
} ;
if ( credentialSource in sourceProvidersMap ) {
return sourceProvidersMap [ credentialSource ] ( ) ;
}
else {
throw new property _provider _1 . CredentialsProviderError ( ` Unsupported credential source in profile ${ profileName } . Got ${ credentialSource } , ` +
` expected EcsContainer or Ec2InstanceMetadata or Environment. ` ) ;
}
} ;
const resolveStaticCredentials = ( profile ) => Promise . resolve ( {
accessKeyId : profile . aws _access _key _id ,
secretAccessKey : profile . aws _secret _access _key ,
sessionToken : profile . aws _session _token ,
} ) ;
const resolveWebIdentityCredentials = async ( profile , options ) => credential _provider _web _identity _1 . fromTokenFile ( {
webIdentityTokenFile : profile . web _identity _token _file ,
roleArn : profile . role _arn ,
roleSessionName : profile . role _session _name ,
roleAssumerWithWebIdentity : options . roleAssumerWithWebIdentity ,
} ) ( ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5531 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultProvider = exports . ENV _IMDS _DISABLED = void 0 ;
const credential _provider _env _1 = _ _nccwpck _require _ _ ( 5972 ) ;
const credential _provider _imds _1 = _ _nccwpck _require _ _ ( 5898 ) ;
const credential _provider _ini _1 = _ _nccwpck _require _ _ ( 4203 ) ;
const credential _provider _process _1 = _ _nccwpck _require _ _ ( 9969 ) ;
const credential _provider _sso _1 = _ _nccwpck _require _ _ ( 6414 ) ;
const credential _provider _web _identity _1 = _ _nccwpck _require _ _ ( 5646 ) ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const shared _ini _file _loader _1 = _ _nccwpck _require _ _ ( 7387 ) ;
const util _credentials _1 = _ _nccwpck _require _ _ ( 8598 ) ;
exports . ENV _IMDS _DISABLED = "AWS_EC2_METADATA_DISABLED" ;
const defaultProvider = ( init = { } ) => {
const options = { profile : process . env [ util _credentials _1 . ENV _PROFILE ] , ... init } ;
if ( ! options . loadedConfig )
options . loadedConfig = shared _ini _file _loader _1 . loadSharedConfigFiles ( init ) ;
const providers = [
credential _provider _sso _1 . fromSSO ( options ) ,
credential _provider _ini _1 . fromIni ( options ) ,
credential _provider _process _1 . fromProcess ( options ) ,
credential _provider _web _identity _1 . fromTokenFile ( options ) ,
remoteProvider ( options ) ,
async ( ) => {
throw new property _provider _1 . CredentialsProviderError ( "Could not load credentials from any providers" , false ) ;
} ,
] ;
if ( ! options . profile )
providers . unshift ( credential _provider _env _1 . fromEnv ( ) ) ;
const providerChain = property _provider _1 . chain ( ... providers ) ;
return property _provider _1 . memoize ( providerChain , ( credentials ) => credentials . expiration !== undefined && credentials . expiration . getTime ( ) - Date . now ( ) < 300000 , ( credentials ) => credentials . expiration !== undefined ) ;
} ;
exports . defaultProvider = defaultProvider ;
const remoteProvider = ( init ) => {
if ( process . env [ credential _provider _imds _1 . ENV _CMDS _RELATIVE _URI ] || process . env [ credential _provider _imds _1 . ENV _CMDS _FULL _URI ] ) {
return credential _provider _imds _1 . fromContainerMetadata ( init ) ;
}
if ( process . env [ exports . ENV _IMDS _DISABLED ] ) {
return ( ) => Promise . reject ( new property _provider _1 . CredentialsProviderError ( "EC2 Instance Metadata Service access disabled" ) ) ;
}
return credential _provider _imds _1 . fromInstanceMetadata ( init ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9969 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromProcess = exports . ENV _PROFILE = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const util _credentials _1 = _ _nccwpck _require _ _ ( 8598 ) ;
const child _process _1 = _ _nccwpck _require _ _ ( 3129 ) ;
exports . ENV _PROFILE = "AWS_PROFILE" ;
const fromProcess = ( init = { } ) => async ( ) => {
const profiles = await util _credentials _1 . parseKnownFiles ( init ) ;
return resolveProcessCredentials ( util _credentials _1 . getMasterProfileName ( init ) , profiles ) ;
} ;
exports . fromProcess = fromProcess ;
const resolveProcessCredentials = async ( profileName , profiles ) => {
const profile = profiles [ profileName ] ;
if ( profiles [ profileName ] ) {
const credentialProcess = profile [ "credential_process" ] ;
if ( credentialProcess !== undefined ) {
return await execPromise ( credentialProcess )
. then ( ( processResult ) => {
let data ;
try {
data = JSON . parse ( processResult ) ;
}
catch ( _a ) {
throw Error ( ` Profile ${ profileName } credential_process returned invalid JSON. ` ) ;
}
const { Version : version , AccessKeyId : accessKeyId , SecretAccessKey : secretAccessKey , SessionToken : sessionToken , Expiration : expiration , } = data ;
if ( version !== 1 ) {
throw Error ( ` Profile ${ profileName } credential_process did not return Version 1. ` ) ;
}
if ( accessKeyId === undefined || secretAccessKey === undefined ) {
throw Error ( ` Profile ${ profileName } credential_process returned invalid credentials. ` ) ;
}
let expirationUnix ;
if ( expiration ) {
const currentTime = new Date ( ) ;
const expireTime = new Date ( expiration ) ;
if ( expireTime < currentTime ) {
throw Error ( ` Profile ${ profileName } credential_process returned expired credentials. ` ) ;
}
expirationUnix = Math . floor ( new Date ( expiration ) . valueOf ( ) / 1000 ) ;
}
return {
accessKeyId ,
secretAccessKey ,
sessionToken ,
expirationUnix ,
} ;
} )
. catch ( ( error ) => {
throw new property _provider _1 . CredentialsProviderError ( error . message ) ;
} ) ;
}
else {
throw new property _provider _1 . CredentialsProviderError ( ` Profile ${ profileName } did not contain credential_process. ` ) ;
}
}
else {
throw new property _provider _1 . CredentialsProviderError ( ` Profile ${ profileName } could not be found in shared credentials file. ` ) ;
}
} ;
const execPromise = ( command ) => new Promise ( function ( resolve , reject ) {
child _process _1 . exec ( command , ( error , stdout ) => {
if ( error ) {
reject ( error ) ;
return ;
}
resolve ( stdout . trim ( ) ) ;
} ) ;
} ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6414 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . isSsoProfile = exports . validateSsoProfile = exports . fromSSO = exports . EXPIRE _WINDOW _MS = void 0 ;
const client _sso _1 = _ _nccwpck _require _ _ ( 2666 ) ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const shared _ini _file _loader _1 = _ _nccwpck _require _ _ ( 7387 ) ;
const util _credentials _1 = _ _nccwpck _require _ _ ( 8598 ) ;
const crypto _1 = _ _nccwpck _require _ _ ( 6417 ) ;
const fs _1 = _ _nccwpck _require _ _ ( 5747 ) ;
const path _1 = _ _nccwpck _require _ _ ( 5622 ) ;
exports . EXPIRE _WINDOW _MS = 15 * 60 * 1000 ;
const SHOULD _FAIL _CREDENTIAL _CHAIN = false ;
const fromSSO = ( init = { } ) => async ( ) => {
const { ssoStartUrl , ssoAccountId , ssoRegion , ssoRoleName , ssoClient } = init ;
if ( ! ssoStartUrl && ! ssoAccountId && ! ssoRegion && ! ssoRoleName ) {
const profiles = await util _credentials _1 . parseKnownFiles ( init ) ;
const profileName = util _credentials _1 . getMasterProfileName ( init ) ;
const profile = profiles [ profileName ] ;
if ( ! exports . isSsoProfile ( profile ) ) {
throw new property _provider _1 . CredentialsProviderError ( ` Profile ${ profileName } is not configured with SSO credentials. ` ) ;
}
const { sso _start _url , sso _account _id , sso _region , sso _role _name } = exports . validateSsoProfile ( profile ) ;
return resolveSSOCredentials ( {
ssoStartUrl : sso _start _url ,
ssoAccountId : sso _account _id ,
ssoRegion : sso _region ,
ssoRoleName : sso _role _name ,
ssoClient : ssoClient ,
} ) ;
}
else if ( ! ssoStartUrl || ! ssoAccountId || ! ssoRegion || ! ssoRoleName ) {
throw new property _provider _1 . CredentialsProviderError ( 'Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl",' +
' "ssoAccountId", "ssoRegion", "ssoRoleName"' ) ;
}
else {
return resolveSSOCredentials ( { ssoStartUrl , ssoAccountId , ssoRegion , ssoRoleName , ssoClient } ) ;
}
} ;
exports . fromSSO = fromSSO ;
const resolveSSOCredentials = async ( { ssoStartUrl , ssoAccountId , ssoRegion , ssoRoleName , ssoClient , } ) => {
const hasher = crypto _1 . createHash ( "sha1" ) ;
const cacheName = hasher . update ( ssoStartUrl ) . digest ( "hex" ) ;
const tokenFile = path _1 . join ( shared _ini _file _loader _1 . getHomeDir ( ) , ".aws" , "sso" , "cache" , ` ${ cacheName } .json ` ) ;
let token ;
try {
token = JSON . parse ( fs _1 . readFileSync ( tokenFile , { encoding : "utf-8" } ) ) ;
if ( new Date ( token . expiresAt ) . getTime ( ) - Date . now ( ) <= exports . EXPIRE _WINDOW _MS ) {
throw new Error ( "SSO token is expired." ) ;
}
}
catch ( e ) {
throw new property _provider _1 . CredentialsProviderError ( ` The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session ` +
` run aws sso login with the corresponding profile. ` , SHOULD _FAIL _CREDENTIAL _CHAIN ) ;
}
const { accessToken } = token ;
const sso = ssoClient || new client _sso _1 . SSOClient ( { region : ssoRegion } ) ;
let ssoResp ;
try {
ssoResp = await sso . send ( new client _sso _1 . GetRoleCredentialsCommand ( {
accountId : ssoAccountId ,
roleName : ssoRoleName ,
accessToken ,
} ) ) ;
}
catch ( e ) {
throw property _provider _1 . CredentialsProviderError . from ( e , SHOULD _FAIL _CREDENTIAL _CHAIN ) ;
}
const { roleCredentials : { accessKeyId , secretAccessKey , sessionToken , expiration } = { } } = ssoResp ;
if ( ! accessKeyId || ! secretAccessKey || ! sessionToken || ! expiration ) {
throw new property _provider _1 . CredentialsProviderError ( "SSO returns an invalid temporary credential." , SHOULD _FAIL _CREDENTIAL _CHAIN ) ;
}
return { accessKeyId , secretAccessKey , sessionToken , expiration : new Date ( expiration ) } ;
} ;
const validateSsoProfile = ( profile ) => {
const { sso _start _url , sso _account _id , sso _region , sso _role _name } = profile ;
if ( ! sso _start _url || ! sso _account _id || ! sso _region || ! sso _role _name ) {
throw new property _provider _1 . CredentialsProviderError ( ` Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", ` +
` "sso_role_name", "sso_start_url". Got ${ Object . keys ( profile ) . join ( ", " ) } \n Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html ` , SHOULD _FAIL _CREDENTIAL _CHAIN ) ;
}
return profile ;
} ;
exports . validateSsoProfile = validateSsoProfile ;
const isSsoProfile = ( arg ) => arg &&
( typeof arg . sso _start _url === "string" ||
typeof arg . sso _account _id === "string" ||
typeof arg . sso _region === "string" ||
typeof arg . sso _role _name === "string" ) ;
exports . isSsoProfile = isSsoProfile ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5614 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromTokenFile = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const fs _1 = _ _nccwpck _require _ _ ( 5747 ) ;
const fromWebToken _1 = _ _nccwpck _require _ _ ( 7905 ) ;
const ENV _TOKEN _FILE = "AWS_WEB_IDENTITY_TOKEN_FILE" ;
const ENV _ROLE _ARN = "AWS_ROLE_ARN" ;
const ENV _ROLE _SESSION _NAME = "AWS_ROLE_SESSION_NAME" ;
const fromTokenFile = ( init = { } ) => async ( ) => {
return resolveTokenFile ( init ) ;
} ;
exports . fromTokenFile = fromTokenFile ;
const resolveTokenFile = ( init ) => {
var _a , _b , _c ;
const webIdentityTokenFile = ( _a = init === null || init === void 0 ? void 0 : init . webIdentityTokenFile ) !== null && _a !== void 0 ? _a : process . env [ ENV _TOKEN _FILE ] ;
const roleArn = ( _b = init === null || init === void 0 ? void 0 : init . roleArn ) !== null && _b !== void 0 ? _b : process . env [ ENV _ROLE _ARN ] ;
const roleSessionName = ( _c = init === null || init === void 0 ? void 0 : init . roleSessionName ) !== null && _c !== void 0 ? _c : process . env [ ENV _ROLE _SESSION _NAME ] ;
if ( ! webIdentityTokenFile || ! roleArn ) {
throw new property _provider _1 . CredentialsProviderError ( "Web identity configuration not specified" ) ;
}
return fromWebToken _1 . fromWebToken ( {
... init ,
webIdentityToken : fs _1 . readFileSync ( webIdentityTokenFile , { encoding : "ascii" } ) ,
roleArn ,
roleSessionName ,
} ) ( ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7905 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromWebToken = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const fromWebToken = ( init ) => ( ) => {
const { roleArn , roleSessionName , webIdentityToken , providerId , policyArns , policy , durationSeconds , roleAssumerWithWebIdentity , } = init ;
if ( ! roleAssumerWithWebIdentity ) {
throw new property _provider _1 . CredentialsProviderError ( ` Role Arn ' ${ roleArn } ' needs to be assumed with web identity, ` +
` but no role assumption callback was provided. ` , false ) ;
}
return roleAssumerWithWebIdentity ( {
RoleArn : roleArn ,
RoleSessionName : roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : ` aws-sdk-js-session- ${ Date . now ( ) } ` ,
WebIdentityToken : webIdentityToken ,
ProviderId : providerId ,
PolicyArns : policyArns ,
Policy : policy ,
DurationSeconds : durationSeconds ,
} ) ;
} ;
exports . fromWebToken = fromWebToken ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5646 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5614 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7905 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7442 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . Hash = void 0 ;
const util _buffer _from _1 = _ _nccwpck _require _ _ ( 6010 ) ;
const buffer _1 = _ _nccwpck _require _ _ ( 4293 ) ;
const crypto _1 = _ _nccwpck _require _ _ ( 6417 ) ;
class Hash {
constructor ( algorithmIdentifier , secret ) {
this . hash = secret ? crypto _1 . createHmac ( algorithmIdentifier , castSourceData ( secret ) ) : crypto _1 . createHash ( algorithmIdentifier ) ;
}
update ( toHash , encoding ) {
this . hash . update ( castSourceData ( toHash , encoding ) ) ;
}
digest ( ) {
return Promise . resolve ( this . hash . digest ( ) ) ;
}
}
exports . Hash = Hash ;
function castSourceData ( toCast , encoding ) {
if ( buffer _1 . Buffer . isBuffer ( toCast ) ) {
return toCast ;
}
if ( typeof toCast === "string" ) {
return util _buffer _from _1 . fromString ( toCast , encoding ) ;
}
if ( ArrayBuffer . isView ( toCast ) ) {
return util _buffer _from _1 . fromArrayBuffer ( toCast . buffer , toCast . byteOffset , toCast . byteLength ) ;
}
return util _buffer _from _1 . fromArrayBuffer ( toCast ) ;
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9126 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . isArrayBuffer = void 0 ;
const isArrayBuffer = ( arg ) => ( typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer ) ||
Object . prototype . toString . call ( arg ) === "[object ArrayBuffer]" ;
exports . isArrayBuffer = isArrayBuffer ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2245 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getContentLengthPlugin = exports . contentLengthMiddlewareOptions = exports . contentLengthMiddleware = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const CONTENT _LENGTH _HEADER = "content-length" ;
function contentLengthMiddleware ( bodyLengthChecker ) {
return ( next ) => async ( args ) => {
const request = args . request ;
if ( protocol _http _1 . HttpRequest . isInstance ( request ) ) {
const { body , headers } = request ;
if ( body &&
Object . keys ( headers )
. map ( ( str ) => str . toLowerCase ( ) )
. indexOf ( CONTENT _LENGTH _HEADER ) === - 1 ) {
const length = bodyLengthChecker ( body ) ;
if ( length !== undefined ) {
request . headers = {
... request . headers ,
[ CONTENT _LENGTH _HEADER ] : String ( length ) ,
} ;
}
}
}
return next ( {
... args ,
request ,
} ) ;
} ;
}
exports . contentLengthMiddleware = contentLengthMiddleware ;
exports . contentLengthMiddlewareOptions = {
step : "build" ,
tags : [ "SET_CONTENT_LENGTH" , "CONTENT_LENGTH" ] ,
name : "contentLengthMiddleware" ,
override : true ,
} ;
const getContentLengthPlugin = ( options ) => ( {
applyToStack : ( clientStack ) => {
clientStack . add ( contentLengthMiddleware ( options . bodyLengthChecker ) , exports . contentLengthMiddlewareOptions ) ;
} ,
} ) ;
exports . getContentLengthPlugin = getContentLengthPlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2545 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getHostHeaderPlugin = exports . hostHeaderMiddlewareOptions = exports . hostHeaderMiddleware = exports . resolveHostHeaderConfig = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
function resolveHostHeaderConfig ( input ) {
return input ;
}
exports . resolveHostHeaderConfig = resolveHostHeaderConfig ;
const hostHeaderMiddleware = ( options ) => ( next ) => async ( args ) => {
if ( ! protocol _http _1 . HttpRequest . isInstance ( args . request ) )
return next ( args ) ;
const { request } = args ;
const { handlerProtocol = "" } = options . requestHandler . metadata || { } ;
if ( handlerProtocol . indexOf ( "h2" ) >= 0 && ! request . headers [ ":authority" ] ) {
delete request . headers [ "host" ] ;
request . headers [ ":authority" ] = "" ;
}
else if ( ! request . headers [ "host" ] ) {
request . headers [ "host" ] = request . hostname ;
}
return next ( args ) ;
} ;
exports . hostHeaderMiddleware = hostHeaderMiddleware ;
exports . hostHeaderMiddlewareOptions = {
name : "hostHeaderMiddleware" ,
step : "build" ,
priority : "low" ,
tags : [ "HOST" ] ,
override : true ,
} ;
const getHostHeaderPlugin = ( options ) => ( {
applyToStack : ( clientStack ) => {
clientStack . add ( exports . hostHeaderMiddleware ( options ) , exports . hostHeaderMiddlewareOptions ) ;
} ,
} ) ;
exports . getHostHeaderPlugin = getHostHeaderPlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 14 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9754 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9754 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getLoggerPlugin = exports . loggerMiddlewareOptions = exports . loggerMiddleware = void 0 ;
const loggerMiddleware = ( ) => ( next , context ) => async ( args ) => {
const { clientName , commandName , inputFilterSensitiveLog , logger , outputFilterSensitiveLog } = context ;
const response = await next ( args ) ;
if ( ! logger ) {
return response ;
}
if ( typeof logger . info === "function" ) {
const { $metadata , ... outputWithoutMetadata } = response . output ;
logger . info ( {
clientName ,
commandName ,
input : inputFilterSensitiveLog ( args . input ) ,
output : outputFilterSensitiveLog ( outputWithoutMetadata ) ,
metadata : $metadata ,
} ) ;
}
return response ;
} ;
exports . loggerMiddleware = loggerMiddleware ;
exports . loggerMiddlewareOptions = {
name : "loggerMiddleware" ,
tags : [ "LOGGER" ] ,
step : "initialize" ,
override : true ,
} ;
const getLoggerPlugin = ( options ) => ( {
applyToStack : ( clientStack ) => {
clientStack . add ( exports . loggerMiddleware ( ) , exports . loggerMiddlewareOptions ) ;
} ,
} ) ;
exports . getLoggerPlugin = getLoggerPlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7328 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . AdaptiveRetryStrategy = void 0 ;
const config _1 = _ _nccwpck _require _ _ ( 5192 ) ;
const DefaultRateLimiter _1 = _ _nccwpck _require _ _ ( 6402 ) ;
const StandardRetryStrategy _1 = _ _nccwpck _require _ _ ( 533 ) ;
class AdaptiveRetryStrategy extends StandardRetryStrategy _1 . StandardRetryStrategy {
constructor ( maxAttemptsProvider , options ) {
const { rateLimiter , ... superOptions } = options !== null && options !== void 0 ? options : { } ;
super ( maxAttemptsProvider , superOptions ) ;
this . rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter _1 . DefaultRateLimiter ( ) ;
this . mode = config _1 . RETRY _MODES . ADAPTIVE ;
}
async retry ( next , args ) {
return super . retry ( next , args , {
beforeRequest : async ( ) => {
return this . rateLimiter . getSendToken ( ) ;
} ,
afterRequest : ( response ) => {
this . rateLimiter . updateClientSendingRate ( response ) ;
} ,
} ) ;
}
}
exports . AdaptiveRetryStrategy = AdaptiveRetryStrategy ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6402 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DefaultRateLimiter = void 0 ;
const service _error _classification _1 = _ _nccwpck _require _ _ ( 1921 ) ;
class DefaultRateLimiter {
constructor ( options ) {
var _a , _b , _c , _d , _e ;
this . currentCapacity = 0 ;
this . enabled = false ;
this . lastMaxRate = 0 ;
this . measuredTxRate = 0 ;
this . requestCount = 0 ;
this . lastTimestamp = 0 ;
this . timeWindow = 0 ;
this . beta = ( _a = options === null || options === void 0 ? void 0 : options . beta ) !== null && _a !== void 0 ? _a : 0.7 ;
this . minCapacity = ( _b = options === null || options === void 0 ? void 0 : options . minCapacity ) !== null && _b !== void 0 ? _b : 1 ;
this . minFillRate = ( _c = options === null || options === void 0 ? void 0 : options . minFillRate ) !== null && _c !== void 0 ? _c : 0.5 ;
this . scaleConstant = ( _d = options === null || options === void 0 ? void 0 : options . scaleConstant ) !== null && _d !== void 0 ? _d : 0.4 ;
this . smooth = ( _e = options === null || options === void 0 ? void 0 : options . smooth ) !== null && _e !== void 0 ? _e : 0.8 ;
const currentTimeInSeconds = this . getCurrentTimeInSeconds ( ) ;
this . lastThrottleTime = currentTimeInSeconds ;
this . lastTxRateBucket = Math . floor ( this . getCurrentTimeInSeconds ( ) ) ;
this . fillRate = this . minFillRate ;
this . maxCapacity = this . minCapacity ;
}
getCurrentTimeInSeconds ( ) {
return Date . now ( ) / 1000 ;
}
async getSendToken ( ) {
return this . acquireTokenBucket ( 1 ) ;
}
async acquireTokenBucket ( amount ) {
if ( ! this . enabled ) {
return ;
}
this . refillTokenBucket ( ) ;
if ( amount > this . currentCapacity ) {
const delay = ( ( amount - this . currentCapacity ) / this . fillRate ) * 1000 ;
await new Promise ( ( resolve ) => setTimeout ( resolve , delay ) ) ;
}
this . currentCapacity = this . currentCapacity - amount ;
}
refillTokenBucket ( ) {
const timestamp = this . getCurrentTimeInSeconds ( ) ;
if ( ! this . lastTimestamp ) {
this . lastTimestamp = timestamp ;
return ;
}
const fillAmount = ( timestamp - this . lastTimestamp ) * this . fillRate ;
this . currentCapacity = Math . min ( this . maxCapacity , this . currentCapacity + fillAmount ) ;
this . lastTimestamp = timestamp ;
}
updateClientSendingRate ( response ) {
let calculatedRate ;
this . updateMeasuredRate ( ) ;
if ( service _error _classification _1 . isThrottlingError ( response ) ) {
const rateToUse = ! this . enabled ? this . measuredTxRate : Math . min ( this . measuredTxRate , this . fillRate ) ;
this . lastMaxRate = rateToUse ;
this . calculateTimeWindow ( ) ;
this . lastThrottleTime = this . getCurrentTimeInSeconds ( ) ;
calculatedRate = this . cubicThrottle ( rateToUse ) ;
this . enableTokenBucket ( ) ;
}
else {
this . calculateTimeWindow ( ) ;
calculatedRate = this . cubicSuccess ( this . getCurrentTimeInSeconds ( ) ) ;
}
const newRate = Math . min ( calculatedRate , 2 * this . measuredTxRate ) ;
this . updateTokenBucketRate ( newRate ) ;
}
calculateTimeWindow ( ) {
this . timeWindow = this . getPrecise ( Math . pow ( ( this . lastMaxRate * ( 1 - this . beta ) ) / this . scaleConstant , 1 / 3 ) ) ;
}
cubicThrottle ( rateToUse ) {
return this . getPrecise ( rateToUse * this . beta ) ;
}
cubicSuccess ( timestamp ) {
return this . getPrecise ( this . scaleConstant * Math . pow ( timestamp - this . lastThrottleTime - this . timeWindow , 3 ) + this . lastMaxRate ) ;
}
enableTokenBucket ( ) {
this . enabled = true ;
}
updateTokenBucketRate ( newRate ) {
this . refillTokenBucket ( ) ;
this . fillRate = Math . max ( newRate , this . minFillRate ) ;
this . maxCapacity = Math . max ( newRate , this . minCapacity ) ;
this . currentCapacity = Math . min ( this . currentCapacity , this . maxCapacity ) ;
}
updateMeasuredRate ( ) {
const t = this . getCurrentTimeInSeconds ( ) ;
const timeBucket = Math . floor ( t * 2 ) / 2 ;
this . requestCount ++ ;
if ( timeBucket > this . lastTxRateBucket ) {
const currentRate = this . requestCount / ( timeBucket - this . lastTxRateBucket ) ;
this . measuredTxRate = this . getPrecise ( currentRate * this . smooth + this . measuredTxRate * ( 1 - this . smooth ) ) ;
this . requestCount = 0 ;
this . lastTxRateBucket = timeBucket ;
}
}
getPrecise ( num ) {
return parseFloat ( num . toFixed ( 8 ) ) ;
}
}
exports . DefaultRateLimiter = DefaultRateLimiter ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 533 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . StandardRetryStrategy = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const service _error _classification _1 = _ _nccwpck _require _ _ ( 1921 ) ;
const uuid _1 = _ _nccwpck _require _ _ ( 5840 ) ;
const config _1 = _ _nccwpck _require _ _ ( 5192 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 41 ) ;
const defaultRetryQuota _1 = _ _nccwpck _require _ _ ( 2568 ) ;
const delayDecider _1 = _ _nccwpck _require _ _ ( 5940 ) ;
const retryDecider _1 = _ _nccwpck _require _ _ ( 9572 ) ;
class StandardRetryStrategy {
constructor ( maxAttemptsProvider , options ) {
var _a , _b , _c ;
this . maxAttemptsProvider = maxAttemptsProvider ;
this . mode = config _1 . RETRY _MODES . STANDARD ;
this . retryDecider = ( _a = options === null || options === void 0 ? void 0 : options . retryDecider ) !== null && _a !== void 0 ? _a : retryDecider _1 . defaultRetryDecider ;
this . delayDecider = ( _b = options === null || options === void 0 ? void 0 : options . delayDecider ) !== null && _b !== void 0 ? _b : delayDecider _1 . defaultDelayDecider ;
this . retryQuota = ( _c = options === null || options === void 0 ? void 0 : options . retryQuota ) !== null && _c !== void 0 ? _c : defaultRetryQuota _1 . getDefaultRetryQuota ( constants _1 . INITIAL _RETRY _TOKENS ) ;
}
shouldRetry ( error , attempts , maxAttempts ) {
return attempts < maxAttempts && this . retryDecider ( error ) && this . retryQuota . hasRetryTokens ( error ) ;
}
async getMaxAttempts ( ) {
let maxAttempts ;
try {
maxAttempts = await this . maxAttemptsProvider ( ) ;
}
catch ( error ) {
maxAttempts = config _1 . DEFAULT _MAX _ATTEMPTS ;
}
return maxAttempts ;
}
async retry ( next , args , options ) {
let retryTokenAmount ;
let attempts = 0 ;
let totalDelay = 0 ;
const maxAttempts = await this . getMaxAttempts ( ) ;
const { request } = args ;
if ( protocol _http _1 . HttpRequest . isInstance ( request ) ) {
request . headers [ constants _1 . INVOCATION _ID _HEADER ] = uuid _1 . v4 ( ) ;
}
while ( true ) {
try {
if ( protocol _http _1 . HttpRequest . isInstance ( request ) ) {
request . headers [ constants _1 . REQUEST _HEADER ] = ` attempt= ${ attempts + 1 } ; max= ${ maxAttempts } ` ;
}
if ( options === null || options === void 0 ? void 0 : options . beforeRequest ) {
await options . beforeRequest ( ) ;
}
const { response , output } = await next ( args ) ;
if ( options === null || options === void 0 ? void 0 : options . afterRequest ) {
options . afterRequest ( response ) ;
}
this . retryQuota . releaseRetryTokens ( retryTokenAmount ) ;
output . $metadata . attempts = attempts + 1 ;
output . $metadata . totalRetryDelay = totalDelay ;
return { response , output } ;
}
catch ( e ) {
const err = asSdkError ( e ) ;
attempts ++ ;
if ( this . shouldRetry ( err , attempts , maxAttempts ) ) {
retryTokenAmount = this . retryQuota . retrieveRetryTokens ( err ) ;
const delay = this . delayDecider ( service _error _classification _1 . isThrottlingError ( err ) ? constants _1 . THROTTLING _RETRY _DELAY _BASE : constants _1 . DEFAULT _RETRY _DELAY _BASE , attempts ) ;
totalDelay += delay ;
await new Promise ( ( resolve ) => setTimeout ( resolve , delay ) ) ;
continue ;
}
if ( ! err . $metadata ) {
err . $metadata = { } ;
}
err . $metadata . attempts = attempts ;
err . $metadata . totalRetryDelay = totalDelay ;
throw err ;
}
}
}
}
exports . StandardRetryStrategy = StandardRetryStrategy ;
const asSdkError = ( error ) => {
if ( error instanceof Error )
return error ;
if ( error instanceof Object )
return Object . assign ( new Error ( ) , error ) ;
if ( typeof error === "string" )
return new Error ( error ) ;
return new Error ( ` AWS SDK error wrapper for ${ error } ` ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5192 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . DEFAULT _RETRY _MODE = exports . DEFAULT _MAX _ATTEMPTS = exports . RETRY _MODES = void 0 ;
var RETRY _MODES ;
( function ( RETRY _MODES ) {
RETRY _MODES [ "STANDARD" ] = "standard" ;
RETRY _MODES [ "ADAPTIVE" ] = "adaptive" ;
} ) ( RETRY _MODES = exports . RETRY _MODES || ( exports . RETRY _MODES = { } ) ) ;
exports . DEFAULT _MAX _ATTEMPTS = 3 ;
exports . DEFAULT _RETRY _MODE = RETRY _MODES . STANDARD ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6160 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NODE _RETRY _MODE _CONFIG _OPTIONS = exports . CONFIG _RETRY _MODE = exports . ENV _RETRY _MODE = exports . resolveRetryConfig = exports . NODE _MAX _ATTEMPT _CONFIG _OPTIONS = exports . CONFIG _MAX _ATTEMPTS = exports . ENV _MAX _ATTEMPTS = void 0 ;
const AdaptiveRetryStrategy _1 = _ _nccwpck _require _ _ ( 7328 ) ;
const config _1 = _ _nccwpck _require _ _ ( 5192 ) ;
const StandardRetryStrategy _1 = _ _nccwpck _require _ _ ( 533 ) ;
exports . ENV _MAX _ATTEMPTS = "AWS_MAX_ATTEMPTS" ;
exports . CONFIG _MAX _ATTEMPTS = "max_attempts" ;
exports . NODE _MAX _ATTEMPT _CONFIG _OPTIONS = {
environmentVariableSelector : ( env ) => {
const value = env [ exports . ENV _MAX _ATTEMPTS ] ;
if ( ! value )
return undefined ;
const maxAttempt = parseInt ( value ) ;
if ( Number . isNaN ( maxAttempt ) ) {
throw new Error ( ` Environment variable ${ exports . ENV _MAX _ATTEMPTS } mast be a number, got " ${ value } " ` ) ;
}
return maxAttempt ;
} ,
configFileSelector : ( profile ) => {
const value = profile [ exports . CONFIG _MAX _ATTEMPTS ] ;
if ( ! value )
return undefined ;
const maxAttempt = parseInt ( value ) ;
if ( Number . isNaN ( maxAttempt ) ) {
throw new Error ( ` Shared config file entry ${ exports . CONFIG _MAX _ATTEMPTS } mast be a number, got " ${ value } " ` ) ;
}
return maxAttempt ;
} ,
default : config _1 . DEFAULT _MAX _ATTEMPTS ,
} ;
const resolveRetryConfig = ( input ) => {
const maxAttempts = normalizeMaxAttempts ( input . maxAttempts ) ;
return {
... input ,
maxAttempts ,
retryStrategy : async ( ) => {
if ( input . retryStrategy ) {
return input . retryStrategy ;
}
const retryMode = await getRetryMode ( input . retryMode ) ;
if ( retryMode === config _1 . RETRY _MODES . ADAPTIVE ) {
return new AdaptiveRetryStrategy _1 . AdaptiveRetryStrategy ( maxAttempts ) ;
}
return new StandardRetryStrategy _1 . StandardRetryStrategy ( maxAttempts ) ;
} ,
} ;
} ;
exports . resolveRetryConfig = resolveRetryConfig ;
const getRetryMode = async ( retryMode ) => {
if ( typeof retryMode === "string" ) {
return retryMode ;
}
return await retryMode ( ) ;
} ;
const normalizeMaxAttempts = ( maxAttempts = config _1 . DEFAULT _MAX _ATTEMPTS ) => {
if ( typeof maxAttempts === "number" ) {
const promisified = Promise . resolve ( maxAttempts ) ;
return ( ) => promisified ;
}
return maxAttempts ;
} ;
exports . ENV _RETRY _MODE = "AWS_RETRY_MODE" ;
exports . CONFIG _RETRY _MODE = "retry_mode" ;
exports . NODE _RETRY _MODE _CONFIG _OPTIONS = {
environmentVariableSelector : ( env ) => env [ exports . ENV _RETRY _MODE ] ,
configFileSelector : ( profile ) => profile [ exports . CONFIG _RETRY _MODE ] ,
default : config _1 . DEFAULT _RETRY _MODE ,
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 41 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . REQUEST _HEADER = exports . INVOCATION _ID _HEADER = exports . NO _RETRY _INCREMENT = exports . TIMEOUT _RETRY _COST = exports . RETRY _COST = exports . INITIAL _RETRY _TOKENS = exports . THROTTLING _RETRY _DELAY _BASE = exports . MAXIMUM _RETRY _DELAY = exports . DEFAULT _RETRY _DELAY _BASE = void 0 ;
exports . DEFAULT _RETRY _DELAY _BASE = 100 ;
exports . MAXIMUM _RETRY _DELAY = 20 * 1000 ;
exports . THROTTLING _RETRY _DELAY _BASE = 500 ;
exports . INITIAL _RETRY _TOKENS = 500 ;
exports . RETRY _COST = 5 ;
exports . TIMEOUT _RETRY _COST = 10 ;
exports . NO _RETRY _INCREMENT = 1 ;
exports . INVOCATION _ID _HEADER = "amz-sdk-invocation-id" ;
exports . REQUEST _HEADER = "amz-sdk-request" ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2568 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getDefaultRetryQuota = void 0 ;
const constants _1 = _ _nccwpck _require _ _ ( 41 ) ;
const getDefaultRetryQuota = ( initialRetryTokens , options ) => {
var _a , _b , _c ;
const MAX _CAPACITY = initialRetryTokens ;
const noRetryIncrement = ( _a = options === null || options === void 0 ? void 0 : options . noRetryIncrement ) !== null && _a !== void 0 ? _a : constants _1 . NO _RETRY _INCREMENT ;
const retryCost = ( _b = options === null || options === void 0 ? void 0 : options . retryCost ) !== null && _b !== void 0 ? _b : constants _1 . RETRY _COST ;
const timeoutRetryCost = ( _c = options === null || options === void 0 ? void 0 : options . timeoutRetryCost ) !== null && _c !== void 0 ? _c : constants _1 . TIMEOUT _RETRY _COST ;
let availableCapacity = initialRetryTokens ;
const getCapacityAmount = ( error ) => ( error . name === "TimeoutError" ? timeoutRetryCost : retryCost ) ;
const hasRetryTokens = ( error ) => getCapacityAmount ( error ) <= availableCapacity ;
const retrieveRetryTokens = ( error ) => {
if ( ! hasRetryTokens ( error ) ) {
throw new Error ( "No retry token available" ) ;
}
const capacityAmount = getCapacityAmount ( error ) ;
availableCapacity -= capacityAmount ;
return capacityAmount ;
} ;
const releaseRetryTokens = ( capacityReleaseAmount ) => {
availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement ;
availableCapacity = Math . min ( availableCapacity , MAX _CAPACITY ) ;
} ;
return Object . freeze ( {
hasRetryTokens ,
retrieveRetryTokens ,
releaseRetryTokens ,
} ) ;
} ;
exports . getDefaultRetryQuota = getDefaultRetryQuota ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5940 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultDelayDecider = void 0 ;
const constants _1 = _ _nccwpck _require _ _ ( 41 ) ;
const defaultDelayDecider = ( delayBase , attempts ) => Math . floor ( Math . min ( constants _1 . MAXIMUM _RETRY _DELAY , Math . random ( ) * 2 * * attempts * delayBase ) ) ;
exports . defaultDelayDecider = defaultDelayDecider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6064 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7328 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6402 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 533 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5192 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6160 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5940 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3521 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9572 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1806 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8580 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3521 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getOmitRetryHeadersPlugin = exports . omitRetryHeadersMiddlewareOptions = exports . omitRetryHeadersMiddleware = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 41 ) ;
const omitRetryHeadersMiddleware = ( ) => ( next ) => async ( args ) => {
const { request } = args ;
if ( protocol _http _1 . HttpRequest . isInstance ( request ) ) {
delete request . headers [ constants _1 . INVOCATION _ID _HEADER ] ;
delete request . headers [ constants _1 . REQUEST _HEADER ] ;
}
return next ( args ) ;
} ;
exports . omitRetryHeadersMiddleware = omitRetryHeadersMiddleware ;
exports . omitRetryHeadersMiddlewareOptions = {
name : "omitRetryHeadersMiddleware" ,
tags : [ "RETRY" , "HEADERS" , "OMIT_RETRY_HEADERS" ] ,
relation : "before" ,
toMiddleware : "awsAuthMiddleware" ,
override : true ,
} ;
const getOmitRetryHeadersPlugin = ( options ) => ( {
applyToStack : ( clientStack ) => {
clientStack . addRelativeTo ( exports . omitRetryHeadersMiddleware ( ) , exports . omitRetryHeadersMiddlewareOptions ) ;
} ,
} ) ;
exports . getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9572 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultRetryDecider = void 0 ;
const service _error _classification _1 = _ _nccwpck _require _ _ ( 1921 ) ;
const defaultRetryDecider = ( error ) => {
if ( ! error ) {
return false ;
}
return service _error _classification _1 . isRetryableByTrait ( error ) || service _error _classification _1 . isClockSkewError ( error ) || service _error _classification _1 . isThrottlingError ( error ) || service _error _classification _1 . isTransientError ( error ) ;
} ;
exports . defaultRetryDecider = defaultRetryDecider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1806 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getRetryPlugin = exports . retryMiddlewareOptions = exports . retryMiddleware = void 0 ;
const retryMiddleware = ( options ) => ( next , context ) => async ( args ) => {
const retryStrategy = await options . retryStrategy ( ) ;
if ( retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy . mode )
context . userAgent = [ ... ( context . userAgent || [ ] ) , [ "cfg/retry-mode" , retryStrategy . mode ] ] ;
return retryStrategy . retry ( next , args ) ;
} ;
exports . retryMiddleware = retryMiddleware ;
exports . retryMiddlewareOptions = {
name : "retryMiddleware" ,
tags : [ "RETRY" ] ,
step : "finalizeRequest" ,
priority : "high" ,
override : true ,
} ;
const getRetryPlugin = ( options ) => ( {
applyToStack : ( clientStack ) => {
clientStack . add ( exports . retryMiddleware ( options ) , exports . retryMiddlewareOptions ) ;
} ,
} ) ;
exports . getRetryPlugin = getRetryPlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8580 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5959 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . resolveStsAuthConfig = void 0 ;
const middleware _signing _1 = _ _nccwpck _require _ _ ( 4935 ) ;
const resolveStsAuthConfig = ( input , { stsClientCtor } ) => middleware _signing _1 . resolveAwsAuthConfig ( {
... input ,
stsClientCtor ,
} ) ;
exports . resolveStsAuthConfig = resolveStsAuthConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5648 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . deserializerMiddleware = void 0 ;
const deserializerMiddleware = ( options , deserializer ) => ( next , context ) => async ( args ) => {
const { response } = await next ( args ) ;
const parsed = await deserializer ( response , options ) ;
return {
response ,
output : parsed ,
} ;
} ;
exports . deserializerMiddleware = deserializerMiddleware ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3631 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5648 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9328 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9511 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9328 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getSerdePlugin = exports . serializerMiddlewareOption = exports . deserializerMiddlewareOption = void 0 ;
const deserializerMiddleware _1 = _ _nccwpck _require _ _ ( 5648 ) ;
const serializerMiddleware _1 = _ _nccwpck _require _ _ ( 9511 ) ;
exports . deserializerMiddlewareOption = {
name : "deserializerMiddleware" ,
step : "deserialize" ,
tags : [ "DESERIALIZER" ] ,
override : true ,
} ;
exports . serializerMiddlewareOption = {
name : "serializerMiddleware" ,
step : "serialize" ,
tags : [ "SERIALIZER" ] ,
override : true ,
} ;
function getSerdePlugin ( config , serializer , deserializer ) {
return {
applyToStack : ( commandStack ) => {
commandStack . add ( deserializerMiddleware _1 . deserializerMiddleware ( config , deserializer ) , exports . deserializerMiddlewareOption ) ;
commandStack . add ( serializerMiddleware _1 . serializerMiddleware ( config , serializer ) , exports . serializerMiddlewareOption ) ;
} ,
} ;
}
exports . getSerdePlugin = getSerdePlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9511 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . serializerMiddleware = void 0 ;
const serializerMiddleware = ( options , serializer ) => ( next , context ) => async ( args ) => {
const request = await serializer ( args . input , options ) ;
return next ( {
... args ,
request ,
} ) ;
} ;
exports . serializerMiddleware = serializerMiddleware ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3061 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . resolveSigV4AuthConfig = exports . resolveAwsAuthConfig = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const signature _v4 _1 = _ _nccwpck _require _ _ ( 7776 ) ;
const CREDENTIAL _EXPIRE _WINDOW = 300000 ;
const resolveAwsAuthConfig = ( input ) => {
const normalizedCreds = input . credentials
? normalizeCredentialProvider ( input . credentials )
: input . credentialDefaultProvider ( input ) ;
const { signingEscapePath = true , systemClockOffset = input . systemClockOffset || 0 , sha256 } = input ;
let signer ;
if ( input . signer ) {
signer = normalizeProvider ( input . signer ) ;
}
else {
signer = ( ) => normalizeProvider ( input . region ) ( )
. then ( async ( region ) => [
( await input . regionInfoProvider ( region , {
useFipsEndpoint : await input . useFipsEndpoint ( ) ,
useDualstackEndpoint : await input . useDualstackEndpoint ( ) ,
} ) ) || { } ,
region ,
] )
. then ( ( [ regionInfo , region ] ) => {
const { signingRegion , signingService } = regionInfo ;
input . signingRegion = input . signingRegion || signingRegion || region ;
input . signingName = input . signingName || signingService || input . serviceId ;
const params = {
... input ,
credentials : normalizedCreds ,
region : input . signingRegion ,
service : input . signingName ,
sha256 ,
uriEscapePath : signingEscapePath ,
} ;
const signerConstructor = input . signerConstructor || signature _v4 _1 . SignatureV4 ;
return new signerConstructor ( params ) ;
} ) ;
}
return {
... input ,
systemClockOffset ,
signingEscapePath ,
credentials : normalizedCreds ,
signer ,
} ;
} ;
exports . resolveAwsAuthConfig = resolveAwsAuthConfig ;
const resolveSigV4AuthConfig = ( input ) => {
const normalizedCreds = input . credentials
? normalizeCredentialProvider ( input . credentials )
: input . credentialDefaultProvider ( input ) ;
const { signingEscapePath = true , systemClockOffset = input . systemClockOffset || 0 , sha256 } = input ;
let signer ;
if ( input . signer ) {
signer = normalizeProvider ( input . signer ) ;
}
else {
signer = normalizeProvider ( new signature _v4 _1 . SignatureV4 ( {
credentials : normalizedCreds ,
region : input . region ,
service : input . signingName ,
sha256 ,
uriEscapePath : signingEscapePath ,
} ) ) ;
}
return {
... input ,
systemClockOffset ,
signingEscapePath ,
credentials : normalizedCreds ,
signer ,
} ;
} ;
exports . resolveSigV4AuthConfig = resolveSigV4AuthConfig ;
const normalizeProvider = ( input ) => {
if ( typeof input === "object" ) {
const promisified = Promise . resolve ( input ) ;
return ( ) => promisified ;
}
return input ;
} ;
const normalizeCredentialProvider = ( credentials ) => {
if ( typeof credentials === "function" ) {
return property _provider _1 . memoize ( credentials , ( credentials ) => credentials . expiration !== undefined &&
credentials . expiration . getTime ( ) - Date . now ( ) < CREDENTIAL _EXPIRE _WINDOW , ( credentials ) => credentials . expiration !== undefined ) ;
}
return normalizeProvider ( credentials ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4935 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3061 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2509 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2509 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getSigV4AuthPlugin = exports . getAwsAuthPlugin = exports . awsAuthMiddlewareOptions = exports . awsAuthMiddleware = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const getSkewCorrectedDate _1 = _ _nccwpck _require _ _ ( 8253 ) ;
const getUpdatedSystemClockOffset _1 = _ _nccwpck _require _ _ ( 5863 ) ;
const awsAuthMiddleware = ( options ) => ( next , context ) => async function ( args ) {
if ( ! protocol _http _1 . HttpRequest . isInstance ( args . request ) )
return next ( args ) ;
const signer = await options . signer ( ) ;
const output = await next ( {
... args ,
request : await signer . sign ( args . request , {
signingDate : getSkewCorrectedDate _1 . getSkewCorrectedDate ( options . systemClockOffset ) ,
signingRegion : context [ "signing_region" ] ,
signingService : context [ "signing_service" ] ,
} ) ,
} ) . catch ( ( error ) => {
if ( error . ServerTime ) {
options . systemClockOffset = getUpdatedSystemClockOffset _1 . getUpdatedSystemClockOffset ( error . ServerTime , options . systemClockOffset ) ;
}
throw error ;
} ) ;
const { headers } = output . response ;
const dateHeader = headers && ( headers . date || headers . Date ) ;
if ( dateHeader ) {
options . systemClockOffset = getUpdatedSystemClockOffset _1 . getUpdatedSystemClockOffset ( dateHeader , options . systemClockOffset ) ;
}
return output ;
} ;
exports . awsAuthMiddleware = awsAuthMiddleware ;
exports . awsAuthMiddlewareOptions = {
name : "awsAuthMiddleware" ,
tags : [ "SIGNATURE" , "AWSAUTH" ] ,
relation : "after" ,
toMiddleware : "retryMiddleware" ,
override : true ,
} ;
const getAwsAuthPlugin = ( options ) => ( {
applyToStack : ( clientStack ) => {
clientStack . addRelativeTo ( exports . awsAuthMiddleware ( options ) , exports . awsAuthMiddlewareOptions ) ;
} ,
} ) ;
exports . getAwsAuthPlugin = getAwsAuthPlugin ;
exports . getSigV4AuthPlugin = exports . getAwsAuthPlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8253 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getSkewCorrectedDate = void 0 ;
const getSkewCorrectedDate = ( systemClockOffset ) => new Date ( Date . now ( ) + systemClockOffset ) ;
exports . getSkewCorrectedDate = getSkewCorrectedDate ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5863 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getUpdatedSystemClockOffset = void 0 ;
const isClockSkewed _1 = _ _nccwpck _require _ _ ( 5301 ) ;
const getUpdatedSystemClockOffset = ( clockTime , currentSystemClockOffset ) => {
const clockTimeInMs = Date . parse ( clockTime ) ;
if ( isClockSkewed _1 . isClockSkewed ( clockTimeInMs , currentSystemClockOffset ) ) {
return clockTimeInMs - Date . now ( ) ;
}
return currentSystemClockOffset ;
} ;
exports . getUpdatedSystemClockOffset = getUpdatedSystemClockOffset ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5301 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . isClockSkewed = void 0 ;
const getSkewCorrectedDate _1 = _ _nccwpck _require _ _ ( 8253 ) ;
const isClockSkewed = ( clockTime , systemClockOffset ) => Math . abs ( getSkewCorrectedDate _1 . getSkewCorrectedDate ( systemClockOffset ) . getTime ( ) - clockTime ) >= 300000 ;
exports . isClockSkewed = isClockSkewed ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8399 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . constructStack = void 0 ;
const constructStack = ( ) => {
let absoluteEntries = [ ] ;
let relativeEntries = [ ] ;
const entriesNameSet = new Set ( ) ;
const sort = ( entries ) => entries . sort ( ( a , b ) => stepWeights [ b . step ] - stepWeights [ a . step ] ||
priorityWeights [ b . priority || "normal" ] - priorityWeights [ a . priority || "normal" ] ) ;
const removeByName = ( toRemove ) => {
let isRemoved = false ;
const filterCb = ( entry ) => {
if ( entry . name && entry . name === toRemove ) {
isRemoved = true ;
entriesNameSet . delete ( toRemove ) ;
return false ;
}
return true ;
} ;
absoluteEntries = absoluteEntries . filter ( filterCb ) ;
relativeEntries = relativeEntries . filter ( filterCb ) ;
return isRemoved ;
} ;
const removeByReference = ( toRemove ) => {
let isRemoved = false ;
const filterCb = ( entry ) => {
if ( entry . middleware === toRemove ) {
isRemoved = true ;
if ( entry . name )
entriesNameSet . delete ( entry . name ) ;
return false ;
}
return true ;
} ;
absoluteEntries = absoluteEntries . filter ( filterCb ) ;
relativeEntries = relativeEntries . filter ( filterCb ) ;
return isRemoved ;
} ;
const cloneTo = ( toStack ) => {
absoluteEntries . forEach ( ( entry ) => {
toStack . add ( entry . middleware , { ... entry } ) ;
} ) ;
relativeEntries . forEach ( ( entry ) => {
toStack . addRelativeTo ( entry . middleware , { ... entry } ) ;
} ) ;
return toStack ;
} ;
const expandRelativeMiddlewareList = ( from ) => {
const expandedMiddlewareList = [ ] ;
from . before . forEach ( ( entry ) => {
if ( entry . before . length === 0 && entry . after . length === 0 ) {
expandedMiddlewareList . push ( entry ) ;
}
else {
expandedMiddlewareList . push ( ... expandRelativeMiddlewareList ( entry ) ) ;
}
} ) ;
expandedMiddlewareList . push ( from ) ;
from . after . reverse ( ) . forEach ( ( entry ) => {
if ( entry . before . length === 0 && entry . after . length === 0 ) {
expandedMiddlewareList . push ( entry ) ;
}
else {
expandedMiddlewareList . push ( ... expandRelativeMiddlewareList ( entry ) ) ;
}
} ) ;
return expandedMiddlewareList ;
} ;
const getMiddlewareList = ( ) => {
const normalizedAbsoluteEntries = [ ] ;
const normalizedRelativeEntries = [ ] ;
const normalizedEntriesNameMap = { } ;
absoluteEntries . forEach ( ( entry ) => {
const normalizedEntry = {
... entry ,
before : [ ] ,
after : [ ] ,
} ;
if ( normalizedEntry . name )
normalizedEntriesNameMap [ normalizedEntry . name ] = normalizedEntry ;
normalizedAbsoluteEntries . push ( normalizedEntry ) ;
} ) ;
relativeEntries . forEach ( ( entry ) => {
const normalizedEntry = {
... entry ,
before : [ ] ,
after : [ ] ,
} ;
if ( normalizedEntry . name )
normalizedEntriesNameMap [ normalizedEntry . name ] = normalizedEntry ;
normalizedRelativeEntries . push ( normalizedEntry ) ;
} ) ;
normalizedRelativeEntries . forEach ( ( entry ) => {
if ( entry . toMiddleware ) {
const toMiddleware = normalizedEntriesNameMap [ entry . toMiddleware ] ;
if ( toMiddleware === undefined ) {
throw new Error ( ` ${ entry . toMiddleware } is not found when adding ${ entry . name || "anonymous" } middleware ${ entry . relation } ${ entry . toMiddleware } ` ) ;
}
if ( entry . relation === "after" ) {
toMiddleware . after . push ( entry ) ;
}
if ( entry . relation === "before" ) {
toMiddleware . before . push ( entry ) ;
}
}
} ) ;
const mainChain = sort ( normalizedAbsoluteEntries )
. map ( expandRelativeMiddlewareList )
. reduce ( ( wholeList , expendedMiddlewareList ) => {
wholeList . push ( ... expendedMiddlewareList ) ;
return wholeList ;
} , [ ] ) ;
return mainChain . map ( ( entry ) => entry . middleware ) ;
} ;
const stack = {
add : ( middleware , options = { } ) => {
const { name , override } = options ;
const entry = {
step : "initialize" ,
priority : "normal" ,
middleware ,
... options ,
} ;
if ( name ) {
if ( entriesNameSet . has ( name ) ) {
if ( ! override )
throw new Error ( ` Duplicate middleware name ' ${ name } ' ` ) ;
const toOverrideIndex = absoluteEntries . findIndex ( ( entry ) => entry . name === name ) ;
const toOverride = absoluteEntries [ toOverrideIndex ] ;
if ( toOverride . step !== entry . step || toOverride . priority !== entry . priority ) {
throw new Error ( ` " ${ name } " middleware with ${ toOverride . priority } priority in ${ toOverride . step } step cannot be ` +
` overridden by same-name middleware with ${ entry . priority } priority in ${ entry . step } step. ` ) ;
}
absoluteEntries . splice ( toOverrideIndex , 1 ) ;
}
entriesNameSet . add ( name ) ;
}
absoluteEntries . push ( entry ) ;
} ,
addRelativeTo : ( middleware , options ) => {
const { name , override } = options ;
const entry = {
middleware ,
... options ,
} ;
if ( name ) {
if ( entriesNameSet . has ( name ) ) {
if ( ! override )
throw new Error ( ` Duplicate middleware name ' ${ name } ' ` ) ;
const toOverrideIndex = relativeEntries . findIndex ( ( entry ) => entry . name === name ) ;
const toOverride = relativeEntries [ toOverrideIndex ] ;
if ( toOverride . toMiddleware !== entry . toMiddleware || toOverride . relation !== entry . relation ) {
throw new Error ( ` " ${ name } " middleware ${ toOverride . relation } " ${ toOverride . toMiddleware } " middleware cannot be overridden ` +
` by same-name middleware ${ entry . relation } " ${ entry . toMiddleware } " middleware. ` ) ;
}
relativeEntries . splice ( toOverrideIndex , 1 ) ;
}
entriesNameSet . add ( name ) ;
}
relativeEntries . push ( entry ) ;
} ,
clone : ( ) => cloneTo ( exports . constructStack ( ) ) ,
use : ( plugin ) => {
plugin . applyToStack ( stack ) ;
} ,
remove : ( toRemove ) => {
if ( typeof toRemove === "string" )
return removeByName ( toRemove ) ;
else
return removeByReference ( toRemove ) ;
} ,
removeByTag : ( toRemove ) => {
let isRemoved = false ;
const filterCb = ( entry ) => {
const { tags , name } = entry ;
if ( tags && tags . includes ( toRemove ) ) {
if ( name )
entriesNameSet . delete ( name ) ;
isRemoved = true ;
return false ;
}
return true ;
} ;
absoluteEntries = absoluteEntries . filter ( filterCb ) ;
relativeEntries = relativeEntries . filter ( filterCb ) ;
return isRemoved ;
} ,
concat : ( from ) => {
const cloned = cloneTo ( exports . constructStack ( ) ) ;
cloned . use ( from ) ;
return cloned ;
} ,
applyToStack : cloneTo ,
resolve : ( handler , context ) => {
for ( const middleware of getMiddlewareList ( ) . reverse ( ) ) {
handler = middleware ( handler , context ) ;
}
return handler ;
} ,
} ;
return stack ;
} ;
exports . constructStack = constructStack ;
const stepWeights = {
initialize : 5 ,
serialize : 4 ,
build : 3 ,
finalizeRequest : 2 ,
deserialize : 1 ,
} ;
const priorityWeights = {
high : 3 ,
normal : 2 ,
low : 1 ,
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1461 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8399 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6546 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . resolveUserAgentConfig = void 0 ;
function resolveUserAgentConfig ( input ) {
return {
... input ,
customUserAgent : typeof input . customUserAgent === "string" ? [ [ input . customUserAgent ] ] : input . customUserAgent ,
} ;
}
exports . resolveUserAgentConfig = resolveUserAgentConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8025 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . UA _ESCAPE _REGEX = exports . SPACE = exports . X _AMZ _USER _AGENT = exports . USER _AGENT = void 0 ;
exports . USER _AGENT = "user-agent" ;
exports . X _AMZ _USER _AGENT = "x-amz-user-agent" ;
exports . SPACE = " " ;
exports . UA _ESCAPE _REGEX = /[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4688 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6546 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6236 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6236 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getUserAgentPlugin = exports . getUserAgentMiddlewareOptions = exports . userAgentMiddleware = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 8025 ) ;
const userAgentMiddleware = ( options ) => ( next , context ) => async ( args ) => {
var _a , _b ;
const { request } = args ;
if ( ! protocol _http _1 . HttpRequest . isInstance ( request ) )
return next ( args ) ;
const { headers } = request ;
const userAgent = ( ( _a = context === null || context === void 0 ? void 0 : context . userAgent ) === null || _a === void 0 ? void 0 : _a . map ( escapeUserAgent ) ) || [ ] ;
const defaultUserAgent = ( await options . defaultUserAgentProvider ( ) ) . map ( escapeUserAgent ) ;
const customUserAgent = ( ( _b = options === null || options === void 0 ? void 0 : options . customUserAgent ) === null || _b === void 0 ? void 0 : _b . map ( escapeUserAgent ) ) || [ ] ;
const sdkUserAgentValue = [ ... defaultUserAgent , ... userAgent , ... customUserAgent ] . join ( constants _1 . SPACE ) ;
const normalUAValue = [
... defaultUserAgent . filter ( ( section ) => section . startsWith ( "aws-sdk-" ) ) ,
... customUserAgent ,
] . join ( constants _1 . SPACE ) ;
if ( options . runtime !== "browser" ) {
if ( normalUAValue ) {
headers [ constants _1 . X _AMZ _USER _AGENT ] = headers [ constants _1 . X _AMZ _USER _AGENT ]
? ` ${ headers [ constants _1 . USER _AGENT ] } ${ normalUAValue } `
: normalUAValue ;
}
headers [ constants _1 . USER _AGENT ] = sdkUserAgentValue ;
}
else {
headers [ constants _1 . X _AMZ _USER _AGENT ] = sdkUserAgentValue ;
}
return next ( {
... args ,
request ,
} ) ;
} ;
exports . userAgentMiddleware = userAgentMiddleware ;
const escapeUserAgent = ( [ name , version ] ) => {
const prefixSeparatorIndex = name . indexOf ( "/" ) ;
const prefix = name . substring ( 0 , prefixSeparatorIndex ) ;
let uaName = name . substring ( prefixSeparatorIndex + 1 ) ;
if ( prefix === "api" ) {
uaName = uaName . toLowerCase ( ) ;
}
return [ prefix , uaName , version ]
. filter ( ( item ) => item && item . length > 0 )
. map ( ( item ) => item === null || item === void 0 ? void 0 : item . replace ( constants _1 . UA _ESCAPE _REGEX , "_" ) )
. join ( "/" ) ;
} ;
exports . getUserAgentMiddlewareOptions = {
name : "getUserAgentMiddleware" ,
step : "build" ,
priority : "low" ,
tags : [ "SET_USER_AGENT" , "USER_AGENT" ] ,
override : true ,
} ;
const getUserAgentPlugin = ( config ) => ( {
applyToStack : ( clientStack ) => {
clientStack . add ( exports . userAgentMiddleware ( config ) , exports . getUserAgentMiddlewareOptions ) ;
} ,
} ) ;
exports . getUserAgentPlugin = getUserAgentPlugin ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2175 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . loadConfig = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const fromEnv _1 = _ _nccwpck _require _ _ ( 6161 ) ;
const fromSharedConfigFiles _1 = _ _nccwpck _require _ _ ( 3905 ) ;
const fromStatic _1 = _ _nccwpck _require _ _ ( 5881 ) ;
const loadConfig = ( { environmentVariableSelector , configFileSelector , default : defaultValue } , configuration = { } ) => property _provider _1 . memoize ( property _provider _1 . chain ( fromEnv _1 . fromEnv ( environmentVariableSelector ) , fromSharedConfigFiles _1 . fromSharedConfigFiles ( configFileSelector , configuration ) , fromStatic _1 . fromStatic ( defaultValue ) ) ) ;
exports . loadConfig = loadConfig ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6161 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromEnv = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const fromEnv = ( envVarSelector ) => async ( ) => {
try {
const config = envVarSelector ( process . env ) ;
if ( config === undefined ) {
throw new Error ( ) ;
}
return config ;
}
catch ( e ) {
throw new property _provider _1 . CredentialsProviderError ( e . message || ` Cannot load config from environment variables with getter: ${ envVarSelector } ` ) ;
}
} ;
exports . fromEnv = fromEnv ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3905 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromSharedConfigFiles = exports . ENV _PROFILE = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const shared _ini _file _loader _1 = _ _nccwpck _require _ _ ( 7387 ) ;
const DEFAULT _PROFILE = "default" ;
exports . ENV _PROFILE = "AWS_PROFILE" ;
const fromSharedConfigFiles = ( configSelector , { preferredFile = "config" , ... init } = { } ) => async ( ) => {
const { loadedConfig = shared _ini _file _loader _1 . loadSharedConfigFiles ( init ) , profile = process . env [ exports . ENV _PROFILE ] || DEFAULT _PROFILE } = init ;
const { configFile , credentialsFile } = await loadedConfig ;
const profileFromCredentials = credentialsFile [ profile ] || { } ;
const profileFromConfig = configFile [ profile ] || { } ;
const mergedProfile = preferredFile === "config"
? { ... profileFromCredentials , ... profileFromConfig }
: { ... profileFromConfig , ... profileFromCredentials } ;
try {
const configValue = configSelector ( mergedProfile ) ;
if ( configValue === undefined ) {
throw new Error ( ) ;
}
return configValue ;
}
catch ( e ) {
throw new property _provider _1 . CredentialsProviderError ( e . message ||
` Cannot load config for profile ${ profile } in SDK configuration files with getter: ${ configSelector } ` ) ;
}
} ;
exports . fromSharedConfigFiles = fromSharedConfigFiles ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5881 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromStatic = void 0 ;
const property _provider _1 = _ _nccwpck _require _ _ ( 4462 ) ;
const isFunction = ( func ) => typeof func === "function" ;
const fromStatic = ( defaultValue ) => isFunction ( defaultValue ) ? async ( ) => defaultValue ( ) : property _provider _1 . fromStatic ( defaultValue ) ;
exports . fromStatic = fromStatic ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7684 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2175 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3647 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NODEJS _TIMEOUT _ERROR _CODES = void 0 ;
exports . NODEJS _TIMEOUT _ERROR _CODES = [ "ECONNRESET" , "EPIPE" , "ETIMEDOUT" ] ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6225 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getTransformedHeaders = void 0 ;
const getTransformedHeaders = ( headers ) => {
const transformedHeaders = { } ;
for ( const name of Object . keys ( headers ) ) {
const headerValues = headers [ name ] ;
transformedHeaders [ name ] = Array . isArray ( headerValues ) ? headerValues . join ( "," ) : headerValues ;
}
return transformedHeaders ;
} ;
exports . getTransformedHeaders = getTransformedHeaders ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8805 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2298 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2533 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2198 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2298 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NodeHttpHandler = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const querystring _builder _1 = _ _nccwpck _require _ _ ( 3402 ) ;
const http _1 = _ _nccwpck _require _ _ ( 8605 ) ;
const https _1 = _ _nccwpck _require _ _ ( 7211 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 3647 ) ;
const get _transformed _headers _1 = _ _nccwpck _require _ _ ( 6225 ) ;
const set _connection _timeout _1 = _ _nccwpck _require _ _ ( 3598 ) ;
const set _socket _timeout _1 = _ _nccwpck _require _ _ ( 4751 ) ;
const write _request _body _1 = _ _nccwpck _require _ _ ( 5248 ) ;
class NodeHttpHandler {
constructor ( { connectionTimeout , socketTimeout , httpAgent , httpsAgent } = { } ) {
this . metadata = { handlerProtocol : "http/1.1" } ;
this . connectionTimeout = connectionTimeout ;
this . socketTimeout = socketTimeout ;
const keepAlive = true ;
const maxSockets = 50 ;
this . httpAgent = httpAgent || new http _1 . Agent ( { keepAlive , maxSockets } ) ;
this . httpsAgent = httpsAgent || new https _1 . Agent ( { keepAlive , maxSockets } ) ;
}
destroy ( ) {
this . httpAgent . destroy ( ) ;
this . httpsAgent . destroy ( ) ;
}
handle ( request , { abortSignal } = { } ) {
return new Promise ( ( resolve , reject ) => {
if ( abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal . aborted ) {
const abortError = new Error ( "Request aborted" ) ;
abortError . name = "AbortError" ;
reject ( abortError ) ;
return ;
}
const isSSL = request . protocol === "https:" ;
const queryString = querystring _builder _1 . buildQueryString ( request . query || { } ) ;
const nodeHttpsOptions = {
headers : request . headers ,
host : request . hostname ,
method : request . method ,
path : queryString ? ` ${ request . path } ? ${ queryString } ` : request . path ,
port : request . port ,
agent : isSSL ? this . httpsAgent : this . httpAgent ,
} ;
const requestFunc = isSSL ? https _1 . request : http _1 . request ;
const req = requestFunc ( nodeHttpsOptions , ( res ) => {
const httpResponse = new protocol _http _1 . HttpResponse ( {
statusCode : res . statusCode || - 1 ,
headers : get _transformed _headers _1 . getTransformedHeaders ( res . headers ) ,
body : res ,
} ) ;
resolve ( { response : httpResponse } ) ;
} ) ;
req . on ( "error" , ( err ) => {
if ( constants _1 . NODEJS _TIMEOUT _ERROR _CODES . includes ( err . code ) ) {
reject ( Object . assign ( err , { name : "TimeoutError" } ) ) ;
}
else {
reject ( err ) ;
}
} ) ;
set _connection _timeout _1 . setConnectionTimeout ( req , reject , this . connectionTimeout ) ;
set _socket _timeout _1 . setSocketTimeout ( req , reject , this . socketTimeout ) ;
if ( abortSignal ) {
abortSignal . onabort = ( ) => {
req . abort ( ) ;
const abortError = new Error ( "Request aborted" ) ;
abortError . name = "AbortError" ;
reject ( abortError ) ;
} ;
}
write _request _body _1 . writeRequestBody ( req , request ) ;
} ) ;
}
}
exports . NodeHttpHandler = NodeHttpHandler ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2533 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . NodeHttp2Handler = void 0 ;
const protocol _http _1 = _ _nccwpck _require _ _ ( 223 ) ;
const querystring _builder _1 = _ _nccwpck _require _ _ ( 3402 ) ;
const http2 _1 = _ _nccwpck _require _ _ ( 7565 ) ;
const get _transformed _headers _1 = _ _nccwpck _require _ _ ( 6225 ) ;
const write _request _body _1 = _ _nccwpck _require _ _ ( 5248 ) ;
class NodeHttp2Handler {
constructor ( { requestTimeout , sessionTimeout , disableConcurrentStreams } = { } ) {
this . metadata = { handlerProtocol : "h2" } ;
this . requestTimeout = requestTimeout ;
this . sessionTimeout = sessionTimeout ;
this . disableConcurrentStreams = disableConcurrentStreams ;
this . sessionCache = new Map ( ) ;
}
destroy ( ) {
for ( const sessions of this . sessionCache . values ( ) ) {
sessions . forEach ( ( session ) => this . destroySession ( session ) ) ;
}
this . sessionCache . clear ( ) ;
}
handle ( request , { abortSignal } = { } ) {
return new Promise ( ( resolve , rejectOriginal ) => {
let fulfilled = false ;
if ( abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal . aborted ) {
fulfilled = true ;
const abortError = new Error ( "Request aborted" ) ;
abortError . name = "AbortError" ;
rejectOriginal ( abortError ) ;
return ;
}
const { hostname , method , port , protocol , path , query } = request ;
const authority = ` ${ protocol } // ${ hostname } ${ port ? ` : ${ port } ` : "" } ` ;
const session = this . getSession ( authority , this . disableConcurrentStreams || false ) ;
const reject = ( err ) => {
if ( this . disableConcurrentStreams ) {
this . destroySession ( session ) ;
}
fulfilled = true ;
rejectOriginal ( err ) ;
} ;
const queryString = querystring _builder _1 . buildQueryString ( query || { } ) ;
const req = session . request ( {
... request . headers ,
[ http2 _1 . constants . HTTP2 _HEADER _PATH ] : queryString ? ` ${ path } ? ${ queryString } ` : path ,
[ http2 _1 . constants . HTTP2 _HEADER _METHOD ] : method ,
} ) ;
req . on ( "response" , ( headers ) => {
const httpResponse = new protocol _http _1 . HttpResponse ( {
statusCode : headers [ ":status" ] || - 1 ,
headers : get _transformed _headers _1 . getTransformedHeaders ( headers ) ,
body : req ,
} ) ;
fulfilled = true ;
resolve ( { response : httpResponse } ) ;
if ( this . disableConcurrentStreams ) {
session . close ( ) ;
this . deleteSessionFromCache ( authority , session ) ;
}
} ) ;
const requestTimeout = this . requestTimeout ;
if ( requestTimeout ) {
req . setTimeout ( requestTimeout , ( ) => {
req . close ( ) ;
const timeoutError = new Error ( ` Stream timed out because of no activity for ${ requestTimeout } ms ` ) ;
timeoutError . name = "TimeoutError" ;
reject ( timeoutError ) ;
} ) ;
}
if ( abortSignal ) {
abortSignal . onabort = ( ) => {
req . close ( ) ;
const abortError = new Error ( "Request aborted" ) ;
abortError . name = "AbortError" ;
reject ( abortError ) ;
} ;
}
req . on ( "frameError" , ( type , code , id ) => {
reject ( new Error ( ` Frame type id ${ type } in stream id ${ id } has failed with code ${ code } . ` ) ) ;
} ) ;
req . on ( "error" , reject ) ;
req . on ( "aborted" , ( ) => {
reject ( new Error ( ` HTTP/2 stream is abnormally aborted in mid-communication with result code ${ req . rstCode } . ` ) ) ;
} ) ;
req . on ( "close" , ( ) => {
if ( this . disableConcurrentStreams ) {
session . destroy ( ) ;
}
if ( ! fulfilled ) {
reject ( new Error ( "Unexpected error: http2 request did not get a response" ) ) ;
}
} ) ;
write _request _body _1 . writeRequestBody ( req , request ) ;
} ) ;
}
getSession ( authority , disableConcurrentStreams ) {
const sessionCache = this . sessionCache ;
const existingSessions = sessionCache . get ( authority ) || [ ] ;
if ( existingSessions . length > 0 && ! disableConcurrentStreams )
return existingSessions [ 0 ] ;
const newSession = http2 _1 . connect ( authority ) ;
const destroySessionCb = ( ) => {
this . destroySession ( newSession ) ;
this . deleteSessionFromCache ( authority , newSession ) ;
} ;
newSession . on ( "goaway" , destroySessionCb ) ;
newSession . on ( "error" , destroySessionCb ) ;
newSession . on ( "frameError" , destroySessionCb ) ;
const sessionTimeout = this . sessionTimeout ;
if ( sessionTimeout ) {
newSession . setTimeout ( sessionTimeout , destroySessionCb ) ;
}
existingSessions . push ( newSession ) ;
sessionCache . set ( authority , existingSessions ) ;
return newSession ;
}
destroySession ( session ) {
if ( ! session . destroyed ) {
session . destroy ( ) ;
}
}
deleteSessionFromCache ( authority , session ) {
const existingSessions = this . sessionCache . get ( authority ) || [ ] ;
if ( ! existingSessions . includes ( session ) ) {
return ;
}
this . sessionCache . set ( authority , existingSessions . filter ( ( s ) => s !== session ) ) ;
}
}
exports . NodeHttp2Handler = NodeHttp2Handler ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3598 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . setConnectionTimeout = void 0 ;
const setConnectionTimeout = ( request , reject , timeoutInMs = 0 ) => {
if ( ! timeoutInMs ) {
return ;
}
request . on ( "socket" , ( socket ) => {
if ( socket . connecting ) {
const timeoutId = setTimeout ( ( ) => {
request . destroy ( ) ;
reject ( Object . assign ( new Error ( ` Socket timed out without establishing a connection within ${ timeoutInMs } ms ` ) , {
name : "TimeoutError" ,
} ) ) ;
} , timeoutInMs ) ;
socket . on ( "connect" , ( ) => {
clearTimeout ( timeoutId ) ;
} ) ;
}
} ) ;
} ;
exports . setConnectionTimeout = setConnectionTimeout ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4751 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . setSocketTimeout = void 0 ;
const setSocketTimeout = ( request , reject , timeoutInMs = 0 ) => {
request . setTimeout ( timeoutInMs , ( ) => {
request . destroy ( ) ;
reject ( Object . assign ( new Error ( ` Connection timed out after ${ timeoutInMs } ms ` ) , { name : "TimeoutError" } ) ) ;
} ) ;
} ;
exports . setSocketTimeout = setSocketTimeout ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4362 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . Collector = void 0 ;
const stream _1 = _ _nccwpck _require _ _ ( 2413 ) ;
class Collector extends stream _1 . Writable {
constructor ( ) {
super ( ... arguments ) ;
this . bufferedBytes = [ ] ;
}
_write ( chunk , encoding , callback ) {
this . bufferedBytes . push ( chunk ) ;
callback ( ) ;
}
}
exports . Collector = Collector ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2198 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . streamCollector = void 0 ;
const collector _1 = _ _nccwpck _require _ _ ( 4362 ) ;
const streamCollector = ( stream ) => new Promise ( ( resolve , reject ) => {
const collector = new collector _1 . Collector ( ) ;
stream . pipe ( collector ) ;
stream . on ( "error" , ( err ) => {
collector . end ( ) ;
reject ( err ) ;
} ) ;
collector . on ( "error" , reject ) ;
collector . on ( "finish" , function ( ) {
const bytes = new Uint8Array ( Buffer . concat ( this . bufferedBytes ) ) ;
resolve ( bytes ) ;
} ) ;
} ) ;
exports . streamCollector = streamCollector ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5248 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . writeRequestBody = void 0 ;
const stream _1 = _ _nccwpck _require _ _ ( 2413 ) ;
function writeRequestBody ( httpRequest , request ) {
const expect = request . headers [ "Expect" ] || request . headers [ "expect" ] ;
if ( expect === "100-continue" ) {
httpRequest . on ( "continue" , ( ) => {
writeBody ( httpRequest , request . body ) ;
} ) ;
}
else {
writeBody ( httpRequest , request . body ) ;
}
}
exports . writeRequestBody = writeRequestBody ;
function writeBody ( httpRequest , body ) {
if ( body instanceof stream _1 . Readable ) {
body . pipe ( httpRequest ) ;
}
else if ( body ) {
httpRequest . end ( Buffer . from ( body ) ) ;
}
else {
httpRequest . end ( ) ;
}
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1786 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . CredentialsProviderError = exports . ProviderError = void 0 ;
class ProviderError extends Error {
constructor ( message , tryNextLink = true ) {
super ( message ) ;
this . tryNextLink = tryNextLink ;
}
static from ( error , tryNextLink = true ) {
Object . defineProperty ( error , "tryNextLink" , {
value : tryNextLink ,
configurable : false ,
enumerable : false ,
writable : false ,
} ) ;
return error ;
}
}
exports . ProviderError = ProviderError ;
class CredentialsProviderError extends Error {
constructor ( message , tryNextLink = true ) {
super ( message ) ;
this . tryNextLink = tryNextLink ;
this . name = "CredentialsProviderError" ;
}
static from ( error , tryNextLink = true ) {
Object . defineProperty ( error , "tryNextLink" , {
value : tryNextLink ,
configurable : false ,
enumerable : false ,
writable : false ,
} ) ;
return error ;
}
}
exports . CredentialsProviderError = CredentialsProviderError ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1444 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . chain = void 0 ;
const ProviderError _1 = _ _nccwpck _require _ _ ( 1786 ) ;
function chain ( ... providers ) {
return ( ) => {
let promise = Promise . reject ( new ProviderError _1 . ProviderError ( "No providers in chain" ) ) ;
for ( const provider of providers ) {
promise = promise . catch ( ( err ) => {
if ( err === null || err === void 0 ? void 0 : err . tryNextLink ) {
return provider ( ) ;
}
throw err ;
} ) ;
}
return promise ;
} ;
}
exports . chain = chain ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 529 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromStatic = void 0 ;
const fromStatic = ( staticValue ) => ( ) => Promise . resolve ( staticValue ) ;
exports . fromStatic = fromStatic ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4462 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1786 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1444 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 529 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 714 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 714 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . memoize = void 0 ;
const memoize = ( provider , isExpired , requiresRefresh ) => {
let resolved ;
let pending ;
let hasResult ;
const coalesceProvider = async ( ) => {
if ( ! pending ) {
pending = provider ( ) ;
}
try {
resolved = await pending ;
hasResult = true ;
}
finally {
pending = undefined ;
}
return resolved ;
} ;
if ( isExpired === undefined ) {
return async ( ) => {
if ( ! hasResult ) {
resolved = await coalesceProvider ( ) ;
}
return resolved ;
} ;
}
let isConstant = false ;
return async ( ) => {
if ( ! hasResult ) {
resolved = await coalesceProvider ( ) ;
}
if ( isConstant ) {
return resolved ;
}
if ( requiresRefresh && ! requiresRefresh ( resolved ) ) {
isConstant = true ;
return resolved ;
}
if ( isExpired ( resolved ) ) {
await coalesceProvider ( ) ;
return resolved ;
}
return resolved ;
} ;
} ;
exports . memoize = memoize ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6779 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2872 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . HttpRequest = void 0 ;
class HttpRequest {
constructor ( options ) {
this . method = options . method || "GET" ;
this . hostname = options . hostname || "localhost" ;
this . port = options . port ;
this . query = options . query || { } ;
this . headers = options . headers || { } ;
this . body = options . body ;
this . protocol = options . protocol
? options . protocol . substr ( - 1 ) !== ":"
? ` ${ options . protocol } : `
: options . protocol
: "https:" ;
this . path = options . path ? ( options . path . charAt ( 0 ) !== "/" ? ` / ${ options . path } ` : options . path ) : "/" ;
}
static isInstance ( request ) {
if ( ! request )
return false ;
const req = request ;
return ( "method" in req &&
"protocol" in req &&
"hostname" in req &&
"path" in req &&
typeof req [ "query" ] === "object" &&
typeof req [ "headers" ] === "object" ) ;
}
clone ( ) {
const cloned = new HttpRequest ( {
... this ,
headers : { ... this . headers } ,
} ) ;
if ( cloned . query )
cloned . query = cloneQuery ( cloned . query ) ;
return cloned ;
}
}
exports . HttpRequest = HttpRequest ;
function cloneQuery ( query ) {
return Object . keys ( query ) . reduce ( ( carry , paramName ) => {
const param = query [ paramName ] ;
return {
... carry ,
[ paramName ] : Array . isArray ( param ) ? [ ... param ] : param ,
} ;
} , { } ) ;
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2348 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . HttpResponse = void 0 ;
class HttpResponse {
constructor ( options ) {
this . statusCode = options . statusCode ;
this . headers = options . headers || { } ;
this . body = options . body ;
}
static isInstance ( response ) {
if ( ! response )
return false ;
const resp = response ;
return typeof resp . statusCode === "number" && typeof resp . headers === "object" ;
}
}
exports . HttpResponse = HttpResponse ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 223 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6779 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2872 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2348 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5694 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5694 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . isValidHostname = void 0 ;
function isValidHostname ( hostname ) {
const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/ ;
return hostPattern . test ( hostname ) ;
}
exports . isValidHostname = isValidHostname ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3402 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . buildQueryString = void 0 ;
const util _uri _escape _1 = _ _nccwpck _require _ _ ( 7952 ) ;
function buildQueryString ( query ) {
const parts = [ ] ;
for ( let key of Object . keys ( query ) . sort ( ) ) {
const value = query [ key ] ;
key = util _uri _escape _1 . escapeUri ( key ) ;
if ( Array . isArray ( value ) ) {
for ( let i = 0 , iLen = value . length ; i < iLen ; i ++ ) {
parts . push ( ` ${ key } = ${ util _uri _escape _1 . escapeUri ( value [ i ] ) } ` ) ;
}
}
else {
let qsEntry = key ;
if ( value || typeof value === "string" ) {
qsEntry += ` = ${ util _uri _escape _1 . escapeUri ( value ) } ` ;
}
parts . push ( qsEntry ) ;
}
}
return parts . join ( "&" ) ;
}
exports . buildQueryString = buildQueryString ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7424 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . parseQueryString = void 0 ;
function parseQueryString ( querystring ) {
const query = { } ;
querystring = querystring . replace ( /^\?/ , "" ) ;
if ( querystring ) {
for ( const pair of querystring . split ( "&" ) ) {
let [ key , value = null ] = pair . split ( "=" ) ;
key = decodeURIComponent ( key ) ;
if ( value ) {
value = decodeURIComponent ( value ) ;
}
if ( ! ( key in query ) ) {
query [ key ] = value ;
}
else if ( Array . isArray ( query [ key ] ) ) {
query [ key ] . push ( value ) ;
}
else {
query [ key ] = [ query [ key ] , value ] ;
}
}
}
return query ;
}
exports . parseQueryString = parseQueryString ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7352 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . TRANSIENT _ERROR _STATUS _CODES = exports . TRANSIENT _ERROR _CODES = exports . THROTTLING _ERROR _CODES = exports . CLOCK _SKEW _ERROR _CODES = void 0 ;
exports . CLOCK _SKEW _ERROR _CODES = [
"AuthFailure" ,
"InvalidSignatureException" ,
"RequestExpired" ,
"RequestInTheFuture" ,
"RequestTimeTooSkewed" ,
"SignatureDoesNotMatch" ,
] ;
exports . THROTTLING _ERROR _CODES = [
"BandwidthLimitExceeded" ,
"EC2ThrottledException" ,
"LimitExceededException" ,
"PriorRequestNotComplete" ,
"ProvisionedThroughputExceededException" ,
"RequestLimitExceeded" ,
"RequestThrottled" ,
"RequestThrottledException" ,
"SlowDown" ,
"ThrottledException" ,
"Throttling" ,
"ThrottlingException" ,
"TooManyRequestsException" ,
"TransactionInProgressException" ,
] ;
exports . TRANSIENT _ERROR _CODES = [ "AbortError" , "TimeoutError" , "RequestTimeout" , "RequestTimeoutException" ] ;
exports . TRANSIENT _ERROR _STATUS _CODES = [ 500 , 502 , 503 , 504 ] ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1921 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . isTransientError = exports . isThrottlingError = exports . isClockSkewError = exports . isRetryableByTrait = void 0 ;
const constants _1 = _ _nccwpck _require _ _ ( 7352 ) ;
const isRetryableByTrait = ( error ) => error . $retryable !== undefined ;
exports . isRetryableByTrait = isRetryableByTrait ;
const isClockSkewError = ( error ) => constants _1 . CLOCK _SKEW _ERROR _CODES . includes ( error . name ) ;
exports . isClockSkewError = isClockSkewError ;
const isThrottlingError = ( error ) => {
var _a , _b ;
return ( ( _a = error . $metadata ) === null || _a === void 0 ? void 0 : _a . httpStatusCode ) === 429 ||
constants _1 . THROTTLING _ERROR _CODES . includes ( error . name ) ||
( ( _b = error . $retryable ) === null || _b === void 0 ? void 0 : _b . throttling ) == true ;
} ;
exports . isThrottlingError = isThrottlingError ;
const isTransientError = ( error ) => {
var _a ;
return constants _1 . TRANSIENT _ERROR _CODES . includes ( error . name ) ||
constants _1 . TRANSIENT _ERROR _STATUS _CODES . includes ( ( ( _a = error . $metadata ) === null || _a === void 0 ? void 0 : _a . httpStatusCode ) || 0 ) ;
} ;
exports . isTransientError = isTransientError ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7387 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getHomeDir = exports . loadSharedConfigFiles = exports . ENV _CONFIG _PATH = exports . ENV _CREDENTIALS _PATH = void 0 ;
const fs _1 = _ _nccwpck _require _ _ ( 5747 ) ;
const os _1 = _ _nccwpck _require _ _ ( 2087 ) ;
const path _1 = _ _nccwpck _require _ _ ( 5622 ) ;
exports . ENV _CREDENTIALS _PATH = "AWS_SHARED_CREDENTIALS_FILE" ;
exports . ENV _CONFIG _PATH = "AWS_CONFIG_FILE" ;
const swallowError = ( ) => ( { } ) ;
const loadSharedConfigFiles = ( init = { } ) => {
const { filepath = process . env [ exports . ENV _CREDENTIALS _PATH ] || path _1 . join ( exports . getHomeDir ( ) , ".aws" , "credentials" ) , configFilepath = process . env [ exports . ENV _CONFIG _PATH ] || path _1 . join ( exports . getHomeDir ( ) , ".aws" , "config" ) , } = init ;
return Promise . all ( [
slurpFile ( configFilepath ) . then ( parseIni ) . then ( normalizeConfigFile ) . catch ( swallowError ) ,
slurpFile ( filepath ) . then ( parseIni ) . catch ( swallowError ) ,
] ) . then ( ( parsedFiles ) => {
const [ configFile , credentialsFile ] = parsedFiles ;
return {
configFile ,
credentialsFile ,
} ;
} ) ;
} ;
exports . loadSharedConfigFiles = loadSharedConfigFiles ;
const profileKeyRegex = /^profile\s(["'])?([^\1]+)\1$/ ;
const normalizeConfigFile = ( data ) => {
const map = { } ;
for ( const key of Object . keys ( data ) ) {
let matches ;
if ( key === "default" ) {
map . default = data . default ;
}
else if ( ( matches = profileKeyRegex . exec ( key ) ) ) {
const [ _1 , _2 , normalizedKey ] = matches ;
if ( normalizedKey ) {
map [ normalizedKey ] = data [ key ] ;
}
}
}
return map ;
} ;
const profileNameBlockList = [ "__proto__" , "profile __proto__" ] ;
const parseIni = ( iniData ) => {
const map = { } ;
let currentSection ;
for ( let line of iniData . split ( /\r?\n/ ) ) {
line = line . split ( /(^|\s)[;#]/ ) [ 0 ] ;
const section = line . match ( /^\s*\[([^\[\]]+)]\s*$/ ) ;
if ( section ) {
currentSection = section [ 1 ] ;
if ( profileNameBlockList . includes ( currentSection ) ) {
throw new Error ( ` Found invalid profile name " ${ currentSection } " ` ) ;
}
}
else if ( currentSection ) {
const item = line . match ( /^\s*(.+?)\s*=\s*(.+?)\s*$/ ) ;
if ( item ) {
map [ currentSection ] = map [ currentSection ] || { } ;
map [ currentSection ] [ item [ 1 ] ] = item [ 2 ] ;
}
}
}
return map ;
} ;
const slurpFile = ( path ) => new Promise ( ( resolve , reject ) => {
fs _1 . readFile ( path , "utf8" , ( err , data ) => {
if ( err ) {
reject ( err ) ;
}
else {
resolve ( data ) ;
}
} ) ;
} ) ;
const getHomeDir = ( ) => {
const { HOME , USERPROFILE , HOMEPATH , HOMEDRIVE = ` C: ${ path _1 . sep } ` } = process . env ;
if ( HOME )
return HOME ;
if ( USERPROFILE )
return USERPROFILE ;
if ( HOMEPATH )
return ` ${ HOMEDRIVE } ${ HOMEPATH } ` ;
return os _1 . homedir ( ) ;
} ;
exports . getHomeDir = getHomeDir ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5086 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . SignatureV4 = void 0 ;
const util _hex _encoding _1 = _ _nccwpck _require _ _ ( 1968 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 342 ) ;
const credentialDerivation _1 = _ _nccwpck _require _ _ ( 8023 ) ;
const getCanonicalHeaders _1 = _ _nccwpck _require _ _ ( 3590 ) ;
const getCanonicalQuery _1 = _ _nccwpck _require _ _ ( 2019 ) ;
const getPayloadHash _1 = _ _nccwpck _require _ _ ( 7080 ) ;
const headerUtil _1 = _ _nccwpck _require _ _ ( 4120 ) ;
const moveHeadersToQuery _1 = _ _nccwpck _require _ _ ( 8201 ) ;
const normalizeProvider _1 = _ _nccwpck _require _ _ ( 7027 ) ;
const prepareRequest _1 = _ _nccwpck _require _ _ ( 5772 ) ;
const utilDate _1 = _ _nccwpck _require _ _ ( 4799 ) ;
class SignatureV4 {
constructor ( { applyChecksum , credentials , region , service , sha256 , uriEscapePath = true , } ) {
this . service = service ;
this . sha256 = sha256 ;
this . uriEscapePath = uriEscapePath ;
this . applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true ;
this . regionProvider = normalizeProvider _1 . normalizeRegionProvider ( region ) ;
this . credentialProvider = normalizeProvider _1 . normalizeCredentialsProvider ( credentials ) ;
}
async presign ( originalRequest , options = { } ) {
const { signingDate = new Date ( ) , expiresIn = 3600 , unsignableHeaders , unhoistableHeaders , signableHeaders , signingRegion , signingService , } = options ;
const credentials = await this . credentialProvider ( ) ;
const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : ( await this . regionProvider ( ) ) ;
const { longDate , shortDate } = formatDate ( signingDate ) ;
if ( expiresIn > constants _1 . MAX _PRESIGNED _TTL ) {
return Promise . reject ( "Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future" ) ;
}
const scope = credentialDerivation _1 . createScope ( shortDate , region , signingService !== null && signingService !== void 0 ? signingService : this . service ) ;
const request = moveHeadersToQuery _1 . moveHeadersToQuery ( prepareRequest _1 . prepareRequest ( originalRequest ) , { unhoistableHeaders } ) ;
if ( credentials . sessionToken ) {
request . query [ constants _1 . TOKEN _QUERY _PARAM ] = credentials . sessionToken ;
}
request . query [ constants _1 . ALGORITHM _QUERY _PARAM ] = constants _1 . ALGORITHM _IDENTIFIER ;
request . query [ constants _1 . CREDENTIAL _QUERY _PARAM ] = ` ${ credentials . accessKeyId } / ${ scope } ` ;
request . query [ constants _1 . AMZ _DATE _QUERY _PARAM ] = longDate ;
request . query [ constants _1 . EXPIRES _QUERY _PARAM ] = expiresIn . toString ( 10 ) ;
const canonicalHeaders = getCanonicalHeaders _1 . getCanonicalHeaders ( request , unsignableHeaders , signableHeaders ) ;
request . query [ constants _1 . SIGNED _HEADERS _QUERY _PARAM ] = getCanonicalHeaderList ( canonicalHeaders ) ;
request . query [ constants _1 . SIGNATURE _QUERY _PARAM ] = await this . getSignature ( longDate , scope , this . getSigningKey ( credentials , region , shortDate , signingService ) , this . createCanonicalRequest ( request , canonicalHeaders , await getPayloadHash _1 . getPayloadHash ( originalRequest , this . sha256 ) ) ) ;
return request ;
}
async sign ( toSign , options ) {
if ( typeof toSign === "string" ) {
return this . signString ( toSign , options ) ;
}
else if ( toSign . headers && toSign . payload ) {
return this . signEvent ( toSign , options ) ;
}
else {
return this . signRequest ( toSign , options ) ;
}
}
async signEvent ( { headers , payload } , { signingDate = new Date ( ) , priorSignature , signingRegion , signingService } ) {
const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : ( await this . regionProvider ( ) ) ;
const { shortDate , longDate } = formatDate ( signingDate ) ;
const scope = credentialDerivation _1 . createScope ( shortDate , region , signingService !== null && signingService !== void 0 ? signingService : this . service ) ;
const hashedPayload = await getPayloadHash _1 . getPayloadHash ( { headers : { } , body : payload } , this . sha256 ) ;
const hash = new this . sha256 ( ) ;
hash . update ( headers ) ;
const hashedHeaders = util _hex _encoding _1 . toHex ( await hash . digest ( ) ) ;
const stringToSign = [
constants _1 . EVENT _ALGORITHM _IDENTIFIER ,
longDate ,
scope ,
priorSignature ,
hashedHeaders ,
hashedPayload ,
] . join ( "\n" ) ;
return this . signString ( stringToSign , { signingDate , signingRegion : region , signingService } ) ;
}
async signString ( stringToSign , { signingDate = new Date ( ) , signingRegion , signingService } = { } ) {
const credentials = await this . credentialProvider ( ) ;
const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : ( await this . regionProvider ( ) ) ;
const { shortDate } = formatDate ( signingDate ) ;
const hash = new this . sha256 ( await this . getSigningKey ( credentials , region , shortDate , signingService ) ) ;
hash . update ( stringToSign ) ;
return util _hex _encoding _1 . toHex ( await hash . digest ( ) ) ;
}
async signRequest ( requestToSign , { signingDate = new Date ( ) , signableHeaders , unsignableHeaders , signingRegion , signingService , } = { } ) {
const credentials = await this . credentialProvider ( ) ;
const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : ( await this . regionProvider ( ) ) ;
const request = prepareRequest _1 . prepareRequest ( requestToSign ) ;
const { longDate , shortDate } = formatDate ( signingDate ) ;
const scope = credentialDerivation _1 . createScope ( shortDate , region , signingService !== null && signingService !== void 0 ? signingService : this . service ) ;
request . headers [ constants _1 . AMZ _DATE _HEADER ] = longDate ;
if ( credentials . sessionToken ) {
request . headers [ constants _1 . TOKEN _HEADER ] = credentials . sessionToken ;
}
const payloadHash = await getPayloadHash _1 . getPayloadHash ( request , this . sha256 ) ;
if ( ! headerUtil _1 . hasHeader ( constants _1 . SHA256 _HEADER , request . headers ) && this . applyChecksum ) {
request . headers [ constants _1 . SHA256 _HEADER ] = payloadHash ;
}
const canonicalHeaders = getCanonicalHeaders _1 . getCanonicalHeaders ( request , unsignableHeaders , signableHeaders ) ;
const signature = await this . getSignature ( longDate , scope , this . getSigningKey ( credentials , region , shortDate , signingService ) , this . createCanonicalRequest ( request , canonicalHeaders , payloadHash ) ) ;
request . headers [ constants _1 . AUTH _HEADER ] =
` ${ constants _1 . ALGORITHM _IDENTIFIER } ` +
` Credential= ${ credentials . accessKeyId } / ${ scope } , ` +
` SignedHeaders= ${ getCanonicalHeaderList ( canonicalHeaders ) } , ` +
` Signature= ${ signature } ` ;
return request ;
}
createCanonicalRequest ( request , canonicalHeaders , payloadHash ) {
const sortedHeaders = Object . keys ( canonicalHeaders ) . sort ( ) ;
return ` ${ request . method }
$ { this . getCanonicalPath ( request ) }
$ { getCanonicalQuery _1 . getCanonicalQuery ( request ) }
$ { sortedHeaders . map ( ( name ) => ` ${ name } : ${ canonicalHeaders [ name ] } ` ) . join ( "\n" ) }
$ { sortedHeaders . join ( ";" ) }
$ { payloadHash } ` ;
}
async createStringToSign ( longDate , credentialScope , canonicalRequest ) {
const hash = new this . sha256 ( ) ;
hash . update ( canonicalRequest ) ;
const hashedRequest = await hash . digest ( ) ;
return ` ${ constants _1 . ALGORITHM _IDENTIFIER }
$ { longDate }
$ { credentialScope }
$ { util _hex _encoding _1 . toHex ( hashedRequest ) } ` ;
}
getCanonicalPath ( { path } ) {
if ( this . uriEscapePath ) {
const doubleEncoded = encodeURIComponent ( path . replace ( /^\// , "" ) ) ;
return ` / ${ doubleEncoded . replace ( /%2F/g , "/" ) } ` ;
}
return path ;
}
async getSignature ( longDate , credentialScope , keyPromise , canonicalRequest ) {
const stringToSign = await this . createStringToSign ( longDate , credentialScope , canonicalRequest ) ;
const hash = new this . sha256 ( await keyPromise ) ;
hash . update ( stringToSign ) ;
return util _hex _encoding _1 . toHex ( await hash . digest ( ) ) ;
}
getSigningKey ( credentials , region , shortDate , service ) {
return credentialDerivation _1 . getSigningKey ( this . sha256 , credentials , shortDate , region , service || this . service ) ;
}
}
exports . SignatureV4 = SignatureV4 ;
const formatDate = ( now ) => {
const longDate = utilDate _1 . iso8601 ( now ) . replace ( /[\-:]/g , "" ) ;
return {
longDate ,
shortDate : longDate . substr ( 0 , 8 ) ,
} ;
} ;
const getCanonicalHeaderList = ( headers ) => Object . keys ( headers ) . sort ( ) . join ( ";" ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3141 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . cloneQuery = exports . cloneRequest = void 0 ;
const cloneRequest = ( { headers , query , ... rest } ) => ( {
... rest ,
headers : { ... headers } ,
query : query ? exports . cloneQuery ( query ) : undefined ,
} ) ;
exports . cloneRequest = cloneRequest ;
const cloneQuery = ( query ) => Object . keys ( query ) . reduce ( ( carry , paramName ) => {
const param = query [ paramName ] ;
return {
... carry ,
[ paramName ] : Array . isArray ( param ) ? [ ... param ] : param ,
} ;
} , { } ) ;
exports . cloneQuery = cloneQuery ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 342 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . MAX _PRESIGNED _TTL = exports . KEY _TYPE _IDENTIFIER = exports . MAX _CACHE _SIZE = exports . UNSIGNED _PAYLOAD = exports . EVENT _ALGORITHM _IDENTIFIER = exports . ALGORITHM _IDENTIFIER _V4A = exports . ALGORITHM _IDENTIFIER = exports . UNSIGNABLE _PATTERNS = exports . SEC _HEADER _PATTERN = exports . PROXY _HEADER _PATTERN = exports . ALWAYS _UNSIGNABLE _HEADERS = exports . HOST _HEADER = exports . TOKEN _HEADER = exports . SHA256 _HEADER = exports . SIGNATURE _HEADER = exports . GENERATED _HEADERS = exports . DATE _HEADER = exports . AMZ _DATE _HEADER = exports . AUTH _HEADER = exports . REGION _SET _PARAM = exports . TOKEN _QUERY _PARAM = exports . SIGNATURE _QUERY _PARAM = exports . EXPIRES _QUERY _PARAM = exports . SIGNED _HEADERS _QUERY _PARAM = exports . AMZ _DATE _QUERY _PARAM = exports . CREDENTIAL _QUERY _PARAM = exports . ALGORITHM _QUERY _PARAM = void 0 ;
exports . ALGORITHM _QUERY _PARAM = "X-Amz-Algorithm" ;
exports . CREDENTIAL _QUERY _PARAM = "X-Amz-Credential" ;
exports . AMZ _DATE _QUERY _PARAM = "X-Amz-Date" ;
exports . SIGNED _HEADERS _QUERY _PARAM = "X-Amz-SignedHeaders" ;
exports . EXPIRES _QUERY _PARAM = "X-Amz-Expires" ;
exports . SIGNATURE _QUERY _PARAM = "X-Amz-Signature" ;
exports . TOKEN _QUERY _PARAM = "X-Amz-Security-Token" ;
exports . REGION _SET _PARAM = "X-Amz-Region-Set" ;
exports . AUTH _HEADER = "authorization" ;
exports . AMZ _DATE _HEADER = exports . AMZ _DATE _QUERY _PARAM . toLowerCase ( ) ;
exports . DATE _HEADER = "date" ;
exports . GENERATED _HEADERS = [ exports . AUTH _HEADER , exports . AMZ _DATE _HEADER , exports . DATE _HEADER ] ;
exports . SIGNATURE _HEADER = exports . SIGNATURE _QUERY _PARAM . toLowerCase ( ) ;
exports . SHA256 _HEADER = "x-amz-content-sha256" ;
exports . TOKEN _HEADER = exports . TOKEN _QUERY _PARAM . toLowerCase ( ) ;
exports . HOST _HEADER = "host" ;
exports . ALWAYS _UNSIGNABLE _HEADERS = {
authorization : true ,
"cache-control" : true ,
connection : true ,
expect : true ,
from : true ,
"keep-alive" : true ,
"max-forwards" : true ,
pragma : true ,
referer : true ,
te : true ,
trailer : true ,
"transfer-encoding" : true ,
upgrade : true ,
"user-agent" : true ,
"x-amzn-trace-id" : true ,
} ;
exports . PROXY _HEADER _PATTERN = /^proxy-/ ;
exports . SEC _HEADER _PATTERN = /^sec-/ ;
exports . UNSIGNABLE _PATTERNS = [ /^proxy-/i , /^sec-/i ] ;
exports . ALGORITHM _IDENTIFIER = "AWS4-HMAC-SHA256" ;
exports . ALGORITHM _IDENTIFIER _V4A = "AWS4-ECDSA-P256-SHA256" ;
exports . EVENT _ALGORITHM _IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD" ;
exports . UNSIGNED _PAYLOAD = "UNSIGNED-PAYLOAD" ;
exports . MAX _CACHE _SIZE = 50 ;
exports . KEY _TYPE _IDENTIFIER = "aws4_request" ;
exports . MAX _PRESIGNED _TTL = 60 * 60 * 24 * 7 ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8023 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . clearCredentialCache = exports . getSigningKey = exports . createScope = void 0 ;
const util _hex _encoding _1 = _ _nccwpck _require _ _ ( 1968 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 342 ) ;
const signingKeyCache = { } ;
const cacheQueue = [ ] ;
const createScope = ( shortDate , region , service ) => ` ${ shortDate } / ${ region } / ${ service } / ${ constants _1 . KEY _TYPE _IDENTIFIER } ` ;
exports . createScope = createScope ;
const getSigningKey = async ( sha256Constructor , credentials , shortDate , region , service ) => {
const credsHash = await hmac ( sha256Constructor , credentials . secretAccessKey , credentials . accessKeyId ) ;
const cacheKey = ` ${ shortDate } : ${ region } : ${ service } : ${ util _hex _encoding _1 . toHex ( credsHash ) } : ${ credentials . sessionToken } ` ;
if ( cacheKey in signingKeyCache ) {
return signingKeyCache [ cacheKey ] ;
}
cacheQueue . push ( cacheKey ) ;
while ( cacheQueue . length > constants _1 . MAX _CACHE _SIZE ) {
delete signingKeyCache [ cacheQueue . shift ( ) ] ;
}
let key = ` AWS4 ${ credentials . secretAccessKey } ` ;
for ( const signable of [ shortDate , region , service , constants _1 . KEY _TYPE _IDENTIFIER ] ) {
key = await hmac ( sha256Constructor , key , signable ) ;
}
return ( signingKeyCache [ cacheKey ] = key ) ;
} ;
exports . getSigningKey = getSigningKey ;
const clearCredentialCache = ( ) => {
cacheQueue . length = 0 ;
Object . keys ( signingKeyCache ) . forEach ( ( cacheKey ) => {
delete signingKeyCache [ cacheKey ] ;
} ) ;
} ;
exports . clearCredentialCache = clearCredentialCache ;
const hmac = ( ctor , secret , data ) => {
const hash = new ctor ( secret ) ;
hash . update ( data ) ;
return hash . digest ( ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3590 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getCanonicalHeaders = void 0 ;
const constants _1 = _ _nccwpck _require _ _ ( 342 ) ;
const getCanonicalHeaders = ( { headers } , unsignableHeaders , signableHeaders ) => {
const canonical = { } ;
for ( const headerName of Object . keys ( headers ) . sort ( ) ) {
const canonicalHeaderName = headerName . toLowerCase ( ) ;
if ( canonicalHeaderName in constants _1 . ALWAYS _UNSIGNABLE _HEADERS ||
( unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders . has ( canonicalHeaderName ) ) ||
constants _1 . PROXY _HEADER _PATTERN . test ( canonicalHeaderName ) ||
constants _1 . SEC _HEADER _PATTERN . test ( canonicalHeaderName ) ) {
if ( ! signableHeaders || ( signableHeaders && ! signableHeaders . has ( canonicalHeaderName ) ) ) {
continue ;
}
}
canonical [ canonicalHeaderName ] = headers [ headerName ] . trim ( ) . replace ( /\s+/g , " " ) ;
}
return canonical ;
} ;
exports . getCanonicalHeaders = getCanonicalHeaders ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2019 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getCanonicalQuery = void 0 ;
const util _uri _escape _1 = _ _nccwpck _require _ _ ( 7952 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 342 ) ;
const getCanonicalQuery = ( { query = { } } ) => {
const keys = [ ] ;
const serialized = { } ;
for ( const key of Object . keys ( query ) . sort ( ) ) {
if ( key . toLowerCase ( ) === constants _1 . SIGNATURE _HEADER ) {
continue ;
}
keys . push ( key ) ;
const value = query [ key ] ;
if ( typeof value === "string" ) {
serialized [ key ] = ` ${ util _uri _escape _1 . escapeUri ( key ) } = ${ util _uri _escape _1 . escapeUri ( value ) } ` ;
}
else if ( Array . isArray ( value ) ) {
serialized [ key ] = value
. slice ( 0 )
. sort ( )
. reduce ( ( encoded , value ) => encoded . concat ( [ ` ${ util _uri _escape _1 . escapeUri ( key ) } = ${ util _uri _escape _1 . escapeUri ( value ) } ` ] ) , [ ] )
. join ( "&" ) ;
}
}
return keys
. map ( ( key ) => serialized [ key ] )
. filter ( ( serialized ) => serialized )
. join ( "&" ) ;
} ;
exports . getCanonicalQuery = getCanonicalQuery ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7080 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getPayloadHash = void 0 ;
const is _array _buffer _1 = _ _nccwpck _require _ _ ( 9126 ) ;
const util _hex _encoding _1 = _ _nccwpck _require _ _ ( 1968 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 342 ) ;
const getPayloadHash = async ( { headers , body } , hashConstructor ) => {
for ( const headerName of Object . keys ( headers ) ) {
if ( headerName . toLowerCase ( ) === constants _1 . SHA256 _HEADER ) {
return headers [ headerName ] ;
}
}
if ( body == undefined ) {
return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" ;
}
else if ( typeof body === "string" || ArrayBuffer . isView ( body ) || is _array _buffer _1 . isArrayBuffer ( body ) ) {
const hashCtor = new hashConstructor ( ) ;
hashCtor . update ( body ) ;
return util _hex _encoding _1 . toHex ( await hashCtor . digest ( ) ) ;
}
return constants _1 . UNSIGNED _PAYLOAD ;
} ;
exports . getPayloadHash = getPayloadHash ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4120 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . deleteHeader = exports . getHeaderValue = exports . hasHeader = void 0 ;
const hasHeader = ( soughtHeader , headers ) => {
soughtHeader = soughtHeader . toLowerCase ( ) ;
for ( const headerName of Object . keys ( headers ) ) {
if ( soughtHeader === headerName . toLowerCase ( ) ) {
return true ;
}
}
return false ;
} ;
exports . hasHeader = hasHeader ;
const getHeaderValue = ( soughtHeader , headers ) => {
soughtHeader = soughtHeader . toLowerCase ( ) ;
for ( const headerName of Object . keys ( headers ) ) {
if ( soughtHeader === headerName . toLowerCase ( ) ) {
return headers [ headerName ] ;
}
}
return undefined ;
} ;
exports . getHeaderValue = getHeaderValue ;
const deleteHeader = ( soughtHeader , headers ) => {
soughtHeader = soughtHeader . toLowerCase ( ) ;
for ( const headerName of Object . keys ( headers ) ) {
if ( soughtHeader === headerName . toLowerCase ( ) ) {
delete headers [ headerName ] ;
}
}
} ;
exports . deleteHeader = deleteHeader ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7776 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . normalizeRegionProvider = exports . normalizeCredentialsProvider = exports . prepareRequest = exports . moveHeadersToQuery = exports . getPayloadHash = exports . getCanonicalQuery = exports . getCanonicalHeaders = void 0 ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5086 ) , exports ) ;
var getCanonicalHeaders _1 = _ _nccwpck _require _ _ ( 3590 ) ;
Object . defineProperty ( exports , "getCanonicalHeaders" , ( { enumerable : true , get : function ( ) { return getCanonicalHeaders _1 . getCanonicalHeaders ; } } ) ) ;
var getCanonicalQuery _1 = _ _nccwpck _require _ _ ( 2019 ) ;
Object . defineProperty ( exports , "getCanonicalQuery" , ( { enumerable : true , get : function ( ) { return getCanonicalQuery _1 . getCanonicalQuery ; } } ) ) ;
var getPayloadHash _1 = _ _nccwpck _require _ _ ( 7080 ) ;
Object . defineProperty ( exports , "getPayloadHash" , ( { enumerable : true , get : function ( ) { return getPayloadHash _1 . getPayloadHash ; } } ) ) ;
var moveHeadersToQuery _1 = _ _nccwpck _require _ _ ( 8201 ) ;
Object . defineProperty ( exports , "moveHeadersToQuery" , ( { enumerable : true , get : function ( ) { return moveHeadersToQuery _1 . moveHeadersToQuery ; } } ) ) ;
var prepareRequest _1 = _ _nccwpck _require _ _ ( 5772 ) ;
Object . defineProperty ( exports , "prepareRequest" , ( { enumerable : true , get : function ( ) { return prepareRequest _1 . prepareRequest ; } } ) ) ;
var normalizeProvider _1 = _ _nccwpck _require _ _ ( 7027 ) ;
Object . defineProperty ( exports , "normalizeCredentialsProvider" , ( { enumerable : true , get : function ( ) { return normalizeProvider _1 . normalizeCredentialsProvider ; } } ) ) ;
Object . defineProperty ( exports , "normalizeRegionProvider" , ( { enumerable : true , get : function ( ) { return normalizeProvider _1 . normalizeRegionProvider ; } } ) ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8023 ) , exports ) ;
/***/ } ) ,
/***/ 8201 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . moveHeadersToQuery = void 0 ;
const cloneRequest _1 = _ _nccwpck _require _ _ ( 3141 ) ;
const moveHeadersToQuery = ( request , options = { } ) => {
var _a ;
const { headers , query = { } } = typeof request . clone === "function" ? request . clone ( ) : cloneRequest _1 . cloneRequest ( request ) ;
for ( const name of Object . keys ( headers ) ) {
const lname = name . toLowerCase ( ) ;
if ( lname . substr ( 0 , 6 ) === "x-amz-" && ! ( ( _a = options . unhoistableHeaders ) === null || _a === void 0 ? void 0 : _a . has ( lname ) ) ) {
query [ name ] = headers [ name ] ;
delete headers [ name ] ;
}
}
return {
... request ,
headers ,
query ,
} ;
} ;
exports . moveHeadersToQuery = moveHeadersToQuery ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7027 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . normalizeCredentialsProvider = exports . normalizeRegionProvider = void 0 ;
const normalizeRegionProvider = ( region ) => {
if ( typeof region === "string" ) {
const promisified = Promise . resolve ( region ) ;
return ( ) => promisified ;
}
else {
return region ;
}
} ;
exports . normalizeRegionProvider = normalizeRegionProvider ;
const normalizeCredentialsProvider = ( credentials ) => {
if ( typeof credentials === "object" ) {
const promisified = Promise . resolve ( credentials ) ;
return ( ) => promisified ;
}
else {
return credentials ;
}
} ;
exports . normalizeCredentialsProvider = normalizeCredentialsProvider ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5772 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . prepareRequest = void 0 ;
const cloneRequest _1 = _ _nccwpck _require _ _ ( 3141 ) ;
const constants _1 = _ _nccwpck _require _ _ ( 342 ) ;
const prepareRequest = ( request ) => {
request = typeof request . clone === "function" ? request . clone ( ) : cloneRequest _1 . cloneRequest ( request ) ;
for ( const headerName of Object . keys ( request . headers ) ) {
if ( constants _1 . GENERATED _HEADERS . indexOf ( headerName . toLowerCase ( ) ) > - 1 ) {
delete request . headers [ headerName ] ;
}
}
return request ;
} ;
exports . prepareRequest = prepareRequest ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4799 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . toDate = exports . iso8601 = void 0 ;
const iso8601 = ( time ) => exports . toDate ( time )
. toISOString ( )
. replace ( /\.\d{3}Z$/ , "Z" ) ;
exports . iso8601 = iso8601 ;
const toDate = ( time ) => {
if ( typeof time === "number" ) {
return new Date ( time * 1000 ) ;
}
if ( typeof time === "string" ) {
if ( Number ( time ) ) {
return new Date ( Number ( time ) * 1000 ) ;
}
return new Date ( time ) ;
}
return time ;
} ;
exports . toDate = toDate ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6034 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . Client = void 0 ;
const middleware _stack _1 = _ _nccwpck _require _ _ ( 1461 ) ;
class Client {
constructor ( config ) {
this . middlewareStack = middleware _stack _1 . constructStack ( ) ;
this . config = config ;
}
send ( command , optionsOrCb , cb ) {
const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined ;
const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb ;
const handler = command . resolveMiddleware ( this . middlewareStack , this . config , options ) ;
if ( callback ) {
handler ( command )
. then ( ( result ) => callback ( null , result . output ) , ( err ) => callback ( err ) )
. catch ( ( ) => { } ) ;
}
else {
return handler ( command ) . then ( ( result ) => result . output ) ;
}
}
destroy ( ) {
if ( this . config . requestHandler . destroy )
this . config . requestHandler . destroy ( ) ;
}
}
exports . Client = Client ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4014 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . Command = void 0 ;
const middleware _stack _1 = _ _nccwpck _require _ _ ( 1461 ) ;
class Command {
constructor ( ) {
this . middlewareStack = middleware _stack _1 . constructStack ( ) ;
}
}
exports . Command = Command ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8392 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . SENSITIVE _STRING = void 0 ;
exports . SENSITIVE _STRING = "***SensitiveInformation***" ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4695 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . parseEpochTimestamp = exports . parseRfc7231DateTime = exports . parseRfc3339DateTime = exports . dateToUtcString = void 0 ;
const parse _utils _1 = _ _nccwpck _require _ _ ( 4809 ) ;
const DAYS = [ "Sun" , "Mon" , "Tue" , "Wed" , "Thu" , "Fri" , "Sat" ] ;
const MONTHS = [ "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" ] ;
function dateToUtcString ( date ) {
const year = date . getUTCFullYear ( ) ;
const month = date . getUTCMonth ( ) ;
const dayOfWeek = date . getUTCDay ( ) ;
const dayOfMonthInt = date . getUTCDate ( ) ;
const hoursInt = date . getUTCHours ( ) ;
const minutesInt = date . getUTCMinutes ( ) ;
const secondsInt = date . getUTCSeconds ( ) ;
const dayOfMonthString = dayOfMonthInt < 10 ? ` 0 ${ dayOfMonthInt } ` : ` ${ dayOfMonthInt } ` ;
const hoursString = hoursInt < 10 ? ` 0 ${ hoursInt } ` : ` ${ hoursInt } ` ;
const minutesString = minutesInt < 10 ? ` 0 ${ minutesInt } ` : ` ${ minutesInt } ` ;
const secondsString = secondsInt < 10 ? ` 0 ${ secondsInt } ` : ` ${ secondsInt } ` ;
return ` ${ DAYS [ dayOfWeek ] } , ${ dayOfMonthString } ${ MONTHS [ month ] } ${ year } ${ hoursString } : ${ minutesString } : ${ secondsString } GMT ` ;
}
exports . dateToUtcString = dateToUtcString ;
const RFC3339 = new RegExp ( /^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/ ) ;
const parseRfc3339DateTime = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
if ( typeof value !== "string" ) {
throw new TypeError ( "RFC-3339 date-times must be expressed as strings" ) ;
}
const match = RFC3339 . exec ( value ) ;
if ( ! match ) {
throw new TypeError ( "Invalid RFC-3339 date-time value" ) ;
}
const [ _ , yearStr , monthStr , dayStr , hours , minutes , seconds , fractionalMilliseconds ] = match ;
const year = parse _utils _1 . strictParseShort ( stripLeadingZeroes ( yearStr ) ) ;
const month = parseDateValue ( monthStr , "month" , 1 , 12 ) ;
const day = parseDateValue ( dayStr , "day" , 1 , 31 ) ;
return buildDate ( year , month , day , { hours , minutes , seconds , fractionalMilliseconds } ) ;
} ;
exports . parseRfc3339DateTime = parseRfc3339DateTime ;
const IMF _FIXDATE = new RegExp ( /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ ) ;
const RFC _850 _DATE = new RegExp ( /^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/ ) ;
const ASC _TIME = new RegExp ( /^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/ ) ;
const parseRfc7231DateTime = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
if ( typeof value !== "string" ) {
throw new TypeError ( "RFC-7231 date-times must be expressed as strings" ) ;
}
let match = IMF _FIXDATE . exec ( value ) ;
if ( match ) {
const [ _ , dayStr , monthStr , yearStr , hours , minutes , seconds , fractionalMilliseconds ] = match ;
return buildDate ( parse _utils _1 . strictParseShort ( stripLeadingZeroes ( yearStr ) ) , parseMonthByShortName ( monthStr ) , parseDateValue ( dayStr , "day" , 1 , 31 ) , { hours , minutes , seconds , fractionalMilliseconds } ) ;
}
match = RFC _850 _DATE . exec ( value ) ;
if ( match ) {
const [ _ , dayStr , monthStr , yearStr , hours , minutes , seconds , fractionalMilliseconds ] = match ;
return adjustRfc850Year ( buildDate ( parseTwoDigitYear ( yearStr ) , parseMonthByShortName ( monthStr ) , parseDateValue ( dayStr , "day" , 1 , 31 ) , {
hours ,
minutes ,
seconds ,
fractionalMilliseconds ,
} ) ) ;
}
match = ASC _TIME . exec ( value ) ;
if ( match ) {
const [ _ , monthStr , dayStr , hours , minutes , seconds , fractionalMilliseconds , yearStr ] = match ;
return buildDate ( parse _utils _1 . strictParseShort ( stripLeadingZeroes ( yearStr ) ) , parseMonthByShortName ( monthStr ) , parseDateValue ( dayStr . trimLeft ( ) , "day" , 1 , 31 ) , { hours , minutes , seconds , fractionalMilliseconds } ) ;
}
throw new TypeError ( "Invalid RFC-7231 date-time value" ) ;
} ;
exports . parseRfc7231DateTime = parseRfc7231DateTime ;
const parseEpochTimestamp = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
let valueAsDouble ;
if ( typeof value === "number" ) {
valueAsDouble = value ;
}
else if ( typeof value === "string" ) {
valueAsDouble = parse _utils _1 . strictParseDouble ( value ) ;
}
else {
throw new TypeError ( "Epoch timestamps must be expressed as floating point numbers or their string representation" ) ;
}
if ( Number . isNaN ( valueAsDouble ) || valueAsDouble === Infinity || valueAsDouble === - Infinity ) {
throw new TypeError ( "Epoch timestamps must be valid, non-Infinite, non-NaN numerics" ) ;
}
return new Date ( Math . round ( valueAsDouble * 1000 ) ) ;
} ;
exports . parseEpochTimestamp = parseEpochTimestamp ;
const buildDate = ( year , month , day , time ) => {
const adjustedMonth = month - 1 ;
validateDayOfMonth ( year , adjustedMonth , day ) ;
return new Date ( Date . UTC ( year , adjustedMonth , day , parseDateValue ( time . hours , "hour" , 0 , 23 ) , parseDateValue ( time . minutes , "minute" , 0 , 59 ) , parseDateValue ( time . seconds , "seconds" , 0 , 60 ) , parseMilliseconds ( time . fractionalMilliseconds ) ) ) ;
} ;
const parseTwoDigitYear = ( value ) => {
const thisYear = new Date ( ) . getUTCFullYear ( ) ;
const valueInThisCentury = Math . floor ( thisYear / 100 ) * 100 + parse _utils _1 . strictParseShort ( stripLeadingZeroes ( value ) ) ;
if ( valueInThisCentury < thisYear ) {
return valueInThisCentury + 100 ;
}
return valueInThisCentury ;
} ;
const FIFTY _YEARS _IN _MILLIS = 50 * 365 * 24 * 60 * 60 * 1000 ;
const adjustRfc850Year = ( input ) => {
if ( input . getTime ( ) - new Date ( ) . getTime ( ) > FIFTY _YEARS _IN _MILLIS ) {
return new Date ( Date . UTC ( input . getUTCFullYear ( ) - 100 , input . getUTCMonth ( ) , input . getUTCDate ( ) , input . getUTCHours ( ) , input . getUTCMinutes ( ) , input . getUTCSeconds ( ) , input . getUTCMilliseconds ( ) ) ) ;
}
return input ;
} ;
const parseMonthByShortName = ( value ) => {
const monthIdx = MONTHS . indexOf ( value ) ;
if ( monthIdx < 0 ) {
throw new TypeError ( ` Invalid month: ${ value } ` ) ;
}
return monthIdx + 1 ;
} ;
const DAYS _IN _MONTH = [ 31 , 28 , 31 , 30 , 31 , 30 , 31 , 31 , 30 , 31 , 30 , 31 ] ;
const validateDayOfMonth = ( year , month , day ) => {
let maxDays = DAYS _IN _MONTH [ month ] ;
if ( month === 1 && isLeapYear ( year ) ) {
maxDays = 29 ;
}
if ( day > maxDays ) {
throw new TypeError ( ` Invalid day for ${ MONTHS [ month ] } in ${ year } : ${ day } ` ) ;
}
} ;
const isLeapYear = ( year ) => {
return year % 4 === 0 && ( year % 100 !== 0 || year % 400 === 0 ) ;
} ;
const parseDateValue = ( value , type , lower , upper ) => {
const dateVal = parse _utils _1 . strictParseByte ( stripLeadingZeroes ( value ) ) ;
if ( dateVal < lower || dateVal > upper ) {
throw new TypeError ( ` ${ type } must be between ${ lower } and ${ upper } , inclusive ` ) ;
}
return dateVal ;
} ;
const parseMilliseconds = ( value ) => {
if ( value === null || value === undefined ) {
return 0 ;
}
return parse _utils _1 . strictParseFloat32 ( "0." + value ) * 1000 ;
} ;
const stripLeadingZeroes = ( value ) => {
let idx = 0 ;
while ( idx < value . length - 1 && value . charAt ( idx ) === "0" ) {
idx ++ ;
}
if ( idx === 0 ) {
return value ;
}
return value . slice ( idx ) ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2363 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . emitWarningIfUnsupportedVersion = void 0 ;
let warningEmitted = false ;
const emitWarningIfUnsupportedVersion = ( version ) => {
if ( version && ! warningEmitted && parseInt ( version . substring ( 1 , version . indexOf ( "." ) ) ) < 12 ) {
warningEmitted = true ;
process . emitWarning ( ` The AWS SDK for JavaScript (v3) will \n ` +
` no longer support Node.js ${ version } as of January 1, 2022. \n ` +
` To continue receiving updates to AWS services, bug fixes, and security \n ` +
` updates please upgrade to Node.js 12.x or later. \n \n ` +
` More information can be found at: https://a.co/1l6FLnu ` , ` NodeDeprecationWarning ` ) ;
}
} ;
exports . emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1927 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . extendedEncodeURIComponent = void 0 ;
function extendedEncodeURIComponent ( str ) {
return encodeURIComponent ( str ) . replace ( /[!'()*]/g , function ( c ) {
return "%" + c . charCodeAt ( 0 ) . toString ( 16 ) . toUpperCase ( ) ;
} ) ;
}
exports . extendedEncodeURIComponent = extendedEncodeURIComponent ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6457 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getArrayIfSingleItem = void 0 ;
const getArrayIfSingleItem = ( mayBeArray ) => Array . isArray ( mayBeArray ) ? mayBeArray : [ mayBeArray ] ;
exports . getArrayIfSingleItem = getArrayIfSingleItem ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5830 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getValueFromTextNode = void 0 ;
const getValueFromTextNode = ( obj ) => {
const textNodeName = "#text" ;
for ( const key in obj ) {
if ( obj . hasOwnProperty ( key ) && obj [ key ] [ textNodeName ] !== undefined ) {
obj [ key ] = obj [ key ] [ textNodeName ] ;
}
else if ( typeof obj [ key ] === "object" && obj [ key ] !== null ) {
obj [ key ] = exports . getValueFromTextNode ( obj [ key ] ) ;
}
}
return obj ;
} ;
exports . getValueFromTextNode = getValueFromTextNode ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4963 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6034 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4014 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8392 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4695 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 2363 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 1927 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 6457 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5830 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3613 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4809 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8000 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8730 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3613 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . LazyJsonString = exports . StringWrapper = void 0 ;
const StringWrapper = function ( ) {
const Class = Object . getPrototypeOf ( this ) . constructor ;
const Constructor = Function . bind . apply ( String , [ null , ... arguments ] ) ;
const instance = new Constructor ( ) ;
Object . setPrototypeOf ( instance , Class . prototype ) ;
return instance ;
} ;
exports . StringWrapper = StringWrapper ;
exports . StringWrapper . prototype = Object . create ( String . prototype , {
constructor : {
value : exports . StringWrapper ,
enumerable : false ,
writable : true ,
configurable : true ,
} ,
} ) ;
Object . setPrototypeOf ( exports . StringWrapper , String ) ;
class LazyJsonString extends exports . StringWrapper {
deserializeJSON ( ) {
return JSON . parse ( super . toString ( ) ) ;
}
toJSON ( ) {
return super . toString ( ) ;
}
static fromObject ( object ) {
if ( object instanceof LazyJsonString ) {
return object ;
}
else if ( object instanceof String || typeof object === "string" ) {
return new LazyJsonString ( object ) ;
}
return new LazyJsonString ( JSON . stringify ( object ) ) ;
}
}
exports . LazyJsonString = LazyJsonString ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4809 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . strictParseByte = exports . strictParseShort = exports . strictParseInt32 = exports . strictParseInt = exports . strictParseLong = exports . limitedParseFloat32 = exports . limitedParseFloat = exports . handleFloat = exports . limitedParseDouble = exports . strictParseFloat32 = exports . strictParseFloat = exports . strictParseDouble = exports . expectUnion = exports . expectString = exports . expectObject = exports . expectNonNull = exports . expectByte = exports . expectShort = exports . expectInt32 = exports . expectInt = exports . expectLong = exports . expectFloat32 = exports . expectNumber = exports . expectBoolean = exports . parseBoolean = void 0 ;
const parseBoolean = ( value ) => {
switch ( value ) {
case "true" :
return true ;
case "false" :
return false ;
default :
throw new Error ( ` Unable to parse boolean value " ${ value } " ` ) ;
}
} ;
exports . parseBoolean = parseBoolean ;
const expectBoolean = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
if ( typeof value === "boolean" ) {
return value ;
}
throw new TypeError ( ` Expected boolean, got ${ typeof value } ` ) ;
} ;
exports . expectBoolean = expectBoolean ;
const expectNumber = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
if ( typeof value === "number" ) {
return value ;
}
throw new TypeError ( ` Expected number, got ${ typeof value } ` ) ;
} ;
exports . expectNumber = expectNumber ;
const MAX _FLOAT = Math . ceil ( 2 * * 127 * ( 2 - 2 * * - 23 ) ) ;
const expectFloat32 = ( value ) => {
const expected = exports . expectNumber ( value ) ;
if ( expected !== undefined && ! Number . isNaN ( expected ) && expected !== Infinity && expected !== - Infinity ) {
if ( Math . abs ( expected ) > MAX _FLOAT ) {
throw new TypeError ( ` Expected 32-bit float, got ${ value } ` ) ;
}
}
return expected ;
} ;
exports . expectFloat32 = expectFloat32 ;
const expectLong = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
if ( Number . isInteger ( value ) && ! Number . isNaN ( value ) ) {
return value ;
}
throw new TypeError ( ` Expected integer, got ${ typeof value } ` ) ;
} ;
exports . expectLong = expectLong ;
exports . expectInt = exports . expectLong ;
const expectInt32 = ( value ) => expectSizedInt ( value , 32 ) ;
exports . expectInt32 = expectInt32 ;
const expectShort = ( value ) => expectSizedInt ( value , 16 ) ;
exports . expectShort = expectShort ;
const expectByte = ( value ) => expectSizedInt ( value , 8 ) ;
exports . expectByte = expectByte ;
const expectSizedInt = ( value , size ) => {
const expected = exports . expectLong ( value ) ;
if ( expected !== undefined && castInt ( expected , size ) !== expected ) {
throw new TypeError ( ` Expected ${ size } -bit integer, got ${ value } ` ) ;
}
return expected ;
} ;
const castInt = ( value , size ) => {
switch ( size ) {
case 32 :
return Int32Array . of ( value ) [ 0 ] ;
case 16 :
return Int16Array . of ( value ) [ 0 ] ;
case 8 :
return Int8Array . of ( value ) [ 0 ] ;
}
} ;
const expectNonNull = ( value , location ) => {
if ( value === null || value === undefined ) {
if ( location ) {
throw new TypeError ( ` Expected a non-null value for ${ location } ` ) ;
}
throw new TypeError ( "Expected a non-null value" ) ;
}
return value ;
} ;
exports . expectNonNull = expectNonNull ;
const expectObject = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
if ( typeof value === "object" && ! Array . isArray ( value ) ) {
return value ;
}
throw new TypeError ( ` Expected object, got ${ typeof value } ` ) ;
} ;
exports . expectObject = expectObject ;
const expectString = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
if ( typeof value === "string" ) {
return value ;
}
throw new TypeError ( ` Expected string, got ${ typeof value } ` ) ;
} ;
exports . expectString = expectString ;
const expectUnion = ( value ) => {
if ( value === null || value === undefined ) {
return undefined ;
}
const asObject = exports . expectObject ( value ) ;
const setKeys = Object . entries ( asObject )
. filter ( ( [ _ , v ] ) => v !== null && v !== undefined )
. map ( ( [ k , _ ] ) => k ) ;
if ( setKeys . length === 0 ) {
throw new TypeError ( ` Unions must have exactly one non-null member ` ) ;
}
if ( setKeys . length > 1 ) {
throw new TypeError ( ` Unions must have exactly one non-null member. Keys ${ setKeys } were not null. ` ) ;
}
return asObject ;
} ;
exports . expectUnion = expectUnion ;
const strictParseDouble = ( value ) => {
if ( typeof value == "string" ) {
return exports . expectNumber ( parseNumber ( value ) ) ;
}
return exports . expectNumber ( value ) ;
} ;
exports . strictParseDouble = strictParseDouble ;
exports . strictParseFloat = exports . strictParseDouble ;
const strictParseFloat32 = ( value ) => {
if ( typeof value == "string" ) {
return exports . expectFloat32 ( parseNumber ( value ) ) ;
}
return exports . expectFloat32 ( value ) ;
} ;
exports . strictParseFloat32 = strictParseFloat32 ;
const NUMBER _REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g ;
const parseNumber = ( value ) => {
const matches = value . match ( NUMBER _REGEX ) ;
if ( matches === null || matches [ 0 ] . length !== value . length ) {
throw new TypeError ( ` Expected real number, got implicit NaN ` ) ;
}
return parseFloat ( value ) ;
} ;
const limitedParseDouble = ( value ) => {
if ( typeof value == "string" ) {
return parseFloatString ( value ) ;
}
return exports . expectNumber ( value ) ;
} ;
exports . limitedParseDouble = limitedParseDouble ;
exports . handleFloat = exports . limitedParseDouble ;
exports . limitedParseFloat = exports . limitedParseDouble ;
const limitedParseFloat32 = ( value ) => {
if ( typeof value == "string" ) {
return parseFloatString ( value ) ;
}
return exports . expectFloat32 ( value ) ;
} ;
exports . limitedParseFloat32 = limitedParseFloat32 ;
const parseFloatString = ( value ) => {
switch ( value ) {
case "NaN" :
return NaN ;
case "Infinity" :
return Infinity ;
case "-Infinity" :
return - Infinity ;
default :
throw new Error ( ` Unable to parse float value: ${ value } ` ) ;
}
} ;
const strictParseLong = ( value ) => {
if ( typeof value === "string" ) {
return exports . expectLong ( parseNumber ( value ) ) ;
}
return exports . expectLong ( value ) ;
} ;
exports . strictParseLong = strictParseLong ;
exports . strictParseInt = exports . strictParseLong ;
const strictParseInt32 = ( value ) => {
if ( typeof value === "string" ) {
return exports . expectInt32 ( parseNumber ( value ) ) ;
}
return exports . expectInt32 ( value ) ;
} ;
exports . strictParseInt32 = strictParseInt32 ;
const strictParseShort = ( value ) => {
if ( typeof value === "string" ) {
return exports . expectShort ( parseNumber ( value ) ) ;
}
return exports . expectShort ( value ) ;
} ;
exports . strictParseShort = strictParseShort ;
const strictParseByte = ( value ) => {
if ( typeof value === "string" ) {
return exports . expectByte ( parseNumber ( value ) ) ;
}
return exports . expectByte ( value ) ;
} ;
exports . strictParseByte = strictParseByte ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8000 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . serializeFloat = void 0 ;
const serializeFloat = ( value ) => {
if ( value !== value ) {
return "NaN" ;
}
switch ( value ) {
case Infinity :
return "Infinity" ;
case - Infinity :
return "-Infinity" ;
default :
return value ;
}
} ;
exports . serializeFloat = serializeFloat ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8730 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . splitEvery = void 0 ;
function splitEvery ( value , delimiter , numDelimiters ) {
if ( numDelimiters <= 0 || ! Number . isInteger ( numDelimiters ) ) {
throw new Error ( "Invalid number of delimiters (" + numDelimiters + ") for splitEvery." ) ;
}
const segments = value . split ( delimiter ) ;
if ( numDelimiters === 1 ) {
return segments ;
}
const compoundSegments = [ ] ;
let currentSegment = "" ;
for ( let i = 0 ; i < segments . length ; i ++ ) {
if ( currentSegment === "" ) {
currentSegment = segments [ i ] ;
}
else {
currentSegment += delimiter + segments [ i ] ;
}
if ( ( i + 1 ) % numDelimiters === 0 ) {
compoundSegments . push ( currentSegment ) ;
currentSegment = "" ;
}
}
if ( currentSegment !== "" ) {
compoundSegments . push ( currentSegment ) ;
}
return compoundSegments ;
}
exports . splitEvery = splitEvery ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2992 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . parseUrl = void 0 ;
const querystring _parser _1 = _ _nccwpck _require _ _ ( 7424 ) ;
const parseUrl = ( url ) => {
const { hostname , pathname , port , protocol , search } = new URL ( url ) ;
let query ;
if ( search ) {
query = querystring _parser _1 . parseQueryString ( search ) ;
}
return {
hostname ,
port : port ? parseInt ( port ) : undefined ,
protocol ,
path : pathname ,
query ,
} ;
} ;
exports . parseUrl = parseUrl ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8588 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . toBase64 = exports . fromBase64 = void 0 ;
const util _buffer _from _1 = _ _nccwpck _require _ _ ( 6010 ) ;
const BASE64 _REGEX = /^[A-Za-z0-9+/]*={0,2}$/ ;
function fromBase64 ( input ) {
if ( ( input . length * 3 ) % 4 !== 0 ) {
throw new TypeError ( ` Incorrect padding on base64 string. ` ) ;
}
if ( ! BASE64 _REGEX . exec ( input ) ) {
throw new TypeError ( ` Invalid base64 string. ` ) ;
}
const buffer = util _buffer _from _1 . fromString ( input , "base64" ) ;
return new Uint8Array ( buffer . buffer , buffer . byteOffset , buffer . byteLength ) ;
}
exports . fromBase64 = fromBase64 ;
function toBase64 ( input ) {
return util _buffer _from _1 . fromArrayBuffer ( input . buffer , input . byteOffset , input . byteLength ) . toString ( "base64" ) ;
}
exports . toBase64 = toBase64 ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4147 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . calculateBodyLength = void 0 ;
const fs _1 = _ _nccwpck _require _ _ ( 5747 ) ;
function calculateBodyLength ( body ) {
if ( ! body ) {
return 0 ;
}
if ( typeof body === "string" ) {
return Buffer . from ( body ) . length ;
}
else if ( typeof body . byteLength === "number" ) {
return body . byteLength ;
}
else if ( typeof body . size === "number" ) {
return body . size ;
}
else if ( typeof body . path === "string" ) {
return fs _1 . lstatSync ( body . path ) . size ;
}
}
exports . calculateBodyLength = calculateBodyLength ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6010 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . fromString = exports . fromArrayBuffer = void 0 ;
const is _array _buffer _1 = _ _nccwpck _require _ _ ( 9126 ) ;
const buffer _1 = _ _nccwpck _require _ _ ( 4293 ) ;
const fromArrayBuffer = ( input , offset = 0 , length = input . byteLength - offset ) => {
if ( ! is _array _buffer _1 . isArrayBuffer ( input ) ) {
throw new TypeError ( ` The "input" argument must be ArrayBuffer. Received type ${ typeof input } ( ${ input } ) ` ) ;
}
return buffer _1 . Buffer . from ( input , offset , length ) ;
} ;
exports . fromArrayBuffer = fromArrayBuffer ;
const fromString = ( input , encoding ) => {
if ( typeof input !== "string" ) {
throw new TypeError ( ` The "input" argument must be of type string. Received type ${ typeof input } ( ${ input } ) ` ) ;
}
return encoding ? buffer _1 . Buffer . from ( input , encoding ) : buffer _1 . Buffer . from ( input ) ;
} ;
exports . fromString = fromString ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9509 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . booleanSelector = exports . SelectorType = void 0 ;
var SelectorType ;
( function ( SelectorType ) {
SelectorType [ "ENV" ] = "env" ;
SelectorType [ "CONFIG" ] = "shared config entry" ;
} ) ( SelectorType = exports . SelectorType || ( exports . SelectorType = { } ) ) ;
const booleanSelector = ( obj , key , type ) => {
if ( ! ( key in obj ) )
return undefined ;
if ( obj [ key ] === "true" )
return true ;
if ( obj [ key ] === "false" )
return false ;
throw new Error ( ` Cannot load ${ type } " ${ key } ". Expected "true" or "false", got ${ obj [ key ] } . ` ) ;
} ;
exports . booleanSelector = booleanSelector ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6168 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 9509 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8598 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . getMasterProfileName = exports . parseKnownFiles = exports . DEFAULT _PROFILE = exports . ENV _PROFILE = void 0 ;
const shared _ini _file _loader _1 = _ _nccwpck _require _ _ ( 7387 ) ;
exports . ENV _PROFILE = "AWS_PROFILE" ;
exports . DEFAULT _PROFILE = "default" ;
const parseKnownFiles = async ( init ) => {
const { loadedConfig = shared _ini _file _loader _1 . loadSharedConfigFiles ( init ) } = init ;
const parsedFiles = await loadedConfig ;
return {
... parsedFiles . configFile ,
... parsedFiles . credentialsFile ,
} ;
} ;
exports . parseKnownFiles = parseKnownFiles ;
const getMasterProfileName = ( init ) => init . profile || process . env [ exports . ENV _PROFILE ] || exports . DEFAULT _PROFILE ;
exports . getMasterProfileName = getMasterProfileName ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1968 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . toHex = exports . fromHex = void 0 ;
const SHORT _TO _HEX = { } ;
const HEX _TO _SHORT = { } ;
for ( let i = 0 ; i < 256 ; i ++ ) {
let encodedByte = i . toString ( 16 ) . toLowerCase ( ) ;
if ( encodedByte . length === 1 ) {
encodedByte = ` 0 ${ encodedByte } ` ;
}
SHORT _TO _HEX [ i ] = encodedByte ;
HEX _TO _SHORT [ encodedByte ] = i ;
}
function fromHex ( encoded ) {
if ( encoded . length % 2 !== 0 ) {
throw new Error ( "Hex encoded strings must have an even number length" ) ;
}
const out = new Uint8Array ( encoded . length / 2 ) ;
for ( let i = 0 ; i < encoded . length ; i += 2 ) {
const encodedByte = encoded . substr ( i , 2 ) . toLowerCase ( ) ;
if ( encodedByte in HEX _TO _SHORT ) {
out [ i / 2 ] = HEX _TO _SHORT [ encodedByte ] ;
}
else {
throw new Error ( ` Cannot decode unrecognized sequence ${ encodedByte } as hexadecimal ` ) ;
}
}
return out ;
}
exports . fromHex = fromHex ;
function toHex ( bytes ) {
let out = "" ;
for ( let i = 0 ; i < bytes . byteLength ; i ++ ) {
out += SHORT _TO _HEX [ bytes [ i ] ] ;
}
return out ;
}
exports . toHex = toHex ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5774 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . escapeUriPath = void 0 ;
const escape _uri _1 = _ _nccwpck _require _ _ ( 4652 ) ;
const escapeUriPath = ( uri ) => uri . split ( "/" ) . map ( escape _uri _1 . escapeUri ) . join ( "/" ) ;
exports . escapeUriPath = escapeUriPath ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4652 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . escapeUri = void 0 ;
const escapeUri = ( uri ) => encodeURIComponent ( uri ) . replace ( /[!'()*]/g , hexEncode ) ;
exports . escapeUri = escapeUri ;
const hexEncode = ( c ) => ` % ${ c . charCodeAt ( 0 ) . toString ( 16 ) . toUpperCase ( ) } ` ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7952 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4652 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 5774 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8095 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . defaultUserAgent = exports . UA _APP _ID _INI _NAME = exports . UA _APP _ID _ENV _NAME = void 0 ;
const node _config _provider _1 = _ _nccwpck _require _ _ ( 7684 ) ;
const os _1 = _ _nccwpck _require _ _ ( 2087 ) ;
const process _1 = _ _nccwpck _require _ _ ( 1765 ) ;
const is _crt _available _1 = _ _nccwpck _require _ _ ( 8390 ) ;
exports . UA _APP _ID _ENV _NAME = "AWS_SDK_UA_APP_ID" ;
exports . UA _APP _ID _INI _NAME = "sdk-ua-app-id" ;
const defaultUserAgent = ( { serviceId , clientVersion } ) => {
const sections = [
[ "aws-sdk-js" , clientVersion ] ,
[ ` os/ ${ os _1 . platform ( ) } ` , os _1 . release ( ) ] ,
[ "lang/js" ] ,
[ "md/nodejs" , ` ${ process _1 . versions . node } ` ] ,
] ;
const crtAvailable = is _crt _available _1 . isCrtAvailable ( ) ;
if ( crtAvailable ) {
sections . push ( crtAvailable ) ;
}
if ( serviceId ) {
sections . push ( [ ` api/ ${ serviceId } ` , clientVersion ] ) ;
}
if ( process _1 . env . AWS _EXECUTION _ENV ) {
sections . push ( [ ` exec-env/ ${ process _1 . env . AWS _EXECUTION _ENV } ` ] ) ;
}
const appIdPromise = node _config _provider _1 . loadConfig ( {
environmentVariableSelector : ( env ) => env [ exports . UA _APP _ID _ENV _NAME ] ,
configFileSelector : ( profile ) => profile [ exports . UA _APP _ID _INI _NAME ] ,
default : undefined ,
} ) ( ) ;
let resolvedUserAgent = undefined ;
return async ( ) => {
if ( ! resolvedUserAgent ) {
const appId = await appIdPromise ;
resolvedUserAgent = appId ? [ ... sections , [ ` app/ ${ appId } ` ] ] : [ ... sections ] ;
}
return resolvedUserAgent ;
} ;
} ;
exports . defaultUserAgent = defaultUserAgent ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8390 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . isCrtAvailable = void 0 ;
const isCrtAvailable = ( ) => {
try {
if ( true && _ _nccwpck _require _ _ ( 7578 ) ) {
return [ "md/crt-avail" ] ;
}
return null ;
}
catch ( e ) {
return null ;
}
} ;
exports . isCrtAvailable = isCrtAvailable ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6278 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . toUtf8 = exports . fromUtf8 = void 0 ;
const util _buffer _from _1 = _ _nccwpck _require _ _ ( 6010 ) ;
const fromUtf8 = ( input ) => {
const buf = util _buffer _from _1 . fromString ( input , "utf8" ) ;
return new Uint8Array ( buf . buffer , buf . byteOffset , buf . byteLength / Uint8Array . BYTES _PER _ELEMENT ) ;
} ;
exports . fromUtf8 = fromUtf8 ;
const toUtf8 = ( input ) => util _buffer _from _1 . fromArrayBuffer ( input . buffer , input . byteOffset , input . byteLength ) . toString ( "utf8" ) ;
exports . toUtf8 = toUtf8 ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8880 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . createWaiter = void 0 ;
const poller _1 = _ _nccwpck _require _ _ ( 2105 ) ;
const utils _1 = _ _nccwpck _require _ _ ( 6001 ) ;
const waiter _1 = _ _nccwpck _require _ _ ( 4996 ) ;
const abortTimeout = async ( abortSignal ) => {
return new Promise ( ( resolve ) => {
abortSignal . onabort = ( ) => resolve ( { state : waiter _1 . WaiterState . ABORTED } ) ;
} ) ;
} ;
const createWaiter = async ( options , input , acceptorChecks ) => {
const params = {
... waiter _1 . waiterServiceDefaults ,
... options ,
} ;
utils _1 . validateWaiterOptions ( params ) ;
const exitConditions = [ poller _1 . runPolling ( params , input , acceptorChecks ) ] ;
if ( options . abortController ) {
exitConditions . push ( abortTimeout ( options . abortController . signal ) ) ;
}
if ( options . abortSignal ) {
exitConditions . push ( abortTimeout ( options . abortSignal ) ) ;
}
return Promise . race ( exitConditions ) ;
} ;
exports . createWaiter = createWaiter ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1627 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 8880 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 4996 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2105 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . runPolling = void 0 ;
const sleep _1 = _ _nccwpck _require _ _ ( 7397 ) ;
const waiter _1 = _ _nccwpck _require _ _ ( 4996 ) ;
const exponentialBackoffWithJitter = ( minDelay , maxDelay , attemptCeiling , attempt ) => {
if ( attempt > attemptCeiling )
return maxDelay ;
const delay = minDelay * 2 * * ( attempt - 1 ) ;
return randomInRange ( minDelay , delay ) ;
} ;
const randomInRange = ( min , max ) => min + Math . random ( ) * ( max - min ) ;
const runPolling = async ( { minDelay , maxDelay , maxWaitTime , abortController , client , abortSignal } , input , acceptorChecks ) => {
var _a ;
const { state } = await acceptorChecks ( client , input ) ;
if ( state !== waiter _1 . WaiterState . RETRY ) {
return { state } ;
}
let currentAttempt = 1 ;
const waitUntil = Date . now ( ) + maxWaitTime * 1000 ;
const attemptCeiling = Math . log ( maxDelay / minDelay ) / Math . log ( 2 ) + 1 ;
while ( true ) {
if ( ( ( _a = abortController === null || abortController === void 0 ? void 0 : abortController . signal ) === null || _a === void 0 ? void 0 : _a . aborted ) || ( abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal . aborted ) ) {
return { state : waiter _1 . WaiterState . ABORTED } ;
}
const delay = exponentialBackoffWithJitter ( minDelay , maxDelay , attemptCeiling , currentAttempt ) ;
if ( Date . now ( ) + delay * 1000 > waitUntil ) {
return { state : waiter _1 . WaiterState . TIMEOUT } ;
}
await sleep _1 . sleep ( delay ) ;
const { state } = await acceptorChecks ( client , input ) ;
if ( state !== waiter _1 . WaiterState . RETRY ) {
return { state } ;
}
currentAttempt += 1 ;
}
} ;
exports . runPolling = runPolling ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6001 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
const tslib _1 = _ _nccwpck _require _ _ ( 4351 ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 7397 ) , exports ) ;
tslib _1 . _ _exportStar ( _ _nccwpck _require _ _ ( 3931 ) , exports ) ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7397 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . sleep = void 0 ;
const sleep = ( seconds ) => {
return new Promise ( ( resolve ) => setTimeout ( resolve , seconds * 1000 ) ) ;
} ;
exports . sleep = sleep ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3931 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . validateWaiterOptions = void 0 ;
const validateWaiterOptions = ( options ) => {
if ( options . maxWaitTime < 1 ) {
throw new Error ( ` WaiterConfiguration.maxWaitTime must be greater than 0 ` ) ;
}
else if ( options . minDelay < 1 ) {
throw new Error ( ` WaiterConfiguration.minDelay must be greater than 0 ` ) ;
}
else if ( options . maxDelay < 1 ) {
throw new Error ( ` WaiterConfiguration.maxDelay must be greater than 0 ` ) ;
}
else if ( options . maxWaitTime <= options . minDelay ) {
throw new Error ( ` WaiterConfiguration.maxWaitTime [ ${ options . maxWaitTime } ] must be greater than WaiterConfiguration.minDelay [ ${ options . minDelay } ] for this waiter ` ) ;
}
else if ( options . maxDelay < options . minDelay ) {
throw new Error ( ` WaiterConfiguration.maxDelay [ ${ options . maxDelay } ] must be greater than WaiterConfiguration.minDelay [ ${ options . minDelay } ] for this waiter ` ) ;
}
} ;
exports . validateWaiterOptions = validateWaiterOptions ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4996 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . checkExceptions = exports . WaiterState = exports . waiterServiceDefaults = void 0 ;
exports . waiterServiceDefaults = {
minDelay : 2 ,
maxDelay : 120 ,
} ;
var WaiterState ;
( function ( WaiterState ) {
WaiterState [ "ABORTED" ] = "ABORTED" ;
WaiterState [ "FAILURE" ] = "FAILURE" ;
WaiterState [ "SUCCESS" ] = "SUCCESS" ;
WaiterState [ "RETRY" ] = "RETRY" ;
WaiterState [ "TIMEOUT" ] = "TIMEOUT" ;
} ) ( WaiterState = exports . WaiterState || ( exports . WaiterState = { } ) ) ;
const checkExceptions = ( result ) => {
if ( result . state === WaiterState . ABORTED ) {
const abortError = new Error ( ` ${ JSON . stringify ( {
... result ,
reason : "Request was aborted" ,
} ) } ` );
abortError . name = "AbortError" ;
throw abortError ;
}
else if ( result . state === WaiterState . TIMEOUT ) {
const timeoutError = new Error ( ` ${ JSON . stringify ( {
... result ,
reason : "Waiter has timed out" ,
} ) } ` );
timeoutError . name = "TimeoutError" ;
throw timeoutError ;
}
else if ( result . state !== WaiterState . SUCCESS ) {
throw new Error ( ` ${ JSON . stringify ( { result } )} ` ) ;
}
return result ;
} ;
exports . checkExceptions = checkExceptions ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5107 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
var _ _importDefault = ( this && this . _ _importDefault ) || function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . decodeHTML = exports . decodeHTMLStrict = exports . decodeXML = void 0 ;
var entities _json _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 4007 ) ) ;
var legacy _json _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 7802 ) ) ;
var xml _json _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 2228 ) ) ;
var decode _codepoint _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 1227 ) ) ;
var strictEntityRe = /&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g ;
exports . decodeXML = getStrictDecoder ( xml _json _1 . default ) ;
exports . decodeHTMLStrict = getStrictDecoder ( entities _json _1 . default ) ;
function getStrictDecoder ( map ) {
var replace = getReplacer ( map ) ;
return function ( str ) { return String ( str ) . replace ( strictEntityRe , replace ) ; } ;
}
var sorter = function ( a , b ) { return ( a < b ? 1 : - 1 ) ; } ;
exports . decodeHTML = ( function ( ) {
var legacy = Object . keys ( legacy _json _1 . default ) . sort ( sorter ) ;
var keys = Object . keys ( entities _json _1 . default ) . sort ( sorter ) ;
for ( var i = 0 , j = 0 ; i < keys . length ; i ++ ) {
if ( legacy [ j ] === keys [ i ] ) {
keys [ i ] += ";?" ;
j ++ ;
}
else {
keys [ i ] += ";" ;
}
}
var re = new RegExp ( "&(?:" + keys . join ( "|" ) + "|#[xX][\\da-fA-F]+;?|#\\d+;?)" , "g" ) ;
var replace = getReplacer ( entities _json _1 . default ) ;
function replacer ( str ) {
if ( str . substr ( - 1 ) !== ";" )
str += ";" ;
return replace ( str ) ;
}
// TODO consider creating a merged map
return function ( str ) { return String ( str ) . replace ( re , replacer ) ; } ;
} ) ( ) ;
function getReplacer ( map ) {
return function replace ( str ) {
if ( str . charAt ( 1 ) === "#" ) {
var secondChar = str . charAt ( 2 ) ;
if ( secondChar === "X" || secondChar === "x" ) {
return decode _codepoint _1 . default ( parseInt ( str . substr ( 3 ) , 16 ) ) ;
}
return decode _codepoint _1 . default ( parseInt ( str . substr ( 2 ) , 10 ) ) ;
}
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
return map [ str . slice ( 1 , - 1 ) ] || str ;
} ;
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1227 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
var _ _importDefault = ( this && this . _ _importDefault ) || function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
var decode _json _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 4589 ) ) ;
// Adapted from https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119
var fromCodePoint =
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
String . fromCodePoint ||
function ( codePoint ) {
var output = "" ;
if ( codePoint > 0xffff ) {
codePoint -= 0x10000 ;
output += String . fromCharCode ( ( ( codePoint >>> 10 ) & 0x3ff ) | 0xd800 ) ;
codePoint = 0xdc00 | ( codePoint & 0x3ff ) ;
}
output += String . fromCharCode ( codePoint ) ;
return output ;
} ;
function decodeCodePoint ( codePoint ) {
if ( ( codePoint >= 0xd800 && codePoint <= 0xdfff ) || codePoint > 0x10ffff ) {
return "\uFFFD" ;
}
if ( codePoint in decode _json _1 . default ) {
codePoint = decode _json _1 . default [ codePoint ] ;
}
return fromCodePoint ( codePoint ) ;
}
exports . default = decodeCodePoint ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2006 :
/***/ ( function ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
var _ _importDefault = ( this && this . _ _importDefault ) || function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . escapeUTF8 = exports . escape = exports . encodeNonAsciiHTML = exports . encodeHTML = exports . encodeXML = void 0 ;
var xml _json _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 2228 ) ) ;
var inverseXML = getInverseObj ( xml _json _1 . default ) ;
var xmlReplacer = getInverseReplacer ( inverseXML ) ;
/ * *
* Encodes all non - ASCII characters , as well as characters not valid in XML
* documents using XML entities .
*
* If a character has no equivalent entity , a
* numeric hexadecimal reference ( eg . ` ü ` ) will be used .
* /
exports . encodeXML = getASCIIEncoder ( inverseXML ) ;
var entities _json _1 = _ _importDefault ( _ _nccwpck _require _ _ ( 4007 ) ) ;
var inverseHTML = getInverseObj ( entities _json _1 . default ) ;
var htmlReplacer = getInverseReplacer ( inverseHTML ) ;
/ * *
* Encodes all entities and non - ASCII characters in the input .
*
* This includes characters that are valid ASCII characters in HTML documents .
* For example ` # ` will be encoded as ` # ` . To get a more compact output ,
* consider using the ` encodeNonAsciiHTML ` function .
*
* If a character has no equivalent entity , a
* numeric hexadecimal reference ( eg . ` ü ` ) will be used .
* /
exports . encodeHTML = getInverse ( inverseHTML , htmlReplacer ) ;
/ * *
* Encodes all non - ASCII characters , as well as characters not valid in HTML
* documents using HTML entities .
*
* If a character has no equivalent entity , a
* numeric hexadecimal reference ( eg . ` ü ` ) will be used .
* /
exports . encodeNonAsciiHTML = getASCIIEncoder ( inverseHTML ) ;
function getInverseObj ( obj ) {
return Object . keys ( obj )
. sort ( )
. reduce ( function ( inverse , name ) {
inverse [ obj [ name ] ] = "&" + name + ";" ;
return inverse ;
} , { } ) ;
}
function getInverseReplacer ( inverse ) {
var single = [ ] ;
var multiple = [ ] ;
for ( var _i = 0 , _a = Object . keys ( inverse ) ; _i < _a . length ; _i ++ ) {
var k = _a [ _i ] ;
if ( k . length === 1 ) {
// Add value to single array
single . push ( "\\" + k ) ;
}
else {
// Add value to multiple array
multiple . push ( k ) ;
}
}
// Add ranges to single characters.
single . sort ( ) ;
for ( var start = 0 ; start < single . length - 1 ; start ++ ) {
// Find the end of a run of characters
var end = start ;
while ( end < single . length - 1 &&
single [ end ] . charCodeAt ( 1 ) + 1 === single [ end + 1 ] . charCodeAt ( 1 ) ) {
end += 1 ;
}
var count = 1 + end - start ;
// We want to replace at least three characters
if ( count < 3 )
continue ;
single . splice ( start , count , single [ start ] + "-" + single [ end ] ) ;
}
multiple . unshift ( "[" + single . join ( "" ) + "]" ) ;
return new RegExp ( multiple . join ( "|" ) , "g" ) ;
}
// /[^\0-\x7F]/gu
var reNonASCII = /(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g ;
var getCodePoint =
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
String . prototype . codePointAt != null
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
function ( str ) { return str . codePointAt ( 0 ) ; }
: // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
function ( c ) {
return ( c . charCodeAt ( 0 ) - 0xd800 ) * 0x400 +
c . charCodeAt ( 1 ) -
0xdc00 +
0x10000 ;
} ;
function singleCharReplacer ( c ) {
return "&#x" + ( c . length > 1 ? getCodePoint ( c ) : c . charCodeAt ( 0 ) )
. toString ( 16 )
. toUpperCase ( ) + ";" ;
}
function getInverse ( inverse , re ) {
return function ( data ) {
return data
. replace ( re , function ( name ) { return inverse [ name ] ; } )
. replace ( reNonASCII , singleCharReplacer ) ;
} ;
}
var reEscapeChars = new RegExp ( xmlReplacer . source + "|" + reNonASCII . source , "g" ) ;
/ * *
* Encodes all non - ASCII characters , as well as characters not valid in XML
* documents using numeric hexadecimal reference ( eg . ` ü ` ) .
*
* Have a look at ` escapeUTF8 ` if you want a more concise output at the expense
* of reduced transportability .
*
* @ param data String to escape .
* /
function escape ( data ) {
return data . replace ( reEscapeChars , singleCharReplacer ) ;
}
exports . escape = escape ;
/ * *
* Encodes all characters not valid in XML documents using numeric hexadecimal
* reference ( eg . ` ü ` ) .
*
* Note that the output will be character - set dependent .
*
* @ param data String to escape .
* /
function escapeUTF8 ( data ) {
return data . replace ( xmlReplacer , singleCharReplacer ) ;
}
exports . escapeUTF8 = escapeUTF8 ;
function getASCIIEncoder ( obj ) {
return function ( data ) {
return data . replace ( reEscapeChars , function ( c ) { return obj [ c ] || singleCharReplacer ( c ) ; } ) ;
} ;
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 3000 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( { value : true } ) ) ;
exports . decodeXMLStrict = exports . decodeHTML5Strict = exports . decodeHTML4Strict = exports . decodeHTML5 = exports . decodeHTML4 = exports . decodeHTMLStrict = exports . decodeHTML = exports . decodeXML = exports . encodeHTML5 = exports . encodeHTML4 = exports . escapeUTF8 = exports . escape = exports . encodeNonAsciiHTML = exports . encodeHTML = exports . encodeXML = exports . encode = exports . decodeStrict = exports . decode = void 0 ;
var decode _1 = _ _nccwpck _require _ _ ( 5107 ) ;
var encode _1 = _ _nccwpck _require _ _ ( 2006 ) ;
/ * *
* Decodes a string with entities .
*
* @ param data String to decode .
* @ param level Optional level to decode at . 0 = XML , 1 = HTML . Default is 0.
* @ deprecated Use ` decodeXML ` or ` decodeHTML ` directly .
* /
function decode ( data , level ) {
return ( ! level || level <= 0 ? decode _1 . decodeXML : decode _1 . decodeHTML ) ( data ) ;
}
exports . decode = decode ;
/ * *
* Decodes a string with entities . Does not allow missing trailing semicolons for entities .
*
* @ param data String to decode .
* @ param level Optional level to decode at . 0 = XML , 1 = HTML . Default is 0.
* @ deprecated Use ` decodeHTMLStrict ` or ` decodeXML ` directly .
* /
function decodeStrict ( data , level ) {
return ( ! level || level <= 0 ? decode _1 . decodeXML : decode _1 . decodeHTMLStrict ) ( data ) ;
}
exports . decodeStrict = decodeStrict ;
/ * *
* Encodes a string with entities .
*
* @ param data String to encode .
* @ param level Optional level to encode at . 0 = XML , 1 = HTML . Default is 0.
* @ deprecated Use ` encodeHTML ` , ` encodeXML ` or ` encodeNonAsciiHTML ` directly .
* /
function encode ( data , level ) {
return ( ! level || level <= 0 ? encode _1 . encodeXML : encode _1 . encodeHTML ) ( data ) ;
}
exports . encode = encode ;
var encode _2 = _ _nccwpck _require _ _ ( 2006 ) ;
Object . defineProperty ( exports , "encodeXML" , ( { enumerable : true , get : function ( ) { return encode _2 . encodeXML ; } } ) ) ;
Object . defineProperty ( exports , "encodeHTML" , ( { enumerable : true , get : function ( ) { return encode _2 . encodeHTML ; } } ) ) ;
Object . defineProperty ( exports , "encodeNonAsciiHTML" , ( { enumerable : true , get : function ( ) { return encode _2 . encodeNonAsciiHTML ; } } ) ) ;
Object . defineProperty ( exports , "escape" , ( { enumerable : true , get : function ( ) { return encode _2 . escape ; } } ) ) ;
Object . defineProperty ( exports , "escapeUTF8" , ( { enumerable : true , get : function ( ) { return encode _2 . escapeUTF8 ; } } ) ) ;
// Legacy aliases (deprecated)
Object . defineProperty ( exports , "encodeHTML4" , ( { enumerable : true , get : function ( ) { return encode _2 . encodeHTML ; } } ) ) ;
Object . defineProperty ( exports , "encodeHTML5" , ( { enumerable : true , get : function ( ) { return encode _2 . encodeHTML ; } } ) ) ;
var decode _2 = _ _nccwpck _require _ _ ( 5107 ) ;
Object . defineProperty ( exports , "decodeXML" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeXML ; } } ) ) ;
Object . defineProperty ( exports , "decodeHTML" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeHTML ; } } ) ) ;
Object . defineProperty ( exports , "decodeHTMLStrict" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeHTMLStrict ; } } ) ) ;
// Legacy aliases (deprecated)
Object . defineProperty ( exports , "decodeHTML4" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeHTML ; } } ) ) ;
Object . defineProperty ( exports , "decodeHTML5" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeHTML ; } } ) ) ;
Object . defineProperty ( exports , "decodeHTML4Strict" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeHTMLStrict ; } } ) ) ;
Object . defineProperty ( exports , "decodeHTML5Strict" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeHTMLStrict ; } } ) ) ;
Object . defineProperty ( exports , "decodeXMLStrict" , ( { enumerable : true , get : function ( ) { return decode _2 . decodeXML ; } } ) ) ;
/***/ } ) ,
/***/ 5152 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
"use strict" ;
//parse Empty Node as self closing node
2021-12-30 20:43:44 +01:00
const buildOptions = _ _nccwpck _require _ _ ( 8280 ) . buildOptions ;
2021-12-20 10:00:03 +01:00
const defaultOptions = {
attributeNamePrefix : '@_' ,
attrNodeName : false ,
textNodeName : '#text' ,
ignoreAttributes : true ,
cdataTagName : false ,
cdataPositionChar : '\\c' ,
format : false ,
indentBy : ' ' ,
supressEmptyNode : false ,
tagValueProcessor : function ( a ) {
return a ;
} ,
attrValueProcessor : function ( a ) {
return a ;
} ,
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const props = [
'attributeNamePrefix' ,
'attrNodeName' ,
'textNodeName' ,
'ignoreAttributes' ,
'cdataTagName' ,
'cdataPositionChar' ,
'format' ,
'indentBy' ,
'supressEmptyNode' ,
'tagValueProcessor' ,
'attrValueProcessor' ,
] ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function Parser ( options ) {
this . options = buildOptions ( options , defaultOptions , props ) ;
if ( this . options . ignoreAttributes || this . options . attrNodeName ) {
this . isAttribute = function ( /*a*/ ) {
return false ;
} ;
} else {
this . attrPrefixLen = this . options . attributeNamePrefix . length ;
this . isAttribute = isAttribute ;
}
if ( this . options . cdataTagName ) {
this . isCDATA = isCDATA ;
} else {
this . isCDATA = function ( /*a*/ ) {
return false ;
} ;
}
this . replaceCDATAstr = replaceCDATAstr ;
this . replaceCDATAarr = replaceCDATAarr ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( this . options . format ) {
this . indentate = indentate ;
this . tagEndChar = '>\n' ;
this . newLine = '\n' ;
} else {
this . indentate = function ( ) {
return '' ;
} ;
this . tagEndChar = '>' ;
this . newLine = '' ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( this . options . supressEmptyNode ) {
this . buildTextNode = buildEmptyTextNode ;
this . buildObjNode = buildEmptyObjNode ;
} else {
this . buildTextNode = buildTextValNode ;
this . buildObjNode = buildObjectNode ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
this . buildTextValNode = buildTextValNode ;
this . buildObjectNode = buildObjectNode ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
Parser . prototype . parse = function ( jObj ) {
return this . j2x ( jObj , 0 ) . val ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
Parser . prototype . j2x = function ( jObj , level ) {
let attrStr = '' ;
let val = '' ;
const keys = Object . keys ( jObj ) ;
const len = keys . length ;
for ( let i = 0 ; i < len ; i ++ ) {
const key = keys [ i ] ;
if ( typeof jObj [ key ] === 'undefined' ) {
// supress undefined node
} else if ( jObj [ key ] === null ) {
val += this . indentate ( level ) + '<' + key + '/' + this . tagEndChar ;
} else if ( jObj [ key ] instanceof Date ) {
val += this . buildTextNode ( jObj [ key ] , key , '' , level ) ;
} else if ( typeof jObj [ key ] !== 'object' ) {
//premitive type
const attr = this . isAttribute ( key ) ;
if ( attr ) {
attrStr += ' ' + attr + '="' + this . options . attrValueProcessor ( '' + jObj [ key ] ) + '"' ;
} else if ( this . isCDATA ( key ) ) {
if ( jObj [ this . options . textNodeName ] ) {
val += this . replaceCDATAstr ( jObj [ this . options . textNodeName ] , jObj [ key ] ) ;
} else {
val += this . replaceCDATAstr ( '' , jObj [ key ] ) ;
}
} else {
//tag value
if ( key === this . options . textNodeName ) {
if ( jObj [ this . options . cdataTagName ] ) {
//value will added while processing cdata
} else {
val += this . options . tagValueProcessor ( '' + jObj [ key ] ) ;
}
} else {
val += this . buildTextNode ( jObj [ key ] , key , '' , level ) ;
}
}
} else if ( Array . isArray ( jObj [ key ] ) ) {
//repeated nodes
if ( this . isCDATA ( key ) ) {
val += this . indentate ( level ) ;
if ( jObj [ this . options . textNodeName ] ) {
val += this . replaceCDATAarr ( jObj [ this . options . textNodeName ] , jObj [ key ] ) ;
} else {
val += this . replaceCDATAarr ( '' , jObj [ key ] ) ;
}
} else {
//nested nodes
const arrLen = jObj [ key ] . length ;
for ( let j = 0 ; j < arrLen ; j ++ ) {
const item = jObj [ key ] [ j ] ;
if ( typeof item === 'undefined' ) {
// supress undefined node
} else if ( item === null ) {
val += this . indentate ( level ) + '<' + key + '/' + this . tagEndChar ;
} else if ( typeof item === 'object' ) {
const result = this . j2x ( item , level + 1 ) ;
val += this . buildObjNode ( result . val , key , result . attrStr , level ) ;
} else {
val += this . buildTextNode ( item , key , '' , level ) ;
}
}
}
} else {
//nested node
if ( this . options . attrNodeName && key === this . options . attrNodeName ) {
const Ks = Object . keys ( jObj [ key ] ) ;
const L = Ks . length ;
for ( let j = 0 ; j < L ; j ++ ) {
attrStr += ' ' + Ks [ j ] + '="' + this . options . attrValueProcessor ( '' + jObj [ key ] [ Ks [ j ] ] ) + '"' ;
}
} else {
const result = this . j2x ( jObj [ key ] , level + 1 ) ;
val += this . buildObjNode ( result . val , key , result . attrStr , level ) ;
}
}
}
return { attrStr : attrStr , val : val } ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function replaceCDATAstr ( str , cdata ) {
str = this . options . tagValueProcessor ( '' + str ) ;
if ( this . options . cdataPositionChar === '' || str === '' ) {
return str + '<![CDATA[' + cdata + ']]' + this . tagEndChar ;
} else {
return str . replace ( this . options . cdataPositionChar , '<![CDATA[' + cdata + ']]' + this . tagEndChar ) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function replaceCDATAarr ( str , cdata ) {
str = this . options . tagValueProcessor ( '' + str ) ;
if ( this . options . cdataPositionChar === '' || str === '' ) {
return str + '<![CDATA[' + cdata . join ( ']]><![CDATA[' ) + ']]' + this . tagEndChar ;
} else {
for ( let v in cdata ) {
str = str . replace ( this . options . cdataPositionChar , '<![CDATA[' + cdata [ v ] + ']]>' ) ;
}
return str + this . newLine ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function buildObjectNode ( val , key , attrStr , level ) {
if ( attrStr && ! val . includes ( '<' ) ) {
return (
this . indentate ( level ) +
'<' +
key +
attrStr +
'>' +
val +
//+ this.newLine
// + this.indentate(level)
'</' +
key +
this . tagEndChar
) ;
} else {
return (
this . indentate ( level ) +
'<' +
key +
attrStr +
this . tagEndChar +
val +
//+ this.newLine
this . indentate ( level ) +
'</' +
key +
this . tagEndChar
) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function buildEmptyObjNode ( val , key , attrStr , level ) {
if ( val !== '' ) {
return this . buildObjectNode ( val , key , attrStr , level ) ;
} else {
return this . indentate ( level ) + '<' + key + attrStr + '/' + this . tagEndChar ;
//+ this.newLine
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function buildTextValNode ( val , key , attrStr , level ) {
return (
this . indentate ( level ) +
'<' +
key +
attrStr +
'>' +
this . options . tagValueProcessor ( val ) +
'</' +
key +
this . tagEndChar
) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function buildEmptyTextNode ( val , key , attrStr , level ) {
if ( val !== '' ) {
return this . buildTextValNode ( val , key , attrStr , level ) ;
} else {
return this . indentate ( level ) + '<' + key + attrStr + '/' + this . tagEndChar ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function indentate ( level ) {
return this . options . indentBy . repeat ( level ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function isAttribute ( name /*, options*/ ) {
if ( name . startsWith ( this . options . attributeNamePrefix ) ) {
return name . substr ( this . attrPrefixLen ) ;
} else {
return false ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function isCDATA ( name ) {
return name === this . options . cdataTagName ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//formatting
//indentation
//\n after each closing or self closing tag
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
module . exports = Parser ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1901 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
const char = function ( a ) {
return String . fromCharCode ( a ) ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const chars = {
nilChar : char ( 176 ) ,
missingChar : char ( 201 ) ,
nilPremitive : char ( 175 ) ,
missingPremitive : char ( 200 ) ,
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
emptyChar : char ( 178 ) ,
emptyValue : char ( 177 ) , //empty Premitive
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
boundryChar : char ( 179 ) ,
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
objStart : char ( 198 ) ,
arrStart : char ( 204 ) ,
arrayEnd : char ( 185 ) ,
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const charsArr = [
chars . nilChar ,
chars . nilPremitive ,
chars . missingChar ,
chars . missingPremitive ,
chars . boundryChar ,
chars . emptyChar ,
chars . emptyValue ,
chars . arrayEnd ,
chars . objStart ,
chars . arrStart ,
] ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const _e = function ( node , e _schema , options ) {
if ( typeof e _schema === 'string' ) {
//premitive
if ( node && node [ 0 ] && node [ 0 ] . val !== undefined ) {
return getValue ( node [ 0 ] . val , e _schema ) ;
} else {
return getValue ( node , e _schema ) ;
}
} else {
const hasValidData = hasData ( node ) ;
if ( hasValidData === true ) {
let str = '' ;
if ( Array . isArray ( e _schema ) ) {
//attributes can't be repeated. hence check in children tags only
str += chars . arrStart ;
const itemSchema = e _schema [ 0 ] ;
//var itemSchemaType = itemSchema;
const arr _len = node . length ;
if ( typeof itemSchema === 'string' ) {
for ( let arr _i = 0 ; arr _i < arr _len ; arr _i ++ ) {
const r = getValue ( node [ arr _i ] . val , itemSchema ) ;
str = processValue ( str , r ) ;
}
} else {
for ( let arr _i = 0 ; arr _i < arr _len ; arr _i ++ ) {
const r = _e ( node [ arr _i ] , itemSchema , options ) ;
str = processValue ( str , r ) ;
}
}
str += chars . arrayEnd ; //indicates that next item is not array item
} else {
//object
str += chars . objStart ;
const keys = Object . keys ( e _schema ) ;
if ( Array . isArray ( node ) ) {
node = node [ 0 ] ;
}
for ( let i in keys ) {
const key = keys [ i ] ;
//a property defined in schema can be present either in attrsMap or children tags
//options.textNodeName will not present in both maps, take it's value from val
//options.attrNodeName will be present in attrsMap
let r ;
if ( ! options . ignoreAttributes && node . attrsMap && node . attrsMap [ key ] ) {
r = _e ( node . attrsMap [ key ] , e _schema [ key ] , options ) ;
} else if ( key === options . textNodeName ) {
r = _e ( node . val , e _schema [ key ] , options ) ;
} else {
r = _e ( node . child [ key ] , e _schema [ key ] , options ) ;
}
str = processValue ( str , r ) ;
}
}
return str ;
} else {
return hasValidData ;
}
}
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const getValue = function ( a /*, type*/ ) {
switch ( a ) {
case undefined :
return chars . missingPremitive ;
case null :
return chars . nilPremitive ;
case '' :
return chars . emptyValue ;
default :
return a ;
}
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const processValue = function ( str , r ) {
if ( ! isAppChar ( r [ 0 ] ) && ! isAppChar ( str [ str . length - 1 ] ) ) {
str += chars . boundryChar ;
}
return str + r ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const isAppChar = function ( ch ) {
return charsArr . indexOf ( ch ) !== - 1 ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function hasData ( jObj ) {
if ( jObj === undefined ) {
return chars . missingChar ;
} else if ( jObj === null ) {
return chars . nilChar ;
} else if (
jObj . child &&
Object . keys ( jObj . child ) . length === 0 &&
( ! jObj . attrsMap || Object . keys ( jObj . attrsMap ) . length === 0 )
) {
return chars . emptyChar ;
} else {
return true ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const x2j = _ _nccwpck _require _ _ ( 6712 ) ;
2021-12-30 20:43:44 +01:00
const buildOptions = _ _nccwpck _require _ _ ( 8280 ) . buildOptions ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const convert2nimn = function ( node , e _schema , options ) {
options = buildOptions ( options , x2j . defaultOptions , x2j . props ) ;
return _e ( node , e _schema , options ) ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . convert2nimn = convert2nimn ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8270 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-30 20:43:44 +01:00
const util = _ _nccwpck _require _ _ ( 8280 ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const convertToJson = function ( node , options , parentTagName ) {
const jObj = { } ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
// when no child node or attr is present
if ( ( ! node . child || util . isEmptyObject ( node . child ) ) && ( ! node . attrsMap || util . isEmptyObject ( node . attrsMap ) ) ) {
return util . isExist ( node . val ) ? node . val : '' ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
// otherwise create a textnode if node has some text
if ( util . isExist ( node . val ) && ! ( typeof node . val === 'string' && ( node . val === '' || node . val === options . cdataPositionChar ) ) ) {
const asArray = util . isTagNameInArrayMode ( node . tagname , options . arrayMode , parentTagName )
jObj [ options . textNodeName ] = asArray ? [ node . val ] : node . val ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
util . merge ( jObj , node . attrsMap , options . arrayMode ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const keys = Object . keys ( node . child ) ;
for ( let index = 0 ; index < keys . length ; index ++ ) {
const tagName = keys [ index ] ;
if ( node . child [ tagName ] && node . child [ tagName ] . length > 1 ) {
jObj [ tagName ] = [ ] ;
for ( let tag in node . child [ tagName ] ) {
if ( node . child [ tagName ] . hasOwnProperty ( tag ) ) {
jObj [ tagName ] . push ( convertToJson ( node . child [ tagName ] [ tag ] , options , tagName ) ) ;
}
}
} else {
const result = convertToJson ( node . child [ tagName ] [ 0 ] , options , tagName ) ;
const asArray = ( options . arrayMode === true && typeof result === 'object' ) || util . isTagNameInArrayMode ( tagName , options . arrayMode , parentTagName ) ;
jObj [ tagName ] = asArray ? [ result ] : result ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//add value
return jObj ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . convertToJson = convertToJson ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6014 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-30 20:43:44 +01:00
const util = _ _nccwpck _require _ _ ( 8280 ) ;
const buildOptions = _ _nccwpck _require _ _ ( 8280 ) . buildOptions ;
2021-12-20 10:00:03 +01:00
const x2j = _ _nccwpck _require _ _ ( 6712 ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//TODO: do it later
const convertToJsonString = function ( node , options ) {
options = buildOptions ( options , x2j . defaultOptions , x2j . props ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
options . indentBy = options . indentBy || '' ;
return _cToJsonStr ( node , options , 0 ) ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const _cToJsonStr = function ( node , options , level ) {
let jObj = '{' ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//traver through all the children
const keys = Object . keys ( node . child ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
for ( let index = 0 ; index < keys . length ; index ++ ) {
var tagname = keys [ index ] ;
if ( node . child [ tagname ] && node . child [ tagname ] . length > 1 ) {
jObj += '"' + tagname + '" : [ ' ;
for ( var tag in node . child [ tagname ] ) {
jObj += _cToJsonStr ( node . child [ tagname ] [ tag ] , options ) + ' , ' ;
}
jObj = jObj . substr ( 0 , jObj . length - 1 ) + ' ] ' ; //remove extra comma in last
} else {
jObj += '"' + tagname + '" : ' + _cToJsonStr ( node . child [ tagname ] [ 0 ] , options ) + ' ,' ;
}
}
util . merge ( jObj , node . attrsMap ) ;
//add attrsMap as new children
if ( util . isEmptyObject ( jObj ) ) {
return util . isExist ( node . val ) ? node . val : '' ;
} else {
if ( util . isExist ( node . val ) ) {
if ( ! ( typeof node . val === 'string' && ( node . val === '' || node . val === options . cdataPositionChar ) ) ) {
jObj += '"' + options . textNodeName + '" : ' + stringval ( node . val ) ;
}
}
}
//add value
if ( jObj [ jObj . length - 1 ] === ',' ) {
jObj = jObj . substr ( 0 , jObj . length - 2 ) ;
}
return jObj + '}' ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function stringval ( v ) {
if ( v === true || v === false || ! isNaN ( v ) ) {
return v ;
} else {
return '"' + v + '"' ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function indentate ( options , level ) {
return options . indentBy . repeat ( level ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . convertToJsonString = convertToJsonString ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7448 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
const nodeToJson = _ _nccwpck _require _ _ ( 8270 ) ;
const xmlToNodeobj = _ _nccwpck _require _ _ ( 6712 ) ;
const x2xmlnode = _ _nccwpck _require _ _ ( 6712 ) ;
2021-12-30 20:43:44 +01:00
const buildOptions = _ _nccwpck _require _ _ ( 8280 ) . buildOptions ;
2021-12-20 10:00:03 +01:00
const validator = _ _nccwpck _require _ _ ( 1739 ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . parse = function ( xmlData , options , validationOption ) {
if ( validationOption ) {
if ( validationOption === true ) validationOption = { }
const result = validator . validate ( xmlData , validationOption ) ;
if ( result !== true ) {
throw Error ( result . err . msg )
}
}
options = buildOptions ( options , x2xmlnode . defaultOptions , x2xmlnode . props ) ;
const traversableObj = xmlToNodeobj . getTraversalObj ( xmlData , options )
//print(traversableObj, " ");
return nodeToJson . convertToJson ( traversableObj , options ) ;
} ;
exports . convertTonimn = _ _nccwpck _require _ _ ( 1901 ) . convert2nimn ;
exports . getTraversalObj = xmlToNodeobj . getTraversalObj ;
exports . convertToJson = nodeToJson . convertToJson ;
exports . convertToJsonString = _ _nccwpck _require _ _ ( 6014 ) . convertToJsonString ;
exports . validate = validator . validate ;
exports . j2xParser = _ _nccwpck _require _ _ ( 5152 ) ;
exports . parseToNimn = function ( xmlData , schema , options ) {
return exports . convertTonimn ( exports . getTraversalObj ( xmlData , options ) , schema , options ) ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function print ( xmlNode , indentation ) {
if ( xmlNode ) {
console . log ( indentation + "{" )
console . log ( indentation + " \"tagName\": \"" + xmlNode . tagname + "\", " ) ;
if ( xmlNode . parent ) {
console . log ( indentation + " \"parent\": \"" + xmlNode . parent . tagname + "\", " ) ;
}
console . log ( indentation + " \"val\": \"" + xmlNode . val + "\", " ) ;
console . log ( indentation + " \"attrs\": " + JSON . stringify ( xmlNode . attrsMap , null , 4 ) + ", " ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( xmlNode . child ) {
console . log ( indentation + "\"child\": {" )
const indentation2 = indentation + indentation ;
Object . keys ( xmlNode . child ) . forEach ( function ( key ) {
const node = xmlNode . child [ key ] ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( Array . isArray ( node ) ) {
console . log ( indentation + "\"" + key + "\" :[" )
node . forEach ( function ( item , index ) {
//console.log(indentation + " \""+index+"\" : [")
print ( item , indentation2 ) ;
} )
console . log ( indentation + "]," )
} else {
console . log ( indentation + " \"" + key + "\" : {" )
print ( node , indentation2 ) ;
console . log ( indentation + "}," )
}
} ) ;
console . log ( indentation + "}," )
}
console . log ( indentation + "}," )
}
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-30 20:43:44 +01:00
/***/ 8280 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD' ;
const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040' ;
const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*'
const regexName = new RegExp ( '^' + nameRegexp + '$' ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const getAllMatches = function ( string , regex ) {
const matches = [ ] ;
let match = regex . exec ( string ) ;
while ( match ) {
const allmatches = [ ] ;
const len = match . length ;
for ( let index = 0 ; index < len ; index ++ ) {
allmatches . push ( match [ index ] ) ;
}
matches . push ( allmatches ) ;
match = regex . exec ( string ) ;
}
return matches ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const isName = function ( string ) {
const match = regexName . exec ( string ) ;
return ! ( match === null || typeof match === 'undefined' ) ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . isExist = function ( v ) {
return typeof v !== 'undefined' ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . isEmptyObject = function ( obj ) {
return Object . keys ( obj ) . length === 0 ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * *
* Copy all the properties of a into b .
* @ param { * } target
* @ param { * } a
* /
exports . merge = function ( target , a , arrayMode ) {
if ( a ) {
const keys = Object . keys ( a ) ; // will return an array of own properties
const len = keys . length ; //don't make it inline
for ( let i = 0 ; i < len ; i ++ ) {
if ( arrayMode === 'strict' ) {
target [ keys [ i ] ] = [ a [ keys [ i ] ] ] ;
} else {
target [ keys [ i ] ] = a [ keys [ i ] ] ;
}
}
}
} ;
/ * e x p o r t s . m e r g e = f u n c t i o n ( b , a ) {
return Object . assign ( b , a ) ;
} * /
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . getValue = function ( v ) {
if ( exports . isExist ( v ) ) {
return v ;
} else {
return '' ;
}
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
// const fakeCall = function(a) {return a;};
// const fakeCallNoReturn = function() {};
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . buildOptions = function ( options , defaultOptions , props ) {
var newOptions = { } ;
if ( ! options ) {
return defaultOptions ; //if there are not options
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
for ( let i = 0 ; i < props . length ; i ++ ) {
if ( options [ props [ i ] ] !== undefined ) {
newOptions [ props [ i ] ] = options [ props [ i ] ] ;
} else {
newOptions [ props [ i ] ] = defaultOptions [ props [ i ] ] ;
}
}
return newOptions ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * *
* Check if a tag name should be treated as array
*
* @ param tagName the node tagname
* @ param arrayMode the array mode option
* @ param parentTagName the parent tag name
* @ returns { boolean } true if node should be parsed as array
* /
exports . isTagNameInArrayMode = function ( tagName , arrayMode , parentTagName ) {
if ( arrayMode === false ) {
return false ;
} else if ( arrayMode instanceof RegExp ) {
return arrayMode . test ( tagName ) ;
} else if ( typeof arrayMode === 'function' ) {
return ! ! arrayMode ( tagName , parentTagName ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return arrayMode === "strict" ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . isName = isName ;
exports . getAllMatches = getAllMatches ;
exports . nameRegexp = nameRegexp ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1739 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-30 20:43:44 +01:00
const util = _ _nccwpck _require _ _ ( 8280 ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const defaultOptions = {
allowBooleanAttributes : false , //A tag can have attributes without any value
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const props = [ 'allowBooleanAttributes' ] ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g");
exports . validate = function ( xmlData , options ) {
options = util . buildOptions ( options , defaultOptions , props ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line
//xmlData = xmlData.replace(/(^\s*<\?xml.*?\?>)/g,"");//Remove XML starting tag
//xmlData = xmlData.replace(/(<!DOCTYPE[\s\w\"\.\/\-\:]+(\[.*\])*\s*>)/g,"");//Remove DOCTYPE
const tags = [ ] ;
let tagFound = false ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//indicates that the root tag has been closed (aka. depth 0 has been reached)
let reachedRoot = false ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( xmlData [ 0 ] === '\ufeff' ) {
// check for byte order mark (BOM)
xmlData = xmlData . substr ( 1 ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
for ( let i = 0 ; i < xmlData . length ; i ++ ) {
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( xmlData [ i ] === '<' && xmlData [ i + 1 ] === '?' ) {
i += 2 ;
i = readPI ( xmlData , i ) ;
if ( i . err ) return i ;
} else if ( xmlData [ i ] === '<' ) {
//starting of tag
//read until you reach to '>' avoiding any '>' in attribute value
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
i ++ ;
if ( xmlData [ i ] === '!' ) {
i = readCommentAndCDATA ( xmlData , i ) ;
continue ;
} else {
let closingTag = false ;
if ( xmlData [ i ] === '/' ) {
//closing tag
closingTag = true ;
i ++ ;
}
//read tagname
let tagName = '' ;
for ( ; i < xmlData . length &&
xmlData [ i ] !== '>' &&
xmlData [ i ] !== ' ' &&
xmlData [ i ] !== '\t' &&
xmlData [ i ] !== '\n' &&
xmlData [ i ] !== '\r' ; i ++
) {
tagName += xmlData [ i ] ;
}
tagName = tagName . trim ( ) ;
//console.log(tagName);
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( tagName [ tagName . length - 1 ] === '/' ) {
//self closing tag without attributes
tagName = tagName . substring ( 0 , tagName . length - 1 ) ;
//continue;
i -- ;
}
if ( ! validateTagName ( tagName ) ) {
let msg ;
if ( tagName . trim ( ) . length === 0 ) {
msg = "There is an unnecessary space between tag name and backward slash '</ ..'." ;
} else {
msg = "Tag '" + tagName + "' is an invalid name." ;
}
return getErrorObject ( 'InvalidTag' , msg , getLineNumberForPosition ( xmlData , i ) ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const result = readAttributeStr ( xmlData , i ) ;
if ( result === false ) {
return getErrorObject ( 'InvalidAttr' , "Attributes for '" + tagName + "' have open quote." , getLineNumberForPosition ( xmlData , i ) ) ;
}
let attrStr = result . value ;
i = result . index ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( attrStr [ attrStr . length - 1 ] === '/' ) {
//self closing tag
attrStr = attrStr . substring ( 0 , attrStr . length - 1 ) ;
const isValid = validateAttributeString ( attrStr , options ) ;
if ( isValid === true ) {
tagFound = true ;
//continue; //text may presents after self closing tag
} else {
//the result from the nested function returns the position of the error within the attribute
//in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute
//this gives us the absolute index in the entire xml, which we can use to find the line at last
return getErrorObject ( isValid . err . code , isValid . err . msg , getLineNumberForPosition ( xmlData , i - attrStr . length + isValid . err . line ) ) ;
}
} else if ( closingTag ) {
if ( ! result . tagClosed ) {
return getErrorObject ( 'InvalidTag' , "Closing tag '" + tagName + "' doesn't have proper closing." , getLineNumberForPosition ( xmlData , i ) ) ;
} else if ( attrStr . trim ( ) . length > 0 ) {
return getErrorObject ( 'InvalidTag' , "Closing tag '" + tagName + "' can't have attributes or invalid starting." , getLineNumberForPosition ( xmlData , i ) ) ;
} else {
const otg = tags . pop ( ) ;
if ( tagName !== otg ) {
return getErrorObject ( 'InvalidTag' , "Closing tag '" + otg + "' is expected inplace of '" + tagName + "'." , getLineNumberForPosition ( xmlData , i ) ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//when there are no more tags, we reached the root level.
if ( tags . length == 0 ) {
reachedRoot = true ;
}
}
} else {
const isValid = validateAttributeString ( attrStr , options ) ;
if ( isValid !== true ) {
//the result from the nested function returns the position of the error within the attribute
//in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute
//this gives us the absolute index in the entire xml, which we can use to find the line at last
return getErrorObject ( isValid . err . code , isValid . err . msg , getLineNumberForPosition ( xmlData , i - attrStr . length + isValid . err . line ) ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//if the root level has been reached before ...
if ( reachedRoot === true ) {
return getErrorObject ( 'InvalidXml' , 'Multiple possible root nodes found.' , getLineNumberForPosition ( xmlData , i ) ) ;
} else {
tags . push ( tagName ) ;
}
tagFound = true ;
}
//skip tag text value
//It may include comments and CDATA value
for ( i ++ ; i < xmlData . length ; i ++ ) {
if ( xmlData [ i ] === '<' ) {
if ( xmlData [ i + 1 ] === '!' ) {
//comment or CADATA
i ++ ;
i = readCommentAndCDATA ( xmlData , i ) ;
continue ;
} else if ( xmlData [ i + 1 ] === '?' ) {
i = readPI ( xmlData , ++ i ) ;
if ( i . err ) return i ;
} else {
break ;
}
} else if ( xmlData [ i ] === '&' ) {
const afterAmp = validateAmpersand ( xmlData , i ) ;
if ( afterAmp == - 1 )
return getErrorObject ( 'InvalidChar' , "char '&' is not expected." , getLineNumberForPosition ( xmlData , i ) ) ;
i = afterAmp ;
}
} //end of reading tag text value
if ( xmlData [ i ] === '<' ) {
i -- ;
}
}
} else {
if ( xmlData [ i ] === ' ' || xmlData [ i ] === '\t' || xmlData [ i ] === '\n' || xmlData [ i ] === '\r' ) {
continue ;
}
return getErrorObject ( 'InvalidChar' , "char '" + xmlData [ i ] + "' is not expected." , getLineNumberForPosition ( xmlData , i ) ) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( ! tagFound ) {
return getErrorObject ( 'InvalidXml' , 'Start tag expected.' , 1 ) ;
} else if ( tags . length > 0 ) {
return getErrorObject ( 'InvalidXml' , "Invalid '" + JSON . stringify ( tags , null , 4 ) . replace ( /\r?\n/g , '' ) + "' found." , 1 ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return true ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * *
* Read Processing insstructions and skip
* @ param { * } xmlData
* @ param { * } i
* /
function readPI ( xmlData , i ) {
var start = i ;
for ( ; i < xmlData . length ; i ++ ) {
if ( xmlData [ i ] == '?' || xmlData [ i ] == ' ' ) {
//tagname
var tagname = xmlData . substr ( start , i - start ) ;
if ( i > 5 && tagname === 'xml' ) {
return getErrorObject ( 'InvalidXml' , 'XML declaration allowed only at the start of the document.' , getLineNumberForPosition ( xmlData , i ) ) ;
} else if ( xmlData [ i ] == '?' && xmlData [ i + 1 ] == '>' ) {
//check if valid attribut string
i ++ ;
break ;
} else {
continue ;
}
}
}
return i ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function readCommentAndCDATA ( xmlData , i ) {
if ( xmlData . length > i + 5 && xmlData [ i + 1 ] === '-' && xmlData [ i + 2 ] === '-' ) {
//comment
for ( i += 3 ; i < xmlData . length ; i ++ ) {
if ( xmlData [ i ] === '-' && xmlData [ i + 1 ] === '-' && xmlData [ i + 2 ] === '>' ) {
i += 2 ;
break ;
}
}
} else if (
xmlData . length > i + 8 &&
xmlData [ i + 1 ] === 'D' &&
xmlData [ i + 2 ] === 'O' &&
xmlData [ i + 3 ] === 'C' &&
xmlData [ i + 4 ] === 'T' &&
xmlData [ i + 5 ] === 'Y' &&
xmlData [ i + 6 ] === 'P' &&
xmlData [ i + 7 ] === 'E'
) {
let angleBracketsCount = 1 ;
for ( i += 8 ; i < xmlData . length ; i ++ ) {
if ( xmlData [ i ] === '<' ) {
angleBracketsCount ++ ;
} else if ( xmlData [ i ] === '>' ) {
angleBracketsCount -- ;
if ( angleBracketsCount === 0 ) {
break ;
}
}
}
} else if (
xmlData . length > i + 9 &&
xmlData [ i + 1 ] === '[' &&
xmlData [ i + 2 ] === 'C' &&
xmlData [ i + 3 ] === 'D' &&
xmlData [ i + 4 ] === 'A' &&
xmlData [ i + 5 ] === 'T' &&
xmlData [ i + 6 ] === 'A' &&
xmlData [ i + 7 ] === '['
) {
for ( i += 8 ; i < xmlData . length ; i ++ ) {
if ( xmlData [ i ] === ']' && xmlData [ i + 1 ] === ']' && xmlData [ i + 2 ] === '>' ) {
i += 2 ;
break ;
}
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return i ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var doubleQuote = '"' ;
var singleQuote = "'" ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * *
* Keep reading xmlData until '<' is found outside the attribute value .
* @ param { string } xmlData
* @ param { number } i
* /
function readAttributeStr ( xmlData , i ) {
let attrStr = '' ;
let startChar = '' ;
let tagClosed = false ;
for ( ; i < xmlData . length ; i ++ ) {
if ( xmlData [ i ] === doubleQuote || xmlData [ i ] === singleQuote ) {
if ( startChar === '' ) {
startChar = xmlData [ i ] ;
} else if ( startChar !== xmlData [ i ] ) {
//if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa
continue ;
} else {
startChar = '' ;
}
} else if ( xmlData [ i ] === '>' ) {
if ( startChar === '' ) {
tagClosed = true ;
break ;
}
}
attrStr += xmlData [ i ] ;
}
if ( startChar !== '' ) {
return false ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return {
value : attrStr ,
index : i ,
tagClosed : tagClosed
} ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * *
* Select all the attributes whether valid or invalid .
* /
const validAttrStrRegxp = new RegExp ( '(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?' , 'g' ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//attr, ="sd", a="amit's", a="sd"b="saf", ab cd=""
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function validateAttributeString ( attrStr , options ) {
//console.log("start:"+attrStr+":end");
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//if(attrStr.trim().length === 0) return true; //empty string
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const matches = util . getAllMatches ( attrStr , validAttrStrRegxp ) ;
const attrNames = { } ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
for ( let i = 0 ; i < matches . length ; i ++ ) {
if ( matches [ i ] [ 1 ] . length === 0 ) {
//nospace before attribute name: a="sd"b="saf"
return getErrorObject ( 'InvalidAttr' , "Attribute '" + matches [ i ] [ 2 ] + "' has no space in starting." , getPositionFromMatch ( attrStr , matches [ i ] [ 0 ] ) )
} else if ( matches [ i ] [ 3 ] === undefined && ! options . allowBooleanAttributes ) {
//independent attribute: ab
return getErrorObject ( 'InvalidAttr' , "boolean attribute '" + matches [ i ] [ 2 ] + "' is not allowed." , getPositionFromMatch ( attrStr , matches [ i ] [ 0 ] ) ) ;
}
/* else if(matches[i][6] === undefined){/ / attribute without value : ab =
return { err : { code : "InvalidAttr" , msg : "attribute " + matches [ i ] [ 2 ] + " has no value assigned." } } ;
} * /
const attrName = matches [ i ] [ 2 ] ;
if ( ! validateAttrName ( attrName ) ) {
return getErrorObject ( 'InvalidAttr' , "Attribute '" + attrName + "' is an invalid name." , getPositionFromMatch ( attrStr , matches [ i ] [ 0 ] ) ) ;
}
if ( ! attrNames . hasOwnProperty ( attrName ) ) {
//check for duplicate attribute.
attrNames [ attrName ] = 1 ;
} else {
return getErrorObject ( 'InvalidAttr' , "Attribute '" + attrName + "' is repeated." , getPositionFromMatch ( attrStr , matches [ i ] [ 0 ] ) ) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return true ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function validateNumberAmpersand ( xmlData , i ) {
let re = /\d/ ;
if ( xmlData [ i ] === 'x' ) {
i ++ ;
re = /[\da-fA-F]/ ;
}
for ( ; i < xmlData . length ; i ++ ) {
if ( xmlData [ i ] === ';' )
return i ;
if ( ! xmlData [ i ] . match ( re ) )
break ;
}
return - 1 ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function validateAmpersand ( xmlData , i ) {
// https://www.w3.org/TR/xml/#dt-charref
i ++ ;
if ( xmlData [ i ] === ';' )
return - 1 ;
if ( xmlData [ i ] === '#' ) {
i ++ ;
return validateNumberAmpersand ( xmlData , i ) ;
}
let count = 0 ;
for ( ; i < xmlData . length ; i ++ , count ++ ) {
if ( xmlData [ i ] . match ( /\w/ ) && count < 20 )
continue ;
if ( xmlData [ i ] === ';' )
break ;
return - 1 ;
}
return i ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function getErrorObject ( code , message , lineNumber ) {
return {
err : {
code : code ,
msg : message ,
line : lineNumber ,
} ,
} ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function validateAttrName ( attrName ) {
return util . isName ( attrName ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
// const startsWithXML = /^xml/i;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function validateTagName ( tagname ) {
return util . isName ( tagname ) /* && !tagname.match(startsWithXML) */ ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//this function returns the line number for the character at the given index
function getLineNumberForPosition ( xmlData , index ) {
var lines = xmlData . substring ( 0 , index ) . split ( /\r?\n/ ) ;
return lines . length ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//this function returns the position of the last character of match within attrStr
function getPositionFromMatch ( attrStr , match ) {
return attrStr . indexOf ( match ) + match . length ;
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 9539 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = function ( tagname , parent , val ) {
this . tagname = tagname ;
this . parent = parent ;
this . child = { } ; //child tags
this . attrsMap = { } ; //attributes map
this . val = val ; //text only
this . addChild = function ( child ) {
if ( Array . isArray ( this . child [ child . tagname ] ) ) {
//already presents
this . child [ child . tagname ] . push ( child ) ;
} else {
this . child [ child . tagname ] = [ child ] ;
}
} ;
} ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6712 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-30 20:43:44 +01:00
const util = _ _nccwpck _require _ _ ( 8280 ) ;
const buildOptions = _ _nccwpck _require _ _ ( 8280 ) . buildOptions ;
2021-12-20 10:00:03 +01:00
const xmlNode = _ _nccwpck _require _ _ ( 9539 ) ;
const regx =
'<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
. replace ( /NAME/g , util . nameRegexp ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g");
//const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g");
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//polyfill
if ( ! Number . parseInt && window . parseInt ) {
Number . parseInt = window . parseInt ;
}
if ( ! Number . parseFloat && window . parseFloat ) {
Number . parseFloat = window . parseFloat ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const defaultOptions = {
attributeNamePrefix : '@_' ,
attrNodeName : false ,
textNodeName : '#text' ,
ignoreAttributes : true ,
ignoreNameSpace : false ,
allowBooleanAttributes : false , //a tag can have attributes without any value
//ignoreRootElement : false,
parseNodeValue : true ,
parseAttributeValue : false ,
arrayMode : false ,
trimValues : true , //Trim string values of tag and attributes
cdataTagName : false ,
cdataPositionChar : '\\c' ,
tagValueProcessor : function ( a , tagName ) {
return a ;
} ,
attrValueProcessor : function ( a , attrName ) {
return a ;
} ,
stopNodes : [ ]
//decodeStrict: false,
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . defaultOptions = defaultOptions ;
const props = [
'attributeNamePrefix' ,
'attrNodeName' ,
'textNodeName' ,
'ignoreAttributes' ,
'ignoreNameSpace' ,
'allowBooleanAttributes' ,
'parseNodeValue' ,
'parseAttributeValue' ,
'arrayMode' ,
'trimValues' ,
'cdataTagName' ,
'cdataPositionChar' ,
'tagValueProcessor' ,
'attrValueProcessor' ,
'parseTrueNumberOnly' ,
'stopNodes'
] ;
exports . props = props ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * *
* Trim - > valueProcessor - > parse value
* @ param { string } tagName
* @ param { string } val
* @ param { object } options
* /
function processTagValue ( tagName , val , options ) {
if ( val ) {
if ( options . trimValues ) {
val = val . trim ( ) ;
}
val = options . tagValueProcessor ( val , tagName ) ;
val = parseValue ( val , options . parseNodeValue , options . parseTrueNumberOnly ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return val ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function resolveNameSpace ( tagname , options ) {
if ( options . ignoreNameSpace ) {
const tags = tagname . split ( ':' ) ;
const prefix = tagname . charAt ( 0 ) === '/' ? '/' : '' ;
if ( tags [ 0 ] === 'xmlns' ) {
return '' ;
}
if ( tags . length === 2 ) {
tagname = prefix + tags [ 1 ] ;
}
}
return tagname ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function parseValue ( val , shouldParse , parseTrueNumberOnly ) {
if ( shouldParse && typeof val === 'string' ) {
let parsed ;
if ( val . trim ( ) === '' || isNaN ( val ) ) {
parsed = val === 'true' ? true : val === 'false' ? false : val ;
} else {
if ( val . indexOf ( '0x' ) !== - 1 ) {
//support hexa decimal
parsed = Number . parseInt ( val , 16 ) ;
} else if ( val . indexOf ( '.' ) !== - 1 ) {
parsed = Number . parseFloat ( val ) ;
val = val . replace ( /\.?0+$/ , "" ) ;
} else {
parsed = Number . parseInt ( val , 10 ) ;
}
if ( parseTrueNumberOnly ) {
parsed = String ( parsed ) === val ? parsed : val ;
}
}
return parsed ;
} else {
if ( util . isExist ( val ) ) {
return val ;
} else {
return '' ;
}
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//TODO: change regex to capture NS
//const attrsRegx = new RegExp("([\\w\\-\\.\\:]+)\\s*=\\s*(['\"])((.|\n)*?)\\2","gm");
const attrsRegx = new RegExp ( '([^\\s=]+)\\s*(=\\s*([\'"])(.*?)\\3)?' , 'g' ) ;
function buildAttributesMap ( attrStr , options ) {
if ( ! options . ignoreAttributes && typeof attrStr === 'string' ) {
attrStr = attrStr . replace ( /\r?\n/g , ' ' ) ;
//attrStr = attrStr || attrStr.trim();
const matches = util . getAllMatches ( attrStr , attrsRegx ) ;
const len = matches . length ; //don't make it inline
const attrs = { } ;
for ( let i = 0 ; i < len ; i ++ ) {
const attrName = resolveNameSpace ( matches [ i ] [ 1 ] , options ) ;
if ( attrName . length ) {
if ( matches [ i ] [ 4 ] !== undefined ) {
if ( options . trimValues ) {
matches [ i ] [ 4 ] = matches [ i ] [ 4 ] . trim ( ) ;
}
matches [ i ] [ 4 ] = options . attrValueProcessor ( matches [ i ] [ 4 ] , attrName ) ;
attrs [ options . attributeNamePrefix + attrName ] = parseValue (
matches [ i ] [ 4 ] ,
options . parseAttributeValue ,
options . parseTrueNumberOnly
) ;
} else if ( options . allowBooleanAttributes ) {
attrs [ options . attributeNamePrefix + attrName ] = true ;
}
}
}
if ( ! Object . keys ( attrs ) . length ) {
return ;
}
if ( options . attrNodeName ) {
const attrCollection = { } ;
attrCollection [ options . attrNodeName ] = attrs ;
return attrCollection ;
}
return attrs ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const getTraversalObj = function ( xmlData , options ) {
xmlData = xmlData . replace ( /\r\n?/g , "\n" ) ;
options = buildOptions ( options , defaultOptions , props ) ;
const xmlObj = new xmlNode ( '!xml' ) ;
let currentNode = xmlObj ;
let textData = "" ;
//function match(xmlData){
for ( let i = 0 ; i < xmlData . length ; i ++ ) {
const ch = xmlData [ i ] ;
if ( ch === '<' ) {
if ( xmlData [ i + 1 ] === '/' ) { //Closing Tag
const closeIndex = findClosingIndex ( xmlData , ">" , i , "Closing Tag is not closed." )
let tagName = xmlData . substring ( i + 2 , closeIndex ) . trim ( ) ;
if ( options . ignoreNameSpace ) {
const colonIndex = tagName . indexOf ( ":" ) ;
if ( colonIndex !== - 1 ) {
tagName = tagName . substr ( colonIndex + 1 ) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * i f ( c u r r e n t N o d e . p a r e n t ) {
currentNode . parent . val = util . getValue ( currentNode . parent . val ) + '' + processTagValue2 ( tagName , textData , options ) ;
} * /
if ( currentNode ) {
if ( currentNode . val ) {
currentNode . val = util . getValue ( currentNode . val ) + '' + processTagValue ( tagName , textData , options ) ;
} else {
currentNode . val = processTagValue ( tagName , textData , options ) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( options . stopNodes . length && options . stopNodes . includes ( currentNode . tagname ) ) {
currentNode . child = [ ]
if ( currentNode . attrsMap == undefined ) { currentNode . attrsMap = { } }
currentNode . val = xmlData . substr ( currentNode . startIndex + 1 , i - currentNode . startIndex - 1 )
}
currentNode = currentNode . parent ;
textData = "" ;
i = closeIndex ;
} else if ( xmlData [ i + 1 ] === '?' ) {
i = findClosingIndex ( xmlData , "?>" , i , "Pi Tag is not closed." )
} else if ( xmlData . substr ( i + 1 , 3 ) === '!--' ) {
i = findClosingIndex ( xmlData , "-->" , i , "Comment is not closed." )
} else if ( xmlData . substr ( i + 1 , 2 ) === '!D' ) {
const closeIndex = findClosingIndex ( xmlData , ">" , i , "DOCTYPE is not closed." )
const tagExp = xmlData . substring ( i , closeIndex ) ;
if ( tagExp . indexOf ( "[" ) >= 0 ) {
i = xmlData . indexOf ( "]>" , i ) + 1 ;
} else {
i = closeIndex ;
}
} else if ( xmlData . substr ( i + 1 , 2 ) === '![' ) {
const closeIndex = findClosingIndex ( xmlData , "]]>" , i , "CDATA is not closed." ) - 2
const tagExp = xmlData . substring ( i + 9 , closeIndex ) ;
//considerations
//1. CDATA will always have parent node
//2. A tag with CDATA is not a leaf node so it's value would be string type.
if ( textData ) {
currentNode . val = util . getValue ( currentNode . val ) + '' + processTagValue ( currentNode . tagname , textData , options ) ;
textData = "" ;
}
if ( options . cdataTagName ) {
//add cdata node
const childNode = new xmlNode ( options . cdataTagName , currentNode , tagExp ) ;
currentNode . addChild ( childNode ) ;
//for backtracking
currentNode . val = util . getValue ( currentNode . val ) + options . cdataPositionChar ;
//add rest value to parent node
if ( tagExp ) {
childNode . val = tagExp ;
}
} else {
currentNode . val = ( currentNode . val || '' ) + ( tagExp || '' ) ;
}
i = closeIndex + 2 ;
} else { //Opening tag
const result = closingIndexForOpeningTag ( xmlData , i + 1 )
let tagExp = result . data ;
const closeIndex = result . index ;
const separatorIndex = tagExp . indexOf ( " " ) ;
let tagName = tagExp ;
let shouldBuildAttributesMap = true ;
if ( separatorIndex !== - 1 ) {
tagName = tagExp . substr ( 0 , separatorIndex ) . replace ( /\s\s*$/ , '' ) ;
tagExp = tagExp . substr ( separatorIndex + 1 ) ;
}
if ( options . ignoreNameSpace ) {
const colonIndex = tagName . indexOf ( ":" ) ;
if ( colonIndex !== - 1 ) {
tagName = tagName . substr ( colonIndex + 1 ) ;
shouldBuildAttributesMap = tagName !== result . data . substr ( colonIndex + 1 ) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
//save text to parent node
if ( currentNode && textData ) {
if ( currentNode . tagname !== '!xml' ) {
currentNode . val = util . getValue ( currentNode . val ) + '' + processTagValue ( currentNode . tagname , textData , options ) ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( tagExp . length > 0 && tagExp . lastIndexOf ( "/" ) === tagExp . length - 1 ) { //selfClosing tag
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( tagName [ tagName . length - 1 ] === "/" ) { //remove trailing '/'
tagName = tagName . substr ( 0 , tagName . length - 1 ) ;
tagExp = tagName ;
} else {
tagExp = tagExp . substr ( 0 , tagExp . length - 1 ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const childNode = new xmlNode ( tagName , currentNode , '' ) ;
if ( tagName !== tagExp ) {
childNode . attrsMap = buildAttributesMap ( tagExp , options ) ;
}
currentNode . addChild ( childNode ) ;
} else { //opening tag
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const childNode = new xmlNode ( tagName , currentNode ) ;
if ( options . stopNodes . length && options . stopNodes . includes ( childNode . tagname ) ) {
childNode . startIndex = closeIndex ;
}
if ( tagName !== tagExp && shouldBuildAttributesMap ) {
childNode . attrsMap = buildAttributesMap ( tagExp , options ) ;
}
currentNode . addChild ( childNode ) ;
currentNode = childNode ;
}
textData = "" ;
i = closeIndex ;
}
} else {
textData += xmlData [ i ] ;
}
}
return xmlObj ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function closingIndexForOpeningTag ( data , i ) {
let attrBoundary ;
let tagExp = "" ;
for ( let index = i ; index < data . length ; index ++ ) {
let ch = data [ index ] ;
if ( attrBoundary ) {
if ( ch === attrBoundary ) attrBoundary = "" ; //reset
} else if ( ch === '"' || ch === "'" ) {
attrBoundary = ch ;
} else if ( ch === '>' ) {
return {
data : tagExp ,
index : index
}
} else if ( ch === '\t' ) {
ch = " "
}
tagExp += ch ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function findClosingIndex ( xmlData , str , i , errMsg ) {
const closingIndex = xmlData . indexOf ( str , i ) ;
if ( closingIndex === - 1 ) {
throw new Error ( errMsg )
} else {
return closingIndex + str . length - 1 ;
}
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . getTraversalObj = getTraversalObj ;
/***/ } ) ,
/***/ 4351 :
/***/ ( ( module ) => {
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/* global global, define, System, Reflect, Promise */
var _ _extends ;
var _ _assign ;
var _ _rest ;
var _ _decorate ;
var _ _param ;
var _ _metadata ;
var _ _awaiter ;
var _ _generator ;
var _ _exportStar ;
var _ _values ;
var _ _read ;
var _ _spread ;
var _ _spreadArrays ;
var _ _spreadArray ;
var _ _await ;
var _ _asyncGenerator ;
var _ _asyncDelegator ;
var _ _asyncValues ;
var _ _makeTemplateObject ;
var _ _importStar ;
var _ _importDefault ;
var _ _classPrivateFieldGet ;
var _ _classPrivateFieldSet ;
var _ _createBinding ;
( function ( factory ) {
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : { } ;
if ( typeof define === "function" && define . amd ) {
define ( "tslib" , [ "exports" ] , function ( exports ) { factory ( createExporter ( root , createExporter ( exports ) ) ) ; } ) ;
}
else if ( true && typeof module . exports === "object" ) {
factory ( createExporter ( root , createExporter ( module . exports ) ) ) ;
}
else {
factory ( createExporter ( root ) ) ;
}
function createExporter ( exports , previous ) {
if ( exports !== root ) {
if ( typeof Object . create === "function" ) {
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
}
else {
exports . _ _esModule = true ;
}
}
return function ( id , v ) { return exports [ id ] = previous ? previous ( id , v ) : v ; } ;
}
} )
( function ( exporter ) {
var extendStatics = Object . setPrototypeOf ||
( { _ _proto _ _ : [ ] } instanceof Array && function ( d , b ) { d . _ _proto _ _ = b ; } ) ||
function ( d , b ) { for ( var p in b ) if ( Object . prototype . hasOwnProperty . call ( b , p ) ) d [ p ] = b [ p ] ; } ;
_ _extends = function ( d , b ) {
if ( typeof b !== "function" && b !== null )
throw new TypeError ( "Class extends value " + String ( b ) + " is not a constructor or null" ) ;
extendStatics ( d , b ) ;
function _ _ ( ) { this . constructor = d ; }
d . prototype = b === null ? Object . create ( b ) : ( _ _ . prototype = b . prototype , new _ _ ( ) ) ;
} ;
_ _assign = Object . assign || function ( t ) {
for ( var s , i = 1 , n = arguments . length ; i < n ; i ++ ) {
s = arguments [ i ] ;
for ( var p in s ) if ( Object . prototype . hasOwnProperty . call ( s , p ) ) t [ p ] = s [ p ] ;
}
return t ;
} ;
_ _rest = function ( s , e ) {
var t = { } ;
for ( var p in s ) if ( Object . prototype . hasOwnProperty . call ( s , p ) && e . indexOf ( p ) < 0 )
t [ p ] = s [ p ] ;
if ( s != null && typeof Object . getOwnPropertySymbols === "function" )
for ( var i = 0 , p = Object . getOwnPropertySymbols ( s ) ; i < p . length ; i ++ ) {
if ( e . indexOf ( p [ i ] ) < 0 && Object . prototype . propertyIsEnumerable . call ( s , p [ i ] ) )
t [ p [ i ] ] = s [ p [ i ] ] ;
}
return t ;
} ;
_ _decorate = function ( decorators , target , key , desc ) {
var c = arguments . length , r = c < 3 ? target : desc === null ? desc = Object . getOwnPropertyDescriptor ( target , key ) : desc , d ;
if ( typeof Reflect === "object" && typeof Reflect . decorate === "function" ) r = Reflect . decorate ( decorators , target , key , desc ) ;
else for ( var i = decorators . length - 1 ; i >= 0 ; i -- ) if ( d = decorators [ i ] ) r = ( c < 3 ? d ( r ) : c > 3 ? d ( target , key , r ) : d ( target , key ) ) || r ;
return c > 3 && r && Object . defineProperty ( target , key , r ) , r ;
} ;
_ _param = function ( paramIndex , decorator ) {
return function ( target , key ) { decorator ( target , key , paramIndex ) ; }
} ;
_ _metadata = function ( metadataKey , metadataValue ) {
if ( typeof Reflect === "object" && typeof Reflect . metadata === "function" ) return Reflect . metadata ( metadataKey , metadataValue ) ;
} ;
_ _awaiter = function ( thisArg , _arguments , P , generator ) {
function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
} ) ;
} ;
_ _generator = function ( thisArg , body ) {
var _ = { label : 0 , sent : function ( ) { if ( t [ 0 ] & 1 ) throw t [ 1 ] ; return t [ 1 ] ; } , trys : [ ] , ops : [ ] } , f , y , t , g ;
return g = { next : verb ( 0 ) , "throw" : verb ( 1 ) , "return" : verb ( 2 ) } , typeof Symbol === "function" && ( g [ Symbol . iterator ] = function ( ) { return this ; } ) , g ;
function verb ( n ) { return function ( v ) { return step ( [ n , v ] ) ; } ; }
function step ( op ) {
if ( f ) throw new TypeError ( "Generator is already executing." ) ;
while ( _ ) try {
if ( f = 1 , y && ( t = op [ 0 ] & 2 ? y [ "return" ] : op [ 0 ] ? y [ "throw" ] || ( ( t = y [ "return" ] ) && t . call ( y ) , 0 ) : y . next ) && ! ( t = t . call ( y , op [ 1 ] ) ) . done ) return t ;
if ( y = 0 , t ) op = [ op [ 0 ] & 2 , t . value ] ;
switch ( op [ 0 ] ) {
case 0 : case 1 : t = op ; break ;
case 4 : _ . label ++ ; return { value : op [ 1 ] , done : false } ;
case 5 : _ . label ++ ; y = op [ 1 ] ; op = [ 0 ] ; continue ;
case 7 : op = _ . ops . pop ( ) ; _ . trys . pop ( ) ; continue ;
default :
if ( ! ( t = _ . trys , t = t . length > 0 && t [ t . length - 1 ] ) && ( op [ 0 ] === 6 || op [ 0 ] === 2 ) ) { _ = 0 ; continue ; }
if ( op [ 0 ] === 3 && ( ! t || ( op [ 1 ] > t [ 0 ] && op [ 1 ] < t [ 3 ] ) ) ) { _ . label = op [ 1 ] ; break ; }
if ( op [ 0 ] === 6 && _ . label < t [ 1 ] ) { _ . label = t [ 1 ] ; t = op ; break ; }
if ( t && _ . label < t [ 2 ] ) { _ . label = t [ 2 ] ; _ . ops . push ( op ) ; break ; }
if ( t [ 2 ] ) _ . ops . pop ( ) ;
_ . trys . pop ( ) ; continue ;
}
op = body . call ( thisArg , _ ) ;
} catch ( e ) { op = [ 6 , e ] ; y = 0 ; } finally { f = t = 0 ; }
if ( op [ 0 ] & 5 ) throw op [ 1 ] ; return { value : op [ 0 ] ? op [ 1 ] : void 0 , done : true } ;
}
} ;
_ _exportStar = function ( m , o ) {
for ( var p in m ) if ( p !== "default" && ! Object . prototype . hasOwnProperty . call ( o , p ) ) _ _createBinding ( o , m , p ) ;
} ;
_ _createBinding = Object . create ? ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
} ) : ( function ( o , m , k , k2 ) {
if ( k2 === undefined ) k2 = k ;
o [ k2 ] = m [ k ] ;
} ) ;
_ _values = function ( o ) {
var s = typeof Symbol === "function" && Symbol . iterator , m = s && o [ s ] , i = 0 ;
if ( m ) return m . call ( o ) ;
if ( o && typeof o . length === "number" ) return {
next : function ( ) {
if ( o && i >= o . length ) o = void 0 ;
return { value : o && o [ i ++ ] , done : ! o } ;
}
} ;
throw new TypeError ( s ? "Object is not iterable." : "Symbol.iterator is not defined." ) ;
} ;
_ _read = function ( o , n ) {
var m = typeof Symbol === "function" && o [ Symbol . iterator ] ;
if ( ! m ) return o ;
var i = m . call ( o ) , r , ar = [ ] , e ;
try {
while ( ( n === void 0 || n -- > 0 ) && ! ( r = i . next ( ) ) . done ) ar . push ( r . value ) ;
}
catch ( error ) { e = { error : error } ; }
finally {
try {
if ( r && ! r . done && ( m = i [ "return" ] ) ) m . call ( i ) ;
}
finally { if ( e ) throw e . error ; }
}
return ar ;
} ;
/** @deprecated */
_ _spread = function ( ) {
for ( var ar = [ ] , i = 0 ; i < arguments . length ; i ++ )
ar = ar . concat ( _ _read ( arguments [ i ] ) ) ;
return ar ;
} ;
/** @deprecated */
_ _spreadArrays = function ( ) {
for ( var s = 0 , i = 0 , il = arguments . length ; i < il ; i ++ ) s += arguments [ i ] . length ;
for ( var r = Array ( s ) , k = 0 , i = 0 ; i < il ; i ++ )
for ( var a = arguments [ i ] , j = 0 , jl = a . length ; j < jl ; j ++ , k ++ )
r [ k ] = a [ j ] ;
return r ;
} ;
_ _spreadArray = function ( to , from , pack ) {
if ( pack || arguments . length === 2 ) for ( var i = 0 , l = from . length , ar ; i < l ; i ++ ) {
if ( ar || ! ( i in from ) ) {
if ( ! ar ) ar = Array . prototype . slice . call ( from , 0 , i ) ;
ar [ i ] = from [ i ] ;
}
}
return to . concat ( ar || Array . prototype . slice . call ( from ) ) ;
} ;
_ _await = function ( v ) {
return this instanceof _ _await ? ( this . v = v , this ) : new _ _await ( v ) ;
} ;
_ _asyncGenerator = function ( thisArg , _arguments , generator ) {
if ( ! Symbol . asyncIterator ) throw new TypeError ( "Symbol.asyncIterator is not defined." ) ;
var g = generator . apply ( thisArg , _arguments || [ ] ) , i , q = [ ] ;
return i = { } , verb ( "next" ) , verb ( "throw" ) , verb ( "return" ) , i [ Symbol . asyncIterator ] = function ( ) { return this ; } , i ;
function verb ( n ) { if ( g [ n ] ) i [ n ] = function ( v ) { return new Promise ( function ( a , b ) { q . push ( [ n , v , a , b ] ) > 1 || resume ( n , v ) ; } ) ; } ; }
function resume ( n , v ) { try { step ( g [ n ] ( v ) ) ; } catch ( e ) { settle ( q [ 0 ] [ 3 ] , e ) ; } }
function step ( r ) { r . value instanceof _ _await ? Promise . resolve ( r . value . v ) . then ( fulfill , reject ) : settle ( q [ 0 ] [ 2 ] , r ) ; }
function fulfill ( value ) { resume ( "next" , value ) ; }
function reject ( value ) { resume ( "throw" , value ) ; }
function settle ( f , v ) { if ( f ( v ) , q . shift ( ) , q . length ) resume ( q [ 0 ] [ 0 ] , q [ 0 ] [ 1 ] ) ; }
} ;
_ _asyncDelegator = function ( o ) {
var i , p ;
return i = { } , verb ( "next" ) , verb ( "throw" , function ( e ) { throw e ; } ) , verb ( "return" ) , i [ Symbol . iterator ] = function ( ) { return this ; } , i ;
function verb ( n , f ) { i [ n ] = o [ n ] ? function ( v ) { return ( p = ! p ) ? { value : _ _await ( o [ n ] ( v ) ) , done : n === "return" } : f ? f ( v ) : v ; } : f ; }
} ;
_ _asyncValues = function ( o ) {
if ( ! Symbol . asyncIterator ) throw new TypeError ( "Symbol.asyncIterator is not defined." ) ;
var m = o [ Symbol . asyncIterator ] , i ;
return m ? m . call ( o ) : ( o = typeof _ _values === "function" ? _ _values ( o ) : o [ Symbol . iterator ] ( ) , i = { } , verb ( "next" ) , verb ( "throw" ) , verb ( "return" ) , i [ Symbol . asyncIterator ] = function ( ) { return this ; } , i ) ;
function verb ( n ) { i [ n ] = o [ n ] && function ( v ) { return new Promise ( function ( resolve , reject ) { v = o [ n ] ( v ) , settle ( resolve , reject , v . done , v . value ) ; } ) ; } ; }
function settle ( resolve , reject , d , v ) { Promise . resolve ( v ) . then ( function ( v ) { resolve ( { value : v , done : d } ) ; } , reject ) ; }
} ;
_ _makeTemplateObject = function ( cooked , raw ) {
if ( Object . defineProperty ) { Object . defineProperty ( cooked , "raw" , { value : raw } ) ; } else { cooked . raw = raw ; }
return cooked ;
} ;
var _ _setModuleDefault = Object . create ? ( function ( o , v ) {
Object . defineProperty ( o , "default" , { enumerable : true , value : v } ) ;
} ) : function ( o , v ) {
o [ "default" ] = v ;
} ;
_ _importStar = function ( mod ) {
if ( mod && mod . _ _esModule ) return mod ;
var result = { } ;
if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) _ _createBinding ( result , mod , k ) ;
_ _setModuleDefault ( result , mod ) ;
return result ;
} ;
_ _importDefault = function ( mod ) {
return ( mod && mod . _ _esModule ) ? mod : { "default" : mod } ;
} ;
_ _classPrivateFieldGet = function ( receiver , state , kind , f ) {
if ( kind === "a" && ! f ) throw new TypeError ( "Private accessor was defined without a getter" ) ;
if ( typeof state === "function" ? receiver !== state || ! f : ! state . has ( receiver ) ) throw new TypeError ( "Cannot read private member from an object whose class did not declare it" ) ;
return kind === "m" ? f : kind === "a" ? f . call ( receiver ) : f ? f . value : state . get ( receiver ) ;
} ;
_ _classPrivateFieldSet = function ( receiver , state , value , kind , f ) {
if ( kind === "m" ) throw new TypeError ( "Private method is not writable" ) ;
if ( kind === "a" && ! f ) throw new TypeError ( "Private accessor was defined without a setter" ) ;
if ( typeof state === "function" ? receiver !== state || ! f : ! state . has ( receiver ) ) throw new TypeError ( "Cannot write private member to an object whose class did not declare it" ) ;
return ( kind === "a" ? f . call ( receiver , value ) : f ? f . value = value : state . set ( receiver , value ) ) , value ;
} ;
exporter ( "__extends" , _ _extends ) ;
exporter ( "__assign" , _ _assign ) ;
exporter ( "__rest" , _ _rest ) ;
exporter ( "__decorate" , _ _decorate ) ;
exporter ( "__param" , _ _param ) ;
exporter ( "__metadata" , _ _metadata ) ;
exporter ( "__awaiter" , _ _awaiter ) ;
exporter ( "__generator" , _ _generator ) ;
exporter ( "__exportStar" , _ _exportStar ) ;
exporter ( "__createBinding" , _ _createBinding ) ;
exporter ( "__values" , _ _values ) ;
exporter ( "__read" , _ _read ) ;
exporter ( "__spread" , _ _spread ) ;
exporter ( "__spreadArrays" , _ _spreadArrays ) ;
exporter ( "__spreadArray" , _ _spreadArray ) ;
exporter ( "__await" , _ _await ) ;
exporter ( "__asyncGenerator" , _ _asyncGenerator ) ;
exporter ( "__asyncDelegator" , _ _asyncDelegator ) ;
exporter ( "__asyncValues" , _ _asyncValues ) ;
exporter ( "__makeTemplateObject" , _ _makeTemplateObject ) ;
exporter ( "__importStar" , _ _importStar ) ;
exporter ( "__importDefault" , _ _importDefault ) ;
exporter ( "__classPrivateFieldGet" , _ _classPrivateFieldGet ) ;
exporter ( "__classPrivateFieldSet" , _ _classPrivateFieldSet ) ;
} ) ;
/***/ } ) ,
/***/ 4294 :
/***/ ( ( module , _ _unused _webpack _exports , _ _nccwpck _require _ _ ) => {
module . exports = _ _nccwpck _require _ _ ( 4219 ) ;
/***/ } ) ,
/***/ 4219 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
var net = _ _nccwpck _require _ _ ( 1631 ) ;
var tls = _ _nccwpck _require _ _ ( 4016 ) ;
var http = _ _nccwpck _require _ _ ( 8605 ) ;
var https = _ _nccwpck _require _ _ ( 7211 ) ;
var events = _ _nccwpck _require _ _ ( 8614 ) ;
var assert = _ _nccwpck _require _ _ ( 2357 ) ;
var util = _ _nccwpck _require _ _ ( 1669 ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
exports . httpOverHttp = httpOverHttp ;
exports . httpsOverHttp = httpsOverHttp ;
exports . httpOverHttps = httpOverHttps ;
exports . httpsOverHttps = httpsOverHttps ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function httpOverHttp ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = http . request ;
return agent ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function httpsOverHttp ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = http . request ;
agent . createSocket = createSecureSocket ;
agent . defaultPort = 443 ;
return agent ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function httpOverHttps ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = https . request ;
return agent ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function httpsOverHttps ( options ) {
var agent = new TunnelingAgent ( options ) ;
agent . request = https . request ;
agent . createSocket = createSecureSocket ;
agent . defaultPort = 443 ;
return agent ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function TunnelingAgent ( options ) {
var self = this ;
self . options = options || { } ;
self . proxyOptions = self . options . proxy || { } ;
self . maxSockets = self . options . maxSockets || http . Agent . defaultMaxSockets ;
self . requests = [ ] ;
self . sockets = [ ] ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
self . on ( 'free' , function onFree ( socket , host , port , localAddress ) {
var options = toOptions ( host , port , localAddress ) ;
for ( var i = 0 , len = self . requests . length ; i < len ; ++ i ) {
var pending = self . requests [ i ] ;
if ( pending . host === options . host && pending . port === options . port ) {
// Detect the request to connect same origin server,
// reuse the connection.
self . requests . splice ( i , 1 ) ;
pending . request . onSocket ( socket ) ;
return ;
}
}
socket . destroy ( ) ;
self . removeSocket ( socket ) ;
} ) ;
}
util . inherits ( TunnelingAgent , events . EventEmitter ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
TunnelingAgent . prototype . addRequest = function addRequest ( req , host , port , localAddress ) {
var self = this ;
var options = mergeOptions ( { request : req } , self . options , toOptions ( host , port , localAddress ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( self . sockets . length >= this . maxSockets ) {
// We are over limit so we'll add it to the queue.
self . requests . push ( options ) ;
return ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
// If we are under maxSockets create a new one.
self . createSocket ( options , function ( socket ) {
socket . on ( 'free' , onFree ) ;
socket . on ( 'close' , onCloseOrRemove ) ;
socket . on ( 'agentRemove' , onCloseOrRemove ) ;
req . onSocket ( socket ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function onFree ( ) {
self . emit ( 'free' , socket , options ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function onCloseOrRemove ( err ) {
self . removeSocket ( socket ) ;
socket . removeListener ( 'free' , onFree ) ;
socket . removeListener ( 'close' , onCloseOrRemove ) ;
socket . removeListener ( 'agentRemove' , onCloseOrRemove ) ;
}
} ) ;
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
TunnelingAgent . prototype . createSocket = function createSocket ( options , cb ) {
var self = this ;
var placeholder = { } ;
self . sockets . push ( placeholder ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var connectOptions = mergeOptions ( { } , self . proxyOptions , {
method : 'CONNECT' ,
path : options . host + ':' + options . port ,
agent : false ,
headers : {
host : options . host + ':' + options . port
}
} ) ;
if ( options . localAddress ) {
connectOptions . localAddress = options . localAddress ;
}
if ( connectOptions . proxyAuth ) {
connectOptions . headers = connectOptions . headers || { } ;
connectOptions . headers [ 'Proxy-Authorization' ] = 'Basic ' +
new Buffer ( connectOptions . proxyAuth ) . toString ( 'base64' ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
debug ( 'making CONNECT request' ) ;
var connectReq = self . request ( connectOptions ) ;
connectReq . useChunkedEncodingByDefault = false ; // for v0.6
connectReq . once ( 'response' , onResponse ) ; // for v0.6
connectReq . once ( 'upgrade' , onUpgrade ) ; // for v0.6
connectReq . once ( 'connect' , onConnect ) ; // for v0.7 or later
connectReq . once ( 'error' , onError ) ;
connectReq . end ( ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function onResponse ( res ) {
// Very hacky. This is necessary to avoid http-parser leaks.
res . upgrade = true ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function onUpgrade ( res , socket , head ) {
// Hacky.
process . nextTick ( function ( ) {
onConnect ( res , socket , head ) ;
} ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function onConnect ( res , socket , head ) {
connectReq . removeAllListeners ( ) ;
socket . removeAllListeners ( ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( res . statusCode !== 200 ) {
debug ( 'tunneling socket could not be established, statusCode=%d' ,
res . statusCode ) ;
socket . destroy ( ) ;
var error = new Error ( 'tunneling socket could not be established, ' +
'statusCode=' + res . statusCode ) ;
error . code = 'ECONNRESET' ;
options . request . emit ( 'error' , error ) ;
self . removeSocket ( placeholder ) ;
return ;
}
if ( head . length > 0 ) {
debug ( 'got illegal response body from proxy' ) ;
socket . destroy ( ) ;
var error = new Error ( 'got illegal response body from proxy' ) ;
error . code = 'ECONNRESET' ;
options . request . emit ( 'error' , error ) ;
self . removeSocket ( placeholder ) ;
return ;
}
debug ( 'tunneling connection has established' ) ;
self . sockets [ self . sockets . indexOf ( placeholder ) ] = socket ;
return cb ( socket ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function onError ( cause ) {
connectReq . removeAllListeners ( ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
debug ( 'tunneling socket could not be established, cause=%s\n' ,
cause . message , cause . stack ) ;
var error = new Error ( 'tunneling socket could not be established, ' +
'cause=' + cause . message ) ;
error . code = 'ECONNRESET' ;
options . request . emit ( 'error' , error ) ;
self . removeSocket ( placeholder ) ;
}
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
TunnelingAgent . prototype . removeSocket = function removeSocket ( socket ) {
var pos = this . sockets . indexOf ( socket )
if ( pos === - 1 ) {
return ;
}
this . sockets . splice ( pos , 1 ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var pending = this . requests . shift ( ) ;
if ( pending ) {
// If we have pending requests and a socket gets closed a new one
// needs to be created to take over in the pool for the one that closed.
this . createSocket ( pending , function ( socket ) {
pending . request . onSocket ( socket ) ;
} ) ;
}
} ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function createSecureSocket ( options , cb ) {
var self = this ;
TunnelingAgent . prototype . createSocket . call ( self , options , function ( socket ) {
var hostHeader = options . request . getHeader ( 'host' ) ;
var tlsOptions = mergeOptions ( { } , self . options , {
socket : socket ,
servername : hostHeader ? hostHeader . replace ( /:.*$/ , '' ) : options . host
} ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
// 0 is dummy port for v0.6
var secureSocket = tls . connect ( 0 , tlsOptions ) ;
self . sockets [ self . sockets . indexOf ( socket ) ] = secureSocket ;
cb ( secureSocket ) ;
} ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function toOptions ( host , port , localAddress ) {
if ( typeof host === 'string' ) { // since v0.10
return {
host : host ,
port : port ,
localAddress : localAddress
} ;
}
return host ; // for v0.11 or later
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function mergeOptions ( target ) {
for ( var i = 1 , len = arguments . length ; i < len ; ++ i ) {
var overrides = arguments [ i ] ;
if ( typeof overrides === 'object' ) {
var keys = Object . keys ( overrides ) ;
for ( var j = 0 , keyLen = keys . length ; j < keyLen ; ++ j ) {
var k = keys [ j ] ;
if ( overrides [ k ] !== undefined ) {
target [ k ] = overrides [ k ] ;
}
}
}
}
return target ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var debug ;
if ( process . env . NODE _DEBUG && /\btunnel\b/ . test ( process . env . NODE _DEBUG ) ) {
debug = function ( ) {
var args = Array . prototype . slice . call ( arguments ) ;
if ( typeof args [ 0 ] === 'string' ) {
args [ 0 ] = 'TUNNEL: ' + args [ 0 ] ;
} else {
args . unshift ( 'TUNNEL:' ) ;
}
console . error . apply ( console , args ) ;
}
} else {
debug = function ( ) { } ;
}
exports . debug = debug ; // for test
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5840 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
Object . defineProperty ( exports , "v1" , ( {
enumerable : true ,
get : function ( ) {
return _v . default ;
}
} ) ) ;
Object . defineProperty ( exports , "v3" , ( {
enumerable : true ,
get : function ( ) {
return _v2 . default ;
}
} ) ) ;
Object . defineProperty ( exports , "v4" , ( {
enumerable : true ,
get : function ( ) {
return _v3 . default ;
}
} ) ) ;
Object . defineProperty ( exports , "v5" , ( {
enumerable : true ,
get : function ( ) {
return _v4 . default ;
}
} ) ) ;
Object . defineProperty ( exports , "NIL" , ( {
enumerable : true ,
get : function ( ) {
return _nil . default ;
}
} ) ) ;
Object . defineProperty ( exports , "version" , ( {
enumerable : true ,
get : function ( ) {
return _version . default ;
}
} ) ) ;
Object . defineProperty ( exports , "validate" , ( {
enumerable : true ,
get : function ( ) {
return _validate . default ;
}
} ) ) ;
Object . defineProperty ( exports , "stringify" , ( {
enumerable : true ,
get : function ( ) {
return _stringify . default ;
}
} ) ) ;
Object . defineProperty ( exports , "parse" , ( {
enumerable : true ,
get : function ( ) {
return _parse . default ;
}
} ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _v = _interopRequireDefault ( _ _nccwpck _require _ _ ( 8628 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _v2 = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6409 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _v3 = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5122 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _v4 = _interopRequireDefault ( _ _nccwpck _require _ _ ( 9120 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _nil = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5332 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-30 20:43:44 +01:00
var _version = _interopRequireDefault ( _ _nccwpck _require _ _ ( 2414 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _validate = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6900 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _stringify = _interopRequireDefault ( _ _nccwpck _require _ _ ( 8950 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _parse = _interopRequireDefault ( _ _nccwpck _require _ _ ( 2746 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4569 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _crypto = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6417 ) ) ;
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
function md5 ( bytes ) {
if ( Array . isArray ( bytes ) ) {
bytes = Buffer . from ( bytes ) ;
} else if ( typeof bytes === 'string' ) {
bytes = Buffer . from ( bytes , 'utf8' ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return _crypto . default . createHash ( 'md5' ) . update ( bytes ) . digest ( ) ;
}
var _default = md5 ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5332 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
var _default = '00000000-0000-0000-0000-000000000000' ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2746 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _validate = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6900 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function parse ( uuid ) {
if ( ! ( 0 , _validate . default ) ( uuid ) ) {
throw TypeError ( 'Invalid UUID' ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
let v ;
const arr = new Uint8Array ( 16 ) ; // Parse ########-....-....-....-............
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
arr [ 0 ] = ( v = parseInt ( uuid . slice ( 0 , 8 ) , 16 ) ) >>> 24 ;
arr [ 1 ] = v >>> 16 & 0xff ;
arr [ 2 ] = v >>> 8 & 0xff ;
arr [ 3 ] = v & 0xff ; // Parse ........-####-....-....-............
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
arr [ 4 ] = ( v = parseInt ( uuid . slice ( 9 , 13 ) , 16 ) ) >>> 8 ;
arr [ 5 ] = v & 0xff ; // Parse ........-....-####-....-............
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
arr [ 6 ] = ( v = parseInt ( uuid . slice ( 14 , 18 ) , 16 ) ) >>> 8 ;
arr [ 7 ] = v & 0xff ; // Parse ........-....-....-####-............
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
arr [ 8 ] = ( v = parseInt ( uuid . slice ( 19 , 23 ) , 16 ) ) >>> 8 ;
arr [ 9 ] = v & 0xff ; // Parse ........-....-....-....-############
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
arr [ 10 ] = ( v = parseInt ( uuid . slice ( 24 , 36 ) , 16 ) ) / 0x10000000000 & 0xff ;
arr [ 11 ] = v / 0x100000000 & 0xff ;
arr [ 12 ] = v >>> 24 & 0xff ;
arr [ 13 ] = v >>> 16 & 0xff ;
arr [ 14 ] = v >>> 8 & 0xff ;
arr [ 15 ] = v & 0xff ;
return arr ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _default = parse ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 814 :
/***/ ( ( _ _unused _webpack _module , exports ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 807 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = rng ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _crypto = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6417 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const rnds8Pool = new Uint8Array ( 256 ) ; // # of random values to pre-allocate
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
let poolPtr = rnds8Pool . length ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function rng ( ) {
if ( poolPtr > rnds8Pool . length - 16 ) {
_crypto . default . randomFillSync ( rnds8Pool ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
poolPtr = 0 ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return rnds8Pool . slice ( poolPtr , poolPtr += 16 ) ;
}
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5274 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _crypto = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6417 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function sha1 ( bytes ) {
if ( Array . isArray ( bytes ) ) {
bytes = Buffer . from ( bytes ) ;
} else if ( typeof bytes === 'string' ) {
bytes = Buffer . from ( bytes , 'utf8' ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return _crypto . default . createHash ( 'sha1' ) . update ( bytes ) . digest ( ) ;
}
var _default = sha1 ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8950 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _validate = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6900 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
/ * *
* Convert array of 16 byte values to UUID string format of the form :
* XXXXXXXX - XXXX - XXXX - XXXX - XXXXXXXXXXXX
* /
const byteToHex = [ ] ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
for ( let i = 0 ; i < 256 ; ++ i ) {
byteToHex . push ( ( i + 0x100 ) . toString ( 16 ) . substr ( 1 ) ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function stringify ( arr , offset = 0 ) {
// Note: Be careful editing this code! It's been tuned for performance
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
const uuid = ( byteToHex [ arr [ offset + 0 ] ] + byteToHex [ arr [ offset + 1 ] ] + byteToHex [ arr [ offset + 2 ] ] + byteToHex [ arr [ offset + 3 ] ] + '-' + byteToHex [ arr [ offset + 4 ] ] + byteToHex [ arr [ offset + 5 ] ] + '-' + byteToHex [ arr [ offset + 6 ] ] + byteToHex [ arr [ offset + 7 ] ] + '-' + byteToHex [ arr [ offset + 8 ] ] + byteToHex [ arr [ offset + 9 ] ] + '-' + byteToHex [ arr [ offset + 10 ] ] + byteToHex [ arr [ offset + 11 ] ] + byteToHex [ arr [ offset + 12 ] ] + byteToHex [ arr [ offset + 13 ] ] + byteToHex [ arr [ offset + 14 ] ] + byteToHex [ arr [ offset + 15 ] ] ) . toLowerCase ( ) ; // Consistency check for valid UUID. If this throws, it's likely due to one
// of the following:
// - One or more input array values don't map to a hex octet (leading to
// "undefined" in the uuid)
// - Invalid input values for the RFC `version` or `variant` fields
if ( ! ( 0 , _validate . default ) ( uuid ) ) {
throw TypeError ( 'Stringified UUID is invalid' ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return uuid ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _default = stringify ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8628 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _rng = _interopRequireDefault ( _ _nccwpck _require _ _ ( 807 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _stringify = _interopRequireDefault ( _ _nccwpck _require _ _ ( 8950 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
// **`v1()` - Generate time-based UUID**
//
// Inspired by https://github.com/LiosK/UUID.js
// and http://docs.python.org/library/uuid.html
let _nodeId ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
let _clockseq ; // Previous uuid creation time
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
let _lastMSecs = 0 ;
let _lastNSecs = 0 ; // See https://github.com/uuidjs/uuid for API details
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function v1 ( options , buf , offset ) {
let i = buf && offset || 0 ;
const b = buf || new Array ( 16 ) ;
options = options || { } ;
let node = options . node || _nodeId ;
let clockseq = options . clockseq !== undefined ? options . clockseq : _clockseq ; // node and clockseq need to be initialized to random values if they're not
// specified. We do this lazily to minimize issues related to insufficient
// system entropy. See #189
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( node == null || clockseq == null ) {
const seedBytes = options . random || ( options . rng || _rng . default ) ( ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( node == null ) {
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
node = _nodeId = [ seedBytes [ 0 ] | 0x01 , seedBytes [ 1 ] , seedBytes [ 2 ] , seedBytes [ 3 ] , seedBytes [ 4 ] , seedBytes [ 5 ] ] ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( clockseq == null ) {
// Per 4.2.2, randomize (14 bit) clockseq
clockseq = _clockseq = ( seedBytes [ 6 ] << 8 | seedBytes [ 7 ] ) & 0x3fff ;
}
} // UUID timestamps are 100 nano-second units since the Gregorian epoch,
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
let msecs = options . msecs !== undefined ? options . msecs : Date . now ( ) ; // Per 4.2.1.2, use count of uuid's generated during the current clock
// cycle to simulate higher resolution clock
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
let nsecs = options . nsecs !== undefined ? options . nsecs : _lastNSecs + 1 ; // Time since last uuid creation (in msecs)
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const dt = msecs - _lastMSecs + ( nsecs - _lastNSecs ) / 10000 ; // Per 4.2.1.2, Bump clockseq on clock regression
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( dt < 0 && options . clockseq === undefined ) {
clockseq = clockseq + 1 & 0x3fff ;
} // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
// time interval
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( ( dt < 0 || msecs > _lastMSecs ) && options . nsecs === undefined ) {
nsecs = 0 ;
} // Per 4.2.1.2 Throw error if too many uuids are requested
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
if ( nsecs >= 10000 ) {
throw new Error ( "uuid.v1(): Can't create more than 10M uuids/sec" ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
_lastMSecs = msecs ;
_lastNSecs = nsecs ;
_clockseq = clockseq ; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
msecs += 12219292800000 ; // `time_low`
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const tl = ( ( msecs & 0xfffffff ) * 10000 + nsecs ) % 0x100000000 ;
b [ i ++ ] = tl >>> 24 & 0xff ;
b [ i ++ ] = tl >>> 16 & 0xff ;
b [ i ++ ] = tl >>> 8 & 0xff ;
b [ i ++ ] = tl & 0xff ; // `time_mid`
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const tmh = msecs / 0x100000000 * 10000 & 0xfffffff ;
b [ i ++ ] = tmh >>> 8 & 0xff ;
b [ i ++ ] = tmh & 0xff ; // `time_high_and_version`
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
b [ i ++ ] = tmh >>> 24 & 0xf | 0x10 ; // include version
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
b [ i ++ ] = tmh >>> 16 & 0xff ; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
b [ i ++ ] = clockseq >>> 8 | 0x80 ; // `clock_seq_low`
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
b [ i ++ ] = clockseq & 0xff ; // `node`
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
for ( let n = 0 ; n < 6 ; ++ n ) {
b [ i + n ] = node [ n ] ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return buf || ( 0 , _stringify . default ) ( b ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _default = v1 ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6409 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _v = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5998 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _md = _interopRequireDefault ( _ _nccwpck _require _ _ ( 4569 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const v3 = ( 0 , _v . default ) ( 'v3' , 0x30 , _md . default ) ;
var _default = v3 ;
exports . default = _default ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5998 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = _default ;
exports . URL = exports . DNS = void 0 ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _stringify = _interopRequireDefault ( _ _nccwpck _require _ _ ( 8950 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
var _parse = _interopRequireDefault ( _ _nccwpck _require _ _ ( 2746 ) ) ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
function stringToBytes ( str ) {
str = unescape ( encodeURIComponent ( str ) ) ; // UTF8 escape
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const bytes = [ ] ;
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
for ( let i = 0 ; i < str . length ; ++ i ) {
bytes . push ( str . charCodeAt ( i ) ) ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
return bytes ;
}
2021-12-20 10:43:09 +01:00
2021-12-20 10:00:03 +01:00
const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8' ;
exports . DNS = DNS ;
const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8' ;
exports . URL = URL ;
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
function _default ( name , version , hashfunc ) {
function generateUUID ( value , namespace , buf , offset ) {
if ( typeof value === 'string' ) {
value = stringToBytes ( value ) ;
}
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
if ( typeof namespace === 'string' ) {
namespace = ( 0 , _parse . default ) ( namespace ) ;
}
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
if ( namespace . length !== 16 ) {
throw TypeError ( 'Namespace must be array-like (16 iterable integer values, 0-255)' ) ;
} // Compute hash of namespace and value, Per 4.3
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
// hashfunc([...namespace, ... value])`
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
let bytes = new Uint8Array ( 16 + value . length ) ;
bytes . set ( namespace ) ;
bytes . set ( value , namespace . length ) ;
bytes = hashfunc ( bytes ) ;
bytes [ 6 ] = bytes [ 6 ] & 0x0f | version ;
bytes [ 8 ] = bytes [ 8 ] & 0x3f | 0x80 ;
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
if ( buf ) {
offset = offset || 0 ;
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
for ( let i = 0 ; i < 16 ; ++ i ) {
buf [ offset + i ] = bytes [ i ] ;
}
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
return buf ;
}
2021-10-04 13:14:44 +02:00
2021-12-20 10:00:03 +01:00
return ( 0 , _stringify . default ) ( bytes ) ;
} // Function#name is not settable on some platforms (#270)
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
try {
generateUUID . name = name ; // eslint-disable-next-line no-empty
} catch ( err ) { } // For CommonJS default export support
generateUUID . DNS = DNS ;
generateUUID . URL = URL ;
return generateUUID ;
}
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5122 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
var _rng = _interopRequireDefault ( _ _nccwpck _require _ _ ( 807 ) ) ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
var _stringify = _interopRequireDefault ( _ _nccwpck _require _ _ ( 8950 ) ) ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
function v4 ( options , buf , offset ) {
options = options || { } ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
const rnds = options . random || ( options . rng || _rng . default ) ( ) ; // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
2021-07-06 20:24:08 +02:00
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
rnds [ 6 ] = rnds [ 6 ] & 0x0f | 0x40 ;
rnds [ 8 ] = rnds [ 8 ] & 0x3f | 0x80 ; // Copy bytes to buffer, if provided
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
if ( buf ) {
offset = offset || 0 ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
for ( let i = 0 ; i < 16 ; ++ i ) {
buf [ offset + i ] = rnds [ i ] ;
}
2021-05-25 00:44:03 +02:00
2021-12-20 10:00:03 +01:00
return buf ;
}
return ( 0 , _stringify . default ) ( rnds ) ;
}
var _default = v4 ;
exports . default = _default ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 9120 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-07-06 20:24:08 +02:00
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
var _v = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5998 ) ) ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
var _sha = _interopRequireDefault ( _ _nccwpck _require _ _ ( 5274 ) ) ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
const v5 = ( 0 , _v . default ) ( 'v5' , 0x50 , _sha . default ) ;
var _default = v5 ;
exports . default = _default ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 6900 :
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
var _regex = _interopRequireDefault ( _ _nccwpck _require _ _ ( 814 ) ) ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
function validate ( uuid ) {
return typeof uuid === 'string' && _regex . default . test ( uuid ) ;
}
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
var _default = validate ;
exports . default = _default ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-30 20:43:44 +01:00
/***/ 2414 :
2021-12-20 10:00:03 +01:00
/***/ ( ( _ _unused _webpack _module , exports , _ _nccwpck _require _ _ ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
Object . defineProperty ( exports , "__esModule" , ( {
value : true
} ) ) ;
exports . default = void 0 ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
var _validate = _interopRequireDefault ( _ _nccwpck _require _ _ ( 6900 ) ) ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
function version ( uuid ) {
if ( ! ( 0 , _validate . default ) ( uuid ) ) {
throw TypeError ( 'Invalid UUID' ) ;
}
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
return parseInt ( uuid . substr ( 14 , 1 ) , 16 ) ;
}
var _default = version ;
exports . default = _default ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 7578 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
module . exports = eval ( "require" ) ( "aws-crt" ) ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 4589 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = JSON . parse ( '{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}' ) ;
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-21 14:45:16 +02:00
2021-12-20 10:00:03 +01:00
/***/ 4007 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2020-08-21 14:45:16 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = JSON . parse ( '{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´ ","Acy":"А ","acy":"а ","AElig":"Æ","aelig":"æ","af":" ","Afr":"𝔄 ","afr":"𝔞 ","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α ","alpha":"α ","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸 ","aopf":"𝕒 ","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\' "," ApplyFunction ":" "," approx ":" ≈ "," approxeq ":" ≊ "," Aring ":" Å "," aring ":" å "," Ascr ":" 𝒜 "," ascr ":" 𝒶 "," Assign ":" ≔ "," ast ":" * "," asymp ":" ≈ "," asympeq ":" ≍ "," Atilde ":" Ã "," atilde ":" ã "," Auml ":" Ä "," auml ":" ä "," awconint ":" ∳ "," awint ":" ⨑ "," backcong ":" ≌ "," backepsilon ":" ϶ "," backprime ":" ‵ "," backsim ":" ∽ "," backsimeq ":" ⋍ "," Backslash ":" ∖ "," Barv ":" ⫧ "," barvee ":" ⊽ "," barwed ":" ⌅ "," Barwed ":" ⌆ "," barwedge ":" ⌅ "," bbrk ":" ⎵ "," bbrktbrk ":" ⎶ "," bcong ":" ≌ "," Bcy ":" Б "," bcy ":" б "," bdquo ":" „ "," becaus ":" ∵ "," because ":" ∵ "," Because ":" ∵ "," bemptyv ":" ⦰ "," bepsi ":" ϶ "," bernou ":" ℬ "," Bernoullis ":" ℬ "," Beta ":" Β "," beta ":" β "," beth ":" ℶ "," between ":" ≬ "," Bfr ":" 𝔅 "," bfr ":" 𝔟 "," bigcap ":" ⋂ "," bigcirc ":" ◯ "," bigcup ":" ⋃ "," bigodot ":" ⨀ "," bigoplus ":" ⨁ "," bigotimes ":" ⨂ "," bigsqcup ":" ⨆ "," bigstar ":" ★ "," bigtriangledown ":" ▽ "," bigtriangleup ":" △ "," biguplus ":" ⨄ "," bigvee ":" ⋁ "," bigwedge ":" ⋀ "," bkarow ":" ⤍ "," blacklozenge ":" ⧫ "," blacksquare ":" ▪ "," blacktriangle ":" ▴ "," blacktriangledown ":" ▾ "," blacktriangleleft ":" ◂ "," blacktriangleright ":" ▸ "," blank ":" ␣ "," blk12 ":" ▒ "," blk14 ":" ░ "," blk34 ":" ▓ "," block ":" █ "," bne ":" = ⃥ "," bnequiv ":" ≡ ⃥ "," bNot ":" ⫭ "," bnot ":" ⌐ "," Bopf ":" 𝔹 "," bopf ":" 𝕓 "," bot ":" ⊥ "," bottom ":" ⊥ "," bowtie ":" ⋈ "," boxbox ":" ⧉ "," boxdl ":" ┐ "," boxdL ":" ╕ "," boxDl ":" ╖ "," boxDL ":" ╗ "," boxdr ":" ┌ "," boxdR ":" ╒ "," boxDr ":" ╓ "," boxDR ":" ╔ "," boxh ":" ─ "," boxH ":" ═ "," boxhd ":" ┬ "," boxHd ":" ╤ "," boxhD ":" ╥ "," boxHD ":" ╦ "," boxhu ":" ┴ "," boxHu ":" ╧ "," boxhU ":" ╨ "," boxHU ":" ╩ "," boxminus ":" ⊟ "," boxplus ":" ⊞ "," boxtimes ":" ⊠ "," boxul ":" ┘ "," boxuL ":" ╛ "," boxUl ":" ╜ "," boxUL ":" ╝ "," boxur ":" └ "," boxuR ":" ╘ "," boxUr ":" ╙ "," boxUR ":" ╚ "," boxv ":" │ "," boxV ":" ║ "," boxvh ":" ┼ "," boxvH ":" ╪ "," boxVh ":" ╫ "," boxVH ":" ╬ "," boxvl ":" ┤ "," boxvL ":" ╡ "," boxVl ":" ╢ "," boxVL ":" ╣ "," boxvr ":" ├ "," boxvR ":" ╞ "," boxVr ":" ╟ "," boxVR ":" ╠ "," bprime ":" ‵ "," breve ":" ˘ "," Breve ":" ˘ "," brvbar ":" ¦ "," bscr ":" 𝒷 "," Bscr ":" ℬ "," bsemi ":" ⁏ "," bsim ":" ∽ "," bsime ":" ⋍ "," bsolb ":" ⧅ "," bsol ":" \ \ \ \ "," bsolhsub ":" ⟈ "," bull ":" • "," bullet ":" • "," bump ":" ≎ "," bumpE ":" ⪮ "," bumpe ":" ≏ "," Bumpeq ":" ≎ "," bumpeq ":" ≏ "," Cacute ":" Ć "," cacute ":" ć "," capand ":" ⩄ "," capbrcup ":" ⩉ "," capcap ":" ⩋ "," cap ":" ∩ "," Cap ":" ⋒ "," capcup ":" ⩇ "," capdot ":" ⩀ "," CapitalDifferentialD ":" ⅅ "," caps ":" ∩ ︀ "," caret ":" ⁁ "," caron ":" ˇ "," Cayleys ":" ℭ "," ccaps ":" ⩍ "," Ccaron ":" Č "," ccaron ":" č "," Ccedil ":" Ç "," ccedil ":" ç "," Ccirc ":" Ĉ "," ccirc ":" ĉ "," Cconint ":" ∰ "," ccups ":" ⩌ "," ccupssm ":" ⩐ "," Cdot ":" Ċ "," cdot ":" ċ "," cedil ":" ¸ "," Cedilla ":" ¸ "," cemptyv ":" ⦲ "," cent ":" ¢ "," centerdot ":" · "," CenterDot ":" · "," cfr ":" 𝔠 "," Cfr ":" ℭ "," CHcy ":" Ч "," chcy ":" ч "," check ":" ✓ "," checkmark ":" ✓ "," Chi ":" Χ "," chi ":" χ "," circ ":" ˆ "," circeq ":" ≗ "," circlearrowleft ":" ↺ "," circlearrowright ":" ↻ "," circledast ":" ⊛ "," circledcirc ":" ⊚ "," circleddash ":" ⊝ "," CircleDot ":" ⊙ "," circledR ":" ® "," circledS ":" Ⓢ "," CircleMinus ":" ⊖ "," CirclePlus ":" ⊕ "," CircleTimes ":" ⊗ "," cir ":" ○ "," cirE ":" ⧃ "," cire ":" ≗ "," cirfnint ":" ⨐ "," cirmid ":" ⫯ "," cirscir ":" ⧂ "," ClockwiseContourIntegral ":" ∲ "," CloseCurlyDoubleQuote ":" ” "," CloseCurlyQuote ":" ’ "," clubs ":" ♣ "," clubsuit ":" ♣ "," colon ":" : "," Colon ":" <EFBFBD> <EFBFBD>
2020-08-20 16:40:33 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2020-08-15 14:45:36 +02:00
2021-12-20 10:00:03 +01:00
/***/ 7802 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2020-08-15 14:45:36 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = JSON . parse ( '{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´ ","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸ ","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":" ","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"× ","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}' ) ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
/***/ 2228 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = JSON . parse ( '{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}' ) ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
/***/ 2357 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
module . exports = require ( "assert" ) ; ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
/***/ 4293 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
module . exports = require ( "buffer" ) ; ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-07-06 20:24:08 +02:00
2021-12-20 10:00:03 +01:00
/***/ 3129 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "child_process" ) ; ;
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 6417 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
2021-07-06 20:24:08 +02:00
2021-12-20 10:43:09 +01:00
"use strict" ;
module . exports = require ( "crypto" ) ; ;
2020-08-15 14:45:36 +02:00
2020-08-21 14:45:16 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8614 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = require ( "events" ) ; ;
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5747 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = require ( "fs" ) ; ;
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8605 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = require ( "http" ) ; ;
2021-07-06 20:24:08 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7565 :
2021-10-04 13:14:44 +02:00
/***/ ( ( module ) => {
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = require ( "http2" ) ; ;
2021-10-04 13:14:44 +02:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 7211 :
2021-10-04 13:14:44 +02:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "https" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1631 :
2021-10-04 13:14:44 +02:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "net" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2087 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "os" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 5622 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "path" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1765 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
"use strict" ;
2021-12-20 10:00:03 +01:00
module . exports = require ( "process" ) ; ;
2021-12-20 10:43:09 +01:00
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 2413 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "stream" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 4304 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "string_decoder" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8213 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "timers" ) ; ;
/***/ } ) ,
2021-10-04 13:14:44 +02:00
/***/ 4016 :
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "tls" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 8835 :
2021-12-20 10:43:09 +01:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "url" ) ; ;
/***/ } ) ,
2021-12-20 10:00:03 +01:00
/***/ 1669 :
2021-07-06 20:24:08 +02:00
/***/ ( ( module ) => {
"use strict" ;
module . exports = require ( "util" ) ; ;
2020-08-21 14:45:16 +02:00
2020-08-15 14:45:36 +02:00
/***/ } )
2021-07-06 20:24:08 +02:00
/******/ } ) ;
/************************************************************************/
/******/ // The module cache
/******/ var _ _webpack _module _cache _ _ = { } ;
/******/
/******/ // The require function
/******/ function _ _nccwpck _require _ _ ( moduleId ) {
/******/ // Check if module is in cache
/******/ var cachedModule = _ _webpack _module _cache _ _ [ moduleId ] ;
/******/ if ( cachedModule !== undefined ) {
/******/ return cachedModule . exports ;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = _ _webpack _module _cache _ _ [ moduleId ] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports : { }
/******/ } ;
/******/
/******/ // Execute the module function
/******/ var threw = true ;
/******/ try {
/******/ _ _webpack _modules _ _ [ moduleId ] . call ( module . exports , module , module . exports , _ _nccwpck _require _ _ ) ;
/******/ threw = false ;
/******/ } finally {
/******/ if ( threw ) delete _ _webpack _module _cache _ _ [ moduleId ] ;
/******/ }
/******/
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if ( typeof _ _nccwpck _require _ _ !== 'undefined' ) _ _nccwpck _require _ _ . ab = _ _dirname + "/" ; /************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module is referenced by other modules so it can't be inlined
/******/ var _ _webpack _exports _ _ = _ _nccwpck _require _ _ ( 3109 ) ;
/******/ module . exports = _ _webpack _exports _ _ ;
/******/
/******/ } ) ( )
;